Subversion Repositories ALCASAR

Rev

Rev 911 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 911 Rev 925
Line 45... Line 45...
45
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
45
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
46
	<tr bgcolor="#666666"><td>
46
	<tr bgcolor="#666666"><td>
47
	<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
47
	<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
48
		<tr><td valign="middle" align="left">
48
		<tr><td valign="middle" align="left">
49
<center>
49
<center>
50
<table border=0 width=550 cellpadding=1 cellspacing=1>
50
<table border=0 width=620 cellpadding=1 cellspacing=1>
51
<tr valign=top>
51
<tr valign=top>
52
<td width=340></td>
52
<td width=400></td>
53
<td bgcolor="black" width=200>
53
<td bgcolor="black">
54
	<table border=0 width=100% cellpadding=2 cellspacing=0>
54
	<table border=0 width=100% cellpadding=2 cellspacing=0>
55
	<tr bgcolor="#907030" align=right valign=top><th>
55
	<tr bgcolor="#907030" align=right valign=top><th>
56
	<font color="white"><? echo "$l_user_create"; ?></font>
56
	<font color="white"><? echo "$l_user_create"; ?></font>
57
	</th></tr>
57
	</th></tr>
58
	</table>
58
	</table>
Line 105... Line 105...
105
		if ($mms_imp==''){ $mms_imp=$v_illimit;}
105
		if ($mms_imp==''){ $mms_imp=$v_illimit;}
106
			else { $mms_imp=sec_imp($mms_imp);}
106
			else { $mms_imp=sec_imp($mms_imp);}
107
		/*Formatage de la date afin d'être lisible dans toute les langues 'jj mm yyyy'*/
107
		/*Formatage de la date afin d'être lisible dans toute les langues 'jj mm yyyy'*/
108
		if ($Expiration!=''){ $Expiration=date("d - m - Y",strtotime($Expiration));}
108
		if ($Expiration!=''){ $Expiration=date("d - m - Y",strtotime($Expiration));}
109
			else { $Expiration=$v_without;}
109
			else { $Expiration=$v_without;}
110
		//Appel du ticket d'impression , passage en paramètres des étiquettes et des valeurs à afficher
110
		//Appel du ticket d'impression , passage en paramètres des valeurs à afficher
111
		echo'	<form name="impression" method="post" action="ticket_user.php" target=_blank>
111
		echo'	<form name="impression" method="post" action="ticket_user.php" target=_blank>
112
					<input type="hidden" name="l_title_imp" value="'.$l_title_imp.'">
-
 
113
					<input type="hidden" name="l_login_imp" value="'.$l_login_imp.'">
112
					<input type="hidden" name="langue_imp" value="'.$langue_imp.'">
114
					<input type="hidden" name="l_password_imp" value="'.$l_password_imp.'"> 
-
 
115
					<input type="hidden" name="l_max_all_session_imp" value="'.$l_max_all_session_imp.'">
-
 
116
					<input type="hidden" name="l_session_timeout_imp" value="'.$l_session_timeout_imp.'">
-
 
117
					<input type="hidden" name="l_max_daily_session_imp" value="'.$l_max_daily_session_imp.'">
-
 
118
					<input type="hidden" name="l_max_monthly_session_imp" value="'.$l_max_monthly_session_imp.'"> 
-
 
119
					<input type="hidden" name="l_expiration_imp" value="'.$l_expiration_imp.'">
-
 
120
					<input type="hidden" name="log_imp" value="'.$login.'">
113
					<input type="hidden" name="log_imp" value="'.$login.'">
121
					<input type="hidden" name="passwd_imp" value="'.$passwd_imp.'">
114
					<input type="hidden" name="passwd_imp" value="'.$passwd_imp.'">
122
					<input type="hidden" name="sto_imp" value="'.$sto_imp.'">
115
					<input type="hidden" name="sto_imp" value="'.$sto_imp.'">
