/** * 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($is_admin = false, $is_group_admin = false) { global $conf; global $link; ?> <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td class="tableTitle" style="background-color:#A2B5CD;"> › <?php echo translate('My Quick Links'); ?> </td> <td class="tableTitle" style="background-color:#A2B5CD;"><div align="right"> <?php $link->doLink("javascript: help('quick_links');", '?', '', 'color: #FFFFFF', translate('Help') . ' - ' . translate('My Quick Links')); ?> </div> </td> </tr> </table> <div id="quicklinks" style="display: <?php echo getShowHide('quicklinks'); ?> ;"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr style="padding: 5px;" class="cellColor"> <td colspan="2"> <p><b>»</b> <?php $link->doLink('schedule.php', translate('Bookings')); ?> </p> <p><b>»</b> <?php $link->doLink('mycalendar.php?view=3', translate('My Calendar')); ?> </p> <!-- TODO: rename this menu item from "Schedule Calendar" to "View Resource Calendar" even though it is renamed in here it is not displayed properly --> <!-- AK: Do not need this functionality <p><b>»</b> <?php $link->doLink('rescalendar.php?view=3', translate('View Resource Calendar')); ?> </p> <p><b>»</b> <?php $link->doLink('my_email.php', translate('Manage My Email Preferences')); ?> </p> --> <!-- e-mail administrator menu item commented out --> <!-- <p><b>»</b> <?php $link->doLink('mailto:' . $conf['app']['adminEmail'] . '?cc=' . $conf['app']['ccEmail'], translate('Email Administrator'), '', '', 'Send a non-technical email to the administrator'); ?> --> </p> <p><b>»</b> <?php $link->doLink('register.php?edit=true', translate('Change My Profile Information/Password')); ?> </p> <p><b>»</b> <?php $link->doLink('index.php?logout=true', translate('Log Out')); ?> </p> <?php // If it's the admin, print out admin links if ($is_admin) { echo '<p style="margin-top:7px;font-weight:bold;text-align:center;">' . translate('System Administration') . '</p>'; } else { if ($is_group_admin) { echo '<p style="margin-top:7px;font-weight:bold;text-align:center;">' . translate('Group Administration') . '</p>'; } } if ($is_admin) { echo '<p><b>»</b> ' . $link->getLink('admin.php?tool=schedules', translate('Manage Schedules')) . "</p>\n" . '<p><b>»</b> ' . $link->getLink('blackouts.php', translate('Manage Blackout Times')) . "</p>\n" . '<p><b>»</b> ' . $link->getLink('admin.php?tool=resources', translate('Manage Resources')) . "</p>\n" . '<p><b>»</b> ' . $link->getLink('admin.php?tool=announcements', translate('Manage Announcements')) . "</p>\n" . '<p style="margin-top:10px;"><b>»</b> ' . $link->getLink('admin.php?tool=groups', translate('Manage Groups')) . "</p>\n"; } if ($is_admin || $is_group_admin) { echo '<p><b>»</b> ' . $link->getLink('admin.php?tool=users', translate('Manage Users')) . "</p>\n" . '<p><b>»</b> ' . $link->getLink('admin.php?tool=reservations', translate('Manage Reservations')) . "</p>\n" . '<p><b>»</b> ' . $link->getLink('admin.php?tool=approval', translate('Approve Reservations')) . "</p>\n"; } if ($is_admin) { echo '<p style="margin-top:10px;"><b>»</b> ' . $link->getLink('admin.php?tool=email', translate('Mass Email Users')) . "</p>\n" . '<p><b>»</b> ' . $link->getLink('usage.php', translate('Search Scheduled Resource Usage')) . "</p>\n" . '<p><b>»</b> ' . $link->getLink('admin.php?tool=export', translate('Export Database Content')) . "</p>\n" . '<p><b>»</b> ' . $link->getLink('stats.php', translate('View System Stats')) . "</p>\n"; } ?> </td> </tr> </table> </div> </td> </tr> </table> <?php }
/** * Print Search Engine * $param $content_type */ function printSearchEngine($content_type, $submit_page, $full_search = false) { global $link; ?> <table width="100%" border="0" cellspacing="0" cellpadding="1" align="center"> <tr> <td class="tableBorder"> <table width="100%" border="0" cellspacing="1" cellpadding="0"> <tr> <td class="tableTitle"> <a href="javascript: void(0);" onclick="showHideSearch('search');">› <?php echo translate('Search'); ?> </a> </td> <td class="tableTitle"> <div align="right"> <?php $link->doLink('javascript: help(\'search\');', '?', '', 'color: #FFFFFF;', translate('Help') . ' - ' . translate('My Re servations')); ?> </div> </td> </tr> </table> <div id="search" style="display: <?php echo getShowHide('search'); ?> "> <table width="100%" border="0" cellspacing="1" cellpadding="0"> <tr class="cellColor"><td><center><?php CmnFns::searchEngine($content_type, $submit_page, $full_search); ?> </center></td></tr> </table> </div> </td> </tr> </table> <?php }