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.
122 lines
2.9 KiB
122 lines
2.9 KiB
<?php
|
|
require_once('../ajax_asm.php');
|
|
|
|
if( $CUser->Data['id'] > 1 ){
|
|
$Data['status'] = 'error';
|
|
if( $CUser->Data['access'] > 5 ){
|
|
$QS = "SELECT * FROM `system_props` WHERE `id`=1";
|
|
$Result = $DATABASE->Query( $QS );
|
|
$CS = $Result[0];
|
|
$QS = "SELECT * FROM `session_statuses`";
|
|
$Result = $DATABASE->Query( $QS );
|
|
$JUJA = array( "['0','Disabled']", "['1','Unset']" ); //776497
|
|
foreach( $Result as $R ){
|
|
};
|
|
$SKEL=<<<DATABOUNDARY
|
|
{
|
|
xtype: 'panel',
|
|
border: false,
|
|
frame: false,
|
|
items:[{
|
|
xtype: 'form',
|
|
labelAlign: 'right',
|
|
labelWidth: 250,
|
|
//height: PanelH - 30,
|
|
items:[{
|
|
xtype:'panel',
|
|
border: false,
|
|
frame: false,
|
|
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/>'
|
|
},{
|
|
xtype: 'spacer',
|
|
height: 10
|
|
},{
|
|
xtype: 'combo',
|
|
id: 'hs_days',
|
|
fieldLabel: '{$Labels->GetLabel('_HAR_LEVEL_')}',
|
|
editable: false,
|
|
typeAhead: true,
|
|
triggerAction: 'all',
|
|
width: '100%',
|
|
lazyRender:true,
|
|
mode: 'local',
|
|
store: new Ext.data.ArrayStore({
|
|
fields: ['cid', 'cnam'],
|
|
data: [['0',"Disabled"],['1',"Dissmised"],['2',"Alerts"]]
|
|
}),
|
|
valueField: 'cid',
|
|
displayField: 'cnam',
|
|
listeners:{
|
|
focus: function( t ){
|
|
loadHelpTopic( 'history_op_small', 4 );
|
|
},
|
|
select: function( t, r, i ){
|
|
doApplicationOperation( 2, r.data.cid );
|
|
}
|
|
},
|
|
value: '{$CS['histo_limit']}'
|
|
},{
|
|
xtype: 'spacer',
|
|
height: 10
|
|
},{
|
|
xtype: 'numberfield',
|
|
id: 'hs_window',
|
|
fieldLabel: '{$Labels->GetLabel('_HAR_DAYS_')}',
|
|
listeners:{
|
|
focus: function( t ){
|
|
loadHelpTopic( 'history_op_small', 5 );
|
|
},
|
|
change: function( t, r, i ){
|
|
doApplicationOperation( 3, r );
|
|
}
|
|
},
|
|
value: '{$CS['histo_days']}'
|
|
},{
|
|
xtype: 'spacer',
|
|
height: 10
|
|
},{
|
|
xtype: 'numberfield',
|
|
id: 'hs_perc',
|
|
fieldLabel: '{$Labels->GetLabel('_HAR_FREE_PERC_')}',
|
|
listeners:{
|
|
focus: function( t ){
|
|
loadHelpTopic( 'history_op_small', 6 );
|
|
},
|
|
change: function( t, r, i ){
|
|
doApplicationOperation( 4, r );
|
|
}
|
|
},
|
|
value: '{$CS['histo_perc']}'
|
|
},{
|
|
xtype: 'spacer',
|
|
height: 10
|
|
},{
|
|
xtype: 'numberfield',
|
|
id: 'hs_megs',
|
|
fieldLabel: '{$Labels->GetLabel('_HAR_FREE_MEGS_')}',
|
|
listeners:{
|
|
focus: function( t ){
|
|
loadHelpTopic( 'history_op_small', 7 );
|
|
},
|
|
change: function( t, r, i ){
|
|
doApplicationOperation( 5, r );
|
|
}
|
|
},
|
|
value: '{$CS['histo_megs']}'
|
|
},{
|
|
xtype: 'spacer',
|
|
height: 10
|
|
}]
|
|
}]
|
|
}
|
|
DATABOUNDARY;
|
|
$Data['status']= 'ok';
|
|
$Data['content']=$SKEL;
|
|
} else {
|
|
$Data['msg']='Access Denied!';
|
|
};
|
|
echo json_encode( $Data );
|
|
} else {
|
|
header('location: /');
|
|
};
|
|
?>
|