• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP getExpoCurrent函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中getExpoCurrent函数的典型用法代码示例。如果您正苦于以下问题:PHP getExpoCurrent函数的具体用法?PHP getExpoCurrent怎么用?PHP getExpoCurrent使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了getExpoCurrent函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: addMenu

 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:ConSked,项目名称:scheduler,代码行数:43,代码来源:Menu.php


示例2: getWorkerAuthenticated

// $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:ConSked,项目名称:scheduler,代码行数:31,代码来源:PreferenceWelcomePage.php


示例3: getExpoCurrent

/* $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();
开发者ID:ConSked,项目名称:scheduler,代码行数:31,代码来源:LinkJob.php


示例4: logMessage

                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 {
开发者ID:ConSked,项目名称:scheduler,代码行数:31,代码来源:SendMessageAction.php


示例5: getExpoCurrent

<?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 />
开发者ID:ConSked,项目名称:scheduler,代码行数:23,代码来源:LinkExpo.php



注:本文中的getExpoCurrent函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getExt函数代码示例发布时间:2022-05-15
下一篇:
PHP getExpectedValue函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap