Web Interface For Lite Argus Control modules
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

673 lines
16 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //<?php require_once('../../js_asm.php'); ?>
  2. function ssShowSS() {
  3. ssStopTimer();
  4. document.removeEventListener( "mousemove", ssResetTimer );
  5. document.removeEventListener( "mousedown", ssResetTimer );
  6. document.removeEventListener( "keypress", ssResetTimer );
  7. document.removeEventListener( "touchmove", ssResetTimer );
  8. document.addEventListener( "mousemove", ssHideSS, false );
  9. document.addEventListener( "mousedown", ssHideSS, false );
  10. document.addEventListener( "keypress", ssHideSS, false );
  11. document.addEventListener( "touchmove", ssHideSS, false );
  12. document.getElementById('ss_bg').className='ss_bg_overlay';
  13. document.getElementById('ss_content').className='ss_overlay';
  14. ssShowTime();
  15. if( ssInterval == null ){
  16. ssInterval = window.setInterval( ssShowTime, 333 );
  17. };
  18. ssIsActive = true;
  19. };
  20. function ssShowTime(){
  21. document.getElementById('ss_content').style.fontSize = '240px';
  22. var currentdate = new Date();
  23. var cTime = (( currentdate.getHours()<10 )? '0'+currentdate.getHours(): currentdate.getHours() ) + ":" + (( currentdate.getMinutes()<10 )? '0'+currentdate.getMinutes(): currentdate.getMinutes() ) + ":" + (( currentdate.getSeconds()<10 )? '0'+currentdate.getSeconds(): currentdate.getSeconds() );
  24. document.getElementById('ss_content').innerHTML= cTime;
  25. };
  26. function ssResetTimer() {
  27. ssStopTimer();
  28. ssStartTimer();
  29. };
  30. function ssStartTimer() {
  31. if( ssTimer == null ){
  32. ssTimer = window.setTimeout( ssShowSS, ssTimeOut );
  33. };
  34. };
  35. function ssStopTimer() {
  36. if( ssTimer ){
  37. window.clearTimeout( ssTimer );
  38. ssTimer = null;
  39. };
  40. };
  41. function ssSetupTimer() {
  42. document.addEventListener( "mousemove", ssResetTimer, false);
  43. document.addEventListener( "mousedown", ssResetTimer, false);
  44. document.addEventListener( "keypress", ssResetTimer, false);
  45. document.addEventListener( "touchmove", ssResetTimer, false);
  46. ssStartTimer();
  47. };
  48. function ssHideSS(){
  49. document.getElementById('ss_bg').className='ss_hidden';
  50. document.getElementById('ss_content').className='ss_hidden';
  51. document.removeEventListener( "mousemove", ssHideSS );
  52. document.removeEventListener( "mousedown", ssHideSS );
  53. document.removeEventListener( "keypress", ssHideSS );
  54. document.removeEventListener( "touchmove", ssHideSS );
  55. if( ssInterval != null ){
  56. window.clearInterval( ssInterval );
  57. ssInterval = null;
  58. };
  59. ssSetupTimer();
  60. ssIsActive = false;
  61. };
  62. var sndBeep = null;
  63. var sndExcl = null;
  64. function playSound( t ){
  65. if( SoundEnable ){
  66. switch( t ){
  67. case 1:{
  68. if( sndBeep == null ) sndBeep = new Howl({
  69. src: [
  70. '/style/assets/audio/beep-07a.mp3',
  71. '/style/assets/audio/beep-07a.wav'
  72. ],
  73. loop: false,
  74. volume: 0.99,
  75. onend: function() {
  76. //console.log('Finished!');
  77. }
  78. });
  79. sndBeep.volume( SoundMode / 3 );
  80. if( !sndBeep.playing() ) sndBeep.play();
  81. break;
  82. };
  83. default:{
  84. if( sndExcl == null ) sndExcl = new Howl({
  85. src: [
  86. '/style/assets/audio/button-42.mp3',
  87. '/style/assets/audio/button-42.wav'
  88. ],
  89. loop: false,
  90. volume: 0.99
  91. });
  92. sndExcl.volume( SoundMode / 3 );
  93. if( !sndExcl.playing() ) sndExcl.play();
  94. };
  95. };
  96. };
  97. };
  98. function doRefresh(){
  99. if( mWindowID ){
  100. window.location="/?w="+mWindowID+"&t=" + uuidv4();
  101. } else {
  102. refreshAuxWindows();
  103. window.location="/?t=" + uuidv4();
  104. };
  105. };
  106. function doLogout(){
  107. if( mWindowID ){
  108. window.location = '/login.php?w='+mWindowID+'&UID=1';
  109. } else {
  110. closeAuxWindows();
  111. window.location = '/login.php?UID=1';
  112. };
  113. };
  114. function stopStatusUpdater(){
  115. if( tlInterval!= null ){
  116. window.clearInterval( tlInterval );
  117. tlInterval = null;
  118. };
  119. };
  120. function failureAJAXFunction( responce, opts ){
  121. if( tlInterval!= null ){
  122. window.clearInterval( tlInterval );
  123. tlInterval = null;
  124. };
  125. doLogout();
  126. };
  127. function updateUserScreenResolution( x, y ){
  128. Ext.Ajax.request({
  129. url: '/lib/controller/updateUserSettings.php',
  130. params: {
  131. UID: <?=$UserID;?>,
  132. SID: '<?=$Session;?>',
  133. SSS: 15,
  134. WID: x,
  135. HEI: y
  136. },
  137. success: function( response, opts ){
  138. doRefresh();
  139. },
  140. failure: failureAJAXFunction
  141. });
  142. };
  143. function setUserContent( c_id ){
  144. initView = c_id;
  145. Ext.Ajax.request({
  146. url: '/lib/controller/updateUserSettings.php',
  147. params: {
  148. UID: <?=$UserID;?>,
  149. SID: '<?=$Session;?>',
  150. SSS: 26,
  151. CID: initView
  152. },
  153. success: function(){
  154. content_lvl0 = Math.floor( initView / 1000 );
  155. content_lvl1 = Math.floor( ( initView % 1000 )/ 100 );
  156. content_lvl2 = Math.floor( ( initView % 100 )/ 10 );
  157. content_lvl3 = initView % 10;
  158. },
  159. failure: failureAJAXFunction
  160. });
  161. };
  162. function updateUserContent(){
  163. cid = content_lvl3 + content_lvl2 * 10 + content_lvl1*100 + content_lvl0*1000;
  164. if( initView != cid ) {
  165. setUserContent( cid );
  166. return true;
  167. };
  168. return false;
  169. };
  170. var gSessionValidatorInterval = null;
  171. function sessionValidator(){
  172. var cTS = (new Date())/1000;
  173. Ext.Ajax.request({
  174. url: '/lib/controller/validateUserSession.php',
  175. params: {
  176. UID: <?=$UserID;?>,
  177. SID: '<?=$Session;?>',
  178. CTS: cTS
  179. },
  180. success: function( response, opts ){
  181. var data = Ext.decode(response.responseText);
  182. if( !data.sessionIsValid ){
  183. playSound();
  184. Ext.Msg.show({
  185. title:'<?=$Labels->GetLabel('_REQ_FAILURE_');?>',
  186. msg: '<?=$Labels->GetLabel('_AJX_REQFAILURE_');?>',
  187. buttons: Ext.Msg.OK,
  188. icon: Ext.MessageBox.INFO
  189. });
  190. doLogout();
  191. };
  192. },
  193. failure: failureAJAXFunction
  194. });
  195. };
  196. var NotificationStack = null;
  197. function tryKeepScreenAlive(minutes) {
  198. navigator.wakeLock.request("screen").then(lock => {
  199. setTimeout(() => lock.release(), minutes * 60 * 1000);
  200. });
  201. }
  202. function showContent( cid ){
  203. var lvl0 = Math.floor( cid / 1000 );
  204. var lvl1 = Math.floor( ( cid % 1000 )/ 100 );
  205. var lvl2 = Math.floor( ( cid % 100 )/ 10 );
  206. var lvl3 = cid % 10;
  207. var refresh = ( lvl0 != content_lvl0 );
  208. if( lvl3 != content_lvl3 ){ content_lvl3 = lvl3; };
  209. if( lvl2 != content_lvl2 ){ content_lvl2 = lvl2; };
  210. if( lvl1 != content_lvl1 ){ content_lvl1 = lvl1; };
  211. if( lvl0 != content_lvl0 ){ content_lvl0 = lvl0; };
  212. updateUserContent();
  213. if( refresh ){
  214. switch( content_lvl0 ){
  215. case 0:{
  216. var tt = Ext.getCmp('tbtn_0');
  217. tt.toggle( true, true );
  218. tt = Ext.getCmp('tbtn_1');
  219. tt.toggle( false, true );
  220. tt = Ext.getCmp('tbtn_2');
  221. tt.toggle( false, true );
  222. var tP = Ext.getCmp('left_side_menu');
  223. tP.setVisible( false );
  224. var tZ = Ext.getCmp('right_side_menu');
  225. tZ.setVisible( false );
  226. initMonitoring();
  227. Ext.getCmp('main_viewport').doLayout();
  228. break;
  229. };
  230. case 1:{
  231. var tt = Ext.getCmp('tbtn_0');
  232. tt.toggle( false, true );
  233. tt = Ext.getCmp('tbtn_1');
  234. tt.toggle( true, true );
  235. tt = Ext.getCmp('tbtn_2');
  236. tt.toggle( false, true );
  237. var tP = Ext.getCmp('left_side_menu');
  238. tP.setVisible( true );
  239. var tZ = Ext.getCmp('right_side_menu');
  240. tZ.setVisible( false );
  241. initReportsView();
  242. Ext.getCmp('main_viewport').doLayout();
  243. break;
  244. };
  245. case 2:{
  246. var tt = Ext.getCmp('tbtn_0');
  247. tt.toggle( false, true );
  248. tt = Ext.getCmp('tbtn_1');
  249. tt.toggle( false, true );
  250. tt = Ext.getCmp('tbtn_2');
  251. tt.toggle( true, true );
  252. var tP = Ext.getCmp('left_side_menu');
  253. tP.setVisible( true );
  254. var tZ = Ext.getCmp('right_side_menu');
  255. tZ.setVisible( false );
  256. initSettingsView();
  257. Ext.getCmp('main_viewport').doLayout();
  258. break;
  259. };
  260. };
  261. };
  262. };
  263. Ext.onReady(function(){
  264. if ('wakeLock' in navigator) {
  265. // Screen Wake Lock API supported
  266. tryKeepScreenAlive(10);
  267. };
  268. doCheckWindowSize();
  269. //initMultiWindows();
  270. loadSystemDevices();
  271. gSessionValidatorInterval = window.setInterval( sessionValidator, 1000 );
  272. NotificationStack = new PNotify.Stack({dir1: 'down', firstpos1: 25});
  273. window.onresize = doCheckWindowSize;
  274. Ext.QuickTips.init();
  275. if( ssEnabled ){
  276. ssSetupTimer();
  277. $(window).focus(function() {
  278. ssResetTimer();
  279. });
  280. $(window).blur(function() {
  281. ssStopTimer();
  282. });
  283. };
  284. if( mWindowID == 0 ){
  285. var viewport = new Ext.Viewport({
  286. id: 'main_viewport',
  287. layout:'border',
  288. frame: false,
  289. border: false,
  290. items: [{
  291. xtype: 'panel',
  292. region: 'north',
  293. baseCls: 'x-plain',
  294. height: 60,
  295. //layout: 'fit',
  296. layout: 'hbox',
  297. frame: false,
  298. border: false,
  299. items:[{
  300. xtype: 'panel',
  301. width: '100%',
  302. layout: 'table',
  303. baseCls: 'x-plain',
  304. layoutConfig: {
  305. columns: 13
  306. },
  307. frame: false,
  308. border: true,
  309. margins: {top:10, right:10, bottom:10, left:10},
  310. items:[{
  311. xtype: 'panel',
  312. baseCls: 'x-plain',
  313. frame: false,
  314. border: false,
  315. margins: {top:5, right:20, bottom:0, left:20},
  316. html: '<img src="/style/assets/argus_logo_text.png" height="42px">'
  317. },{
  318. xtype: 'spacer',
  319. width: 10
  320. },{
  321. xtype: 'button',
  322. text: '<?=$Labels->GetLabel('_MONITORING_');?>',
  323. id: 'tbtn_0',
  324. iconCls: 'mon',
  325. scale: 'large',
  326. enableToggle: true,
  327. //pressed: (Math.floor(initView/100)==0),
  328. allowDepress: false,
  329. toggleGroup: 'gopa_gopa',
  330. toggleHandler: function( bt, state ){
  331. if( state ) showContent( 0 );
  332. }
  333. },{
  334. xtype: 'spacer',
  335. width: 10
  336. },{
  337. xtype: 'button',
  338. text: '<?=$Labels->GetLabel('_REPO_HISTORY_');?>',
  339. id: 'tbtn_1',
  340. iconCls: 'rep',
  341. scale: 'large',
  342. enableToggle: true,
  343. //pressed: (Math.floor(initView/100)==1),
  344. allowDepress: false,
  345. toggleGroup: 'gopa_gopa',
  346. toggleHandler: function( bt, state ){
  347. if( state ) showContent( 1000 );
  348. }
  349. },{
  350. xtype: 'spacer',
  351. width: 10
  352. },{
  353. xtype: 'button',
  354. text: '<?=$Labels->GetLabel('_SETTINGS_');?>',
  355. id: 'tbtn_2',
  356. iconCls: 'cog',
  357. scale: 'large',
  358. enableToggle: true,
  359. allowDepress: false,
  360. toggleGroup: 'gopa_gopa',
  361. toggleHandler: function( bt, state ){
  362. if( state ) showContent( 2000 );
  363. }
  364. },{
  365. xtype: 'spacer',
  366. width: 10
  367. },{
  368. xtype: 'panel',
  369. baseCls: 'x-plain',
  370. frame: false,
  371. border: false,
  372. margins: {top:5, right:0, bottom:0, left:0},
  373. width: PanelW - <?=($AP_DATA['type'] == 1)?'700':'800';?><?=(intval($CUser->Data['language']) == 4)?'-90':'';?>,
  374. html: '<p style="text-align: center;font-family: \'Ubuntu\', \'Arial\';font-size: 24px;">'+ap_title+'</p>'
  375. },{
  376. xtype: 'spacer',
  377. width: 10
  378. },<?php
  379. if( $AP_DATA['type'] == 1 ){
  380. ?>{
  381. xtype: 'button',
  382. id: 'logout_btn',
  383. text: 'Logout',
  384. iconCls: 'lout',
  385. scale: 'large',
  386. style:'text-align: right;',
  387. handler: doLogout
  388. }<?php
  389. } else {
  390. ?>{
  391. xtype: 'button',
  392. id: 'snd_mode_btn',
  393. text: '<?=$Labels->GetLabel('_SOUND_');?>',
  394. iconCls: 'snd'+SoundMode,
  395. scale: 'large',
  396. style:'text-align: right;',
  397. handler: function(){
  398. if( SoundMode == 0 ){
  399. SoundMode = 3;
  400. SoundEnable = true;
  401. } else {
  402. SoundMode --;
  403. if( SoundMode == 0 ) SoundEnable = false;
  404. };
  405. Ext.getCmp('snd_mode_btn').setIconClass( 'snd'+SoundMode );
  406. playSound();
  407. doApplicationOperation( 6, SoundMode );
  408. }
  409. },{
  410. xtype: 'spacer',
  411. width: 10
  412. },{
  413. xtype: 'button',
  414. id: 'logout_btn',
  415. text: '<?=$Labels->GetLabel('_LOGOUT_');?>',
  416. iconCls: 'lout',
  417. scale: 'large',
  418. style:'text-align: right;',
  419. handler: doLogout
  420. }<?php
  421. };
  422. ?>
  423. ]
  424. }]
  425. },{
  426. xtype: 'panel',
  427. id:'left_side_menu',
  428. region:'west',
  429. bsaseCls:'x-plain',
  430. layout: 'fit',
  431. collapsible: true,
  432. split: true,
  433. width: 180,
  434. minWidth: 180,
  435. maxWidth: 180,
  436. hidden: (Math.floor(initView/100)==0),
  437. margins: '5 0 5 5',
  438. cmargins:'5 5 5 5',
  439. items: []
  440. },{
  441. xtype: 'panel',
  442. region:'center',
  443. margins: '5 5 5 0',
  444. id: 'main_content',
  445. //title: '<?=$Labels->GetLabel('_SYS_DASHBOARD_');?>',
  446. items:[{
  447. xtype: 'portal',
  448. id: 'main_portal',
  449. frame: false,
  450. border: false,
  451. items:{
  452. html: ''
  453. }//,
  454. //listeners:{
  455. // drop: function( a ){
  456. // updateDashBoardItemLayout( a.panel.id, a.columnIndex, a.position );
  457. // }
  458. //}
  459. }]
  460. },{
  461. xtype: 'panel',
  462. region:'east',
  463. id:'right_side_menu',
  464. //title: '',
  465. margins: '5 5 5 0',
  466. //id: 'help_content',
  467. frame: false,
  468. border: false,
  469. collapsible: false,
  470. split:true,
  471. width:200,
  472. minWidth: 150,
  473. maxWidth: 200,
  474. items:[]
  475. }]
  476. });
  477. } else {
  478. var viewport = new Ext.Viewport({
  479. id: 'main_viewport',
  480. layout:'border',
  481. frame: false,
  482. border: false,
  483. items: [{
  484. xtype: 'panel',
  485. region: 'north',
  486. baseCls: 'x-plain',
  487. height: 60,
  488. //layout: 'fit',
  489. layout: 'hbox',
  490. frame: false,
  491. border: false,
  492. items:[{
  493. xtype: 'panel',
  494. width: '100%',
  495. layout: 'table',
  496. baseCls: 'x-plain',
  497. layoutConfig: {
  498. columns: 10
  499. },
  500. frame: false,
  501. border: true,
  502. margins: {top:10, right:10, bottom:10, left:10},
  503. items:[{
  504. xtype: 'panel',
  505. baseCls: 'x-plain',
  506. frame: false,
  507. border: false,
  508. margins: {top:5, right:20, bottom:0, left:20},
  509. html: '<img src="/style/assets/argus_logo_text.png" height="42px">'
  510. },{
  511. xtype: 'spacer',
  512. width: 10
  513. },{
  514. xtype: 'button',
  515. text: '<?=$Labels->GetLabel('_MONITORING_');?>',
  516. id: 'tbtn_0',
  517. iconCls: 'mon',
  518. scale: 'large',
  519. menu:{
  520. xtype: 'menu',
  521. activeItem: 0,
  522. items: [{
  523. text: '<?=$Labels->GetLabel('_MONITORING_');?>[0]'//,
  524. //iconCls: 'mon',
  525. //scale: 'large'
  526. },{
  527. text: '<?=$Labels->GetLabel('_MONITORING_');?>[1]'//,
  528. //iconCls: 'mon',
  529. //scale: 'large'
  530. }]
  531. },
  532. enableToggle: true,
  533. //pressed: (Math.floor(initView/100)==0),
  534. allowDepress: false,
  535. toggleGroup: 'gopa_gopa',
  536. toggleHandler: function( bt, state ){
  537. if( state ) showContent( 0 );
  538. }
  539. },{
  540. xtype: 'spacer',
  541. width: 10
  542. },{
  543. xtype: 'button',
  544. text: '<?=$Labels->GetLabel('_REPO_HISTORY_');?>',
  545. id: 'tbtn_1',
  546. iconCls: 'rep',
  547. scale: 'large',
  548. enableToggle: true,
  549. //pressed: (Math.floor(initView/100)==1),
  550. allowDepress: false,
  551. toggleGroup: 'gopa_gopa',
  552. toggleHandler: function( bt, state ){
  553. if( state ) showContent( 1000 );
  554. }
  555. },{
  556. xtype: 'spacer',
  557. width: 10
  558. },{
  559. xtype: 'button',
  560. text: '<?=$Labels->GetLabel('_SETTINGS_');?>',
  561. id: 'tbtn_2',
  562. iconCls: 'cog',
  563. scale: 'large',
  564. enableToggle: true,
  565. allowDepress: false,
  566. toggleGroup: 'gopa_gopa',
  567. toggleHandler: function( bt, state ){
  568. if( state ) showContent( 2000 );
  569. }
  570. },{
  571. xtype: 'spacer',
  572. width: 10
  573. },{
  574. xtype: 'panel',
  575. baseCls: 'x-plain',
  576. frame: false,
  577. border: false,
  578. margins: {top:5, right:0, bottom:0, left:0},
  579. width: PanelW - <?=($AP_DATA['type'] == 1)?'700':'800';?><?=(intval($CUser->Data['language']) == 4)?'-90':'';?>,
  580. html: '<p style="text-align: center;font-family: \'Ubuntu\', \'Arial\';font-size: 24px;">'+ap_title+'</p>'
  581. },{
  582. xtype: 'spacer',
  583. width: 10
  584. }]
  585. }]
  586. },{
  587. xtype: 'panel',
  588. id:'left_side_menu',
  589. region:'west',
  590. bsaseCls:'x-plain',
  591. layout: 'fit',
  592. collapsible: true,
  593. split: true,
  594. width: 180,
  595. minWidth: 180,
  596. maxWidth: 180,
  597. hidden: (Math.floor(initView/100)==0),
  598. margins: '5 0 5 5',
  599. cmargins:'5 5 5 5',
  600. items: []
  601. },{
  602. xtype: 'panel',
  603. region:'center',
  604. margins: '5 5 5 0',
  605. id: 'main_content',
  606. //title: '<?=$Labels->GetLabel('_SYS_DASHBOARD_');?>',
  607. items:[{
  608. xtype: 'portal',
  609. id: 'main_portal',
  610. frame: false,
  611. border: false,
  612. items:{
  613. html: ''
  614. }//,
  615. //listeners:{
  616. // drop: function( a ){
  617. // updateDashBoardItemLayout( a.panel.id, a.columnIndex, a.position );
  618. // }
  619. //}
  620. }]
  621. },{
  622. xtype: 'panel',
  623. region:'east',
  624. id:'right_side_menu',
  625. //title: '',
  626. margins: '5 5 5 0',
  627. //id: 'help_content',
  628. frame: false,
  629. border: false,
  630. collapsible: false,
  631. split:true,
  632. width:200,
  633. minWidth: 150,
  634. maxWidth: 200,
  635. items:[]
  636. }]
  637. });
  638. };
  639. if( initView[mWindowID]!= undefined ){
  640. showContent( initView[mWindowID] );
  641. } else {
  642. initView[mWindowID] = 0;
  643. showContent( initView[mWindowID] );
  644. };
  645. });