* @author Adam Moore * @author David Poole * @version 04-03-07 * @package Templates * Copyright (C) 2003 - 2005 phpScheduleIt * * New functions added for MailZu * @author Samuel Tran * @author Brian Wong * @author Nicolas Peyrussie * @author Jeremy Fowler * Copyright (C) 2005 - 2007 MailZu * License: GPL, see LICENSE */ // Get Link object $link = CmnFns::getNewLink(); /** * Print out a table of links for user or administrator * This function prints out a table of links to * other parts of the system. If the user is an admin, * it will print out links to administrative pages, also * @param none */ function showQuickLinks() { global $conf; global $link; ?>
doLink("javascript: help('quick_links');", '?', '', 'color: #FFFFFF', translate('Help') . ' - ' . translate('My Quick Links')) ?>
»': "

\t"; $link->doLink('summary.php', translate('Quarantine Summary')) ?>

»': "

\t"; $link->doLink('messagesIndex.php?ctype=A', translate('My Quarantine')); echo '

'; echo "My rules" == $_SESSION['sessionNav'] ? '

\t"; $link->doLink('rulesIndex.php', translate('My rules')); echo '

'; if (! Auth::isMailAdmin()) { echo "My Pending Requests" == $_SESSION['sessionNav'] ? '

\t"; $link->doLink('messagesPending.php?ctype=A', translate('My Pending Requests')); echo '

'; } ?>


»': "

\t"; $link->doLink('domainSummary.php', translate('Domain Quarantine Summary')); echo '

'; } echo "Domain Quarantine" == $_SESSION['sessionNav'] ? '

\t"; $link->doLink('domainAdmin.php?ctype=A&searchOnly='.$conf['app']['searchOnly'], translate('Domain Quarantine')); echo '

'; echo "Domain Pending Requests" == $_SESSION['sessionNav'] ? '

\t"; $link->doLink('domainPendingAdmin.php?ctype=A', translate('Domain Pending Requests')); echo '

'; echo "Multiple Accounts" == $_SESSION['sessionNav'] ? '

\t"; $link->doLink('MultipleAdmin.php', translate('Multiple Accounts')); echo '

'; echo '
'; } if (Auth::isMailAdmin()) { if ($conf['app']['siteSummary']) { echo "Site Quarantine Summary" == $_SESSION['sessionNav'] ? '

\t"; $link->doLink('messagesSummary.php', translate('Site Quarantine Summary')); echo '

'; } echo "Site Quarantine" == $_SESSION['sessionNav'] ? '

\t"; $link->doLink('messagesAdmin.php?ctype=A&searchOnly='.$conf['app']['searchOnly'], translate('Site Quarantine')); echo '

'; echo "Site Pending Requests" == $_SESSION['sessionNav'] ? '

\t"; $link->doLink('messagesPendingAdmin.php?ctype=A', translate('Site Pending Requests')); echo '

'; echo "Site Rules" == $_SESSION['sessionNav'] ? '

\t"; $link->doLink('rulesAdmin.php', translate('Site Rules')); echo '

'; echo '
'; } if ((! Auth::isMailAdmin() && ! Auth::isDomainAdmin()) && ($conf['app']['showEmailAdmin'])) { echo "Email Administrator" == $_SESSION['sessionNav'] ? '

\t"; $link->doLink('send_mail.php', translate('Email Administrator')); echo '

'; } ?>

doLink('javascript: help();', translate('Help')) ?>


doLink('index.php?logout=true', translate('Log Out')) ?>

 

'; } /** * Returns the proper expansion type for this table * based on cookie settings * @param string table name of table to check * @return either 'block' or 'none' */ function getShowHide($table) { if (isset($_COOKIE[$table]) && $_COOKIE[$table] == 'show') { return 'block'; } else return 'none'; } /** * Returns the proper className for the rows of this table * based on cookie settings * @param string table name of table to check * @return 'visible' or 'hidden' */ function getShowHideHeaders($table) { if (isset($_COOKIE[$table]) && $_COOKIE[$table] == 'visible') { return 'visible'; } else { return 'hidden'; } } function startQuickLinksCol() { ?>
'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; } /** * Print 'Release', 'Delete' and 'Delete All' buttons * @param string $content_type: 'S' (default), 'B', ... * @param bool $printDeleteAll: if true (default) print 'Delete All' button */ function printActionButtons( $printDeleteAll = true, $wbselect = true ) { ?> "; if (Auth::isMailAdmin()) { if ($wbselect) { echo ''; } } else { echo ''; } echo ""; echo ''; echo ''; echo ''; echo '
'; if (Auth::isMailAdmin()) { if ($wbselect) { echo ''; } } else { echo ''; } echo ''; if ( $printDeleteAll ) echo ""; echo '
'; } /** * Print 'Send Error Report' buttons * @param string $query_string * @param array $error_array */ function printReportButtons( $query_string, $error_array, $process_action ) { $serialized_error_array = urlencode(serialize($error_array)); ?>
 

document.getElementById('$id').style.display='none'; "; ob_flush(); flush(); } ?>