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.

121 lines
2.9 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
12 months ago
​
12 months ago
​
​
​
​
​
​
​
​
​
​
​
12 months ago
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. $QS = "SELECT * FROM `session_statuses`";
  10. $Result = $DATABASE->Query( $QS );
  11. $JUJA = array( "['0','Disabled']", "['1','Unset']" ); //776497
  12. foreach( $Result as $R ){
  13. };
  14. $SKEL=<<<DATABOUNDARY
  15. {
  16. xtype: 'panel',
  17. border: false,
  18. frame: false,
  19. items:[{
  20. xtype: 'form',
  21. labelAlign: 'right',
  22. labelWidth: 250,
  23. //height: PanelH - 30,
  24. items:[{
  25. xtype:'panel',
  26. border: false,
  27. frame: false,
  28. 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">Reports/History Settings</td></tr><tr><td colspan=2></td></tr></table><br/>'
  29. },{
  30. xtype: 'spacer',
  31. height: 10
  32. },{
  33. xtype: 'combo',
  34. id: 'hs_days',
  35. fieldLabel: '{$Labels->GetLabel('_HAR_LEVEL_')}',
  36. editable: false,
  37. typeAhead: true,
  38. triggerAction: 'all',
  39. width: '100%',
  40. lazyRender:true,
  41. mode: 'local',
  42. store: new Ext.data.ArrayStore({
  43. fields: ['cid', 'cnam'],
  44. data: [['0',"Disabled"],['1',"Dissmised"],['2',"Alerts"]]
  45. }),
  46. valueField: 'cid',
  47. displayField: 'cnam',
  48. listeners:{
  49. focus: function( t ){
  50. loadHelpTopic( 'history_op_small', 4 );
  51. },
  52. select: function( t, r, i ){
  53. doApplicationOperation( 2, r.data.cid );
  54. }
  55. },
  56. value: '{$CS['histo_limit']}'
  57. },{
  58. xtype: 'spacer',
  59. height: 10
  60. },{
  61. xtype: 'numberfield',
  62. id: 'hs_window',
  63. fieldLabel: '{$Labels->GetLabel('_HAR_DAYS_')}',
  64. listeners:{
  65. focus: function( t ){
  66. loadHelpTopic( 'history_op_small', 5 );
  67. },
  68. change: function( t, r, i ){
  69. doApplicationOperation( 3, r );
  70. }
  71. },
  72. value: '{$CS['histo_days']}'
  73. },{
  74. xtype: 'spacer',
  75. height: 10
  76. },{
  77. xtype: 'numberfield',
  78. id: 'hs_perc',
  79. fieldLabel: '{$Labels->GetLabel('_HAR_FREE_PERC_')}',
  80. listeners:{
  81. focus: function( t ){
  82. loadHelpTopic( 'history_op_small', 6 );
  83. },
  84. change: function( t, r, i ){
  85. doApplicationOperation( 4, r );
  86. }
  87. },
  88. value: '{$CS['histo_perc']}'
  89. },{
  90. xtype: 'spacer',
  91. height: 10
  92. },{
  93. xtype: 'numberfield',
  94. id: 'hs_megs',
  95. fieldLabel: '{$Labels->GetLabel('_HAR_FREE_MEGS_')}',
  96. listeners:{
  97. focus: function( t ){
  98. loadHelpTopic( 'history_op_small', 7 );
  99. },
  100. change: function( t, r, i ){
  101. doApplicationOperation( 5, r );
  102. }
  103. },
  104. value: '{$CS['histo_megs']}'
  105. },{
  106. xtype: 'spacer',
  107. height: 10
  108. }]
  109. }]
  110. }
  111. DATABOUNDARY;
  112. $Data['status']= 'ok';
  113. $Data['content']=$SKEL;
  114. } else {
  115. $Data['msg']='Access Denied!';
  116. };
  117. echo json_encode( $Data );
  118. } else {
  119. header('location: /');
  120. };
  121. ?>