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


PHP html_page_top函数代码示例

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


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

示例1: config_get

# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# MantisBT is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# 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/>.
$t_plugin_path = config_get('plugin_path');
require_once $t_plugin_path . 'XmlImportExport' . DIRECTORY_SEPARATOR . 'ImportXml.php';
form_security_validate('plugin_xml_import_action');
auth_reauthenticate();
//var_dump( $_POST );
$f_file = gpc_get_file('file', -1);
$f_strategy = gpc_get_string('strategy');
$f_fallback = gpc_get_string('fallback');
$f_project = gpc_get_int('project_id');
// not used, but ensures a project is selected
$f_keepcategory = gpc_get_bool('keepcategory');
$f_defaultcategory = gpc_get_int('defaultcategory');
file_ensure_uploaded($f_file);
$importer = new ImportXML($f_file, $f_strategy, $f_fallback, $f_keepcategory, $f_defaultcategory);
form_security_purge('plugin_xml_import_action');
html_page_top(plugin_lang_get('import'));
print_manage_menu('manage_import_issues_page.php');
echo "<pre>\n";
$importer->import();
echo "</pre>\n";
html_page_bottom();
开发者ID:nextgens,项目名称:mantisbt,代码行数:31,代码来源:import_action.php

示例2: require_api

 * ii) "Print Issues Columns" - These are the fields that are included when printing out bug
 * details.
 * iii) "Export Issues Columns" - These are the list of fields included when exporting an issue from
 * the bug tracker.
 * Note: These are now shared between different types of exports - for example, the core MantisBT
 * distribution can export to Excel and Word Documents.
 *
 * The settings defined here can be allocated to the current project, or All Projects. In addition,
 * it is possible to copy the column configuration between different projects.
 *
 * @package MantisBT
 * @copyright Copyright 2000 - 2002  Kenzaburo Ito - kenito@300baud.org
 * @copyright Copyright 2002  MantisBT Team - mantisbt-dev@lists.sourceforge.net
 * @link http://www.mantisbt.org
 *
 * @uses core.php
 * @uses current_user_api.php
 * @uses html_api.php
 * @uses lang_api.php
 */
require_once 'core.php';
require_api('current_user_api.php');
require_api('html_api.php');
require_api('lang_api.php');
html_page_top(lang_get('manage_columns_config'));
current_user_ensure_unprotected();
# Define constant that will be checked by the include page.
define('ACCOUNT_COLUMNS', true);
define('MANAGE_COLUMNS_INC_ALLOW', true);
include dirname(__FILE__) . '/manage_columns_inc.php';
html_page_bottom();
开发者ID:gtn,项目名称:mantisbt,代码行数:31,代码来源:account_manage_columns_page.php

示例3: Copyright

