|
From: Benjamin C. <bc...@us...> - 2002-03-01 00:41:33
|
Update of /cvsroot/phpbt/phpbt/inc
In directory usw-pr-cvs1:/tmp/cvs-serv322/inc
Modified Files:
functions.php
Log Message:
Allow for filtering of the active or inactive users
Index: functions.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/inc/functions.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- functions.php 26 Jan 2002 16:53:17 -0000 1.3
+++ functions.php 1 Mar 2002 00:41:30 -0000 1.4
@@ -43,7 +43,7 @@
///
/// Build a select box with the item matching $value selected
function build_select($box, $value = '', $project = 0) {
- global $q, $select, $perm, $auth;
+ global $q, $select, $perm, $auth, $STRING;
//create hash to map tablenames
$cfgDatabase = array(
@@ -77,6 +77,12 @@
}
switch($box) {
+ case 'user_filter' :
+ foreach ($STRING['user_filter'] as $k => $v) {
+ $text .= sprintf("<option value=\"%d\"%s>%s</option>",
+ $k, ($k == $value ? ' selected' : ''), $v);
+ }
+ break;
case 'group' :
if ($project) { // If we are building for project admin page
if (!count($value) or (count($value) && in_array(0, $value))) {
|