123
					<input type="hidden" name="mas_imp" value="'.$mas_imp.'">
116
					<input type="hidden" name="mas_imp" value="'.$mas_imp.'">
124
					<input type="hidden" name="mds_imp" value="'.$mds_imp.'">
117
					<input type="hidden" name="mds_imp" value="'.$mds_imp.'">
Line 142... Line 135...
142
	echo <<<EOM
135
	echo <<<EOM
143
	<tr>
136
	<tr>
144
		<td class="etiquette" colspan=$colspan>
137
		<td class="etiquette" colspan=$colspan>
145
		$l_login
138
		$l_login
146
		</td><td>
139
		</td><td>
147
		<input type=text name="login" value="$login" size=35>
140
		<input type=text name="login" value="$login" size=20>
148
		</td>
141
		</td>
149
	</tr>
142
	</tr>
150
	<tr>
143
	<tr>
151
		<td class="etiquette" colspan=$colspan>
144
		<td class="etiquette" colspan=$colspan>
152
		$l_password
145
		$l_password
153
		</td><td>
146
		</td><td>
154
		<input type=password name="passwd" size=35>
147
		<input type=password name="passwd" size=20>
155
		<br /><input type="button" value="$l_passwd_gen" onclick="password(8,'newuser')">
148
		<br><input type="button" value="$l_passwd_gen" onclick="password(8,'newuser')">
156
		<input type="text" value="" name="pwdgene" size=20 readonly>
149
		<input type="text" value="" name="pwdgene" size=10 readonly>
157
		</td>
150
		</td>
158
	</tr>
151
	</tr>
159
EOM;
152
EOM;
160
	if ($config[general_lib_type] == 'sql'){
153
	if ($config[general_lib_type] == 'sql'){
161
		if (isset($member_groups))
154
		if (isset($member_groups))
Line 182... Line 175...
182
		echo <<<EOM
175
		echo <<<EOM
183
	<tr>
176
	<tr>
184
		<td class="etiquette" colspan=$colspan>
177
		<td class="etiquette" colspan=$colspan>
185
		$l_name
178
		$l_name
186
		</td><td>
179
		</td><td>
187
		<input type=text name="Fcn" value="$cn" size=35>
180
		<input type=text name="Fcn" value="$cn" size=20>
188
		</td>
181
		</td>
189
	</tr>
182
	</tr>
190
	<tr>
183
	<tr>
191
		<td class="etiquette" colspan=$colspan>
184
		<td class="etiquette" colspan=$colspan>
192
		$l_email
185
		$l_email
193
		</td><td>
186
		</td><td>
194
		<input type=text name="Fmail" value="$mail" size=35>
187
		<input type=text name="Fmail" value="$mail" size=20>
195
		</td>
188
		</td>
196
	</tr>
189
	</tr>
197
EOM;
190
EOM;
198
	}
191
	}
