当前位置: 首页>>代码示例>>PHP>>正文


PHP is_manager函数代码示例

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


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

示例1: is_info_complete

/**
 * Check whether the profile info is complete for the registering courses
 * @global type $login_uid
 * @global type $logged
 * @return type 
 */
function is_info_complete()
{
    if (is_admins() || is_manager()) {
        return true;
    }
    global $login_uid;
    global $logged;
    if (!$logged) {
        return false;
    }
    $userTbl = new UserTbl($login_uid);
    if (!$userTbl->Get()) {
        return false;
    }
    $user = $userTbl->detail;
    return trim($user['cn_name']) && is_chinese($user['cn_name']) && trim($user['major']) && trim($user['grade']) && is_grade_valid($user['grade']) && trim($user['class']) && trim($user['student_id']) && is_student_id_valid($user['student_id']);
}
开发者ID:thezawad,项目名称:Sicily,代码行数:23,代码来源:validation.php

示例2: if

					<li><a href="/feed.php?ename=<?php echo $city['ename']; ?>">RSS订阅</a></li>
				<?php if($INI['system']['sinajiwai']){?>
					<li><a href="<?php echo $INI['system']['sinajiwai']; ?>" target="_blank">新浪微博</a></li>
				<?php }?>
				<?php if($INI['system']['tencentjiwai']){?>
					<li><a href="<?php echo $INI['system']['tencentjiwai']; ?>" target="_blank">腾讯微博</a></li>
				<?php }?>
				</ul>
			</li>
			<li class="col">
				<h3>合作联系</h3>
				<ul class="sub-list">
					<li><a href="/feedback/seller.php">商务合作</a></li>
					<li><a href="/help/link.php">友情链接</a></li>
					<li><a href="/biz/index.php">商家后台</a></li>
					<?php if(is_manager(false, true)){?>
					<li><a href="/manage/index.php">管理<?php echo $INI['system']['abbreviation']; ?></a></li>
					<?php }?>
				</ul>
			</li>
			<li class="col">
				<h3>公司信息</h3>
				<ul class="sub-list">
					<li><a href="/about/us.php">关于<?php echo $INI['system']['abbreviation']; ?></a></li>
					<li><a href="/about/job.php">工作机会</a></li>
					<li><a href="/about/contact.php">联系方式</a></li>
					<li><a href="/about/terms.php">用户协议</a></li>
				</ul>
			</li>
			<li class="col end" style=" padding-left::10px; padding-top:10px;">
开发者ID:noikiy,项目名称:mdwp,代码行数:30,代码来源:footer-sc.php

示例3: get_config_value

<?php

require_once $_SERVER["DOCUMENT_ROOT"] . "/../includes/base.php";
if (!is_manager()) {
    http_response_code(404);
    header("Location: /error/404/not-found");
}
$page = isset($_GET["page"]) ? intval($_GET["page"]) : 1;
?>
<!DOCTYPE html>
<html>
<head>
	<?php 
include $_SERVER["DOCUMENT_ROOT"] . "/../includes/content.head.php";
?>
	<title><?php 
echo get_config_value("site", "title");
?>
 | Admin - Users</title>
</head>
<body>
	<div class="component-left">
		<div class="container container-center">
			<?php 
include $_SERVER["DOCUMENT_ROOT"] . "/../includes/content.sidebar_left.php";
?>
		</div>
	</div>
	<div class="component-right">
		<div class="container container-padded">
			<h3>Manage Blocked Users</h3>
开发者ID:ArtOfCode-,项目名称:BlankPost,代码行数:31,代码来源:unblock.php

示例4: elseif



