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


PHP LangUtil::getPageTitle方法代码示例

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


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

示例1: get_top_menu_options

function get_top_menu_options($user_role)
{
    # Returns list links to php pages accessible by $user_role
    # Called from perms_check.php
    global $LIS_TECH_RO, $LIS_TECH_RW, $LIS_ADMIN, $LIS_SUPERADMIN, $LIS_COUNTRYDIR, $LIS_CLERK;
    global $LIS_001, $LIS_010, $LIS_011, $LIS_100, $LIS_101, $LIS_110, $LIS_111, $LIS_TECH_SHOWPNAME;
    # Global variables from includes/db_constants.php
    global $SERVER, $ON_ARC;
    $page_list = array();
    $page_list[LangUtil::getPageTitle("home")] = "home.php";
    if ($user_role == $LIS_CLERK) {
        $page_list[LangUtil::getPageTitle("regn")] = "find_patient.php";
        $page_list[LangUtil::getPageTitle("search")] = "search.php";
    } else {
        if ($user_role == $LIS_TECH_RW || $user_role == $LIS_TECH_SHOWPNAME) {
            $page_list[LangUtil::getPageTitle("regn")] = "find_patient.php";
            $page_list[LangUtil::getPageTitle("results_entry")] = "results_entry.php";
            $page_list[LangUtil::getPageTitle("search")] = "search.php";
            $page_list[LangUtil::getPageTitle("reports")] = "reports.php";
            $page_list["Inventory"] = "stock_add.php";
            $id = get_lab_config_id($_SESSION['user_id']);
            if ($id == 0) {
                $lab_config_list = get_lab_configs($_SESSION['user_id']);
                $id = $lab_config_list[0]->id;
            }
            //$page_list[LangUtil::$pageTerms['MENU_BACKUP']] = "data_backup?id=".$id;
            $page_list[LangUtil::$pageTerms['MENU_BACKUP']] = "backupDataUI.php?id=" . $id;
        } else {
            if ($user_role == $LIS_TECH_RO || $user_role == $LIS_TECH_SHOWPNAME) {
                $page_list[LangUtil::getPageTitle("search")] = "search.php";
                $page_list[LangUtil::getPageTitle("reports")] = "reports.php";
            } else {
                if ($user_role == $LIS_ADMIN) {
                    # ...
                    $page_list[LangUtil::getPageTitle("lab_config_home")] = "lab_configs.php";
                    $page_list[LangUtil::getPageTitle("catalog")] = "catalog.php";
                    $page_list[LangUtil::getPageTitle("reports")] = "reports.php";
                    if ($SERVER != $ON_ARC) {
                        if (User::onlyOneLabConfig($_SESSION['user_id'], $_SESSION['user_level'])) {
                            # Back up data option
                            $lab_config_list = get_lab_configs($_SESSION['user_id']);
                            //$page_list[LangUtil::$pageTerms['MENU_BACKUP']] = "data_backup?id=".$lab_config_list[0]->id;
                            $page_list[LangUtil::$pageTerms['MENU_BACKUP']] = "backupDataUI.php?id=" . $lab_config_list[0]->id;
                        }
                    }
                    //$page_list["Inventory"]="stock_add.php";
                    # ...
                } else {
                    if ($user_role == $LIS_SUPERADMIN || $user_role == $LIS_COUNTRYDIR) {
                        $page_list[LangUtil::getPageTitle("lab_configs")] = "lab_configs.php";
                        $page_list[LangUtil::getPageTitle("lab_admins")] = "lab_admins.php";
                        $page_list[LangUtil::getPageTitle("catalog")] = "country_catalog.php";
                        $page_list[LangUtil::getPageTitle("reports")] = "reports.php";
                    } else {
                        if (false) {
                            switch ($user_role) {
                                case $LIS_001:
                                    # Reports only
                                    $page_list[LangUtil::getPageTitle("search")] = "search.php";
                                    $page_list[LangUtil::getPageTitle("reports")] = "reports.php";
                                    break;
                                case $LIS_010:
                                    # Results only
                                    $page_list[LangUtil::getPageTitle("results_entry")] = "results_entry.php";
                                    $page_list[LangUtil::getPageTitle("search")] = "search.php";
                                    break;
                                case $LIS_011:
                                    # Results and reports
                                    $page_list[LangUtil::getPageTitle("results_entry")] = "results_entry.php";
                                    $page_list[LangUtil::getPageTitle("search")] = "search.php";
                                    $page_list[LangUtil::getPageTitle("reports")] = "reports.php";
                                    break;
                                case $LIS_100:
                                    # Regn only
                                    $page_list[LangUtil::getPageTitle("regn")] = "find_patient.php";
                                    $page_list[LangUtil::getPageTitle("search")] = "search.php";
                                    break;
                                case $LIS_101:
                                    # Regn and Reports
                                    $page_list[LangUtil::getPageTitle("regn")] = "find_patient.php";
                                    $page_list[LangUtil::getPageTitle("search")] = "search.php";
                                    $page_list[LangUtil::getPageTitle("reports")] = "reports.php";
                                    break;
                                case $LIS_110:
                                    # Regn and Results
                                    $page_list[LangUtil::getPageTitle("regn")] = "find_patient.php";
                                    $page_list[LangUtil::getPageTitle("results_entry")] = "results_entry.php";
                                    $page_list[LangUtil::getPageTitle("search")] = "search.php";
                                    break;
                                case $LIS_111:
                                    # All three
                                    $page_list[LangUtil::getPageTitle("regn")] = "find_patient.php";
                                    $page_list[LangUtil::getPageTitle("results_entry")] = "results_entry.php";
                                    $page_list[LangUtil::getPageTitle("search")] = "search.php";
                                    $page_list[LangUtil::getPageTitle("reports")] = "reports.php";
                                    break;
                            }
                        }
                    }
                }
//.........这里部分代码省略.........
开发者ID:nchopra,项目名称:C4G-BLIS,代码行数:101,代码来源:user_lib.php

示例2: get_top_menu_options

function get_top_menu_options($user_role, $user_rwoption = "")
{
    // Returns list links to php pages accessible by $user_role
    // Called from perms_check.php
    global $LIS_TECH_RO, $LIS_TECH_RW, $LIS_ADMIN, $LIS_SUPERADMIN, $LIS_VERIFIER, $LIS_COUNTRYDIR, $LIS_CLERK, $READONLYMODE, $LIS_PHYSICIAN;
    global $LIS_001, $LIS_010, $LIS_011, $LIS_100, $LIS_101, $LIS_110, $LIS_111, $LIS_TECH_SHOWPNAME;
    // Global variables from includes/db_constants.php
    global $SERVER, $ON_ARC;
    $page_list = array();
    $rw_option = array();
    $page_list[LangUtil::getPageTitle("home")] = "home.php";
    $rw_option = explode(',', $user_rwoption);
    // Write Mode starts
    if ($user_role == $LIS_TECH_RW || $user_role == $LIS_001 || $user_role == $LIS_VERIFIER) {
        if (in_array("2", $rw_option)) {
            $page_list[LangUtil::getPageTitle("regn")] = "find_patient.php";
        }
        if (in_array("3", $rw_option)) {
            $page_list[LangUtil::getPageTitle("results_entry")] = "results_entry.php";
        }
        if (in_array("4", $rw_option)) {
            $page_list[LangUtil::getPageTitle("search")] = "search.php";
        }
        if (in_array("5", $rw_option)) {
            $page_list[LangUtil::getPageTitle("reports")] = "reports.php";
        }
        if (in_array("6", $rw_option)) {
            $page_list["Inventory"] = "view_stock.php";
        }
        if (in_array("7", $rw_option)) {
            $page_list[LangUtil::$pageTerms['MENU_BACKUP']] = "backupDataUI.php?id=" . $id;
        }
    } else {
        if ($user_role == $READONLYMODE) {
            $page_list[LangUtil::getPageTitle("reports")] = "reports.php";
        } else {
            if ($user_role == $LIS_PHYSICIAN) {
                if (in_array("2", $rw_option)) {
                    $page_list[LangUtil::getPageTitle("regn")] = "doctor_register.php";
                }
                if (in_array("3", $rw_option)) {
                    $page_list[LangUtil::getPageTitle("results_entry")] = "results_entry.php";
                }
                if (in_array("4", $rw_option)) {
                    $page_list[LangUtil::getPageTitle("search")] = "search.php";
                }
                if (in_array("5", $rw_option)) {
                    $page_list[LangUtil::getPageTitle("reports")] = "reports.php";
                }
                if (in_array("6", $rw_option)) {
                    $page_list["Inventory"] = "view_stock.php";
                }
                if (in_array("7", $rw_option)) {
                    $page_list[LangUtil::$pageTerms['MENU_BACKUP']] = "backupDataUI.php?id=" . $id;
                }
                // $page_list [LangUtil::getPageTitle ( "regn" )] = "doctor_register.php";
                // $page_list [LangUtil::getPageTitle ( "reports" )] = "reports.php";
            } else {
                if ($user_role == $LIS_CLERK) {
                    $page_list[LangUtil::getPageTitle("regn")] = "find_patient.php";
                    $page_list[LangUtil::getPageTitle("search")] = "search.php";
                } else {
                    if ($user_role == $LIS_TECH_RW || $user_role == $LIS_TECH_SHOWPNAME) {
                        $page_list[LangUtil::getPageTitle("regn")] = "find_patient.php";
                        $page_list[LangUtil::getPageTitle("results_entry")] = "results_entry.php";
                        $page_list[LangUtil::getPageTitle("search")] = "search.php";
                        $page_list[LangUtil::getPageTitle("reports")] = "reports.php";
                        $page_list["Inventory"] = "view_stock.php";
                        $id = get_lab_config_id($_SESSION['user_id']);
                        if ($id == 0) {
                            $lab_config_list = get_lab_configs($_SESSION['user_id']);
                            $id = $lab_config_list[0]->id;
                        }
                        // $page_list[LangUtil::$pageTerms['MENU_BACKUP']] = "data_backup?id=".$id;
                        $page_list[LangUtil::$pageTerms['MENU_BACKUP']] = "backupDataUI.php?id=" . $id;
                    } else {
                        if ($user_role == $LIS_TECH_RO || $user_role == $LIS_TECH_SHOWPNAME) {
                            $page_list[LangUtil::getPageTitle("search")] = "search.php";
                            $page_list[LangUtil::getPageTitle("reports")] = "reports.php";
                        } else {
                            if ($user_role == $LIS_ADMIN) {
                                // ...
                                $page_list[LangUtil::getPageTitle("lab_config_home")] = "lab_configs.php";
                                $page_list[LangUtil::getPageTitle("catalog")] = "catalog.php";
                                $page_list[LangUtil::getPageTitle("reports")] = "reports.php";
                                if ($SERVER != $ON_ARC) {
                                    if (User::onlyOneLabConfig($_SESSION['user_id'], $_SESSION['user_level'])) {
                                        // Back up data option
                                        $lab_config_list = get_lab_configs($_SESSION['user_id']);
                                        // $page_list[LangUtil::$pageTerms['MENU_BACKUP']] = "data_backup?id=".$lab_config_list[0]->id;
                                        $page_list[LangUtil::$pageTerms['MENU_BACKUP']] = "backupDataUI.php?id=" . $lab_config_list[0]->id;
                                    }
                                }
                                // $page_list["Inventory"]="stock_add.php";
                                // ...
                            } else {
                                if ($user_role == $LIS_SUPERADMIN || $user_role == $LIS_COUNTRYDIR) {
                                    $page_list[LangUtil::getPageTitle("lab_configs")] = "lab_configs.php";
                                    $page_list[LangUtil::getPageTitle("lab_admins")] = "lab_admins.php";
                                    $page_list[LangUtil::getPageTitle("catalog")] = "country_catalog.php";
//.........这里部分代码省略.........
开发者ID:caseyi,项目名称:BLIS,代码行数:101,代码来源:user_lib.php


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