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.
140 lines
3.5 KiB
140 lines
3.5 KiB
<?php
|
|
require_once('../ajax_asm.php');
|
|
$UID = intval( $CUser->Data['id'] );
|
|
$ACCESS = intval( $CUser->Data['access'] );
|
|
if( $UID > 1 ){
|
|
ob_start();
|
|
$ZIGA = array();
|
|
foreach( $Site_Languages as $SL ) $ZIGA[] = "[{$SL['id']},'{$SL['name']}']";
|
|
$LAN_DATA = implode(',',$ZIGA );
|
|
$CUser->Data['ss_timeout'] = $CUser->Data['ss_timeout']/1000;
|
|
$BASIC_CONTENT=<<<DATA_BOUNDARY
|
|
{
|
|
xtype: 'panel',
|
|
layout: 'hbox',
|
|
items:[{
|
|
xtype: 'form',
|
|
labelAlign: 'right',
|
|
labelWidth: 250,
|
|
width: '50%',
|
|
height: PanelH - 16,
|
|
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">User Profile Settings</td></tr><tr><td colspan=2></td></tr></table><br/>'
|
|
},{
|
|
xtype: 'spacer',
|
|
height: 10
|
|
},{
|
|
xtype: 'combo',
|
|
id: 'pf_language',
|
|
fieldLabel: '{$Labels->GetLabel('_LANGUAGE_')}',
|
|
editable: false,
|
|
typeAhead: true,
|
|
triggerAction: 'all',
|
|
width: '100%',
|
|
lazyRender:true,
|
|
mode: 'local',
|
|
store: new Ext.data.ArrayStore({
|
|
fields: ['cid', 'cnam'],
|
|
data: [{$LAN_DATA}]
|
|
}),
|
|
valueField: 'cid',
|
|
displayField: 'cnam',
|
|
listeners:{
|
|
focus: function( t ){
|
|
loadHelpTopic( 'profile_op_small', 1 );
|
|
},
|
|
select: function( t, r, i ){
|
|
doUserOperation( 21, r.data.cid, true );
|
|
}
|
|
},
|
|
value: '{$CUser->Data['language']}'
|
|
},{
|
|
xtype: 'spacer',
|
|
height: 10
|
|
},{
|
|
xtype: 'numberfield',
|
|
fieldLabel: 'Screen Saver Time',
|
|
editable: true,
|
|
width: 250,
|
|
value: '{$CUser->Data['ss_timeout']}',
|
|
listeners:{
|
|
focus: function( t ){
|
|
loadHelpTopic( 'profile_op_small', 2 );
|
|
},
|
|
change: function( t, r, i ){
|
|
doUserOperation( 28, r, true );
|
|
}
|
|
}
|
|
},{
|
|
xtype: 'spacer',
|
|
height: 10
|
|
},{
|
|
xtype: 'combo',
|
|
id: 'pf_theme',
|
|
fieldLabel: '{$Labels->GetLabel('_UI_THEME_')}',
|
|
editable: false,
|
|
typeAhead: true,
|
|
triggerAction: 'all',
|
|
width: '100%',
|
|
lazyRender:true,
|
|
mode: 'local',
|
|
store: new Ext.data.ArrayStore({
|
|
fields: ['cid', 'cnam'],
|
|
data: [[0,'Dark'],[1,'Gray'],[2,'Blue'],[3,'Default']]
|
|
}),
|
|
valueField: 'cid',
|
|
displayField: 'cnam',
|
|
listeners:{
|
|
focus: function( t ){
|
|
loadHelpTopic( 'profile_op_small', 3 );
|
|
},
|
|
select: function( t, r, i ){
|
|
doUserOperation( 29, r.data.cid, true );
|
|
}
|
|
},
|
|
value: '{$CUser->Data['ui_theme']}'
|
|
}]
|
|
},{
|
|
xtype: 'panel',
|
|
id: 'profile_op_small',
|
|
flex: 1,
|
|
height: PanelH-15,
|
|
layout: 'fit',
|
|
items:[{
|
|
html: "<div class='setEd_infoPanel' id='NUNU'>{$Labels->GetLabel('_PLS_SEL_LEFT_ITEM_')}</div>"
|
|
}]
|
|
}]
|
|
}
|
|
|
|
DATA_BOUNDARY;
|
|
|
|
|
|
$Data['status'] = 'ok';
|
|
|
|
if( $CUser->Data['access'] < 6 ){
|
|
$TAB_CTX = '';
|
|
$MAIN_A_6 = '';
|
|
if( $CUser->Data['access'] < 5 ){
|
|
$MAIN_A_5 = '';
|
|
if( $CUser->Data['access'] < 4 ){
|
|
$MAIN_A_4 = '';
|
|
};
|
|
};
|
|
};
|
|
|
|
$Data['content'] = $BASIC_CONTENT;
|
|
$Data['content'] = str_ireplace( '%%CTX_ACCESS_4%%', $MAIN_A_4, $Data['content'] );
|
|
$Data['content'] = str_ireplace( '%%CTX_ACCESS_5%%', $MAIN_A_5, $Data['content'] );
|
|
$Data['content'] = str_ireplace( '%%CTX_ACCESS_6%%', $MAIN_A_6, $Data['content'] );
|
|
$Data['content'] = str_ireplace( '%%TAB_CTX%%%', $TAB_CTX, $Data['content'] );
|
|
|
|
$Data['messages'] = ob_get_clean();
|
|
} else {
|
|
header('location: /');
|
|
exit();
|
|
};
|
|
echo json_encode( $Data );
|
|
?>
|