本文整理汇总了PHP中html_page_top1函数的典型用法代码示例。如果您正苦于以下问题:PHP html_page_top1函数的具体用法?PHP html_page_top1怎么用?PHP html_page_top1使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了html_page_top1函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: print_page_head
/**
* Prints head elements of a page
* @param $string
*/
public function print_page_head($string)
{
echo '<link rel="stylesheet" href="' . STORYBOARD_FILES_URI . 'storyboard.css">';
html_page_top1($string);
html_page_top2();
if (plugin_is_installed('WhiteboardMenu')) {
require_once WHITEBOARDMENU_CORE_URI . 'whiteboard_print_api.php';
$whiteboard_print_api = new whiteboard_print_api();
$whiteboard_print_api->printWhiteboardMenu();
}
$this->print_plugin_menu();
}
示例2: print_page_head
/**
* Prints head elements of a page
* @param $string
*/
public function print_page_head($string)
{
html_page_top1($string);
echo '<script language="javascript" type="text/javascript" src="' . SPECMANAGEMENT_PLUGIN_URL . 'files/checkbox.js"></script>';
echo '<link rel="stylesheet" href="' . SPECMANAGEMENT_PLUGIN_URL . 'files/specmanagement.css">';
html_page_top2();
if (plugin_is_installed('WhiteboardMenu') && file_exists(config_get_global('plugin_path') . 'WhiteboardMenu')) {
require_once WHITEBOARDMENU_CORE_URI . 'whiteboard_print_api.php';
$whiteboard_print_api = new whiteboard_print_api();
$whiteboard_print_api->printWhiteboardMenu();
}
$this->print_plugin_menu();
}
开发者ID:Cre-ator,项目名称:Whiteboard.SpecificationManagement-Plugin,代码行数:17,代码来源:specmanagement_print_api.php
示例3: print_successful_redirect
function print_successful_redirect($p_redirect_to)
{
if (helper_show_queries()) {
html_meta_redirect($p_redirect_to);
html_page_top1();
html_page_top2();
print '<br /><div class="center">';
print lang_get('operation_successful') . '<br />';
print_bracket_link($p_redirect_to, lang_get('proceed'));
print '</div>';
html_page_bottom1();
} else {
print_header_redirect($p_redirect_to);
}
}
示例4: calculate_page_content
/**
* @param $print_flag
*/
function calculate_page_content($print_flag)
{
$specmanagement_print_api = new specmanagement_print_api();
html_page_top1(plugin_lang_get('menu_versgraph'));
echo '<link rel="stylesheet" href="' . SPECMANAGEMENT_PLUGIN_URL . 'files/specmanagement.css">';
if (!$print_flag) {
html_page_top2();
if (plugin_is_installed('WhiteboardMenu') && file_exists(config_get_global('plugin_path') . 'WhiteboardMenu')) {
require_once WHITEBOARDMENU_CORE_URI . 'whiteboard_print_api.php';
$whiteboard_print_api = new whiteboard_print_api();
$whiteboard_print_api->printWhiteboardMenu();
}
$specmanagement_print_api->print_plugin_menu();
echo '<div align="center">';
echo '<hr size="1" width="100%" />';
}
print_table($print_flag);
if (!$print_flag) {
html_page_bottom1();
}
}
示例5: calculate_page_content
function calculate_page_content()
{
$specmanagement_database_api = new specmanagement_database_api();
$specmanagement_print_api = new specmanagement_print_api();
$types = array();
$types_rows = $specmanagement_database_api->get_full_types();
foreach ($types_rows as $types_row) {
$types[] = $types_row[1];
}
html_page_top1(plugin_lang_get('select_doc_title'));
echo '<link rel="stylesheet" href="' . SPECMANAGEMENT_PLUGIN_URL . 'files/specmanagement.css">';
html_page_top2();
// if ( plugin_is_installed( 'WhiteboardMenu' ) && file_exists ( config_get_global ( 'plugin_path' ) . 'WhiteboardMenu' ) )
// {
// require_once WHITEBOARDMENU_CORE_URI . 'whiteboard_print_api.php';
// $whiteboard_print_api = new whiteboard_print_api();
// $whiteboard_print_api->printWhiteboardMenu();
// }
if (project_includes_user(helper_get_current_project(), auth_get_current_user_id()) || helper_get_current_project() == 0 || user_is_administrator(auth_get_current_user_id())) {
echo '<div align="center">';
echo '<hr size="1" width="50%" />';
$specmanagement_print_api->printTableTop('50');
$specmanagement_print_api->printFormTitle(2, 'menu_title');
$specmanagement_print_api->printCategoryField(1, 1, 'select_type');
echo '<td>';
echo '<form method="post" name="form_set_source" action="' . plugin_page('editor') . '">';
print_document_selection($types);
$specmanagement_print_api->printRow();
echo '<td class="center" colspan="2">';
echo '<input type="submit" name="formSubmit" class="button" value="' . plugin_lang_get('select_confirm') . '"/>';
echo '</td>';
echo '</tr>';
echo '</form>';
echo '</td>';
$specmanagement_print_api->printTableFoot();
} else {
echo '<table class="width60"><tr><td class="center">' . lang_get('access_denied') . '</td></tr></table>';
}
html_page_bottom1();
}
示例6: error_handler
function error_handler($p_type, $p_error, $p_file, $p_line, $p_context)
{
global $g_error_parameters, $g_error_handled, $g_error_proceed_url;
global $g_lang_overrides;
global $g_error_send_page_header;
# check if errors were disabled with @ somewhere in this call chain
# also suppress php 5 strict warnings
if (0 == error_reporting() || 2048 == $p_type) {
return;
}
$t_lang_pushed = false;
# flush any language overrides to return to user's natural default
if (function_exists('db_is_connected')) {
if (db_is_connected()) {
lang_push(lang_get_default());
$t_lang_pushed = true;
}
}
$t_short_file = basename($p_file);
$t_method_array = config_get('display_errors');
if (isset($t_method_array[$p_type])) {
$t_method = $t_method_array[$p_type];
} else {
$t_method = 'none';
}
# build an appropriate error string
switch ($p_type) {
case E_WARNING:
$t_error_type = 'SYSTEM WARNING';
$t_error_description = $p_error;
break;
case E_NOTICE:
$t_error_type = 'SYSTEM NOTICE';
$t_error_description = $p_error;
break;
case E_USER_ERROR:
$t_error_type = "APPLICATION ERROR #{$p_error}";
$t_error_description = error_string($p_error);
break;
case E_USER_WARNING:
$t_error_type = "APPLICATION WARNING #{$p_error}";
$t_error_description = error_string($p_error);
break;
case E_USER_NOTICE:
# used for debugging
$t_error_type = 'DEBUG';
$t_error_description = $p_error;
break;
default:
#shouldn't happen, just display the error just in case
$t_error_type = '';
$t_error_description = $p_error;
}
$t_error_description = nl2br($t_error_description);
if ('halt' == $t_method) {
$t_old_contents = ob_get_contents();
# ob_end_clean() still seems to call the output handler which
# outputs the headers indicating compression. If we had
# PHP > 4.2.0 we could use ob_clean() instead but as it is
# we need to disable compression.
compress_disable();
if (ob_get_length()) {
ob_end_clean();
}
# don't send the page header information if it has already been sent
if ($g_error_send_page_header) {
html_page_top1();
if ($p_error != ERROR_DB_QUERY_FAILED) {
html_page_top2();
} else {
html_page_top2a();
}
}
print '<br /><div align="center"><table class="width50" cellspacing="1">';
print "<tr><td class=\"form-title\">{$t_error_type}</td></tr>";
print "<tr><td><p class=\"center\" style=\"color:red\">{$t_error_description}</p></td></tr>";
print '<tr><td><p class="center">';
if (null === $g_error_proceed_url) {
print lang_get('error_no_proceed');
} else {
print "<a href=\"{$g_error_proceed_url}\">" . lang_get('proceed') . '</a>';
}
print '</p></td></tr>';
if (ON == config_get('show_detailed_errors')) {
print '<tr><td>';
error_print_details($p_file, $p_line, $p_context);
print '</td></tr>';
print '<tr><td>';
error_print_stack_trace();
print '</td></tr>';
}
print '</table></div>';
if ($g_error_handled && !is_blank($t_old_contents)) {
print '<p>Previous non-fatal errors occurred. Page contents follow.</p>';
print '<div style="border: solid 1px black;padding: 4px">';
print $t_old_contents;
print '</div>';
}
if ($p_error != ERROR_DB_QUERY_FAILED) {
html_page_bottom1();
//.........这里部分代码省略.........
示例7: access_ensure_project_level
} else {
access_ensure_project_level(config_get('report_bug_threshold'));
$f_product_version = gpc_get_string('product_version', '');
$f_category = gpc_get_string('category', config_get('default_bug_category'));
$f_reproducibility = gpc_get_int('reproducibility', config_get('default_bug_reproducibility'));
$f_severity = gpc_get_int('severity', config_get('default_bug_severity'));
$f_priority = gpc_get_int('priority', config_get('default_bug_priority'));
$f_summary = gpc_get_string('summary', '');
$f_description = gpc_get_string('description', '');
$f_additional_info = gpc_get_string('additional_info', config_get('default_bug_additional_info'));
$f_view_state = gpc_get_int('view_state', config_get('default_bug_view_status'));
$t_project_id = helper_get_current_project();
$t_changed_project = false;
}
$f_report_stay = gpc_get_bool('report_stay', false);
html_page_top1(lang_get('report_bug_link'));
html_page_top2();
print_recently_visited();
?>
<br />
<div align="center">
<form name="report_bug_form" method="post" <?php
if (file_allow_bug_upload()) {
echo 'enctype="multipart/form-data"';
}
?>
action="bug_report.php">
<table class="width75" cellspacing="1">
示例8: auth_reauthenticate
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
auth_reauthenticate();
access_ensure_global_level(config_get('manage_plugin_threshold'));
html_page_top1(plugin_lang_get('title'));
html_page_top2();
print_manage_menu();
?>
<br/>
<table align="center" class="width50" cellspacing="1" style="border:none">
<tr >
<td style="text-align:right;">
[ <?php
echo plugin_lang_get('main_plugin_config');
?>
]
[ <a href=" <?php
echo plugin_page('config_xmpp_login', true);
?>
示例9: plugin_require_api
plugin_require_api('core/Period.php');
require_api('access_api.php');
require_api('config_api.php');
require_api('gpc_api.php');
require_api('html_api.php');
require_api('plugin_api.php');
require_js('jscalendar/calendar.js');
require_js('jscalendar/lang/calendar-en.js');
require_js('jscalendar/calendar-setup.js');
require_css('calendar-blue.css');
access_ensure_project_level(config_get('view_summary_threshold'));
$f_interval = gpc_get_int('interval', 0);
$t_today = date('Y-m-d');
$f_type = gpc_get_int('graph_type', 0);
$f_show_as_table = gpc_get_bool('show_table', false);
html_page_top1(plugin_lang_get('graph_page'));
$t_path = config_get('path');
html_page_top2();
$t_period = new Period();
$t_period->set_period_from_selector('interval');
$t_types = array(0 => plugin_lang_get('select'), 2 => plugin_lang_get('select_bystatus'), 3 => plugin_lang_get('select_summbystatus'), 4 => plugin_lang_get('select_bycat'), 6 => plugin_lang_get('select_both'));
$t_show = array(0 => plugin_lang_get('show_as_graph'), 1 => plugin_lang_get('show_as_table'));
?>
<form name="graph_form" method="post" action="<?php
echo plugin_page('bug_graph_page.php');
?>
">
<table class="width100" cellspacing="1">
<tr>
<td>
示例10: gpc_get_int
$f_news_id = gpc_get_int('news_id');
$f_action = gpc_get_string('action', '');
# If deleting item redirect to delete script
if ('delete' == $f_action) {
require_once 'news_delete.php';
exit;
}
# 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_top1(lang_get('edit_news_title'));
html_page_top2();
?>
<?php
# 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">
示例11: explode
if (!is_blank(gpc_get_cookie($t_cookie_name, ''))) {
$t_manage_arr = explode(':', gpc_get_cookie($t_cookie_name));
$f_hide = $t_manage_arr[0];
if (isset($t_manage_arr[1])) {
$f_sort = $t_manage_arr[1];
} else {
$f_sort = 'username';
}
if (isset($t_manage_arr[2])) {
$f_dir = $t_manage_arr[2];
} else {
$f_dir = 'DESC';
}
}
}
html_page_top1(lang_get('manage_users_link'));
html_page_top2();
?>
<?php
print_manage_menu('manage_user_page.php');
?>
<?php
# New Accounts Form BEGIN
$days_old = 7;
$query = "SELECT *\n\t\tFROM {$t_user_table}\n\t\tWHERE " . db_helper_compare_days(db_now(), "date_created", "<= '{$days_old}'") . "\n\t\tORDER BY date_created DESC";
$result = db_query($query);
$new_user_count = db_num_rows($result);
if ($new_user_count > 0) {
?>
示例12: filter_get_bug_rows
$t_page_count = null;
$rows = filter_get_bug_rows($f_page_number, $t_per_page, $t_page_count, $t_bug_count, null, null, null, true);
if ($rows === false) {
print_header_redirect('view_all_set.php?type=0');
}
$t_bugslist = array();
$t_users_handlers = array();
$t_project_ids = array();
$t_row_count = count($rows);
for ($i = 0; $i < $t_row_count; $i++) {
array_push($t_bugslist, $rows[$i]->id);
$t_users_handlers[] = $rows[$i]->handler_id;
$t_project_ids[] = $rows[$i]->project_id;
}
$t_unique_users_handlers = array_unique($t_users_handlers);
$t_unique_project_ids = array_unique($t_project_ids);
user_cache_array_rows($t_unique_users_handlers);
project_cache_array_rows($t_unique_project_ids);
gpc_set_cookie(config_get('bug_list_cookie'), implode(',', $t_bugslist));
compress_enable();
# don't index view issues pages
html_robots_noindex();
html_page_top1(lang_get('view_bugs_link'));
if (current_user_get_pref('refresh_delay') > 0) {
html_meta_redirect('view_all_bug_page.php?page_number=' . $f_page_number, current_user_get_pref('refresh_delay') * 60);
}
html_page_top2();
print_recently_visited();
define('VIEW_ALL_INC_ALLOW', true);
include dirname(__FILE__) . DIRECTORY_SEPARATOR . 'view_all_inc.php';
html_page_bottom();
示例13: error_handler
//.........这里部分代码省略.........
} else {
switch ($t_method) {
case DISPLAY_ERROR_HALT:
# disable any further event callbacks
if (function_exists('event_clear_callbacks')) {
event_clear_callbacks();
}
$t_oblen = ob_get_length();
if ($t_oblen > 0) {
$t_old_contents = ob_get_contents();
if (!error_handled()) {
# Retrieve the previously output header
if (false !== preg_match_all('|^(.*)(</head>.*$)|is', $t_old_contents, $t_result) && isset($t_result[1]) && isset($t_result[1][0])) {
$t_old_headers = $t_result[1][0];
unset($t_old_contents);
}
}
}
# We need to ensure compression is off - otherwise the compression headers are output.
compress_disable();
# then clean the buffer, leaving output buffering on.
if ($t_oblen > 0) {
ob_clean();
}
# If HTML error output was disabled, set an error header and stop
if (defined('DISABLE_INLINE_ERROR_REPORTING')) {
# @TODO Have a mapping for mantis error codes to appropiate HTTP error codes
header(' ', true, 400);
exit(1);
}
# don't send the page header information if it has already been sent
if ($g_error_send_page_header) {
if ($t_html_api) {
html_page_top1();
if ($p_error != ERROR_DB_QUERY_FAILED && $t_db_connected == true) {
html_page_top2();
} else {
html_page_top2a();
}
} else {
echo '<html><head><title>', $t_error_type, '</title></head><body>';
}
} else {
# Output the previously sent headers, if defined
if (isset($t_old_headers)) {
echo $t_old_headers, "\n";
html_page_top2();
}
}
echo '<div id="error-msg">';
echo '<div class="error-type">' . $t_error_type . '</div>';
echo '<div class="error-description">', $t_error_description, '</div>';
echo '<div class="error-info">';
if (null === $g_error_proceed_url) {
echo lang_get('error_no_proceed');
} else {
echo '<a href="', $g_error_proceed_url, '">', lang_get('proceed'), '</a>';
}
echo '</div>';
if (ON == config_get_global('show_detailed_errors')) {
echo '<div class="error-details">';
error_print_details($p_file, $p_line, $p_context);
echo '</div>';
echo '<div class="error-trace">';
error_print_stack_trace();
echo '</div>';
示例14: config_get
# You should have received a copy of the GNU General Public License
# along with Mantis. If not, see <http://www.gnu.org/licenses/>.
# --------------------------------------------------------
# $Id: manage_proj_edit_page.php,v 1.104.2.2 2007-10-19 07:25:59 vboctor Exp $
# --------------------------------------------------------
require_once 'core.php';
$t_core_path = config_get('core_path');
require_once $t_core_path . 'category_api.php';
require_once $t_core_path . 'version_api.php';
require_once $t_core_path . 'custom_field_api.php';
require_once $t_core_path . 'icon_api.php';
auth_reauthenticate();
$f_project_id = gpc_get_int('project_id');
access_ensure_project_level(config_get('manage_project_threshold'), $f_project_id);
$row = project_get_row($f_project_id);
html_page_top1(project_get_field($f_project_id, 'name'));
html_page_top2();
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 -->
示例15: config_get
# RESTRICTIONS & PERMISSIONS
# - User must be authenticated, and not anonymous
# - sponsorship must be enabled
require_once 'core.php';
$t_core_path = config_get('core_path');
require_once $t_core_path . 'current_user_api.php';
if (config_get('enable_sponsorship') == OFF) {
trigger_error(ERROR_SPONSORSHIP_NOT_ENABLED, ERROR);
}
# anonymous users are not allowed to sponsor issues
if (current_user_is_anonymous()) {
access_denied();
}
$t_show_all = gpc_get_bool('show_all', false);
# start the page
html_page_top1(lang_get('my_sponsorship'));
html_page_top2();
$t_project = helper_get_current_project();
?>
<br />
<table class="width100" cellspacing="1">
<tr>
<td class="form-title">
<?php
echo lang_get('my_sponsorship');
?>
</td>
<td class="right">
<?php
print_account_menu('account_sponsor_page.php');
?>