Subversion Repositories ALCASAR

Rev

Rev 3173 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 3173 Rev 3254
Line 23... Line 23...
23
	$selected['CoovaChilli-Max-Output-Octets'] = '';
23
	$selected['CoovaChilli-Max-Output-Octets'] = '';
24
	$selected['WISPr-Redirection-URL'] = '';
24
	$selected['WISPr-Redirection-URL'] = '';
25
}
25
}
26
if (isset($search_IN)) $selected[$search_IN] = 'selected';
26
if (isset($search_IN)) $selected[$search_IN] = 'selected';
27
if (isset($radius_attr)) $selected[$radius_attr] = 'selected';
27
if (isset($radius_attr)) $selected[$radius_attr] = 'selected';
28
if (isset($max_results)) $max = ($max_results) ? $max_results : 40;
-
 
29
 
-
 
30
#if ((!isset($find_user)) || ($find_user === 0)) {
-
 
31
#	// Search all users by default
-
 
32
#	$find_user = 1;
-
 
33
#	$search_IN = 'username';
-
 
34
#	$search = '';
-
 
35
#}
-
 
36
?>
28
?>
37
<html>
29
<html>
38
<head>
30
<head>
39
<title>Find a user</title>
31
<title>Find a user</title>
40
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config['general_charset']?>">
32
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config['general_charset']?>">
41
<link rel="stylesheet" href="/css/acc.css">
33
<link rel="stylesheet" href="/css/acc.css">
-
 
34
<link rel="stylesheet" href="/css/jquery.dataTables.css">
-
 
35
<script src="/js/jquery-3.6.min.js"></script>
-
 
36
<script src="/js/jquery.dataTables.js"></script>
-
 
37
<script type="text/javascript">
-
 
38
	$(document).ready(function() {
-
 
39
		$('#datatable_display').DataTable();
-
 
40
	});
-
 
41
	$.extend(true, $.fn.dataTable.defaults, {
-
 
42
       		language: {
-
 
43
			url: '/js/jquery.dataTables.<?= $Language ?>.json'
-
 
44
       			},
-
 
45
		});
-
 
46
</script>
42
</head>
47
</head>
43
<body>
48
<body>
44
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
49
<table width="100%" border="0" cellspacing="0" cellpadding="0">
45
<tr><th><?php echo "$l_users_managment";?></th></tr>
50
<tr><th><?php echo "$l_users_managment";?></th></tr>
46
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1"
51
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1"
47
height="2"></td></tr>
52
height="2"></td></tr>
48
</TABLE>
53
</table>
49
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
54
<table width="100%" border=0 cellspacing=0 cellpadding=1>
50
	<tr bgcolor="#666666"><td>
55
	<tr bgcolor="#666666"><td>
51
	<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
56
	<table width="100%" border=0 cellspacing=0 cellpadding=2>
52
		<tr><td valign="middle" align="left">
57
		<tr><td valign="middle" align="left">
53
<center>
58
<center>
54
<table border=0 width=800 cellpadding=1 cellspacing=1>
59
<table border=0 width=800 cellpadding=1 cellspacing=1>
55
<tr valign=top>
60
<tr valign=top>
56
<td width=340></td>
61
<td width=340></td>
Line 73... Line 78...
73
	if (isset($found_users)){
78
	if (isset($found_users)){
74
		$num = 0;
79
		$num = 0;
75
		$msg ='';
80
		$msg ='';
76
		$msg .= <<<EOM
81
		$msg .= <<<EOM
77
 
82
 
78
        <table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
83
        <table border=1 id="datatable_display" class="display" bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
79
        <tr bgcolor="#d0ddb0">
84
        <thead><tr bgcolor="#686464">
80
        <th>#</th><th>$l_user</th><th>Actions</th><th>$l_group_member</th>
85
        <th>#</th><th>$l_user</th><th>Actions</th><th>$l_group_member</th>
81
        </tr>
86
        </tr></thead><tbody>
82
EOM;
87
EOM;
83
		foreach ($found_users as $user){
88
		foreach ($found_users as $user){
84
			if ($user == '') {$user = '-';}
89
			if ($user == '') {$user = '-';}
85
			else {
90
			else {
86
				$login = $user;
91
				$login = $user;
Line 103... Line 108...
103
EOM;
108
EOM;
104
			if (isset($member_groups)) foreach ($member_groups as $group) { $msg .= "$group ";}
109
			if (isset($member_groups)) foreach ($member_groups as $group) { $msg .= "$group ";}
105
			else $msg .= "&nbsp;";
110
			else $msg .= "&nbsp;";
106
		$msg .= "</td>";
111
		$msg .= "</td>";
107
		}
112
		}
108
		$msg .= "</tr></table>\n";
113
		$msg .= "</tr></tbody></table>\n";
109
	}
114
	}
110
	else
115
	else
111
		$msg = "<b>$l_no_user_found</b><br>\n";
116
		$msg = "<b>$l_no_user_found</b><br>\n";
112
}
117
}
113
?>
118
?>
Line 214... Line 219...
214
</td>
219
</td>
215
<td>
220
<td>
216
<input type=text name="search" value="<?php if (isset($search)) echo $search ;?>" size=25>
221
<input type=text name="search" value="<?php if (isset($search)) echo $search ;?>" size=25>
217
</td>
222
</td>
218
</tr>
223
</tr>
219
<!--<tr>
-
 
220
<td align=right bgcolor="#d0ddb0">
-
 
221
Nombre de r&eacute;sultats Max.
-
 
222
</td>
-
 
223
<td>
-
 
224
<input type=text name="max_results" value="<?php if (isset($search)) echo $max ;?>" size=25>
-
 
225
</td>
-
 
226
</tr> -->
-
 
227
</table>
224
</table>
228
<br>
-
 
229
<input type=submit class=button value="<?php echo"$l_search";?>" OnClick="this.form.find_user.value=1">
225
<input type=submit class=button value="<?php echo"$l_search";?>" OnClick="this.form.find_user.value=1">
230
</form>
226
</form>
231
<?php
227
<?php
232
if (isset($find_user)){
228
if (isset($find_user)){
233
	if ($find_user == 1){ echo $msg ;}}
229
	if ($find_user == 1){ echo $msg ;}}
Line 235... Line 231...
235
</td></tr>
231
</td></tr>
236
</table>
232
</table>
237
</td></tr>
233
</td></tr>
238
</table>
234
</table>
239
</td></tr>
235
</td></tr>
240
</TABLE>
236
</table>
241
</td></tr>
237
</td></tr>
242
</TABLE>
238
</table>
243
</body>
239
</body>
244
</html>
240
</html>