Subversion Repositories ALCASAR

Rev

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

Rev 901 Rev 911
Line 1... Line 1...
1
<?php
1
<?php
2
// ticket d'impression (thank's to Geoffroy MUSITELLI)
2
// ticket d'impression (thank's to Geoffroy MUSITELLI)
3
//gestion de la langue
3
//gestion de la langue
4
$origine='user_new';
-
 
5
if (is_file("../lib/langues.php"))
4
if (is_file("../lib/langues.php"))
6
	include("../lib/langues.php");
5
	include("../lib/langues.php");
7
 
-
 
8
require('/etc/freeradius-web/config.php');
6
require('/etc/freeradius-web/config.php');
9
if ($show == 1){
7
if ($show == 1){
10
	header("Location: user_admin.php?login=$login");
8
	header("Location: user_admin.php?login=$login");
11
	exit;
9
	exit;
12
}
10
}
Line 18... Line 16...
18
	$show_ops=1;
16
	$show_ops=1;
19
}else{
17
}else{
20
	$show_ops = 0;
18
	$show_ops = 0;
21
	$colspan=1;
19
	$colspan=1;
22
}
20
}
23
echo "<html><head><title>$l_title</title>";
-
 
24
?>
21
?>
25
 
22
 
-
 
23
<html><head><title>User creation</title>
26
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>">
24
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>">
27
<link rel="stylesheet" href="/css/style.css">
25
<link rel="stylesheet" href="/css/style.css">
28
<link rel="stylesheet" type="text/css" href="/css/epoch_styles.css" />
26
<link rel="stylesheet" type="text/css" href="/css/epoch_styles.css" />
29
<script type="text/javascript" src="/js/epoch_classes.js"></script>
27
<script type="text/javascript" src="/js/epoch_classes.js"></script>
30
<script type="text/javascript" src="/js/fonctions.js"></script>
28
<script type="text/javascript" src="/js/fonctions.js"></script>
Line 39... Line 37...
39
 
37
 
40
</script>
38
</script>
41
</head>
39
</head>
42
<body>
40
<body>
43
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
41
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
44
	<tr><th><?php echo "$l_frame_top"; ?></th></tr>
42
	<tr><th><?php echo "$l_users_managment"; ?></th></tr>
45
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
43
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
46
</TABLE>
44
</TABLE>
47
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
45
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
48
	<tr bgcolor="#666666"><td>
46
	<tr bgcolor="#666666"><td>
49
	<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
47
	<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
Line 53... Line 51...
53
<tr valign=top>
51
<tr valign=top>
54
<td width=340></td>
52
<td width=340></td>
55
<td bgcolor="black" width=200>
53
<td bgcolor="black" width=200>
56
	<table border=0 width=100% cellpadding=2 cellspacing=0>
54
	<table border=0 width=100% cellpadding=2 cellspacing=0>
57
	<tr bgcolor="#907030" align=right valign=top><th>
55
	<tr bgcolor="#907030" align=right valign=top><th>
58
	<font color="white"><? echo "$l_frame"; ?></font>
56
	<font color="white"><? echo "$l_user_create"; ?></font>
59
	</th></tr>
57
	</th></tr>
60
	</table>
58
	</table>
61
</td></tr>
59
</td></tr>
62
<tr bgcolor="black" valign=top><td colspan=2>
60
<tr bgcolor="black" valign=top><td colspan=2>
63
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
61
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
Line 194... Line 192...
194
		$l_email
192
		$l_email
195
		</td><td>
193
		</td><td>
196
		<input type=text name="Fmail" value="$mail" size=35>
194
		<input type=text name="Fmail" value="$mail" size=35>
197
		</td>
195
		</td>
198
	</tr>
196
	</tr>
199
<!-- Mettre en commentaire les champs qui ne sont pas nécessaire, chaque champ est entre les balises <tr> et </tr> -->
-
 
200
<!--
-
 
201
	<tr>
-
 
202
		<td class="etiquette" colspan=$colspan>
-
 
203
		Service
-
 
204
		</td><td>
-
 
205
		<input type=text name="Fou" value="$ou" size=35>
-
 
206
		</td>
-
 
207
	</tr>
-
 
208
	<tr>
-
 
209
		<td class="etiquette" colspan=$colspan>
-
 
210
		Nro TPH personnel
-
 
211
		</td><td>
-
 
212
		<input type=text name="Fhomephone" value="$homephone" size=35>
-
 
213
		</td>
-
 
214
	</tr>
-
 
215
	<tr>
-
 
216
		<td class="etiquette" colspan=$colspan>
-
 
217
		Nro TPH bureau
-
 
218
		</td><td>
-
 
219
		<input type=text name="Ftelephonenumber" value="$telephonenumber" size=35>
-
 
220
		</td>
-
 
221
	</tr>
-
 
222
	<tr>
-
 
223
		<td class="etiquette" colspan=$colspan>
-
 
224
		Nro TPH mobile
-
 
225
		</td><td>
-
 
226
		<input type=text name="Fmobile" value="$mobile" size=35>
-
 
227
		</td>
-
 
228
	</tr> 
-
 
229
-->
-
 
230
EOM;
197
EOM;
231
	}
198
	}
232
	foreach($show_attrs as $key => $desc){
199
	foreach($show_attrs as $key => $desc){
233
		$name = $attrmap["$key"];
200
		$name = $attrmap["$key"];
234
		if ($name == 'none')
201
		if ($name == 'none')