199
	foreach($show_attrs as $key => $desc){
192
	foreach($show_attrs as $key => $desc){
Line 338... Line 331...
338
				case 'Session-Timeout' :
331
				case 'Session-Timeout' :
339
				case 'Max-Daily-Session' :
332
				case 'Max-Daily-Session' :
340
				case 'Max-Monthly-Session' :
333
				case 'Max-Monthly-Session' :
341
				case 'Max-All-Session' :
334
				case 'Max-All-Session' :
342
					/*valeur d'origine de durée limite */
335
					/*valeur d'origine de durée limite */
343
					echo"<input type=text name=\"$name\" onfocus=\"this.value=''\" value=\"$val\" size=28>";
336
					echo"<input type=text name=\"$name\" onfocus=\"this.value=''\" value=\"$val\" size=10>";
344
					/* Choix d'unité*/
337
					/* Choix d'unité*/
345
					echo" <select name=\"$name"."_opt"."\" onchange=\"temps(this,'$name','newuser')\">
338
					echo" <select name=\"$name"."_opt"."\" onchange=\"temps(this,'$name','newuser')\">
346
							<option value=\"s\" selected>s</option>
339
							<option value=\"s\" selected>s</option>
347
							<option value=\"m\" >m</option>
340
							<option value=\"m\" >m</option>
348
							<option value=\"H\" >H</option>
341
							<option value=\"H\" >H</option>
Line 350... Line 343...
350
					break;
343
					break;
351
				case 'Expiration' :
344
				case 'Expiration' :
352
					/*Pré-remplissage avec la date du lendemain*/
345
					/*Pré-remplissage avec la date du lendemain*/
353
					//$val=date("d F Y",strtotime("+1 day"));// utilisée pour le voucher uniquement
346
					//$val=date("d F Y",strtotime("+1 day"));// utilisée pour le voucher uniquement
354
					/*Ajout du calendrier pour choisir la date*/
347
					/*Ajout du calendrier pour choisir la date*/
355
					echo"<input id=\"popup_container\" type=text name=\"$name\" value=\"$val\" size=35>";
348
					echo"<input id=\"popup_container\" type=text name=\"$name\" value=\"$val\" size=20>";
356
					break;
349
					break;
357
				default :
350
				default :
358
					if ($advanced) echo"<input type=text name=\"$name\" value=\"$val\" size=35>";
351
					if ($advanced) echo"<input type=text name=\"$name\" value=\"$val\" size=20>";
359
					break;
352
					break;
360
			}
353
			}
361
		}else{
354
		}else{
362
		/*Pas de gestion de remplissage lors de la visualisation*/
355
		/*Pas de gestion de remplissage lors de la visualisation*/
363
			if ($advanced) echo"<input type=text name=\"$name\" value=\"$val\" size=35>";
356
			if ($advanced) echo"<input type=text name=\"$name\" value=\"$val\" size=20>";
364
		
357
		
365
/*fin Ajout*/
358
/*fin Ajout*/
366
		}
359
		}
367
	}
360
	}
368
if (create==0){
361
if (create==0){
369
	print <<<EOM
362
	print <<<EOM
370
	<tr>
363
	<tr>
371
		<td class="etiquette" colspan=$colspan>
364
		<td class="etiquette" colspan=$colspan>
372
			$l_lang_ticket
365
			$l_lang_ticket
373
		</td>
366
		</td>
374
		<td width=35>
367
		<td width=20>
375
EOM;
368
EOM;
376
/*Choix de la langue du ticket d'impression*/
369
/*Choix de la langue du ticket d'impression*/
377
	echo" <select name=\"$langue_imp\" onchange=\"lang_imp(this,'newuser')\">
370
	echo" <select name=\"$langue_imp\" onchange=\"lang_imp(this,'newuser')\">
378
			<option value=\"fr\" selected>Fran&ccedil;ais</option>
371
			<option value=\"fr\" selected>Fran&ccedil;ais</option>
379
			<option value=\"en\" >English</option>
372
			<option value=\"en\" >English</option>
380
			<option value=\"nl\" >Nederlandse</option>
373
			<option value=\"nl\" >Nederlandse</option>
381
			<option value=\"de\" >Deutsch</option>
374
			<option value=\"de\" >Deutsch</option>
382
			<option value=\"es\" >Espa&ntilde;ol</option>
375
			<option value=\"es\" >Espa&ntilde;ol</option>
383
			<option value=\"it\" >Italiano</option>
376
			<option value=\"it\" >Italiano</option>
-
 
377
			<option value=\"pt\" >Portugês</option>
384
		</select></td></tr>";	
378
		</select></td></tr>";	
385
	}
379
	}
386
echo "</table><BR>";
380
echo "</table><BR>";
387
if ($create == 1)
381
if ($create == 1)
388
	echo "<input type=submit class=button value=\"$l_show_profile\" OnClick=\"this.form.show.value=1\">";
382
	echo "<input type=submit class=button value=\"$l_show_profile\" OnClick=\"this.form.show.value=1\">";