#
# Copyright (C) 2012-2014 gadiv GmbH
#
# agileMantis is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with agileMantis. If not, see <http://www.gnu.org/licenses/>.
html_page_top(plugin_lang_get('assume_userstories_title'));
# merge global $_GET / $_POST array
$request = array_merge($_POST, $_GET);
# get information about product backlog, sprint backlog and latest page
$product_backlog = $request['product_backlog'];
$sprintName = $request['sprintName'];
$fromPage = $request['fromPage'];
# get further sprint information
$agilemantis_sprint->sprint_id = $request['sprintName'];
$sprintinfo = $agilemantis_sprint->getSprintById();
# check if different units existing
$different_units = false;
if ($agilemantis_sprint->getUnitId(plugin_config_get('gadiv_task_unit_mode')) != $sprintinfo['unit_planned_task'] && isset($request['action']) && $sprintinfo['status'] == 1) {
    $different_units = true;
}
if ($request['action'] == 'save') {
开发者ID:CarlosPinedaT,项目名称:agileMantis,代码行数:31,代码来源:assume_userstories.php

示例4: in_array

$t_show_product_version = $t_show_versions && in_array('product_version', $t_fields);
$t_show_product_build = $t_show_versions && in_array('product_build', $t_fields) && config_get('enable_product_build') == ON;
$t_show_target_version = $t_show_versions && in_array('target_version', $t_fields) && access_has_project_level(config_get('roadmap_update_threshold'));
$t_show_additional_info = in_array('additional_info', $t_fields);
$t_show_due_date = in_array('due_date', $t_fields) && access_has_project_level(config_get('due_date_update_threshold'), helper_get_current_project(), auth_get_current_user_id());
$t_show_attachments = in_array('attachments', $t_fields) && file_allow_bug_upload();
$t_show_view_state = in_array('view_state', $t_fields) && access_has_project_level(config_get('set_view_status_threshold'));
if ($t_show_due_date) {
    require_js('jscalendar/calendar.js');
    require_js('jscalendar/lang/calendar-en.js');
    require_js('jscalendar/calendar-setup.js');
    require_css('calendar-blue.css');
}
# don't index bug report page
html_robots_noindex();
html_page_top(lang_get('report_bug_link'));
print_recently_visited();
$t_form_encoding = '';
if ($t_show_attachments) {
    $t_form_encoding = 'enctype="multipart/form-data"';
}
?>
<br />
<form name="report_bug_form" method="post" <?php 
echo $t_form_encoding;
?>
 action="bug_report.php">
<?php 
echo form_security_field('bug_report');
?>
<div class="table-container">
开发者ID:derrickweaver,项目名称:mantisbt,代码行数:31,代码来源:bug_report_page.php

示例5: print_successful_redirect

function print_successful_redirect($p_redirect_to)
{
    if (helper_log_to_page()) {
        html_page_top(null, $p_redirect_to);
        echo '<br /><div class="center">';
        echo lang_get('operation_successful') . '<br />';
        print_bracket_link($p_redirect_to, lang_get('proceed'));
        echo '</div>';
        html_page_bottom();
    } else {
        print_header_redirect($p_redirect_to);
    }
}
开发者ID:nextgens,项目名称:mantisbt,代码行数:13,代码来源:print_api.php

示例6: access_ensure_project_level

        access_ensure_project_level(config_get('manage_news_threshold'), $row['project_id']);
    }
    helper_ensure_confirmed(lang_get('delete_news_sure_msg'), lang_get('delete_news_item_button'));
    news_delete($f_news_id);
    form_security_purge('news_delete');
    print_header_redirect('news_menu_page.php', true);
}
# Retrieve news item data and prefix with v_
$row = news_get_row($f_news_id);
if ($row) {
    extract($row, EXTR_PREFIX_ALL, 'v');
}
access_ensure_project_level(config_get('manage_news_threshold'), $v_project_id);
$v_headline = string_attribute($v_headline);
$v_body = string_textarea($v_body);
html_page_top(lang_get('edit_news_title'));
# Edit News Form BEGIN
?>
<br />
<div align="center">
<form method="post" action="news_update.php">
<?php 
echo form_security_field('news_update');
?>
<table class="width75" cellspacing="1">
<tr>
	<td class="form-title">
		<input type="hidden" name="news_id" value="<?php 
echo $v_id;
?>
" />
开发者ID:Tarendai,项目名称:spring-website,代码行数:31,代码来源:news_edit_page.php

示例7: require_api

require_api('html_api.php');
require_api('lang_api.php');
require_api('print_api.php');
require_api('string_api.php');
auth_ensure_user_authenticated();
$f_ref = string_sanitize_url(gpc_get_string('ref', ''));
if (count(current_user_get_accessible_projects()) == 1) {
    $t_project_ids = current_user_get_accessible_projects();
    $t_project_id = (int) $t_project_ids[0];
    if (count(current_user_get_accessible_subprojects($t_project_id)) == 0) {
        $t_ref_urlencoded = string_url($f_ref);
        print_header_redirect("set_project.php?project_id={$t_project_id}&ref={$t_ref_urlencoded}", true);
        /* print_header_redirect terminates script execution */
    }
}
html_page_top(lang_get('select_project_button'));
?>

<!-- Project Select Form BEGIN -->
<div id="select-project-div" class="form-container">
	<form id="select-project-form" method="post" action="set_project.php">
		<?php 
# CSRF protection not required here - form does not result in modifications
?>
		<fieldset>
			<legend><span><?php 
