Subversion Repositories ALCASAR

Rev

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

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