Example #1
0
<?php

$return .= '<tr><td colspan="2">' . drawSelectUser('staff', false, true, 0, true, true, "Jump to Staff Member") . '</td></tr>';
$pages = db_table('SELECT url, title' . langExt() . ' title FROM pages WHERE module_id = ' . $m['id'] . ' AND is_active = 1 AND is_hidden <> 1 AND is_admin <> 1 ORDER by precedence');
foreach ($pages as &$p) {
    $p = draw_link('/staff/' . $p['url'], $p['title']);
}
$return .= draw_table_rows($pages);
Example #2
0
<?php

if (!empty($helpdeskStatus)) {
    $return .= '<tr style="background-color:#fffce0;text-align:center;"><td style="padding:8px 4px 0px 4px;" colspan="2">' . $helpdeskStatus . '</td></tr>';
}
if (!empty($helpdeskOptions)) {
    $items = array();
    foreach ($helpdeskOptions as $option) {
        $items[] = draw_link('/helpdesk/?dept=' . $option['id'], $option['name']) . ' (' . format_num($option["num_open"], 0, true, 0) . ')';
    }
    $return .= draw_table_rows($items);
}
Example #3
0
<?php

$array = array();
foreach ($modulettes as $o) {
    if (!$_SESSION["is_admin"] && !$o["is_public"] && !$o["is_admin"]) {
        continue;
    }
    $array[] = draw_link('/' . $m['folder'] . '/' . $o["folder"] . '/', $o['title']);
}
$return .= draw_table_rows($array);
Example #4
0
<?php

$orgs = db_table('SELECT id, title' . langExt() . ' title FROM external_orgs_types ORDER BY title');
foreach ($orgs as &$o) {
    $o = draw_link('/' . $m["folder"] . '/type.php?id=' . $o["id"], format_string($o["title"], 21));
}
$return .= draw_table_rows($orgs);