Subversion Repositories ALCASAR

Rev

Rev 324 | Rev 1805 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 324 Rev 925
Line 1... Line 1...
1
<?php
1
<?php
-
 
2
//gestion de la langue
-
 
3
if (is_file("../lib/langues.php"))
-
 
4
	include("../lib/langues.php");
2
require('/etc/freeradius-web/config.php');
5
require('/etc/freeradius-web/config.php');
3
if ($show == 1 && isset($del_members)){
6
if ($show == 1 && isset($del_members)){
4
        header("Location: user_admin.php?login=$del_members[0]");
7
        header("Location: user_admin.php?login=$del_members[0]");
5
        exit;
8
        exit;
6
}
9
}
7
if ($config[general_lib_type] != 'sql'){
10
if ($config[general_lib_type] != 'sql'){
8
	echo <<<EOM
11
	echo <<<EOM
9
<title>Page de gestion des groupes</title>
12
<title>Admin_groups</title>
10
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
13
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
11
<link rel="stylesheet" href="style.css">
14
<link rel="stylesheet" href="style.css">
12
</head>
15
</head>
13
<body>
16
<body>
14
<center>
17
<center>
Line 22... Line 25...
22
unset($group_members);
25
unset($group_members);
23
if (is_file("../lib/$config[general_lib_type]/group_info.php")){
26
if (is_file("../lib/$config[general_lib_type]/group_info.php")){
24
	include("../lib/$config[general_lib_type]/group_info.php");
27
	include("../lib/$config[general_lib_type]/group_info.php");
25
	if ($group_exists == 'no'){
28
	if ($group_exists == 'no'){
26
		echo <<<EOM
29
		echo <<<EOM
27
<title>Page de gestion des groupes</title>
30
<title>Admin_groups</title>
28
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
31
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
29
<link rel="stylesheet" href="style.css">
32
<link rel="stylesheet" href="style.css">
30
</head>
33
</head>
31
<body>
34
<body>
32
<center>
35
<center>
Line 43... Line 46...
43
}
46
}
44
?>
47
?>
45
 
48
 
46
<html>
49
<html>
47
<head>
50
<head>
48
<title>Page de gestion des groupes</title>
51
<title>Admin_groups</title>
49
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>">
52
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>">
50
<link rel="stylesheet" href="/css/style.css">
53
<link rel="stylesheet" href="/css/style.css">
51
</head>
54
</head>
52
<body>
55
<body>
53
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
56
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
54
	<tr><th>Gestion des groupes</th></tr>
57
<tr><th><?php echo "$l_groups_managment"; ?></th></tr>
55
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" 
58
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" 
56
height="2"></td></tr>
59
height="2"></td></tr>
57
</TABLE>
60
</TABLE>
58
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
61
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
59
	<tr bgcolor="#666666"><td>
62
	<tr bgcolor="#666666"><td>
60
	<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
63
	<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
61
		<tr><td valign="middle" align="left">
64
		<tr><td valign="middle" align="left">
62
<center>
65
<center>
63
<table border=0 width=550 cellpadding=0 cellspacing=0>
-
 
64
<tr valign=top>
-
 
65
<!--<td align=center><img src="images/title2.gif"></td>-->
-
 
66
</tr>
-
 
67
</table>
-
 
68
<table border=0 width=400 cellpadding=0 cellspacing=2>
66
<table border=0 width=640 cellpadding=0 cellspacing=2>
69
 
-
 
70
<?php
67
<?php
71
include("../html/group_toolbar.html.php");
68
include("../html/group_toolbar.html.php");
72
?>
69
?>
73
 
-
 
74
</table>
70
</table>
75
<br>
71
<br>
76
<table border=0 width=540 cellpadding=1 cellspacing=1>
72
<table border=0 width=620 cellpadding=1 cellspacing=1>
77
<tr valign=top>
73
<tr valign=top>
78
<td width=340></td>
74
<td width=340></td>
79
<td bgcolor="black" width=200>
75
<td bgcolor="black" width=200>
80
	<table border=0 width=100% cellpadding=2 cellspacing=0>
76
	<table border=0 width=100% cellpadding=2 cellspacing=0>
81
	<tr bgcolor="#907030" align=right valign=top><th>
77
	<tr bgcolor="#907030" align=right valign=top><th>
82
	<font color="white">Gestion du groupe <?php echo $login ?></font>&nbsp;
78
	<font color="white"><?php echo "$l_group : $login";?></font>
83
	</th></tr>
79
	</th></tr>
84
	</table>
80
	</table>
85
</td></tr>
81
</td></tr>
86
<tr bgcolor="black" valign=top><td colspan=2>
82
<tr bgcolor="black" valign=top><td colspan=2>
87
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
83
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
Line 101... Line 97...
101
      <input type=hidden name=do_changes value=0>
97
      <input type=hidden name=do_changes value=0>
102
      <input type=hidden name=show value=0>
98
      <input type=hidden name=show value=0>
103
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
99
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
104
<tr>
100
<tr>
105
<td align=right bgcolor="#d0ddb0">
101
<td align=right bgcolor="#d0ddb0">
106
<b>Membre(s) &agrave; effacer</b><br> (les membres s&eacute;lectionn&eacute;s seront effac&eacute;s du groupe<br>utilisez 'shift' ou 'Ctrl' pour une s&eacute;lection multiple)
102
<?php echo "$l_group_members_to_remove";?>
107
</td>
103
</td>
108
<td>
104
<td>
109
<select name=del_members[] multiple size=5> 
105
<select name=del_members[] multiple size=5> 
110
<?php
106
<?php
111
foreach ($group_members as $member){
107
foreach ($group_members as $member){
Line 115... Line 111...
115
</select>
111
</select>
116
</td>
112
</td>
117
</tr>
113
</tr>
118
<tr>
114
<tr>
119
<td align=right bgcolor="#d0ddb0">
115
<td align=right bgcolor="#d0ddb0">
120
<b>Membre(s) &agrave; ajouter</b><br>(s&eacute;parez les membres par un espace ou un 'retour chariot')
116
<?php echo "$l_group_members_to_add";?>
121
</td>
117
</td>
122
<td>
118
<td>
123
<textarea name=new_members cols="15" wrap="PHYSICAL" rows=5></textarea>
119
<textarea name=new_members cols="15" wrap="PHYSICAL" rows=5></textarea>
124
</td>
120
</td>
125
</tr>
121
</tr>
126
	</table>
122
	</table>
127
<br>
123
<br>
128
<input type=submit class=button value="Effectuer les changements" OnClick="this.form.do_changes.value=1">
124
<input type=submit class=button value="<?php echo "$l_change";?>" OnClick="this.form.do_changes.value=1">
129
<br><br>
125
<br><br>
130
<input type=submit class=button value="G&eacute;rer l'utilisateur s&eacute;lectionn&eacute;" OnClick="this.form.show.value=1">
126
<input type=submit class=button value="<?php echo "$l_manage_selected_user";?>" OnClick="this.form.show.value=1">
131
</form>
127
</form>
132
</td></tr>
128
</td></tr>
133
</table>
129
</table>
134
</tr>
130
</tr>
135
</table>
131
</table>