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


PHP print_manage_config_menu函数代码示例

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


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

示例1: require_api

require_api('access_api.php');
require_api('authentication_api.php');
require_api('config_api.php');
require_api('constant_inc.php');
require_api('form_api.php');
require_api('helper_api.php');
require_api('html_api.php');
require_api('lang_api.php');
require_api('print_api.php');
require_api('project_api.php');
require_api('string_api.php');
require_api('user_api.php');
auth_reauthenticate();
html_page_top(lang_get('manage_threshold_config'));
print_manage_menu('adm_permissions_report.php');
print_manage_config_menu('manage_config_work_threshold_page.php');
$t_user = auth_get_current_user_id();
$t_project_id = helper_get_current_project();
$t_access = user_get_access_level($t_user, $t_project_id);
$t_show_submit = false;
$t_access_levels = MantisEnum::getAssocArrayIndexedByValues(config_get('access_levels_enum_string'));
$t_overrides = array();
function set_overrides($p_config)
{
    global $t_overrides;
    if (!in_array($p_config, $t_overrides)) {
        $t_overrides[] = $p_config;
    }
}
function get_section_begin_mcwt($p_section_name)
{
开发者ID:kaos,项目名称:mantisbt,代码行数:31,代码来源:manage_config_work_threshold_page.php

示例2: foreach

    foreach ($t_access_levels as $t_access_level) {
        echo '  <td' . color_threshold_flag($t_access_level, $p_message_type) . '>' . show_notify_threshold($t_access_level, $p_message_type) . '</td>' . "\n";
    }
    echo '</tr>' . "\n";
}
/**
 * HTML for email section end
 * @return void
 */
function get_section_end_for_email()
{
    echo '</tbody></table></div><br />' . "\n";
}
html_page_top(lang_get('manage_email_config'));
print_manage_menu('adm_permissions_report.php');
print_manage_config_menu('manage_config_email_page.php');
$t_access = current_user_get_access_level();
$t_project = helper_get_current_project();
# build a list of all of the actions
$t_actions = email_get_actions();
# build a composite of the status flags, exploding the defaults
$t_global_default_notify_flags = config_get('default_notify_flags', null, ALL_USERS, ALL_PROJECTS);
$g_global_notify_flags = array();
foreach ($t_global_default_notify_flags as $t_flag => $t_value) {
    foreach ($t_actions as $t_action) {
        $g_global_notify_flags[$t_action][$t_flag] = $t_value;
    }
}
$g_global_notify_flags = array_merge_recursive2($g_global_notify_flags, config_get('notify_flags', null, ALL_USERS, ALL_PROJECTS));
$t_file_default_notify_flags = config_get_global('default_notify_flags');
$g_file_notify_flags = array();
开发者ID:spring,项目名称:spring-website,代码行数:31,代码来源:manage_config_email_page.php

示例3: require_api

require_api('authentication_api.php');
require_api('config_api.php');
require_api('constant_inc.php');
require_api('current_user_api.php');
require_api('form_api.php');
require_api('helper_api.php');
require_api('html_api.php');
require_api('lang_api.php');
require_api('print_api.php');
require_api('project_api.php');
require_api('string_api.php');
require_api('workflow_api.php');
auth_reauthenticate();
html_page_top(lang_get('manage_workflow_config'));
print_manage_menu('adm_permissions_report.php');
print_manage_config_menu('manage_config_workflow_page.php');
# CSS class names for overrides color coding
define('COLOR_GLOBAL', 'color-global');
define('COLOR_PROJECT', 'color-project');
$g_access = current_user_get_access_level();
$t_project = helper_get_current_project();
$g_can_change_workflow = $g_access >= config_get_access('status_enum_workflow');
$g_can_change_flags = $g_can_change_workflow;
$g_overrides = array();
/**
 * Set overrides
 * @param string $p_config     Configuration value.
 * @param bool   $p_can_change True if user has access level to change config
 * @param string $p_color      CSS class name
 * @return void
 */
开发者ID:gtn,项目名称:mantisbt,代码行数:31,代码来源:manage_config_workflow_page.php

示例4: require_api

