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.

125 lines
3.0 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  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', 32 );
  51. },
  52. select: function( t, r, i ){
  53. //alert('buba');
  54. //doApplicationOperation( 1, i );
  55. }
  56. },
  57. value: '{$CS['histo_limit']}'
  58. },{
  59. xtype: 'spacer',
  60. height: 10
  61. },{
  62. xtype: 'numberfield',
  63. id: 'hs_window',
  64. fieldLabel: '{$Labels->GetLabel('_HAR_DAYS_')}',
  65. listeners:{
  66. focus: function( t ){
  67. loadHelpTopic( 'history_op_small', 33 );
  68. },
  69. select: function( t, r, i ){
  70. //alert('buba');
  71. //doApplicationOperation( 1, i );
  72. }
  73. },
  74. value: '{$CS['histo_days']}'
  75. },{
  76. xtype: 'spacer',
  77. height: 10
  78. },{
  79. xtype: 'numberfield',
  80. id: 'hs_perc',
  81. fieldLabel: '{$Labels->GetLabel('_HAR_FREE_PERC_')}',
  82. listeners:{
  83. focus: function( t ){
  84. loadHelpTopic( 'history_op_small', 33 );
  85. },
  86. select: function( t, r, i ){
  87. //alert('buba');
  88. //doApplicationOperation( 1, i );
  89. }
  90. },
  91. value: '{$CS['histo_perc']}'
  92. },{
  93. xtype: 'spacer',
  94. height: 10
  95. },{
  96. xtype: 'numberfield',
  97. id: 'hs_megs',
  98. fieldLabel: '{$Labels->GetLabel('_HAR_FREE_MEGS_')}',
  99. listeners:{
  100. focus: function( t ){
  101. loadHelpTopic( 'history_op_small', 33 );
  102. },
  103. select: function( t, r, i ){
  104. //alert('buba');
  105. //doApplicationOperation( 1, i );
  106. }
  107. },
  108. value: '{$CS['histo_megs']}'
  109. },{
  110. xtype: 'spacer',
  111. height: 10
  112. }]
  113. }]
  114. }
  115. DATABOUNDARY;
  116. $Data['status']= 'ok';
  117. $Data['content']=$SKEL;
  118. } else {
  119. $Data['msg']='Access Denied!';
  120. };
  121. echo json_encode( $Data );
  122. } else {
  123. header('location: /');
  124. };
  125. ?>