diff --git a/e107_admin/users.php b/e107_admin/users.php index 386e05dea..b8497267d 100644 --- a/e107_admin/users.php +++ b/e107_admin/users.php @@ -9,8 +9,8 @@ * Administration Area - Users * * $Source: /cvs_backup/e107_0.8/e107_admin/users.php,v $ -* $Revision: 1.21 $ -* $Date: 2008-12-22 03:15:04 $ +* $Revision: 1.22 $ +* $Date: 2008-12-22 14:06:17 $ * $Author: mcfly_e107 $ * */ @@ -740,7 +740,7 @@ class users } elseif($disp == 'user_name') { - $text .= "{$row['user_name']}"; + $text .= "{$row['user_name']}"; } else { @@ -1431,9 +1431,19 @@ function users_adminmenu() function show_ranks() { $e107 = e107::getInstance(); + include_once(e_HANDLER.'file_class.php'); + $f = new e_file; + $imageList = $f->get_files(e_IMAGE.'ranks', '.*?\.(png|gif|jpg)'); + $fieldList = array('core' => array(), 'extended' => array()); + $fieldList['core'] = array( + 'comments' => 'Number of comments', + 'visits' => 'Number of site visits', + 'days' => 'Number of days member' + ); + foreach($e107->extended_struct as $field) { if(strpos($field['Type'], 'int') !== false && $field['Field'] != 'user_extended_id') @@ -1445,43 +1455,49 @@ function show_ranks() $text .= " - - - + "; - foreach($fieldList['core'] as $f) + foreach($fieldList['core'] as $k => $f) { $text .= " + - + "; } if(count($fieldList['extended'])) { - $text .= " -
Core fields
Source Field Name Operation Value
Core {$f} + +
- - - - - - - - - "; foreach($fieldList['extended'] as $f) { $text .= " + + + + - + "; @@ -1493,12 +1509,44 @@ function show_ranks() $text = "
Extended fields
Field NameOperationValue
 
Plugin {$f} + +
- - - + + + + + + + + + + + + + + + + + + + + + + + + -
Rank NameLower ThresholdRank ImageTypeRank NameLower ThresholdLang prefix?Rank Image
Main Site AdminN/A".RankImageDropdown($imageList, 'main_admin_img')."
Site AdminN/A".RankImageDropdown($imageList, 'admin_img')."
 
"; + + $text .= " + + Calculated Rank + + + + ".RankImageDropdown($imageList, 'calc_img[0]')." + + "; + + $text .= ""; $e107->ns->tablerender('Ranks', $text); @@ -1507,4 +1555,16 @@ function show_ranks() exit; } +function RankImageDropdown(&$imgList, $field, $curVal='') +{ + $ret = "