require_api('config_api.php');
require_api('constant_inc.php');
require_api('database_api.php');
require_api('form_api.php');
require_api('helper_api.php');
require_api('html_api.php');
require_api('lang_api.php');
require_api('print_api.php');
require_api('project_api.php');
require_api('string_api.php');
require_api('user_api.php');
access_ensure_global_level(config_get('view_configuration_threshold'));
$t_read_write_access = access_has_global_level(config_get('set_configuration_threshold'));
html_page_top(lang_get('configuration_report'));
print_manage_menu('adm_permissions_report.php');
print_manage_config_menu('adm_config_report.php');
$t_config_types = array(CONFIG_TYPE_DEFAULT => 'default', CONFIG_TYPE_INT => 'integer', CONFIG_TYPE_FLOAT => 'float', CONFIG_TYPE_COMPLEX => 'complex', CONFIG_TYPE_STRING => 'string');
/**
 * returns the configuration type for a given configuration type id
 * @param integer $p_type Configuration type identifier to check.
 * @return string configuration type
 */
function get_config_type($p_type)
{
    global $t_config_types;
    if (array_key_exists($p_type, $t_config_types)) {
        return $t_config_types[$p_type];
    } else {
        return $t_config_types[CONFIG_TYPE_DEFAULT];
    }
}
开发者ID:sfranks1124,项目名称:mantisbt,代码行数:31,代码来源:adm_config_report.php

示例5: require_api

 * @uses html_api.php
 * @uses lang_api.php
 * @uses string_api.php
 */
require_once 'core.php';
require_api('access_api.php');
require_api('config_api.php');
require_api('constant_inc.php');
require_api('helper_api.php');
require_api('html_api.php');
require_api('lang_api.php');
require_api('string_api.php');
access_ensure_project_level(config_get('manage_configuration_threshold'));
html_page_top(lang_get('permissions_summary_report'));
print_manage_menu('adm_permissions_report.php');
print_manage_config_menu('adm_permissions_report.php');
/**
 * return html for start of administration report section
 * @param string $p_section_name Section name.
 * @return string
 */
function get_section_begin_apr($p_section_name)
{
    $t_access_levels = MantisEnum::getValues(config_get('access_levels_enum_string'));
    $t_output = '<div class="table-container">';
    $t_output .= '<table>';
    $t_output .= '<thead>';
    $t_output .= '<tr><td class="form-title-caps" colspan="' . (count($t_access_levels) + 1) . '">' . $p_section_name . '</td></tr>' . "\n";
    $t_output .= '<tr class="row-category2">';
    $t_output .= '<th class="form-title">' . lang_get('perm_rpt_capability') . '</th>';
    foreach ($t_access_levels as $t_access_level) {
开发者ID:gtn,项目名称:mantisbt,代码行数:31,代码来源:adm_permissions_report.php

示例6: require_api

# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with MantisBT.  If not, see <http://www.gnu.org/licenses/>.
/**
 * @package MantisBT
 * @copyright Copyright (C) 2000 - 2002  Kenzaburo Ito - kenito@300baud.org
 * @copyright Copyright (C) 2002 - 2012  MantisBT Team - mantisbt-dev@lists.sourceforge.net
 * @link http://www.mantisbt.org
 *
 * @uses core.php
 * @uses authentication_api.php
 * @uses html_api.php
 * @uses lang_api.php
 */
/**
 * MantisBT Core API's
 */
require_once 'core.php';
require_api('authentication_api.php');
require_api('html_api.php');
require_api('lang_api.php');
auth_reauthenticate();
html_page_top(lang_get('manage_columns_config'));
print_manage_menu('adm_permissions_report.php');
print_manage_config_menu('manage_config_columns_page.php');
# Define constant that will be checked by the include page.
define('MANAGE_COLUMNS', true);
define('MANAGE_COLUMNS_INC_ALLOW', true);
include dirname(__FILE__) . DIRECTORY_SEPARATOR . 'manage_columns_inc.php';
html_page_bottom();
开发者ID:nextgens,项目名称:mantisbt,代码行数:31,代码来源:manage_config_columns_page.php


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