Subversion Repositories ALCASAR

Rev

Rev 925 | Go to most recent revision | Details | Last modification | View Log

Rev Author Line No. Line
324 richard 1
<?php
2
require('/etc/freeradius-web/config.php');
3
if ($show == 1 && isset($del_members)){
4
        header("Location: user_admin.php?login=$del_members[0]");
5
        exit;
6
}
7
if ($config[general_lib_type] != 'sql'){
8
	echo <<<EOM
9
<title>Page de gestion des groupes</title>
10
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
11
<link rel="stylesheet" href="style.css">
12
</head>
13
<body>
14
<center>
15
<b>This page is only available if you are using sql as general library type</b>
16
</body>
17
</html>
18
EOM;
19
	exit();
20
}
21
 
22
unset($group_members);
23
if (is_file("../lib/$config[general_lib_type]/group_info.php")){
24
	include("../lib/$config[general_lib_type]/group_info.php");
25
	if ($group_exists == 'no'){
26
		echo <<<EOM
27
<title>Page de gestion des groupes</title>
28
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
29
<link rel="stylesheet" href="style.css">
30
</head>
31
<body>
32
<center>
33
<form action="group_admin.php" method=get>
34
<b>Le groupe &nbsp;&nbsp;</b>
35
<input type="text" size=10 name="login" value="$login">
36
<b>&nbsp;&nbsp;n'existe pas</b><br>
37
<input type=submit class=button value="Show Group">
38
</body>
39
</html>
40
EOM;
41
                exit();
42
        }
43
}
44
?>
45
 
46
<html>
47
<head>
48
<title>Page de gestion des groupes</title>
49
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>">
50
<link rel="stylesheet" href="/css/style.css">
51
</head>
52
<body>
53
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
54
	<tr><th>Gestion des groupes</th></tr>
55
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" 
56
height="2"></td></tr>
57
</TABLE>
58
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
59
	<tr bgcolor="#666666"><td>
60
	<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
61
		<tr><td valign="middle" align="left">
62
<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>
69
 
70
<?php
71
include("../html/group_toolbar.html.php");
72
?>
73
 
74
</table>
75
<br>
76
<table border=0 width=540 cellpadding=1 cellspacing=1>
77
<tr valign=top>
78
<td width=340></td>
79
<td bgcolor="black" width=200>
80
	<table border=0 width=100% cellpadding=2 cellspacing=0>
81
	<tr bgcolor="#907030" align=right valign=top><th>
82
	<font color="white">Gestion du groupe <?php echo $login ?></font>&nbsp;
83
	</th></tr>
84
	</table>
85
</td></tr>
86
<tr bgcolor="black" valign=top><td colspan=2>
87
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
88
	<tr><td>
89
 
90
<?php
91
if ($do_changes == 1){
92
	if (is_file("../lib/$config[general_lib_type]/group_admin.php"))
93
		include("../lib/$config[general_lib_type]/group_admin.php");
94
	if (is_file("../lib/$config[general_lib_type]/group_info.php"))
95
		include("../lib/$config[general_lib_type]/group_info.php");
96
}
97
?>
98
 
99
   <form method=post>
100
      <input type=hidden name=login value=<?php echo $login ?>>
101
      <input type=hidden name=do_changes value=0>
102
      <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>
104
<tr>
105
<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)
107
</td>
108
<td>
109
<select name=del_members[] multiple size=5> 
110
<?php
111
foreach ($group_members as $member){
112
	echo "<option value=\"$member\">$member\n";
113
}
114
?>
115
</select>
116
</td>
117
</tr>
118
<tr>
119
<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')
121
</td>
122
<td>
123
<textarea name=new_members cols="15" wrap="PHYSICAL" rows=5></textarea>
124
</td>
125
</tr>
126
	</table>
127
<br>
128
<input type=submit class=button value="Effectuer les changements" OnClick="this.form.do_changes.value=1">
129
<br><br>
130
<input type=submit class=button value="G&eacute;rer l'utilisateur s&eacute;lectionn&eacute;" OnClick="this.form.show.value=1">
131
</form>
132
</td></tr>
133
</table>
134
</tr>
135
</table>
136
</TD></TR>
137
</TABLE>
138
</td></tr>
139
</TABLE>
140
</body>
141
</html>