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.

415 lines
16 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <?php
  2. require_once('../ajax_asm.php');
  3. $UID = intval( $CUser->Data['id'] );
  4. $Data = '';
  5. if( $UID > 1 ){
  6. $QS = "SELECT * FROM `system_props` LIMIT 1";
  7. $SPD = $DATABASE->Query( $QS );
  8. if( count( $SPD ) ){
  9. $SP = $SPD[0];
  10. $DUMMY = array();
  11. if( $CUser->Data['access'] > 5 ){
  12. $TABA =<<<jodjhowierewt
  13. {
  14. xtype: 'panel',
  15. html: '<table id="tbl_ph_ccc_%%ID%%" style="color: black; background-image: url(\'/style/assets/16-9-nocam.png\');" width="100%" border=0><tr><td colspan=3>&nbsp;</td></tr><tr><td>&nbsp;</td><td align="center"><div id="btn_ph_ccc_%%ID%%"></div></td><td>&nbsp;</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr></table>',
  16. listeners:{
  17. afterrender : function( ){
  18. var tb = document.getElementById('tbl_ph_ccc_%%ID%%');
  19. var W = tb.offsetWidth;
  20. var H = (W/16)*9;
  21. tb.setAttribute("height", H );
  22. tb.style.backgroundSize=W+"px "+H+"px";
  23. var p = Ext.getCmp('pan_ph_ccc_%%ID%%');
  24. p.setHeight( H+40 );
  25. var jaja = Ext.create({
  26. xtype: 'panel',
  27. title: 'Camera is Not Assigned to the System',
  28. frame: true,
  29. renderTo: 'btn_ph_ccc_%%ID%%',
  30. layout: 'vbox',
  31. width: 500,
  32. height: 120,
  33. items:[{
  34. xtype: 'spacer',
  35. height: 10
  36. },{
  37. width: '100%',
  38. html: '<center>Proceed to Cameras Settings to Assign One</center>'
  39. },{
  40. xtype: 'spacer',
  41. height: 20
  42. },{
  43. xtype: 'button',
  44. width: '100%',
  45. text: 'Open Camera Settings',
  46. handler: function(){
  47. showContent( 2020 );
  48. }
  49. }]
  50. });
  51. jaja.doLayout();
  52. }
  53. }
  54. }
  55. jodjhowierewt;
  56. $DUMMY['camera']="{xtype:'panel', id:'pan_ph_ccc_%%ID%%', title: 'Camera Placeholder', frame: true, border: true, draggable: false, layouit: 'fit', items:{$TABA}}";
  57. $DUMMY['sensor']="{xtype:'panel', title: 'Sensor Placeholder', frame: true, border: true, draggable: false, html:'NO SENSOR', listeners:{ afterrender: function(p){ var W=p.getWidth(); p.setHeight( 32+(W/16)*9);}}}";
  58. $DUMMY['map']="{xtype:'panel', title: 'Map Placeholder', frame: true, height: 200, border: true, draggable: false, html:'NO MAP'}";
  59. $DUMMY['log']="{xtype:'panel', title: 'Log Placeholder', frame: true, height: 200, border: true, draggable: false, html:'NO LOG'}";
  60. } else {
  61. $DUMMY['camera']="{xtype:'panel', title: false, frame: true, draggable: false, html: '&nbsp;', listeners:{ afterrender: function(p){ var W=p.getWidth(); p.setHeight( 32+(W/16)*9);}}}";
  62. $DUMMY['sensor']="{xtype:'panel', title: false, frame: true, draggable: false, html: '&nbsp;', listeners:{ afterrender: function(p){ var W=p.getWidth(); p.setHeight( 32+(W/16)*9);}}}";
  63. $DUMMY['map']="{xtype:'panel', title: false, frame: true, draggable: false, height: 200, html: '&nbsp;'}";
  64. $DUMMY['log']="{xtype:'panel', title: false, frame: true, draggable: false, height: 200, html: '&nbsp;'}";
  65. };
  66. $STA = array();
  67. $END="]}";
  68. $OUT = array();
  69. switch( $SP['app_layout'] ){
  70. case 0:{
  71. $STA[0]="{ columnWidth: .25, stylse:'padding:10px 0 10px 10px', items:[";
  72. $STA[1]="{ columnWidth: .25, stylse:'padding:10px 0 10px 10px', items:[";
  73. $STA[2]="{ columnWidth: .25, stylse:'padding:10px 0 10px 10px', items:[";
  74. $STA[3]="{ columnWidth: .25, stylse:'padding:10px 0 10px 10px', items:[";
  75. $STA[4]="{ columnWidth: .5, stylde:'padding:10px 0 10px 10px', items:[";
  76. $STA[5]="{ columnWidth: .5, stylde:'padding:10px 0 10px 10px', items:[";
  77. $STA[6]="{ columnWidth: 1.0, stydle:'padding:10px 0 10px 10px', items:[";
  78. $QS = "SELECT * FROM `nodes` WHERE `type`>0 AND `type`< 10 AND `enable`=1";
  79. $R = $DATABASE->Query( $QS );
  80. $idx = 0;
  81. if( count( $R ) ){
  82. foreach( $R as $DD ){
  83. if( $idx < 4 ){
  84. $TFN = 'dash/node_' . $DD['type'] . '.js';
  85. if(!file_exists( $TFN )) continue;
  86. $TPL = file_get_contents( $TFN );
  87. $TPL = str_replace('%%%NODEID%%%', ''.$DD['id'] , $TPL );
  88. $TPL = str_replace('%%%NODENAME%%%', ''. urldecode( $DD['name'] ), $TPL );
  89. $OUT[]= $STA[$idx] . $TPL . $END;
  90. } else break;
  91. $idx++;
  92. };
  93. if( $idx < 4 ){
  94. for( ;$idx<4;$idx++ ){
  95. $OUT[]= $STA[$idx] . $DUMMY['sensor'] . $END;
  96. };
  97. };
  98. } else {
  99. for( ;$idx<4;$idx++ ){
  100. $OUT[]= $STA[$idx] . $DUMMY['sensor'] . $END;
  101. };
  102. };
  103. $QS = "SELECT * FROM `nodes` WHERE `type`>9 AND `type`< 14 AND `enable`=1";
  104. $R = $DATABASE->Query( $QS );
  105. $idx = 0;
  106. if( count( $R ) ){
  107. foreach( $R as $DD ){
  108. if( $idx < 2 ){
  109. $TFN = 'dash/node_' . $DD['type'] . '.js';
  110. if(!file_exists( $TFN )) continue;
  111. $TPL = file_get_contents( $TFN );
  112. $TPL = str_replace('%%%NODEID%%%', ''.$DD['id'] , $TPL );
  113. $TPL = str_replace('%%%NODENAME%%%', ''.urldecode( $DD['name'] ) , $TPL );
  114. $QS="SELECT * FROM `nodes` WHERE `id`={$DD['id']}";
  115. $Z=$DATABASE->Query( $QS );
  116. $QS="SELECT * FROM `module_eve` WHERE `id`=1";
  117. $S=$DATABASE->Query( $QS );
  118. $MODULE_DATA = $S[0];
  119. $TPL = str_replace( '%%%NODENAME%%%', urldecode( $Z[0]['name'] ) , $TPL );
  120. $FU = 'http://' . $_SERVER['SERVER_ADDR'].':' . $MODULE_DATA['web_port'] .'/stream?id='. $Z[0]['aux_parameter'];
  121. $CS[] = '[' . $Z[0]['aux_parameter'] . ',\'[ 120x120] Video\',\''. $FU .'\']';
  122. $TPL = str_replace( '%%%URLS%%%', '[' . implode( ',', $CS ) . ']' , $TPL );
  123. $TPL = str_replace( '%%%SELID%%%', 'value: '. $Z[0]['aux_parameter'] .',', $TPL );
  124. $TPL = str_replace( '%%%SELURL%%%', $FU, $TPL );
  125. $TPL = str_replace( '%%%STREAMID%%%', $R['aux_parameter'], $TPL );
  126. $FK = $MODULE_DATA['height'] /$MODULE_DATA['width'];
  127. $W = 244;
  128. $H = $W * $FK;
  129. $TPL = str_replace( '%%%WIDTH%%%', $W, $TPL );
  130. $TPL = str_replace( '%%%HEIGHT%%%', $H, $TPL );
  131. $OUT[]= $STA[4+$idx] . $TPL . $END;
  132. } else break;
  133. $idx++;
  134. };
  135. if( $idx < 2 ){
  136. for( ;$idx<2;$idx++ ){
  137. $T = str_replace( '%%ID%%', 4+$idx , $DUMMY['camera'] );
  138. $OUT[]= $STA[4+$idx] . $T . $END;
  139. };
  140. };
  141. } else {
  142. for( ;$idx<2;$idx++ ){
  143. $T = str_replace( '%%ID%%', 4+$idx , $DUMMY['camera'] );
  144. $OUT[]= $STA[4+$idx] . $T . $END;
  145. };
  146. };
  147. switch( $SP['type'] ){
  148. case 1:{
  149. // LA Metro
  150. $OUT[]= $STA[6] . $DUMMY['log'] . $END;
  151. break;
  152. };
  153. case 2:{
  154. //Togo
  155. $OUT[]= $STA[6] . $DUMMY['map'] . $END;
  156. break;
  157. };
  158. }
  159. break;
  160. };
  161. case 1:{
  162. $STA[0]="{ columnWidth: .33, stylse:'padding:10px 0 10px 10px', items:[";
  163. $STA[1]="{ columnWidth: .33, stylse:'padding:10px 0 10px 10px', items:[";
  164. $STA[2]="{ columnWidth: .33, stylse:'padding:10px 0 10px 10px', items:[";
  165. $STA[3]="{ columnWidth: 1.0, stylse:'padding:10px 0 10px 10px', items:[";
  166. $QS = "SELECT * FROM `nodes` WHERE `type`>0 AND `type`< 10 AND `enable`=1";
  167. $R = $DATABASE->Query( $QS );
  168. $idx = 0;
  169. if( count( $R ) ){
  170. foreach( $R as $DD ){
  171. if( $idx < 2 ){
  172. $TFN = 'dash/node_' . $DD['type'] . '.js';
  173. if(!file_exists( $TFN )) continue;
  174. $TPL = file_get_contents( $TFN );
  175. $TPL = str_replace('%%%NODEID%%%', ''.$DD['id'] , $TPL );
  176. $TPL = str_replace('%%%NODENAME%%%', ''.html_entity_decode( $DD['name'] ) , $TPL );
  177. $OUT[]= $STA[$idx] . $TPL . $END;
  178. } else break;
  179. $idx++;
  180. };
  181. if( $idx < 2 ){
  182. for( ;$idx<2;$idx++ ){
  183. $OUT[]= $STA[$idx] . $DUMMY['sensor'] . $END;
  184. };
  185. };
  186. } else {
  187. for( ;$idx<2;$idx++ ){
  188. $OUT[]= $STA[$idx] . $DUMMY['sensor'] . $END;
  189. };
  190. };
  191. $QS = "SELECT * FROM `nodes` WHERE `type`>9 AND `type`< 14 AND `enable`=1";
  192. $R = $DATABASE->Query( $QS );
  193. $idx = 0;
  194. if( count( $R ) ){
  195. foreach( $R as $DD ){
  196. if( $idx < 1 ){
  197. $TFN = 'dash/node_' . $DD['type'] . '.js';
  198. if(!file_exists( $TFN )) continue;
  199. $TPL = file_get_contents( $TFN );
  200. $TPL = str_replace('%%%NODEID%%%', ''.$DD['id'] , $TPL );
  201. $TPL = str_replace('%%%NODENAME%%%', ''.$DD['name'] , $TPL );
  202. $QS="SELECT * FROM `nodes` WHERE `id`={$DD['id']}";
  203. $Z=$DATABASE->Query( $QS );
  204. $QS="SELECT * FROM `module_eve` WHERE `id`=1";
  205. $S=$DATABASE->Query( $QS );
  206. $MODULE_DATA = $S[0];
  207. $TPL = str_replace( '%%%NODENAME%%%', urldecode( $Z[0]['name'] ) , $TPL );
  208. $FU = 'http://' . $_SERVER['SERVER_ADDR'].':' . $MODULE_DATA['web_port'] .'/stream?id='. $Z[0]['aux_parameter'];
  209. $CS[] = '[' . $Z[0]['aux_parameter'] . ',\'[ 120x120] Video\',\''. $FU .'\']';
  210. $TPL = str_replace( '%%%URLS%%%', '[' . implode( ',', $CS ) . ']' , $TPL );
  211. $TPL = str_replace( '%%%SELID%%%', 'value: '. $Z[0]['aux_parameter'] .',', $TPL );
  212. $TPL = str_replace( '%%%SELURL%%%', $FU, $TPL );
  213. $TPL = str_replace( '%%%STREAMID%%%', $R['aux_parameter'], $TPL );
  214. $FK = $MODULE_DATA['height'] /$MODULE_DATA['width'];
  215. $W = 244;
  216. $H = $W * $FK;
  217. $TPL = str_replace( '%%%WIDTH%%%', $W, $TPL );
  218. $TPL = str_replace( '%%%HEIGHT%%%', $H, $TPL );
  219. $OUT[]= $STA[2+$idx] . $TPL . $END;
  220. } else break;
  221. $idx++;
  222. };
  223. if( $idx < 2 ){
  224. for( ;$idx<2;$idx++ ){
  225. $T = str_replace( '%%ID%%', 2+$idx , $DUMMY['camera'] );
  226. $OUT[]= $STA[2+$idx] . $T . $END;
  227. };
  228. };
  229. } else {
  230. for( ;$idx<1;$idx++ ){
  231. $T = str_replace( '%%ID%%', 4+$idx , $DUMMY['camera'] );
  232. $OUT[]= $STA[2+$idx] . $T . $END;
  233. };
  234. };
  235. switch( $SP['type'] ){
  236. case 1:{
  237. // LA Metro
  238. $OUT[]= $STA[3] . $DUMMY['log'] . $END;
  239. break;
  240. };
  241. case 2:{
  242. //Togo
  243. $OUT[]= $STA[3] . $DUMMY['map'] . $END;
  244. break;
  245. };
  246. }
  247. break;
  248. };
  249. case 2:{
  250. $STA[0]="{ columnWidth: .33, stylse:'padding:10px 0 10px 10px', items:[";
  251. $STA[1]="{ columnWidth: .33, stylse:'padding:10px 0 10px 10px', items:[";
  252. $STA[2]="{ columnWidth: .33, stylse:'padding:10px 0 10px 10px', items:[";
  253. $STA[3]="{ columnWidth: .5, stylse:'padding:10px 0 10px 10px', items:[";
  254. $STA[4]="{ columnWidth: .5, stylde:'padding:10px 0 10px 10px', items:[";
  255. $QS = "SELECT * FROM `nodes` WHERE `type`>0 AND `type`< 10 AND `enable`=1";
  256. $R = $DATABASE->Query( $QS );
  257. $idx = 0;
  258. if( count( $R ) ){
  259. foreach( $R as $DD ){
  260. if( $idx < 3 ){
  261. $TFN = 'dash/node_' . $DD['type'] . '.js';
  262. if(!file_exists( $TFN )) continue;
  263. $TPL = file_get_contents( $TFN );
  264. $TPL = str_replace('%%%NODEID%%%', ''.$DD['id'] , $TPL );
  265. $TPL = str_replace('%%%NODENAME%%%', ''.html_entity_decode( $DD['name'] ) , $TPL );
  266. $OUT[]= $STA[$idx] . $TPL . $END;
  267. } else break;
  268. $idx++;
  269. };
  270. if( $idx < 3 ){
  271. for( ;$idx<3;$idx++ ){
  272. $OUT[]= $STA[$idx] . $DUMMY['sensor'] . $END;
  273. };
  274. };
  275. } else {
  276. for( ;$idx<3;$idx++ ){
  277. $OUT[]= $STA[$idx] . $DUMMY['sensor'] . $END;
  278. };
  279. };
  280. $QS = "SELECT * FROM `nodes` WHERE `type`>9 AND `type`< 14 AND `enable`=1";
  281. $R = $DATABASE->Query( $QS );
  282. $idx = 0;
  283. if( count( $R ) ){
  284. foreach( $R as $DD ){
  285. if( $idx < 2 ){
  286. $TFN = 'dash/node_' . $DD['type'] . '.js';
  287. if(!file_exists( $TFN )) continue;
  288. $TPL = file_get_contents( $TFN );
  289. $TPL = str_replace('%%%NODEID%%%', ''.$DD['id'] , $TPL );
  290. $TPL = str_replace('%%%NODENAME%%%', ''.$DD['name'] , $TPL );
  291. $QS="SELECT * FROM `nodes` WHERE `id`={$DD['id']}";
  292. $Z=$DATABASE->Query( $QS );
  293. $QS="SELECT * FROM `module_eve` WHERE `id`=1";
  294. $S=$DATABASE->Query( $QS );
  295. $MODULE_DATA = $S[0];
  296. $TPL = str_replace( '%%%NODENAME%%%', urldecode( $Z[0]['name'] ) , $TPL );
  297. $FU = 'http://' . $_SERVER['SERVER_ADDR'].':' . $MODULE_DATA['web_port'] .'/stream?id='. $Z[0]['aux_parameter'];
  298. $CS[] = '[' . $Z[0]['aux_parameter'] . ',\'[ 120x120] Video\',\''. $FU .'\']';
  299. $TPL = str_replace( '%%%URLS%%%', '[' . implode( ',', $CS ) . ']' , $TPL );
  300. $TPL = str_replace( '%%%SELID%%%', 'value: '. $Z[0]['aux_parameter'] .',', $TPL );
  301. $TPL = str_replace( '%%%SELURL%%%', $FU, $TPL );
  302. $TPL = str_replace( '%%%STREAMID%%%', $R['aux_parameter'], $TPL );
  303. $FK = $MODULE_DATA['height'] /$MODULE_DATA['width'];
  304. $W = 244;
  305. $H = $W * $FK;
  306. $TPL = str_replace( '%%%WIDTH%%%', $W, $TPL );
  307. $TPL = str_replace( '%%%HEIGHT%%%', $H, $TPL );
  308. $OUT[]= $STA[3+$idx] . $TPL . $END;
  309. } else break;
  310. $idx++;
  311. };
  312. if( $idx < 2 ){
  313. for( ;$idx<2;$idx++ ){
  314. $T = str_replace( '%%ID%%', 2+$idx , $DUMMY['camera'] );
  315. $OUT[]= $STA[3+$idx] . $T . $END;
  316. };
  317. };
  318. } else {
  319. for( ;$idx<2;$idx++ ){
  320. $T = str_replace( '%%ID%%', 4+$idx , $DUMMY['camera'] );
  321. $OUT[]= $STA[3+$idx] . $T . $END;
  322. };
  323. };
  324. $OUT[]= $STA[3] . $DUMMY['log'] . $END;
  325. $OUT[]= $STA[4] . $DUMMY['map'] . $END;
  326. break;
  327. };
  328. case 3:{
  329. $STA[0]="{ columnWidth: .5, stylse:'padding:10px 0 10px 10px', items:[";
  330. $STA[1]="{ columnWidth: .5, stylse:'padding:10px 0 10px 10px', items:[";
  331. $STA[2]="{ columnWidth: 1.0, stylse:'padding:10px 0 10px 10px', items:[";
  332. $QS = "SELECT * FROM `nodes` WHERE `type`>0 AND `type`< 10 AND `enable`=1";
  333. $R = $DATABASE->Query( $QS );
  334. $idx = 0;
  335. if( count( $R ) ){
  336. foreach( $R as $DD ){
  337. if( $idx < 1 ){
  338. $TFN = 'dash/node_' . $DD['type'] . '.js';
  339. if(!file_exists( $TFN )) continue;
  340. $TPL = file_get_contents( $TFN );
  341. $TPL = str_replace('%%%NODEID%%%', ''.$DD['id'] , $TPL );
  342. $TPL = str_replace('%%%NODENAME%%%', ''.html_entity_decode( $DD['name'] ) , $TPL );
  343. $OUT[]= $STA[$idx] . $TPL . $END;
  344. } else break;
  345. $idx++;
  346. };
  347. } else {
  348. for( ;$idx<1;$idx++ ){
  349. $OUT[]= $STA[$idx] . $DUMMY['sensor'] . $END;
  350. };
  351. };
  352. $QS = "SELECT * FROM `nodes` WHERE `type`>9 AND `type`< 14 AND `enable`=1";
  353. $R = $DATABASE->Query( $QS );
  354. $idx = 0;
  355. if( count( $R ) ){
  356. foreach( $R as $DD ){
  357. if( $idx < 1 ){
  358. $TFN = 'dash/node_' . $DD['type'] . '.js';
  359. if(!file_exists( $TFN )) continue;
  360. $TPL = file_get_contents( $TFN );
  361. $TPL = str_replace('%%%NODEID%%%', ''.$DD['id'] , $TPL );
  362. $TPL = str_replace('%%%NODENAME%%%', ''.$DD['name'] , $TPL );
  363. $QS="SELECT * FROM `nodes` WHERE `id`={$DD['id']}";
  364. $Z=$DATABASE->Query( $QS );
  365. $QS="SELECT * FROM `module_eve` WHERE `id`=1";
  366. $S=$DATABASE->Query( $QS );
  367. $MODULE_DATA = $S[0];
  368. $TPL = str_replace( '%%%NODENAME%%%', urldecode( $Z[0]['name'] ) , $TPL );
  369. $FU = 'http://' . $_SERVER['SERVER_ADDR'].':' . $MODULE_DATA['web_port'] .'/stream?id='. $Z[0]['aux_parameter'];
  370. $CS[] = '[' . $Z[0]['aux_parameter'] . ',\'[ 120x120] Video\',\''. $FU .'\']';
  371. $TPL = str_replace( '%%%URLS%%%', '[' . implode( ',', $CS ) . ']' , $TPL );
  372. $TPL = str_replace( '%%%SELID%%%', 'value: '. $Z[0]['aux_parameter'] .',', $TPL );
  373. $TPL = str_replace( '%%%SELURL%%%', $FU, $TPL );
  374. $TPL = str_replace( '%%%STREAMID%%%', $R['aux_parameter'], $TPL );
  375. $FK = $MODULE_DATA['height'] /$MODULE_DATA['width'];
  376. $W = 244;
  377. $H = $W * $FK;
  378. $TPL = str_replace( '%%%WIDTH%%%', $W, $TPL );
  379. $TPL = str_replace( '%%%HEIGHT%%%', $H, $TPL );
  380. $OUT[]= $STA[1+$idx] . $TPL . $END;
  381. } else break;
  382. $idx++;
  383. };
  384. } else {
  385. for( ;$idx<1;$idx++ ){
  386. $T = str_replace( '%%ID%%', 4+$idx , $DUMMY['camera'] );
  387. $OUT[]= $STA[1+$idx] . $T . $END;
  388. };
  389. };
  390. $OUT[]= $STA[2] . $DUMMY['log'] .','. $DUMMY['map'] . $END;
  391. break;
  392. };
  393. case 4:
  394. case 5:
  395. default:
  396. };
  397. $Data = '[' . implode( ',' , $OUT ) . ']';
  398. } else {
  399. $Data = '[{columnWidth: 1, items:{html:"NO SYSTEM PROPS"}} ]';
  400. };
  401. };
  402. if( $Data != '' ) {
  403. echo $Data;
  404. } else {
  405. echo '[]';
  406. };
  407. ?>