echo lang_get('choose_project');
?>
</span></legend>
			<input type="hidden" name="ref" value="<?php 
echo string_html_specialchars($f_ref);
开发者ID:Kirill,项目名称:mantisbt,代码行数:31,代码来源:login_select_proj_page.php

示例8: print_test_row

            print_test_row('Checking Table Collation is utf8 for ' . $row['Name'] . '....', substr($row['Collation'], 0, 5) === 'utf8_', $row['Collation']);
        }
    }
    foreach (db_get_table_list() as $t_table) {
        if (db_table_exists($t_table)) {
            $result = db_query_bound('SHOW FULL FIELDS FROM ' . $t_table);
            while ($row = db_fetch_array($result)) {
                if ($row['Collation'] === null) {
                    continue;
                }
                print_test_row('Checking Non-null Column Collation in ' . $t_table . ' is utf8 for ' . $row['Field'] . '....', substr($row['Collation'], 0, 5) === 'utf8_', $row['Collation'] . ' ( ' . $row['Type'] . ')');
            }
        }
    }
}
html_page_top('MantisBT Administration - Check Installation');
?>
<table class="width75" align="center" cellspacing="1">
<tr>
<td class="form-title" width="30%" colspan="2"><?php 
echo 'Checking your installation';
?>
</td>
</tr>

<?php 
print_test_row('MantisBT requires at least <b>PHP ' . PHP_MIN_VERSION . '</b>. You are running <b>PHP ' . phpversion(), $result = version_compare(phpversion(), PHP_MIN_VERSION, '>='));
if (!print_test_row('Checking Config File Exists', file_exists($g_absolute_path . 'config_inc.php'), array(false => 'Please use install.php to perform initial installation <a href="install.php">Click here</a>'))) {
    die;
}
print_test_row('Opening connection to database [' . config_get_global('database_name') . '] on host [' . config_get_global('hostname') . '] with username [' . config_get_global('db_username') . ']', @db_connect(config_get_global('dsn', false), config_get_global('hostname'), config_get_global('db_username'), config_get_global('db_password'), config_get_global('database_name')) != false);
开发者ID:nourchene-benslimane,项目名称:mantisV0,代码行数:31,代码来源:check.php

示例9: color_notify_flag

    echo '  <td' . color_notify_flag($p_message_type, 'bugnotes') . '>' . show_notify_flag($p_message_type, 'bugnotes') . '</td>' . "\n";
    echo '  <td' . color_notify_flag($p_message_type, 'category') . '>' . show_notify_flag($p_message_type, 'category') . '</td>' . "\n";
    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));
开发者ID:spring,项目名称:spring-website,代码行数:31,代码来源:manage_config_email_page.php

示例10: user_ensure_exists

