public static function addMenu($menuItemArray) { echo "<div id=\"menu\">\n<table>\n"; // always have a logout Menu::addMenuItem(MENU_LOGOUT); for ($k = 0; $k < count($menuItemArray); $k++) { Menu::addMenuItem($menuItemArray[$k]); } // $k // always able to see self's schedule $author = getWorkerAuthenticated(); $worker = getWorkerCurrent(); $expo = getExpoCurrent($author->workerid); $station = getStationCurrent($author->workerid); if (is_null($worker)) { $worker = $author; } if ($author->isOrganizer() || $author->isSupervisor()) { # Menu::addMenuItem(MENU_WORKER_MESSAGE); if (!is_null($expo)) { if (strpos($_SERVER['SCRIPT_URL'], "ShiftCheckInPage.php")) { Menu::addMenuItem(MENU_EXPO_CHECKIN_CLIENT); } else { if (!strpos($_SERVER['SCRIPT_URL'], "ExpoCheckInPage.php")) { if (!is_null($station)) { Menu::addMenuItem(MENU_CHECKIN_CLIENT); } else { Menu::addMenuItem(MENU_EXPO_CHECKIN_CLIENT); } } } } } if (!is_null($expo)) { if (!strpos($_SERVER['SCRIPT_URL'], Menu::$MENU_ACTION_ARRAY[MENU_VIEW_EXPOCURRENT])) { Menu::addMenuItem(MENU_VIEW_EXPOCURRENT); } Menu::addMenuItem(MENU_VIEW_SCHEDULE, !$expo->scheduleVisible); } Menu::addMenuItem(MENU_VIEW_WORKER); echo "</table>\n</div><!-- menu -->\n"; return; }
// $Id: PreferenceWelcomePage.php 2418 2012-10-28 19:23:53Z ecgero $ Copyright (c) ConSked, LLC. All Rights Reserved. include 'util/authenticate.php'; require_once 'preferences/' . PREF . 'Preferences.php'; require_once 'properties/constants.php'; require_once 'section/Menu.php'; require_once 'util/log.php'; require_once 'util/session.php'; $author = getWorkerAuthenticated(); if (isset($_REQUEST[PARAM_LIST_INDEX])) { $expo = getParamItem(PARAM_LIST, PARAM_LIST_INDEX); if (!is_null($expo)) { setExpoCurrent($expo); } $_SESSION[PARAM_LIST] = NULL; } $expo = getExpoCurrent(); ?> <!DOCTYPE html> <html> <head> <meta http-equiv="cache-control" content="no-cache"/> <meta http-equiv="expires" content="31 Dec 2011 12:00:00 GMT"/> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> <title><?php echo SITE_NAME; ?> - Shift Preference Welcome</title> <link href="css/site.css" rel="stylesheet" type="text/css"> <script src="https://fb.me/react-15.0.1.js"></script> <script src="https://fb.me/react-dom-15.0.1.js"></script>
/* $Id: LinkJob.php 1747 2012-09-06 18:49:16Z preston $ Copyright (c) ConSked, LLC. All Rights Reserved. */ ?> <?php require_once 'db/Expo.php'; require_once 'db/StationJob.php'; require_once 'db/Job.php'; require_once 'util/session.php'; ?> <div id="LinkJob"> <table> <tr> <td><h5 style="margin:0">Expo</h5></td> <td class="fieldLink"><a href="ExpoViewPage.php"><?php echo getExpoCurrent()->titleString(); ?> </a></td> </tr> <tr> <td><h5 style="margin:0">Station</h5></td> <td class="fieldLink"><a href="StationViewPage.php"><?php echo getStationCurrent()->titleString(); ?> </a></td> </tr> <tr> <td><h5 style="margin:0">Job</h5></td> <!-- note this could be a drop-down or an <a>getJobCurrent</a> depending --> <td class="fieldLink"><?php echo getStationCurrent()->jobTitleString();
FormMail::send($to, $subject, $message); } else { /* continue to process list */ logMessage("SendMessageAction", "failure with to field:" . $to . " index:" . $k . " value:" . $list[$k]); } } catch (ParseSWWATException $pe) { /* continue to process list */ logMessage("SendMessageAction", "failure with index:" . $k . " value:" . $list[$k]); } } // $k } // all null // return to whence we came if (is_null(getStationCurrent())) { if (is_null(getExpoCurrent())) { if (is_null(getWorkerCurrent())) { header('Location: WorkerListPage.php'); include 'WorkerListPage.php'; return; } else { header('Location: WorkerViewPage.php'); include 'WorkerViewPage.php'; return; } } else { header('Location: ExpoViewPage.php'); include 'ExpoViewPage.php'; return; } } else {
<?php /* $Id: LinkExpo.php 2263 2012-09-26 15:19:20Z preston $ Copyright (c) ConSked, LLC. All Rights Reserved. */ require_once 'db/Expo.php'; require_once 'db/Worker.php'; require_once 'util/session.php'; $titleLinkExpo = getExpoCurrent()->titleString(); if (getWorkerAuthenticated()->isOrganizer() || getWorkerAuthenticated()->isSupervisor()) { $titleLinkExpo = "<a href='ExpoViewPage.php'>" . $titleLinkExpo . "</a>"; } ?> <div id="LinkExpo"> <table> <tr> <td><h5 style="margin:0">Expo</h5></td> <td class="fieldLink"><?php echo $titleLinkExpo; ?> </td> </tr> </table> </div> <br />