diff --git a/admin/user_list.php b/admin/user_list.php
index b20267f..3e18f38 100644
--- a/admin/user_list.php
+++ b/admin/user_list.php
@@ -29,12 +29,17 @@
require_once('judges.inc.php');
+$user_what = array();
+ $query = mysql_query("SELECT `type`, `name` FROM roles");
+ while($row = mysql_fetch_assoc($query)){
+ $user_what[$row['type']] = $row['name'];
+ }
+
$show_types = $_GET['show_types'];
- if(user_valid_type($show_types) == false) $show_types = array('judge');
+ if(user_valid_role($show_types) == false) $show_types = array('judge');
$show_complete = ($_GET['show_complete'] == 'yes') ? 'yes' : 'no';
- $show_year = ($_GET['show_year'] == 'current') ? 'current' : 'all';
-
+ $show_all = ($_GET['show_all'] == 'yes') ? 'yes' : 'no';
$uid = intval($_GET['uid']);
if($_GET['action']=='remove') {
@@ -124,12 +129,12 @@ function neweditor()
echo "";
echo "";
- echo "
".i18n('Year').": | ";
- echo " |