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.

195 lines
4.9 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
12 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
12 months ago
​
​
​
​
​
​
​
12 months ago
​
12 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
12 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <?php
  2. require_once('../ajax_asm.php');
  3. if( $CUser->Data['id'] > 1 ){
  4. $Data['status'] = 'error';
  5. if( $CUser->Data['access'] > 5 ){
  6. $QS = "SELECT * FROM `system_props` WHERE `id`=1";
  7. $Result = $DATABASE->Query( $QS );
  8. $CS = $Result[0];
  9. $SKEL=<<<DATABOUNDARY
  10. {
  11. xtype: 'panel',
  12. border: false,
  13. frame: false,
  14. items:[{
  15. xtype: 'form',
  16. labelAlign: 'right',
  17. labelWidth: 250,
  18. //height: PanelH - 30,
  19. items:[{
  20. xtype:'panel',
  21. border: false,
  22. frame: false,
  23. html: '<table width="100%" border=0 class="setEd_infoPanel" id="LIBAV_LOGO"><tr><td width="200px"><div class="appis_logo_img"></div></td><td valign="middle">Application Settings</td></tr><tr><td colspan=2></td></tr></table><br/>'
  24. },{
  25. xtype: 'spacer',
  26. height: 10
  27. },{
  28. xtype: 'combo',
  29. id: 'db_loging',
  30. fieldLabel: '{$Labels->GetLabel('_DB_LOGGING_')}',
  31. editable: false,
  32. typeAhead: true,
  33. triggerAction: 'all',
  34. width: '100%',
  35. lazyRender:true,
  36. mode: 'local',
  37. store: new Ext.data.ArrayStore({
  38. fields: ['cid', 'cnam'],
  39. data: [['0',"Disabled"], ['1',"Enabled"]]
  40. }),
  41. valueField: 'cid',
  42. displayField: 'cnam',
  43. listeners:{
  44. focus: function( t ){
  45. loadHelpTopic( 'application_op_small', 32 );
  46. },
  47. select: function( t, r, i ){
  48. doApplicationOperation( 41, r.data.cid );
  49. }
  50. },
  51. value: '{$CS['use_db_logging']}'
  52. },{
  53. xtype: 'spacer',
  54. height: 10
  55. },{
  56. xtype: 'combo',
  57. id: 'ses_window',
  58. fieldLabel: '{$Labels->GetLabel('_APP_SESS_WND_')}',
  59. editable: false,
  60. typeAhead: true,
  61. triggerAction: 'all',
  62. width: '100%',
  63. lazyRender:true,
  64. mode: 'local',
  65. store: new Ext.data.ArrayStore({
  66. fields: ['cid', 'cnam'],
  67. data: [['1',"30 Seconds"],['2',"1 Minute"], ['3',"2 Minutes"], ['4',"3 Minutes"], ['5',"4 Minutes"],['6',"5 Minutes"]]
  68. }),
  69. valueField: 'cid',
  70. displayField: 'cnam',
  71. listeners:{
  72. focus: function( t ){
  73. loadHelpTopic( 'application_op_small', 33 );
  74. },
  75. select: function( t, r, i ){
  76. doApplicationOperation( 6, r.data.cid );
  77. }
  78. },
  79. value: '{$CS['session_end']}'
  80. },{
  81. xtype: 'spacer',
  82. height: 10
  83. },{
  84. xtype: 'combo',
  85. id: 'menc_cnt',
  86. fieldLabel: '{$Labels->GetLabel('_APP_MENC_COUNT_')}',
  87. editable: false,
  88. typeAhead: true,
  89. triggerAction: 'all',
  90. width: '100%',
  91. lazyRender:true,
  92. mode: 'local',
  93. store: new Ext.data.ArrayStore({
  94. fields: ['cid', 'cnam'],
  95. data: [['1',"1"], ['2',"2"], ['3',"3"], ['4',"4"],['5',"5"],['6',"6"],['7',"7"],['8',"8"]]
  96. }),
  97. valueField: 'cid',
  98. displayField: 'cnam',
  99. listeners:{
  100. focus: function( t ){
  101. loadHelpTopic( 'application_op_small', 34 );
  102. },
  103. select: function( t, r, i ){
  104. doApplicationOperation( 7, r.data.cid );
  105. }
  106. },
  107. value: '{$CS['encoder_limit']}'
  108. },{
  109. xtype: 'spacer',
  110. height: 10
  111. },{
  112. xtype: 'numberfield',
  113. fieldLabel: 'SCADA Auto Time',
  114. editable: true,
  115. width: 250,
  116. value: '{$CS['modbus_auto_rise']}',
  117. listeners:{
  118. focus: function( t ){
  119. loadHelpTopic( 'application_op_small', 35 );
  120. },
  121. change: function( t, r, i ){
  122. doApplicationOperation( 43, r );
  123. }
  124. }
  125. },{
  126. xtype: 'spacer',
  127. height: 10
  128. },{
  129. xtype: 'combo',
  130. fieldLabel: 'SCADA Manual Activation',
  131. editable: false,
  132. typeAhead: true,
  133. triggerAction: 'all',
  134. width: '100%',
  135. lazyRender:true,
  136. mode: 'local',
  137. store: new Ext.data.ArrayStore({
  138. fields: ['cid', 'cnam'],
  139. data: [['0',"Disabled"], ['3',"Alert"], ['4',"Hazard"]]
  140. }),
  141. valueField: 'cid',
  142. displayField: 'cnam',
  143. listeners:{
  144. focus: function( t ){
  145. loadHelpTopic( 'application_op_small', 36 );
  146. },
  147. select: function( t, r, i ){
  148. doApplicationOperation( 44, r.data.cid, true );
  149. }
  150. },
  151. value: '{$CS['modbus_hazard_level']}'
  152. },{
  153. xtype: 'spacer',
  154. height: 10
  155. },{
  156. xtype: 'combo',
  157. fieldLabel: 'SCADA Health Level',
  158. editable: false,
  159. typeAhead: true,
  160. triggerAction: 'all',
  161. width: '100%',
  162. lazyRender:true,
  163. mode: 'local',
  164. store: new Ext.data.ArrayStore({
  165. fields: ['cid', 'cnam'],
  166. data: [['0',"Disabled"],['1',"Camera Failure"],['2',"LRF Failure"],['3',"Sensor Communication"],['4',"Module SW Failure"],['5',"Module Network Failure"]]
  167. }),
  168. valueField: 'cid',
  169. displayField: 'cnam',
  170. listeners:{
  171. focus: function( t ){
  172. loadHelpTopic( 'application_op_small', 37 );
  173. },
  174. select: function( t, r, i ){
  175. doApplicationOperation( 45, r.data.cid, true );
  176. }
  177. },
  178. value: '{$CS['modbus_health_level']}'
  179. },{
  180. xtype: 'spacer',
  181. height: 10
  182. }]
  183. }]
  184. }
  185. DATABOUNDARY;
  186. $Data['status']= 'ok';
  187. $Data['content']=$SKEL;
  188. } else {
  189. $Data['msg']='Access Denied!';
  190. };
  191. echo json_encode( $Data );
  192. } else {
  193. header('location: /');
  194. };
  195. ?>