- $SW = 2;
- while (list($id, $admin, $uid, $type, $subj, $text, $created) = SQL_FETCHROW($result_tasks)) {
- $infos = "---";
- if ($admin == "0") {
- // No admin currently is assigned
- $admin = "<div class=\"admin_note\">{--ADMIN_NO_ADMIN_ASSIGNED--}</div>";
- } else {
- // Load admin's data
- $login = GET_ADMIN_LOGIN($admin);
- if ($login != "***") {
- // Admin found
- $admin = "<a href=\"{!URL!}/modules.php?module=admin&what=admins_contct&admin=".$admin."\">".$login."</a>";
- } else {
- // Maybe deleted?
- $admin = "<div class=\"admin_note\">".ADMIN_ID_404_1.$admin.ADMIN_ID_404_2."</div>";
- }
- }