2 require('../conf/config.php3');
3 $selected[$search_IN] = 'selected';
4 $selected[$radius_attr] = 'selected';
5 $max = ($max_results) ? $max_results : 40;
9 <title>Find User Page</title>
10 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>">
11 <link rel="stylesheet" href="style.css">
15 <table border=0 width=550 cellpadding=0 cellspacing=0>
17 <td align=center><img src="images/title2.gif"></td>
20 <table border=0 width=400 cellpadding=0 cellspacing=2>
23 <table border=0 width=540 cellpadding=1 cellspacing=1>
26 <td bgcolor="black" width=200>
27 <table border=0 width=100% cellpadding=2 cellspacing=0>
28 <tr bgcolor="#907030" align=right valign=top><th>
29 <font color="white">Find User Page</font>
33 <tr bgcolor="black" valign=top><td colspan=2>
34 <table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
40 if (is_file("../lib/$config[general_lib_type]/find.php3"))
41 include("../lib/$config[general_lib_type]/find.php3");
42 if (isset($found_users)){
46 <table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
47 <tr bgcolor="#d0ddb0">
48 <th>#</th><th>user</th>
51 foreach ($found_users as $user){
54 $User = urlencode($user);
59 <td><a href="user_admin.php3?login=$User" title="Edit user $user">$user</a></td>
66 $msg = "<b>No users found</b><br>\n";
70 <input type=hidden name=find_user value="0">
71 <table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
73 <td align=right bgcolor="#d0ddb0">
80 <select name="search_IN" editable onChange="this.form.submit();">
81 <option $selected[username] value="username">User Name
82 <option $selected[name] value="name">User Full Name
83 <option $selected[department] value="department">User Department
84 <option $selected[radius] value="radius">User Radius Attribute
92 if ($search_IN == 'radius'){
93 require('../lib/attrshow.php3');
96 <td align=right bgcolor="#d0ddb0">
100 <select name="radius_attr" editable>
102 foreach($show_attrs as $key => $desc)
103 echo "<option $selected[$key] value=\"$key\">$desc\n";
112 <td align=right bgcolor="#d0ddb0">
116 <input type=text name="search" value="<?php echo $search ?>" size=25>
120 <td align=right bgcolor="#d0ddb0">
124 <input type=text name="max_results" value="<?php echo $max ?>" size=25>
129 <input type=submit class=button value="Find User" OnClick="this.form.find_user.value=1">
132 if ($find_user == 1){