Line 80... |
Line 80... |
80 |
if ($create == 1){
|
80 |
if ($create == 1){
|
81 |
if (is_file("../lib/$config[general_lib_type]/user_info.php"))
|
81 |
if (is_file("../lib/$config[general_lib_type]/user_info.php"))
|
82 |
include("../lib/$config[general_lib_type]/user_info.php");
|
82 |
include("../lib/$config[general_lib_type]/user_info.php");
|
83 |
if ($user_exists != "no"){
|
83 |
if ($user_exists != "no"){
|
84 |
echo <<<EOM
|
84 |
echo <<<EOM
|
85 |
<b><i>$login</i> $l_user_exist</b>
|
85 |
<b><i>$login</i> $l_already_exist</b>
|
86 |
EOM;
|
86 |
EOM;
|
87 |
}
|
87 |
}
|
88 |
else{
|
88 |
else{
|
89 |
if (is_file("../lib/$config[general_lib_type]/create_user.php"))
|
89 |
if (is_file("../lib/$config[general_lib_type]/create_user.php"))
|
90 |
include("../lib/$config[general_lib_type]/create_user.php");
|
90 |
include("../lib/$config[general_lib_type]/create_user.php");
|
91 |
/* Petit traitement pré-impression
|
91 |
/* Petit traitement pré-impression pour la lisibilité */
|
92 |
pour la lisibilité */
|
- |
|
93 |
/*Gestion des cas sans limitation*/
|
- |
|
94 |
if ($sto_imp=='' && $mds_imp=='' && $mms_imp==''){
|
- |
|
95 |
/*Recherche de l'existence d'un groupe et récupération des attributs le cas échéant*/
|
92 |
/* Récupération des attributs du groupe le cas échéant */
|
96 |
if ($group!=''){
|
93 |
if ($group!=''){
|
97 |
$saved_login = $login;
|
94 |
$saved_login = $login;
|
98 |
$login = $group;
|
95 |
$login = $group;
|
99 |
if (is_file("../lib/sql/group_info.php"))
|
96 |
if (is_file("../lib/sql/group_info.php"))
|
100 |
include("../lib/sql/group_info.php");
|
97 |
include("../lib/sql/group_info.php");
|
101 |
$login = $saved_login;
|
98 |
$login = $saved_login;}
|
- |
|
99 |
/* Si les valeurs de durée sont vide remplissage avec la valeur 'Illimitée'*/
|
102 |
/* formatage des secondes sous le format H min s*/
|
100 |
/* et formatage des secondes sous le format Heure min ses*/
|
103 |
$sto_imp=sec_imp($sto_imp);
|
101 |
if ($sto_imp==''){ $sto_imp=$v_illimit;}
|
104 |
$mds_imp=sec_imp($mds_imp);
|
102 |
else { $sto_imp=sec_imp($sto_imp);}
|
105 |
$mms_imp=sec_imp($mms_imp);
|
103 |
if ($mas_imp==''){ $mas_imp=$v_illimit;}
|
106 |
} else {
|
- |
|
107 |
/*Si les valeurs de durée sont vide remplissage avec la valeur 'Illimitée'*/
|
- |
|
108 |
$sto_imp=$v_illimit;
|
- |
|
109 |
$mds_imp=$v_illimit;
|
104 |
else { $mas_imp=sec_imp($mas_imp);}
|
110 |
$mms_imp=$v_illimit;
|
105 |
if ($mds_imp==''){ $mds_imp=$v_illimit;}
|
111 |
}
|
- |
|
112 |
}else{
|
- |
|
113 |
/* formatage des secondes sous le format H min s*/
|
- |
|
114 |
$sto_imp=sec_imp($sto_imp);
|
106 |
else { $mds_imp=sec_imp($mds_imp);}
|
115 |
$mds_imp=sec_imp($mds_imp);
|
107 |
if ($mms_imp==''){ $mms_imp=$v_illimit;}
|
116 |
$mms_imp=sec_imp($mms_imp);
|
108 |
else { $mms_imp=sec_imp($mms_imp);}
|
117 |
}
|
- |
|
118 |
/*Formatage de la date afin d'être lisible dans toute les langues 'jj mm yyyy'*/
|
109 |
/*Formatage de la date afin d'être lisible dans toute les langues 'jj mm yyyy'*/
|
119 |
if ($Expiration!=''){
|
- |
|
120 |
$Expiration=date("d - m - Y",strtotime($Expiration));
|
110 |
if ($Expiration!=''){ $Expiration=date("d - m - Y",strtotime($Expiration));}
|
121 |
} else {
|
- |
|
122 |
$Expiration=$v_illimit;
|
111 |
else { $Expiration=$v_without;}
|
123 |
}
|
- |
|
124 |
//Appel du ticket d'impression , passage en paramètres des étiquettes et des valeurs à afficher
|
112 |
//Appel du ticket d'impression , passage en paramètres des étiquettes et des valeurs à afficher
|
125 |
echo' <form name="impression" method="post" action="ticket_user.php" target=_blank>
|
113 |
echo' <form name="impression" method="post" action="ticket_user.php" target=_blank>
|
126 |
<input type="hidden" name="l_title_imp" value="'.$l_title_imp.'">
|
114 |
<input type="hidden" name="l_title_imp" value="'.$l_title_imp.'">
|
127 |
<input type="hidden" name="l_login_imp" value="'.$l_login_imp.'">
|
115 |
<input type="hidden" name="l_login_imp" value="'.$l_login_imp.'">
|
128 |
<input type="hidden" name="l_password_imp" value="'.$l_password_imp.'">
|
116 |
<input type="hidden" name="l_password_imp" value="'.$l_password_imp.'">
|
Line 132... |
Line 120... |
132 |
<input type="hidden" name="l_max_monthly_session_imp" value="'.$l_max_monthly_session_imp.'">
|
120 |
<input type="hidden" name="l_max_monthly_session_imp" value="'.$l_max_monthly_session_imp.'">
|
133 |
<input type="hidden" name="l_expiration_imp" value="'.$l_expiration_imp.'">
|
121 |
<input type="hidden" name="l_expiration_imp" value="'.$l_expiration_imp.'">
|
134 |
<input type="hidden" name="log_imp" value="'.$login.'">
|
122 |
<input type="hidden" name="log_imp" value="'.$login.'">
|
135 |
<input type="hidden" name="passwd_imp" value="'.$passwd_imp.'">
|
123 |
<input type="hidden" name="passwd_imp" value="'.$passwd_imp.'">
|
136 |
<input type="hidden" name="sto_imp" value="'.$sto_imp.'">
|
124 |
<input type="hidden" name="sto_imp" value="'.$sto_imp.'">
|
- |
|
125 |
<input type="hidden" name="mas_imp" value="'.$mas_imp.'">
|
137 |
<input type="hidden" name="mds_imp" value="'.$mds_imp.'">
|
126 |
<input type="hidden" name="mds_imp" value="'.$mds_imp.'">
|
138 |
<input type="hidden" name="mms_imp" value="'.$mms_imp.'">
|
127 |
<input type="hidden" name="mms_imp" value="'.$mms_imp.'">
|
139 |
<input type="hidden" name="exp_imp" value="'.$Expiration.'">
|
128 |
<input type="hidden" name="exp_imp" value="'.$Expiration.'">
|
140 |
</form>';
|
129 |
</form>';
|
141 |
echo' <script type="text/javascript"> document.forms["impression"].submit();</script>';
|
130 |
echo' <script type="text/javascript"> document.forms["impression"].submit();</script>';
|
Line 246... |
Line 235... |
246 |
continue;
|
235 |
continue;
|
247 |
$oper_name = $name . '_op';
|
236 |
$oper_name = $name . '_op';
|
248 |
$val = ($item_vals["$key"][0] != "") ? $item_vals["$key"][0] : $default_vals["$key"][0];
|
237 |
$val = ($item_vals["$key"][0] != "") ? $item_vals["$key"][0] : $default_vals["$key"][0];
|
249 |
switch ($key)
|
238 |
switch ($key)
|
250 |
{
|
239 |
{
|
251 |
// $advanced = 1 : champs de saisie amélioré (calendrier, convertisseur, etc.)
|
240 |
// $advanced = 1 : champs de saisie amélioré (calendrier, convertisseur, etc.)
|
252 |
case 'Simultaneous-Use' :
|
241 |
case 'Simultaneous-Use' :
|
253 |
$advanced=1;
|
242 |
$advanced=1;
|
254 |
$help_link="help/simultaneous_use_help.html";
|
243 |
$help_link="help/simultaneous_use_help.html";
|
255 |
$desc=$l_simultaneous_use;
|
244 |
$desc=$l_simultaneous_use;
|
256 |
break;
|
245 |
break;
|
Line 366... |
Line 355... |
366 |
EOM;
|
355 |
EOM;
|
367 |
break;
|
356 |
break;
|
368 |
}
|
357 |
}
|
369 |
}
|
358 |
}
|
370 |
/*
|
359 |
/*
|
371 |
Ajout du pré-remplissage de cellule
|
- |
|
372 |
du choix d'unité (pour les durées limites de session,journée et de mois)
|
360 |
Ajout du choix d'unité (pour les durées limites de session,journée et de mois)
|
373 |
et d'un calendrier pour la date d'expiration
|
361 |
et d'un calendrier pour la date d'expiration
|
374 |
Sauf dans le cas de la visualisation
|
362 |
Sauf dans le cas de la visualisation
|
375 |
*/
|
363 |
*/
|
376 |
if ($advanced){echo "<td>";}
|
364 |
if ($advanced){echo "<td>";}
|
377 |
if ($create==0 ){
|
365 |
if ($create==0 ){
|
Line 428... |
Line 416... |
428 |
<option value=\"it\" >Italiano</option>
|
416 |
<option value=\"it\" >Italiano</option>
|
429 |
</select></td></tr>";
|
417 |
</select></td></tr>";
|
430 |
}
|
418 |
}
|
431 |
echo "</table><BR>";
|
419 |
echo "</table><BR>";
|
432 |
if ($create == 1)
|
420 |
if ($create == 1)
|
433 |
echo "<input type=submit class=button value=\"Afficher le profil de l'utilisateur\" OnClick=\"this.form.show.value=1\">";
|
421 |
echo "<input type=submit class=button value=\"$l_show_profile\" OnClick=\"this.form.show.value=1\">";
|
434 |
else{
|
422 |
else{
|
435 |
echo "<input type=submit class=button value=\"Créer\" OnClick=\"return formControl('newuser');\">";
|
423 |
echo "<input type=submit class=button value=\"$l_create\" OnClick=\"return formControl('newuser');\">";
|
436 |
}
|
424 |
}
|
437 |
?>
|
425 |
?>
|
438 |
</form>
|
426 |
</form>
|
439 |
|
427 |
|
440 |
</td></tr>
|
428 |
</td></tr>
|