/[phpcompta]/phpcompta/html/user_pref.php
ViewVC logotype

Diff of /phpcompta/html/user_pref.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.18 by sparkyx, Tue Oct 25 12:10:26 2005 UTC revision 1.19 by sparkyx, Tue Oct 25 13:21:13 2005 UTC
# Line 29  $User=new cl_user($cn); Line 29  $User=new cl_user($cn);
29  $User->Check();  $User->Check();
30  // Met a jour le theme utilisateur (style)  // Met a jour le theme utilisateur (style)
31  if ( isset ( $_POST['style_user']) ) {  if ( isset ( $_POST['style_user']) ) {
32        $Res=ExecSql($Rep,          $User->update_global_pref('THEME',$_POST['style_user']);
                    "update user_global_pref set parameter_value='".$_POST['style_user'].  
                    "'  where user_id='".$_SESSION['g_user']."' and parameter_type='THEME'");  
  //     echo '<H2 class="info"> Theme utilisateur changé </H1>';  
33        $_SESSION['g_theme']=$_POST['style_user'];        $_SESSION['g_theme']=$_POST['style_user'];
34    
35  }  }
36    
37  html_page_start($_SESSION['g_theme']);  html_page_start($_SESSION['g_theme']);
38    
39    // Met a jour le pagesize
40    if ( isset ( $_POST['p_size']) ) {
41            $User->update_global_pref('PAGESIZE',$_POST['p_size']);
42          $_SESSION['g_pagesize']=$_POST['p_size'];
43    
44    }
45    
46  // show the top menu depending of the use_style  // show the top menu depending of the use_style
47  // comta style  // comta style
48    
# Line 136  if ( isset ($_SESSION['g_dossier']) ) { Line 140  if ( isset ($_SESSION['g_dossier']) ) {
140  </TABLE>  </TABLE>
141  </FORM>  </FORM>
142    
143    <H2 CLASS="info"> Taille des pages</H2>
144    <FORM ACTION="user_pref.php" METHOD="POST">
145    <TABLE ALIGN="CENTER">
146    <TR><TD>Taille des pages</TD>
147    <TD>
148    <SELECT NAME="p_size">
149    <option value="50">50
150    <option value="100">100
151    <option value="150">150
152    <option value="200">200
153    <option value="-1">Illimité
154    <?
155            $label=($_SESSION['g_pagesize'] == -1)?'Illimité':$_SESSION['g_pagesize'];
156            echo '<option value="'.$_SESSION['g_pagesize'].'" selected>'.$label;
157    ?>
158    </SELECT>
159    </TD></TR>
160    <TR><TD><input type="submit" name="sub_taille" value="Sauve"></TD></TR>
161    </TABLE>
162    </FORM>
163    
164    
165  <?  <?
166  }  }

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26