user_ensure_exists($f_user_id);
$t_user = user_get_row($f_user_id);
# Ensure that the account to be reset is of equal or lower access to the
# current user.
access_ensure_global_level($t_user['access_level']);
# If the password can be changed, we reset it, otherwise we unlock
# the account (i.e. reset failed login count)
$t_reset = helper_call_custom_function('auth_can_change_password', array());
if ($t_reset) {
    $t_result = user_reset_password($f_user_id);
} else {
    $t_result = user_reset_failed_login_count_to_zero($f_user_id);
}
$t_redirect_url = 'manage_user_page.php';
form_security_purge('manage_user_reset');
html_page_top(null, $t_result ? $t_redirect_url : null);
echo '<div class="success-msg">';
if ($t_reset) {
    if (false == $t_result) {
        # PROTECTED
        echo lang_get('account_reset_protected_msg');
    } else {
        # SUCCESSFUL RESET
        if (ON == config_get('send_reset_password') && ON == config_get('enable_email_notification')) {
            # send the new random password via email
            echo lang_get('account_reset_msg');
        } else {
            # email notification disabled, then set the password to blank
            echo lang_get('account_reset_msg2');
        }
    }
开发者ID:gtn,项目名称:mantisbt,代码行数:31,代码来源:manage_user_reset.php

示例11: bug_group_action_print_top

/**
 * Print the top part for the bug action group page.
 * @return void
 */
function bug_group_action_print_top()
{
    html_page_top();
}
开发者ID:derrickweaver,项目名称:mantisbt,代码行数:8,代码来源:bug_group_action_api.php

示例12: lang_get_failsave_custom_field

// Workaround to prevent error messages if custom_strings_inc.php is missing
function lang_get_failsave_custom_field($p_custom_field_name)
{
    if (lang_exists($p_custom_field_name, lang_get_current())) {
        $t_str = lang_get($p_custom_field_name);
    } else {
        $t_str = plugin_lang_get($p_custom_field_name);
    }
    return $t_str;
}
$t_locale_ranking_order = lang_get_failsave_custom_field('RankingOrder');
$t_locale_presentable = lang_get_failsave_custom_field('Presentable');
$t_locale_technical = lang_get_failsave_custom_field('Technical');
$t_locale_in_release_doku = lang_get_failsave_custom_field('InReleaseDocu');
$t_locale_planned_work = lang_get_failsave_custom_field('PlannedWork');
html_page_top(plugin_lang_get('manage_settings_title'));
$disable_combobox_task_unit = "";
# checks if the current user is administrator oder agileMantis administrator
if (current_user_is_administrator() || $_SESSION['AGILEMANTIS_ISMANTISADMIN'] == 1) {
    ?>
<br>
<?php 
    if ($_GET['error'] == 'workday_error') {
        $system = plugin_lang_get('manage_settings_error_984100');
    }
    if ($_GET['error'] == 'sprint_length_error') {
        $system = plugin_lang_get('manage_settings_error_984101');
    }
    if ($_GET['error'] == 'no_license_error') {
        $system = plugin_lang_get('manage_settings_error_984102');
    }
开发者ID:CarlosPinedaT,项目名称:agileMantis,代码行数:31,代码来源:config.php

示例13: Copyright

#
# Copyright (C) 2012-2014 gadiv GmbH
#
# agileMantis is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with agileMantis. If not, see <http://www.gnu.org/licenses/>.
html_page_top(plugin_lang_get('manage_capacity_title'));
?>
<br>
<?php 
include AGILEMANTIS_PLUGIN_URI . '/pages/footer_menu.php';
# add back button action
if ($_POST['back_button']) {
    header($agilemantis_sprint->forwardReturnToPage('capacity.php'));
} else {
    # save / update developer / team capacities
    if (!empty($_POST['capacity']) && !$_POST['addavailability']) {
        foreach ($_POST['capacity'] as $user => $date) {
            $count_over_capacity[$user] = 0;
            foreach ($date as $num => $row) {
                if ($row != "") {
                    $row = str_replace(',', '.', $row);
开发者ID:CarlosPinedaT,项目名称:agileMantis,代码行数:31,代码来源:capacity.php

示例14: require_api

 */
require_once 'core.php';
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;
    }
}
开发者ID:kaos,项目名称:mantisbt,代码行数:31,代码来源:manage_config_work_threshold_page.php

示例15: require_api

require_api('lang_api.php');
require_api('print_api.php');
require_api('project_api.php');
require_api('project_hierarchy_api.php');
require_api('string_api.php');
require_api('user_api.php');
require_api('utility_api.php');
require_api('version_api.php');
auth_reauthenticate();
$f_project_id = gpc_get_int('project_id');
$f_show_global_users = gpc_get_bool('show_global_users');
project_ensure_exists($f_project_id);
access_ensure_project_level(config_get('manage_project_threshold'), $f_project_id);
$row = project_get_row($f_project_id);
$t_can_manage_users = access_has_project_level(config_get('project_user_threshold'), $f_project_id);
html_page_top(project_get_field($f_project_id, 'name'));
print_manage_menu('manage_proj_edit_page.php');
?>
<br />
<!-- PROJECT PROPERTIES -->
<div align="center">
<form method="post" action="manage_proj_update.php">
<?php 
echo form_security_field('manage_proj_update');
?>
<table class="width75" cellspacing="1">

<!-- Title -->
<tr>
	<td class="form-title" colspan="2">
		<input type="hidden" name="project_id" value="<?php 
开发者ID:kaos,项目名称:mantisbt,代码行数:31,代码来源:manage_proj_edit_page.php


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