// var winW = =0+$CUser->Data['width'];?>; var winH = =0+$CUser->Data['height'];?>; var PanelH = winH-90; function Refresh(){ window.location="/?t="+123; }; function failureAJAXFunction( responce, opts ){ Ext.Msg.show({ title:'Request Failure!', msg: 'Ajax Request failed!', buttons: Ext.Msg.OK, icon: Ext.MessageBox.INFO }); }; function updateUserScreenResolution( x, y ){ Ext.Ajax.request({ url: '/lib/controller/updateUserSettings.php', params: { SAID: =$SiteID;?>, UID: =$UserID;?>, SID: '=$Session;?>', SSS: 15, WID: x, HEI: y }, success: function( response, opts ){ Refresh(); }, failure: failureAJAXFunction }); }; function CheckWindowSize(delay){ if (parseInt(navigator.appVersion)>3) { if (navigator.appName=="Netscape") { winW2 = window.innerWidth; winH2 = window.innerHeight; if ( winH2<700 ) winH2=700; }; if (navigator.appName.indexOf("Microsoft")!=-1) { winW2 = document.body.offsetWidth; winH2 = document.body.offsetHeight; if ( winH2<700 ) winH2=700; }; }; //alert(winW2+':'+winW+' '+winH2+':'+winH); if ( winW2 != winW || winH2!=winH ){ updateUserScreenResolution( winW2, winH2 ); }; }; Ext.onReady(function(){ //Check Screen Size //alert( winW + 'x' + winH ); CheckWindowSize(); Ext.QuickTips.init(); var viewport = new Ext.Viewport({ id: 'main_viewport', layout:'border', items: [{ xtype: 'panel', region: 'north', baseCls: 'x-plain', height: 50, items:[{ xtype: 'panel', id:'top', baseCls: 'x-plain', html: '
R-Goose Security System
Panel content!
' } Data['access'] > 5 ){ ?>,{ title: 'Admin Settings', items:[{ xtype: 'button', width: '100%', id:'adm_acc', text: '=$Labels->GetLabel("_USERS_MNGMT_");?>', handler: function( b, e ){ loadUserEditor(); } },{ xtype: 'button', width: '100%', id:'adm_acclog', text: 'Access Log', handler: function( b, e ){ loadAccessLog(); } },{ xtype: 'button', width: '100%', id:'adm_servlog', text: 'Server Log', handler: function( b, e ){ loadServerLog(); } }] } ] },{ xtype: 'panel', region:'center', margins: '5 5 5 0', id: 'main_content', title: 'System Dashboard', items:[{ xtype: 'portal', id: 'main_portal', frame: false, border: false, items:{ html: '