<?php 
if (is_chauffeur()) {
    ?>


<?php 
} elseif (is_secretary()) {
    ?>




<?php 
} elseif (is_manager()) {
    ?>


    <hr>
    Administration
    <li><a href="manage_content.php">Manage Website </a></li>
    <li><a href="manage_admins.php">Manage Admin Users</a></li>
    <li><a href="manage_chauffeur.php">Manage Chauffeur</a></li>
    <li><a href="manage_client.php">Manage Client</a></li>

    <li><a href="manage_courses_programme.php">Programmation course</a></li>
    <hr>
    Modele
    <li><a href="manage_courses_modele.php">Modele Course</a></li>
    <li><a href="new_course_modele.php">New Modele Course</a></li>
开发者ID:kamy333,项目名称:kamy,代码行数:29,代码来源:menu_by_type.php

示例5: array

     $cardpay = Table::Count('order', array('state' => 'pay', 'team_id' => $id), 'card');
     $couponcount = Table::Count('coupon', array('team_id' => $id));
     $team['state'] = team_state($team);
     $city_id = abs(intval($team['city_id']));
     $subcond = array();
     if ($city_id) {
         $subcond['city_id'] = $city_id;
     }
     $subcount = Table::Count('subscribe', $subcond);
     $subcond['enable'] = 'Y';
     $smssubcount = Table::Count('smssubscribe', $subcond);
     /* send team subscribe mail */
     $team['noticesubscribe'] = $team['close_time'] == 0 && is_manager();
     $team['noticesmssubscribe'] = $team['close_time'] == 0 && is_manager();
     /* send success coupon */
     $team['noticesms'] = $team['delivery'] != 'express' && in_array($team['state'], array('success', 'soldout')) && is_manager();
     /* teamcoupon */
     $team['teamcoupon'] = $team['noticesms'] && $buycount > $couponcount;
     $team['needline'] = $team['noticesms'] || $team['noticesubscribe'] || $team['teamcoupon'];
     $html = render('manage_ajax_dialog_teamdetail');
     json($html, 'dialog');
 } else {
     if ('teamremove' == $action) {
         need_auth('team');
         $team = Table::Fetch('team', $id);
         $order_count = Table::Count('order', array('team_id' => $id, 'state' => 'pay'));
         if ($order_count > 0) {
             json('本团购包含付款订单,不能删除', 'alert');
         }
         ZTeam::DeleteTeam($id);
         /* remove coupon */
开发者ID:hhdem,项目名称:tuangala_v2,代码行数:31,代码来源:manage.php

示例6: current_city

			</div>
			<?php 
if (count($INI['hotcity']) > 1 || !in_array($city['ename'], array_keys($INI['hotcity']))) {
    ?>
			<div id="guides-city-change" class="change">Change</div>
			<div id="guides-city-list" class="city-list">
				<ul><?php 
    echo current_city($city['ename'], $INI['hotcity']);
    ?>
</ul>
			</div>
			<?php 
}
?>
			<?php 
if (is_manager() || !is_customer()) {
    ?>
			<li><a href="/manage/index.php">Manage <?php 
    echo $INI['system']['abbreviation'];
    ?>
</a></li>
			<?php 
}
?>
		</div>
		<ul class="nav cf"><?php 
echo current_frontend();
?>
</ul>
		<div class="refer">&raquo;&nbsp;<a href="/subscribe.php">Subscribe</a>&nbsp;&nbsp;&nbsp;&raquo;&nbsp;<a
            href="/account/invite.php">Invite</a>&nbsp;&nbsp;&nbsp;&raquo;&nbsp;<a id="verify-coupon-id"
开发者ID:jowino,项目名称:bd786110cact,代码行数:31,代码来源:header.php

示例7: page_scriptNeed

<?php

use Components\Classes\Disciplines;
use Components\Entity\Discipline;
page_scriptNeed('select2.min.js', '/js/select2/');
page_styleNeed('select2.css', '/js/select2/');
//    $GUI->Vars["page_hdr"] = "Правим содержание, управляем датами и ценой для клиента.";
page_scriptNeed('jquery-ui-1.10.3.custom.min.js', '/js/jquery-ui/js/');
page_styleNeed('jquery-ui-1.10.3.custom.min.css', '/js/jquery-ui/css/ui-lightness/');
$h = 1090;
$frm = $GUI->Form("Редактирование заказа №" . $order_id, 650);
$showOtdelKcomment = is_otdel_K($_SESSION["user"]["data"]['id']) || is_director($_SESSION["user"]["data"]['id']) || is_manager($_SESSION["user"]["data"]['id']);
if ($showOtdelKcomment) {
    $h = 1130;
} else {
    $h = 930;
}
$frm->height = $h;
$frm->VLine(10, $h - 80, 630);
$frm->Button("Сохранить", 205, $h - 60, 100, true);
$frm->OnExecute = "edit_order";
$b = $frm->Button("К списку", 345, $h - 60, 100);
$b->Event = "document.location.href=\"?section=ord&subsection=2\"; return false;";
$t = $frm->Hidden($order_id);
$t->linkName = 'id';
$ypos = 10;
kln_search_modal();
$frm->Label("Клиент", 10, $ypos);
$ypos += 20;
$s = $frm->Select(10, $ypos, 450, array(0 => "-выберите-") + kln_getlist(), "", $order_info['klient_id']);
//0
开发者ID:yonkon,项目名称:diplom,代码行数:31,代码来源:edit.php

示例8: need_auth

function need_auth($b = true)
{
    global $AJAX, $INI, $login_user;
    if (is_string($b)) {
        $auths = $INI['authorization'][$login_user['id']];
        $b = is_manager(true) || in_array($b, $auths);
    }
    if (true === $b) {
        return true;
    }
    if ($AJAX) {
        json('无权操作', 'alert');
    }
    Session::Set('error', '无权操作');
    redirect(WEB_ROOT . '/account/login.php');
}
开发者ID:yunsite,项目名称:hhzuitu,代码行数:16,代码来源:common.php

示例9: ArchiveUpload

<?php

include_once "../inc/global.inc.php";
require "../inc/user.inc.php";
/*
 * 请求处理,如果没有相应的处理程序,发出错误信息
 */
if (!is_admins() && !is_manager()) {
    error("Admin Only Operation");
}
$act = safeget('act');
$avail_functions = array('AddContestProblem', 'AddProblem', 'ContestEditProblem', 'CreateContest', 'EditContest', 'DeleteContest', 'IncContestProblem', 'DecContestProblem', 'EditContestProblem', 'DeleteProblem', 'DeleteContestProblem', 'EditProblem', 'ImportArchiveProblem', 'ExportProblem', 'ExportSource', 'ExportContest', 'RejudgeProblem', 'ResetContest', 'StartContest', 'CreateCourse', 'EditCourse', 'DeleteCourse', 'KickoutUser', 'StdSubmit');
if (in_array($act, $avail_functions) && function_exists($act)) {
    if (strtoupper($_SERVER['REQUEST_METHOD']) == "GET") {
        $arg =& $_GET;
    } else {
        $arg =& $_POST;
    }
    $act($arg);
} else {
    error('Illegal Opeartions');
}
exit;
/*
 * 上传rar和zip测试数据
 */
function ArchiveUpload(&$arg, $problem_prefix, $handle)
{
    // extract files
    $archive_file_name = $_FILES['arcfile']['tmp_name'];
    // unrar
开发者ID:thezawad,项目名称:Sicily,代码行数:31,代码来源:process.php

示例10: template

<?php include template("manage_html_header");?>
<?php if($INI['system']['editor'] == 'xh'){?>
<script type="text/javascript" src="/static/js/xheditor/xheditor.js"></script>
<?php } else { ?>
<script type="text/javascript" src="/static/js/kindeditor/kindeditor-min.js"></script>
<?php }?> 
<div id="hdw">
	<div id="hd">
		<div id="logo"><a href="/index.php" class="link" target="_blank"><img src="/static/css/i/logo.gif" /></a></div>
		<div class="guides">
			<div class="city">
				<h2>管理后台</h2>
			</div>
			<div id="guides-city-change" class="change"><?php echo $login_user['realname']; ?></div>
		</div>
		<ul class="nav cf">
          <?php echo current_backend('super'); ?>
        </ul>
        
	  <?php if(is_manager()){?><div class="vcoupon"><strong style=" color:#FFF">你好!&nbsp;&nbsp;<?php echo $login_user['username']; ?>&nbsp;&nbsp;管理员</strong>&nbsp;&nbsp;&nbsp;&raquo;&nbsp;<a href="/manage/logout.php">安全退出</a></div><?php }?>
	</div>
</div>

<?php if($session_notice=Session::Get('notice',true)){?>
<div class="sysmsgw" id="sysmsg-success"><div class="sysmsg"><p><?php echo $session_notice; ?></p><span class="close">关闭</span></div></div> 
<?php }?>
<?php if($session_notice=Session::Get('error',true)){?>
<div class="sysmsgw" id="sysmsg-error"><div class="sysmsg"><p><?php echo $session_notice; ?></p><span class="close">关闭</span></div></div> 
<?php }?>
开发者ID:noikiy,项目名称:mdwp,代码行数:29,代码来源:manage_header.php

示例11:

                </ul>




            </div>
         </nav>
    </div>

<?php 
//  echo "<p class='text-left'><small>".$complete_date."</small></p>";
?>


<?php 
if (isset($_SESSION['user_type_id']) && (is_manager() || is_admin() || is_chauffeur())) {
    ?>

    <?php 
    if ($layout_context == "admin") {
        ?>



<ol class="breadcrumb">

    <li
        <?php 
        if (isset($javascript) && $javascript == "admin_course") {
            echo "class=\"active \"";
        }
开发者ID:kamy333,项目名称:kamy,代码行数:31,代码来源:nav.php

示例12: elseif

} elseif (!empty($fltr)) {
    $result_filter = $fltr;
} elseif (!empty($search_filter)) {
    $result_filter = $search_filter;
} else {
    $result_filter = '';
}
$tbl->FilterMYSQL($result_filter);
$stat_tbl = $GUI->Table("ord_stat" . $n);
$stat_tbl->Width = "50%";
$column = $stat_tbl->NewColumn();
$column->Caption = "";
$column->Key = "id";
$isAuthor = is_author($_SESSION["user"]["data"]["id"]);
$isDirector = is_director($_SESSION["user"]["data"]["id"]);
$isManager = is_manager($_SESSION["user"]["data"]["id"]);
if ($isDirector || $isManager) {
    $column = $stat_tbl->NewColumn();
    $column->Caption = "Цена клиенту";
    $column->Key = "client_price";
    $column = $stat_tbl->NewColumn();
    $column->Caption = "Оплачено клиентом";
    $column->Key = "client_payed";
    $column = $stat_tbl->NewColumn();
    $column->Caption = "Долг клиента";
    $column->Key = "client_debt";
}
if ($isAuthor || $isDirector || $isManager) {
    $column = $stat_tbl->NewColumn();
    $column->Caption = "Гонорар автора";
    $column->Key = "author_price";
开发者ID:yonkon,项目名称:diplom,代码行数:31,代码来源:list.php

示例13: need_manager

function need_manager()
{
    return is_manager() ? true : false;
    //redirect( WEB_ROOT . '/account/login.php');
}
开发者ID:jowino,项目名称:bd786110cact,代码行数:5,代码来源:common.php

示例14: strtoupper

$url = $home . 'local/obu_forms/forms.php';
$context = context_system::instance();
$PAGE->set_pagelayout('standard');
$PAGE->set_url($url);
$PAGE->set_context($context);
$PAGE->set_heading($SITE->fullname);
$PAGE->set_title(get_string('settings_title', 'local_obu_forms'));
$message = '';
$formref = '';
$record = null;
$form_indicator = 0;
$student_indicator = 0;
if (isset($_REQUEST['formref'])) {
    $formref = strtoupper($_REQUEST['formref']);
    $record = read_form_settings_by_ref($formref);
    if ($record !== false && !is_manager($record)) {
        $message = get_string('form_unavailable', 'local_obu_forms');
    } else {
        if (!has_capability('local/obu_forms:manage_ump_students', $context) && !has_capability('local/obu_forms:manage_ump_staff', $context)) {
            $form_indicator = 1;
            // Can only set UMP flag to false
        } else {
            if (!has_capability('local/obu_forms:manage_pg', $context)) {
                $form_indicator = 2;
                // Can only set UMP flag to true
            }
        }
        if (!has_capability('local/obu_forms:manage_ump_students', $context) && has_capability('local/obu_forms:manage_ump_staff', $context)) {
            $student_indicator = 1;
            // Can only set student flag to false
        } else {
开发者ID:OBU-OBIS,项目名称:moodle-local_obu_forms,代码行数:31,代码来源:forms.php

示例15: generate_file_link

function generate_file_link($v, $row, $t)
{
    $extension = pathinfo($row['name']);
    if (!empty($extension['extension'])) {
        $extension = strtolower($extension['extension']);
    } else {
        $extension = '';
    }
    $result = '';
    switch ($extension) {
        case 'jpg':
        case 'jpeg':
        case 'gif':
        case 'png':
            $result .= "[<a href='?section=ord&subsection=2&p=4&order=" . $row["order_id"] . "&file=" . $row["id"] . "&action=download'>скачать</a>]/[<a href='?section=ord&subsection=2&p=4&order=" . $row["order_id"] . "&file=" . $row["id"] . "&action=view'>просмотреть</a>]";
            break;
        default:
            $result .= "[<a href='?section=ord&subsection=2&p=4&order=" . $row["order_id"] . "&file=" . $row["id"] . "&action=download'>скачать</a>]";
            break;
    }
    if (is_director($_SESSION["user"]["data"]["id"]) || is_manager($row['creator_id']) && $row['creator_id'] == $_SESSION["user"]["data"]["id"]) {
        $result .= "/[<a href='?section=ord&subsection=2&p=4&order=" . $row["order_id"] . "&file=" . $row["id"] . "&action=delete'>удалить</a>]";
    }
    return $result;
}
开发者ID:yonkon,项目名称:diplom,代码行数:25,代码来源:functions.php


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