Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 require_once '../include/constant.php';
00025 include_once ("ac_common.php");
00026 require_once('class_database.php');
00027
00028 $Rep=new Database();
00029 include_once ("class_user.php");
00030 require_once('class_dossier.php');
00031
00032
00033
00034
00035
00036 if ( isset ($_REQUEST['gDossier']))
00037 {
00038 $cn=new Database($_REQUEST['gDossier']);
00039 }
00040 else
00041 {
00042 $cn=new Database();
00043 }
00044
00045 global $g_user;
00046 $g_user=new User($cn);
00047
00048
00049 if ( isset ( $_POST['style_user']) )
00050 {
00051 $g_user->update_global_pref('THEME',$_POST['style_user']);
00052 $_SESSION['g_theme']=$_POST['style_user'];
00053
00054 }
00055
00056 if ( isset($_POST ['lang']))
00057 {
00058 $g_user->update_global_pref('LANG',$_POST['lang']);
00059 $_SESSION['g_lang']=$_POST['lang'];
00060 }
00061
00062 html_page_start($_SESSION['g_theme']);
00063
00064
00065 if ( isset ( $_POST['p_size']) )
00066 {
00067 $g_user->update_global_pref('PAGESIZE',$_POST['p_size']);
00068 $_SESSION['g_pagesize']=$_POST['p_size'];
00069
00070 }
00071
00072
00073
00074
00075
00076
00077
00078 if ( isset ($_POST['val']) )
00079 {
00080
00081 if ( isset ($_POST['minirap'])) $g_user->set_mini_report($_POST['minirap']);
00082 }
00083
00084
00085
00086 include_once ("user_menu.php");
00087 echo "<h2 class=\"info\">"._('Préférence')."</h2>";
00088
00089 require_once("pref.inc.php");
00090 html_page_stop();
00091 ?>