本文整理汇总了PHP中html_page_bottom1函数的典型用法代码示例。如果您正苦于以下问题:PHP html_page_bottom1函数的具体用法?PHP html_page_bottom1怎么用?PHP html_page_bottom1使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了html_page_bottom1函数的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: calculate_changes
/**
* Calculate page content
*/
function calculate_changes()
{
$specmanagement_print_api = new specmanagement_print_api();
$other_version = version_get($_POST['version_other']);
$my_version = version_get($_POST['version_my']);
$specified_versions = specify_version($my_version, $other_version);
$old_version = $specified_versions[0];
$new_version = $specified_versions[1];
$specmanagement_print_api->print_page_head(plugin_lang_get('changes_title') . ': ' . $old_version->version . ' / ' . $new_version->version);
echo '<table class="editor">';
print_changes_table_head($old_version, $new_version);
print_changes_table_body($old_version, $new_version);
$specmanagement_print_api->printTableFoot();
html_page_bottom1();
}
开发者ID:Cre-ator,项目名称:Whiteboard.SpecificationManagement-Plugin,代码行数:18,代码来源:changes.php
示例2: print_successful_redirect
function print_successful_redirect($p_redirect_to)
{
if (ON == config_get('show_queries_count')) {
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);
}
}
开发者ID:centaurustech,项目名称:BenFund,代码行数:15,代码来源:print_api.php
示例3: 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();
}
}
开发者ID:Cre-ator,项目名称:Whiteboard.SpecificationManagement-Plugin,代码行数:24,代码来源:version_graph.php
示例4: 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();
}
开发者ID:Cre-ator,项目名称:Whiteboard.SpecificationManagement-Plugin,代码行数:40,代码来源:choose_document.php
示例5: 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();
//.........这里部分代码省略.........
开发者ID:amjadtbssm,项目名称:website,代码行数:101,代码来源:error_api.php
示例6: helper_ensure_confirmed
function helper_ensure_confirmed($p_message, $p_button_label)
{
if (true == gpc_get_bool('_confirmed')) {
return true;
}
html_page_top1();
html_page_top2();
# @@@ we need to improve this formatting. I'd like the text to only
# be about 50% the width of the screen so that it doesn't become to hard
# to read.
print "<br />\n<div align=\"center\">\n";
print_hr();
print "\n{$p_message}\n";
print '<form method="post" action="' . $_SERVER['PHP_SELF'] . "\">\n";
print_hidden_inputs(gpc_strip_slashes($_POST));
print_hidden_inputs(gpc_strip_slashes($_GET));
print "<input type=\"hidden\" name=\"_confirmed\" value=\"1\" />\n";
print '<br /><br /><input type="submit" class="button" value="' . $p_button_label . '" />';
print "\n</form>\n";
print_hr();
print "</div>\n";
html_page_bottom1();
exit;
}
开发者ID:amjadtbssm,项目名称:website,代码行数:24,代码来源:helper_api.php
示例7: config_get
$t_core_path = config_get('core_path');
require_once $t_core_path . 'custom_field_api.php';
form_security_validate('manage_custom_field_delete');
auth_reauthenticate();
access_ensure_global_level(config_get('manage_custom_fields_threshold'));
$f_field_id = gpc_get_int('field_id');
$f_return = strip_tags(gpc_get_string('return', 'manage_custom_field_page.php'));
$t_definition = custom_field_get_definition($f_field_id);
if (0 < count(custom_field_get_project_ids($f_field_id))) {
helper_ensure_confirmed(lang_get('confirm_used_custom_field_deletion') . '<br/>' . lang_get('custom_field') . ': ' . string_attribute($t_definition['name']), lang_get('field_delete_button'));
} else {
helper_ensure_confirmed(lang_get('confirm_custom_field_deletion') . '<br/>' . lang_get('custom_field') . ': ' . string_attribute($t_definition['name']), lang_get('field_delete_button'));
}
custom_field_destroy($f_field_id);
form_security_purge('manage_custom_field_delete');
html_page_top1();
html_meta_redirect($f_return);
html_page_top2();
?>
<br />
<div align="center">
<?php
echo lang_get('operation_successful') . '<br />';
print_bracket_link($f_return, lang_get('proceed'));
?>
</div>
<?php
html_page_bottom1(__FILE__);
开发者ID:amjadtbssm,项目名称:website,代码行数:30,代码来源:manage_custom_field_delete.php
示例8: print_bracket_link
<td class="worklog-content">
<?php
echo $v_content;
?>
</td>
</tr>
</table>
</div>
<?php
}
# end for loop
?>
<p>
<div align="center">
<?php
if (access_has_project_level(DEVELOPER)) {
global $g_worklog_edit_page, $g_worklog_delete_page;
print_bracket_link($g_worklog_edit_page . "&f_id={$v_id}", lang_get('bugnote_edit_link'));
print_bracket_link($g_worklog_delete_page . "&f_id={$v_id}", lang_get('delete_link'));
}
global $g_worklog_menu_page;
if (OFF == plugin_config_get('worklog_view_window')) {
print_bracket_link($g_worklog_menu_page, lang_get('back_link'));
}
?>
</div>
<?php
html_page_bottom1();
开发者ID:pinke,项目名称:worklog,代码行数:30,代码来源:worklog_view_page.php
示例9: bug_group_action_print_bottom
/**
* Print the bottom part for the bug action group page.
*/
function bug_group_action_print_bottom()
{
html_page_bottom1(__FILE__);
}
开发者ID:amjadtbssm,项目名称:website,代码行数:7,代码来源:bug_group_action_api.php
示例10: html_page_bottom
/**
* Print the part of the page that comes below the page content
* $p_file should always be the __FILE__ variable. This is passed to show source
* @param string $p_file should always be the __FILE__ variable. This is passed to show source
* @return null
*/
function html_page_bottom($p_file = null)
{
html_page_bottom1($p_file);
}
开发者ID:nextgens,项目名称:mantisbt,代码行数:10,代码来源:html_api.php
示例11: auth_reauthenticate_page
/**
* Generate the intermediate authentication page.
* @param integer User ID
* @param string Username
*/
function auth_reauthenticate_page($p_user_id, $p_username)
{
$t_error = false;
if (true == gpc_get_bool('_authenticate')) {
$f_password = gpc_get_string('password', '');
if (auth_attempt_login($p_username, $f_password)) {
auth_set_tokens($p_user_id);
return true;
} else {
$t_error = true;
}
}
html_page_top1();
html_page_top2();
?>
<div align="center">
<p>
<?php
echo lang_get('reauthenticate_message');
if ($t_error != false) {
echo '<br/><font color="red">', lang_get('login_error'), '</font>';
}
?>
</p>
<form method="post" action="<?php
echo $_SERVER['PHP_SELF'];
?>
">
<?php
print_hidden_inputs(gpc_strip_slashes($_POST));
print_hidden_inputs(gpc_strip_slashes($_GET));
?>
<input type="hidden" name="_authenticate" value="1" />
<table class="width50 center">
<tr>
<td class="form-title"><?php
echo lang_get('reauthenticate_title');
?>
</td>
</tr>
<tr class="row-1">
<td class="category"><?php
echo lang_get('username');
?>
</td>
<td><input type="text" disabled="disabled" size="32" maxlength="32" value="<?php
echo $p_username;
?>
" /></td>
</tr>
<tr class="row-2">
<td class="category"><?php
echo lang_get('password');
?>
</td>
<td><input type="password" name="password" size="16" maxlength="32" /></td>
</tr>
<tr>
<td class="center" colspan="2"><input type="submit" class="button" value="<?php
echo lang_get('login_button');
?>
" /></td>
</tr>
</table>
</form>
</div>
<?php
html_page_bottom1();
exit;
}
开发者ID:amjadtbssm,项目名称:website,代码行数:83,代码来源:authentication_api.php
示例12: html_page_bottom
/**
* Print the part of the page that comes below the page content
* @return void
*/
function html_page_bottom()
{
html_page_bottom1();
}
开发者ID:spring,项目名称:spring-website,代码行数:8,代码来源:html_api.php
注:本文中的html_page_bottom1函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论