require($INC);
}
-function OUTPUT_STANDARD_OVERVIEW(&$result_tasks)
-{
- global $cacheArray, $cacheArray;
+function OUTPUT_STANDARD_OVERVIEW(&$result_tasks) {
+ global $cacheArray, $_CONFIG;
// First check for solved and not assigned tasks and assign them to current admin
$result_task = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_task_system SET assigned_admin='%s' WHERE assigned_admin < 1 AND status != 'NEW'",
$admin = "<FONT class=\"admin_note\">".ADMIN_ID_404_1.$admin.ADMIN_ID_404_2."</FONT>";
}
}
- $evl = "\$type_out = ADMIN_TASK_IS_".strtoupper($type).";";
- eval($evl);
+
+ // Get task type
+ $type_out = constant('ADMIN_TASK_IS_'.strtoupper($type).'');
+
$type2 = substr($text, 0, strpos($text, ":"));
// Generate infos
switch ($type)
$infos = substr($subj, 1, strpos($subj, ":") - 1);
break;
}
- if ($uid > 0)
- {
+
+ if ($uid > 0) {
// Member found otherwise it's a system task
$uid = ADMIN_USER_PROFILE_LINK($uid);
- }
- else
- {
+ } else {
$uid = "<I>".ADMIN_IS_SYSTEM_TASK."</I>";
}
+ // Prepare content
$content = array(
'sw' => $SW,
'id' => $id,
'created' => MAKE_DATETIME($created, "2")
);
+ // Load row template
LOAD_TEMPLATE("admin_overview_list_rows", false, $content);
+
+ // Switch color
$SW = 3 - $SW;
}
// Free memory