Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 909 → Rev 910

/web/acc/manager/htdocs/find.php
1,4 → 1,8
<?php
//gestion de la langue
$origine='find_user';
if (is_file("../lib/langues.php"))
include("../lib/langues.php");
require('/etc/freeradius-web/config.php');
if (isset($search_IN)) $selected[$search_IN] = 'selected';
if (isset ($radius_attr)) $selected[$radius_attr] = 'selected';
6,13 → 10,13
?>
<html>
<head>
<title>Gestion des usager</title>
<title><?php echo "$l_title";?></title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config['general_charset']?>">
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th>Gestion des usagers</th></tr>
<tr><th><?php echo "$l_frame_top";?></th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1"
height="2"></td></tr>
</TABLE>
27,7 → 31,7
<td bgcolor="black" width=200>
<table border=0 width=100% cellpadding=2 cellspacing=0>
<tr bgcolor="#907030" align=right valign=top><th>
<font color="white">Filtre de recherche</font>&nbsp;
<font color="white"><?php echo "$l_search_filter";?></font>
</th></tr>
</table>
</td></tr>
47,7 → 51,7
 
<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
<tr bgcolor="#d0ddb0">
<th>#</th><th>Usager</th><th>Actions</th><th>membre du groupe</th>
<th>#</th><th>$l_user</th><th>Actions</th><th>$l_group_member</th>
</tr>
EOM;
foreach ($found_users as $user){
57,12 → 61,12
$num++;
$msg .= "<tr align=center><td>$num</td><td>$user";
$msg .= <<<EOM
</td><td><a href="user_admin.php?login=$User" title="&Eacute;tat"><img src=/images/info.gif></a>
<a href="user_edit.php?login=$User" title="Attributs"><img src=/images/create.gif></a>
<a href="user_info.php?login=$User" title="Informations personnelles"><img src=/images/tpf.gif></a>
<a href="user_accounting.php?login=$User" title="Connexions effectu&eacute;es"><img src=/images/graph.gif></a>
<a href="clear_opensessions.php?login=$User" title="Sessions ouvertes"><img src=/images/state_ok.gif></a>
<a href="user_delete.php?login=$User" title="Supprimer"><img src=/images/state_error.gif></a></td><td>
</td><td><a href="user_admin.php?login=$User" title="$l_status"><img src=/images/info.gif></a>
<a href="user_edit.php?login=$User" title="$l_attributes"><img src=/images/create.gif></a>
<a href="user_info.php?login=$User" title="$l_personal_info"><img src=/images/tpf.gif></a>
<a href="user_accounting.php?login=$User" title="$l_connections"><img src=/images/graph.gif></a>
<a href="clear_opensessions.php?login=$User" title="$l_open_sessions"><img src=/images/state_ok.gif></a>
<a href="user_delete.php?login=$User" title="$l_remove"><img src=/images/state_error.gif></a></td><td>
EOM;
$login = $user;
if (is_file("../lib/sql/defaults.php")) //retrieve member_groups
74,7 → 78,7
$msg .= "</tr></table>\n";
}
else
$msg = "<b>Pas d'usagers trouv&eacute;s</b><br>\n";
$msg = "<b>$l_no_user_found</b><br>\n";
}
}
?>
83,16 → 87,16
<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
<tr>
<td align=right bgcolor="#d0ddb0">
Crit&egrave;re de recherche
<?php
echo <<<EOM
$l_search_criteria
</td>
<td>
<?php
echo <<<EOM
<select name="search_IN" editable onChange="this.form.submit();">
<option $selected[username] value="username">Identifiant (login)
<option $selected[name] value="name">Nom complet (NOM Prenom)
<option $selected[username] value="username">$l_login
<option $selected[name] value="name">$l_name
<option $selected[department] value="department">Service
<option $selected[radius] value="radius">Attribut particulier
<option $selected[radius] value="radius">$l_special_attribute
EOM;
?>
 
106,13 → 110,67
echo <<<EOM
<tr>
<td align=right bgcolor="#d0ddb0">
Attributs RADIUS
$l_attribute
</td>
<td>
<select name="radius_attr" editable>
EOM;
foreach($show_attrs as $key => $desc)
echo "<option $selected[$key] value=\"$key\">$desc\n";
switch ($key)
{
case 'Simultaneous-Use' :
$desc=$l_simultaneous_use;
echo "<option $selected[$key] value=\"$key\">$desc\n";
break;
case 'Max-All-Session' :
$desc=$l_max_all_session;
echo "<option $selected[$key] value=\"$key\">$desc\n";
break;
case 'Session-Timeout' :
$desc=$l_session_timeout;
echo "<option $selected[$key] value=\"$key\">$desc\n";
break;
case 'Max-Daily-Session' :
$desc=$l_daily_timeout;
echo "<option $selected[$key] value=\"$key\">$desc\n";
break;
case 'Max-Monthly-Session' :
$desc=$l_monthly_timeout;
echo "<option $selected[$key] value=\"$key\">$desc\n";
break;
case 'Login-Time' :
$desc=$l_login_time;
echo "<option $selected[$key] value=\"$key\">$desc\n";
break;
case 'Expiration' :
$desc=$l_expiration;
echo "<option $selected[$key] value=\"$key\">$desc\n";
break;
case 'ChilliSpot-Max-Input-Octets' :
$desc=$l_max_input_octets;
echo "<option $selected[$key] value=\"$key\">$desc\n";
break;
case 'ChilliSpot-Max-Output-Octets' :
$desc=$l_max_output_octets;
echo "<option $selected[$key] value=\"$key\">$desc\n";
break;
case 'ChilliSpot-Max-Total-Octets' :
$desc=$l_max_total_octets;
echo "<option $selected[$key] value=\"$key\">$desc\n";
break;
case 'ChilliSpot-Bandwidth-Max-Up' :
$desc=$l_max_bandwidth_up;
echo "<option $selected[$key] value=\"$key\">$desc\n";
break;
case 'ChilliSpot-Bandwidth-Max-Down' :
$desc=$l_max_bandwidth_down;
echo "<option $selected[$key] value=\"$key\">$desc\n";
break;
case 'WISPr-Redirection-URL' :
$desc=$l_wispr_redirection;
echo "<option $selected[$key] value=\"$key\">$desc\n";
break;
}
echo <<<EOM
</select>
</td>
123,8 → 181,7
?>
<tr>
<td align=right bgcolor="#d0ddb0">
qui contient<BR>
(champ vide = tous)
<?php echo "$l_value";?>
</td>
<td>
<input type=text name="search" value="<?php if (isset($search)) echo $search ;?>" size=25>
140,7 → 197,7
</tr> -->
</table>
<br>
<input type=submit class=button value="Lancer la recherche" OnClick="this.form.find_user.value=1">
<input type=submit class=button value="<?php echo"$l_search";?>" OnClick="this.form.find_user.value=1">
</form>
<?php
if (isset($find_user)){