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


PHP Monitor::listEmployees方法代码示例

本文整理汇总了PHP中Monitor::listEmployees方法的典型用法代码示例。如果您正苦于以下问题:PHP Monitor::listEmployees方法的具体用法?PHP Monitor::listEmployees怎么用?PHP Monitor::listEmployees使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Monitor的用法示例。


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

示例1: elseif

    $allTags = $cpu->listAllTags();
    $allConns = $cpu->listAllConn();
    //For furniture edit dialog
    $furn_types = $furniture->listTypes();
    $furn_departments = $furniture->listDepartments();
    //For key edit dialog
    $key_makes = $key->listMakes();
    $key_locktypes = $key->listLockTypes();
    $key_empassign = $key->listEmployees();
    //For cpu edit dialog
    $cpu_makes = $cpu->listMakes();
    $cpu_assign = $cpu->listEmployees();
    $cpu_departments = $cpu->listDepartments();
    //For mon edit dialog
    $mon_makes = $mon->listMakes();
    $mon_assign = $mon->listEmployees();
    $mon_departments = $mon->listDepartments();
    //For per edit dialog
    $per_types = $per->listTypes();
    $per_assign = $per->listEmployees();
    $per_departments = $per->listDepartments();
    $render = true;
    $l10nFile = 'l10n/grouping.php';
    $viewFile = 'views/grouping.php';
} elseif ($_GET['page'] === 'fetch') {
    switch ($_POST['table']) {
        case 'indicium_furn':
            $editdata = $furniture->FetchItem($_POST['id']);
            $editdata['tags'] = $furniture->listTags($_POST['id']);
            break;
        case 'indicium_keys':
开发者ID:hughnguy,项目名称:php,代码行数:31,代码来源:grouping.php

示例2: foreach

    } else {
        $cur_dep = $_GET['dep'];
    }
    $status = $_GET['status'];
    $depfil = $SESSION->department;
    $data = $equip->listItems($cur_dep, $_GET["status"]);
    $status = $_GET['status'];
    foreach ($data as $key => $d) {
        $data[$key]['tag'] = $equip->listTags($data[$key]['mon_id']);
        $data[$key]['conn'] = $equip->listConn($data[$key]['mon_id']);
    }
    $allTags = $equip->listAllTags();
    $allConn = $equip->listAllConn();
    $duplicatemon = $equip->listDuplMon();
    $makes = $equip->listMakes();
    $employees = $equip->listEmployees();
    $departments = $equip->listDepartments();
    $listStatus = $equip->listStatus();
    $allBuildings = $equip->listAllBuildings();
    $render = true;
    $l10nFile = 'l10n/mon.php';
    $viewFile = 'views/mon.php';
} elseif ($_GET['page'] === "fetch") {
    //Fetch specific monitor information
    $editdata = $equip->fetchItem($_POST['mon_id']);
    header('Content-Type: application/json; charset=utf-8');
    echo json_encode($editdata);
    exit;
} elseif ($_GET['page'] === "add") {
    $data = $equip->addItem($_POST);
    header('Content-Type: application/json; charset=utf-8');
开发者ID:hughnguy,项目名称:php,代码行数:31,代码来源:mon.php


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