#83 sort angeltypes to be confirmed

This commit is contained in:
Philip Häusler 2012-12-10 10:07:45 +01:00
parent 5660d36ef9
commit e0b4562de6
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ function admin_user_angeltypes() {
redirect(page_link_to('admin_user_angeltypes')); redirect(page_link_to('admin_user_angeltypes'));
} }
$users_source = sql_select("SELECT `UserAngelTypes`.`id`, `AngelTypes`.`name`, `User`.`Nick` FROM `UserAngelTypes` JOIN `AngelTypes` ON `UserAngelTypes`.`angeltype_id`=`AngelTypes`.`id` JOIN `User` ON `UserAngelTypes`.`user_id`=`User`.`UID` WHERE `AngelTypes`.`restricted`=1 AND `UserAngelTypes`.`confirm_user_id` IS NULL ORDER BY `AngelTypes`.`name`"); $users_source = sql_select("SELECT `UserAngelTypes`.`id`, `AngelTypes`.`name`, `User`.`Nick` FROM `UserAngelTypes` JOIN `AngelTypes` ON `UserAngelTypes`.`angeltype_id`=`AngelTypes`.`id` JOIN `User` ON `UserAngelTypes`.`user_id`=`User`.`UID` WHERE `AngelTypes`.`restricted`=1 AND `UserAngelTypes`.`confirm_user_id` IS NULL ORDER BY `AngelTypes`.`name`, `User`.`Nick`");
$users = array (); $users = array ();
foreach ($users_source as $user) { foreach ($users_source as $user) {
$user['actions'] = '<a href="' . page_link_to('admin_user_angeltypes') . '&confirm=' . $user['id'] . '">confirm</a>'; $user['actions'] = '<a href="' . page_link_to('admin_user_angeltypes') . '&confirm=' . $user['id'] . '">confirm</a>';
@ -30,8 +30,8 @@ function admin_user_angeltypes() {
return page(array ( return page(array (
msg(), msg(),
table(array ( table(array (
'Nick' => "Nick",
'name' => "Angeltype", 'name' => "Angeltype",
'Nick' => "Nick",
'actions' => "" 'actions' => ""
), $users) ), $users)
)); ));