$title = "user management"; include "functions.php"; if (!$user->user_is_admin) { header("Location: login.php"); exit; } include "top.php"; $q = mysql_query_wrapper("select *, count(distinct note_id) count_notes, count(distinct ticket_id) count_open_tickets from users left outer join notes on note_user_id=user_id left outer join tickets on ticket_assigned_to=user_id and ticket_state_id=0 group by user_id order by user_is_admin desc, lower(user_name)"); ?>
User management
| =($row->user_is_admin ? "Admin" : "Non-admin")?> users | ||||||
| Name | Notify: New/ Assign/ Note | Open tickets | Notes | |||
| =htmlspecialchars($row->user_name)?> | =htmlspecialchars($row->user_email)?> | =($row->user_notify_newticket ? "Y" : "-")?> / =($row->user_notify_assign ? "Y" : "-")?> / =($row->user_notify_ownticket ? "Y" : "-")?> | =$row->count_open_tickets?> | =$row->count_notes?> |
|
|