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


PHP print_bracket_link函数代码示例

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


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

示例1: access_denied

function access_denied()
{
    if (!auth_is_user_authenticated()) {
        if (basename($_SERVER['SCRIPT_NAME']) != 'login_page.php') {
            $t_return_page = $_SERVER['PHP_SELF'];
            if (isset($_SERVER['QUERY_STRING'])) {
                $t_return_page .= '?' . $_SERVER['QUERY_STRING'];
            }
            $t_return_page = string_url(string_sanitize_url($t_return_page));
            print_header_redirect('login_page.php?return=' . $t_return_page);
        }
    } else {
        if (auth_get_current_user_id() == user_get_id_by_name(config_get_global('anonymous_account'))) {
            if (basename($_SERVER['SCRIPT_NAME']) != 'login_page.php') {
                $t_return_page = $_SERVER['PHP_SELF'];
                if (isset($_SERVER['QUERY_STRING'])) {
                    $t_return_page .= '?' . $_SERVER['QUERY_STRING'];
                }
                $t_return_page = string_url(string_sanitize_url($t_return_page));
                echo '<center>';
                echo '<p>' . error_string(ERROR_ACCESS_DENIED) . '</p>';
                print_bracket_link('login_page.php?return=' . $t_return_page, lang_get('click_to_login'));
                echo '<p></p>';
                print_bracket_link('main_page.php', lang_get('proceed'));
                echo '</center>';
            }
        } else {
            echo '<center>';
            echo '<p>' . error_string(ERROR_ACCESS_DENIED) . '</p>';
            print_bracket_link('main_page.php', lang_get('proceed'));
            echo '</center>';
        }
    }
    exit;
}
开发者ID:jin255ff,项目名称:company_website,代码行数:35,代码来源:access_api.php

示例2: print_version_header

function print_version_header($p_version_row)
{
    $t_project_id = $p_version_row['project_id'];
    $t_version_id = $p_version_row['id'];
    $t_version_name = $p_version_row['version'];
    $t_project_name = project_get_field($t_project_id, 'name');
    $t_release_title = '<a href="roadmap_page.php?project_id=' . $t_project_id . '">' . string_display_line($t_project_name) . '</a> - <a href="roadmap_page.php?version_id=' . $t_version_id . '">' . string_display_line($t_version_name) . '</a>';
    if (config_get('show_roadmap_dates')) {
        $t_version_timestamp = $p_version_row['date_order'];
        $t_scheduled_release_date = ' (' . lang_get('scheduled_release') . ' ' . string_display_line(date(config_get('short_date_format'), $t_version_timestamp)) . ')';
    } else {
        $t_scheduled_release_date = '';
    }
    echo '<tt>';
    echo '<br />', $t_release_title, $t_scheduled_release_date, lang_get('word_separator'), print_bracket_link('view_all_set.php?type=1&temporary=y&' . FILTER_PROPERTY_PROJECT_ID . '=' . $t_project_id . '&' . filter_encode_field_and_value(FILTER_PROPERTY_TARGET_VERSION, $t_version_name), lang_get('view_bugs_link')), '<br />';
    $t_release_title_without_hyperlinks = $t_project_name . ' - ' . $t_version_name . $t_scheduled_release_date;
    echo utf8_str_pad('', utf8_strlen($t_release_title_without_hyperlinks), '='), '<br />';
}
开发者ID:nourchene-benslimane,项目名称:mantisV0,代码行数:18,代码来源:roadmap_page.php

示例3: ERP_print_menu

function ERP_print_menu($p_page = '')
{
    $t_pages = array('plugin_lang_get' => array('manage_config', 'manage_mailbox'), 'lang_get' => array('documentation_link' => 'view_readme', 'changelog_link' => 'view_changelog'));
    if (plugin_config_get('mail_rule_system') == TRUE) {
        $t_pages['plugin_lang_get'] = array_merge($t_pages['plugin_lang_get'], array('manage_rule'));
    }
    if (access_has_global_level(config_get('manage_plugin_threshold'))) {
        echo '<div align="center"><p>';
        foreach ($t_pages as $t_lang_function => $t_pageset) {
            foreach ($t_pageset as $t_page_lang => $t_page_name) {
                if (is_int($t_page_lang)) {
                    $t_page_lang = $t_page_name;
                }
                $t_page = $p_page !== $t_page_name ? plugin_page($t_page_name) : NULL;
                print_bracket_link($t_page, $t_lang_function($t_page_lang));
            }
        }
        echo '</p></div>';
    }
}
开发者ID:mikemol,项目名称:EmailReporting,代码行数:20,代码来源:config_api.php

示例4: print_version_header

/**
 * Print header for the specified project version.
 * @param int $p_version_id a valid version id
 * @return null
 */
function print_version_header($p_version_id)
{
    $t_project_id = version_get_field($p_version_id, 'project_id');
    $t_version_name = version_get_field($p_version_id, 'version');
    $t_project_name = project_get_field($t_project_id, 'name');
    $t_release_title = '<a href="changelog_page.php?project_id=' . $t_project_id . '">' . string_display_line($t_project_name) . '</a> - <a href="changelog_page.php?version_id=' . $p_version_id . '">' . string_display_line($t_version_name) . '</a>';
    if (config_get('show_changelog_dates')) {
        $t_version_released = version_get_field($p_version_id, 'released');
        $t_release_timestamp = version_get_field($p_version_id, 'date_order');
        if ((bool) $t_version_released) {
            $t_release_date = ' (' . lang_get('released') . ' ' . string_display_line(date(config_get('short_date_format'), $t_release_timestamp)) . ')';
        } else {
            $t_release_date = ' (' . lang_get('not_released') . ')';
        }
    } else {
        $t_release_date = '';
    }
    echo '<br />', $t_release_title, $t_release_date, lang_get('word_separator'), print_bracket_link('view_all_set.php?type=1&temporary=y&' . FILTER_PROPERTY_PROJECT_ID . '=' . $t_project_id . '&' . filter_encode_field_and_value(FILTER_PROPERTY_FIXED_IN_VERSION, $t_version_name), lang_get('view_bugs_link')), '<br />';
    $t_release_title_without_hyperlinks = $t_project_name . ' - ' . $t_version_name . $t_release_date;
    echo utf8_str_pad('', utf8_strlen($t_release_title_without_hyperlinks), '='), '<br />';
}
开发者ID:WebuddhaInc,项目名称:mantisbt-plugin-wbquickreport,代码行数:26,代码来源:changelog_page.php

示例5: access_denied

function access_denied($p_url = null)
{
    if (null === $p_url) {
        global $g_logout;
        $p_url = $g_logout;
    }
    print_html_top();
    print_head_top();
    print_title(config_get('window_title'));
    print_css(config_get('css_inc_file'));
    print_head_bottom();
    print_body_top();
    print_header(config_get('page_title'));
    print_top_page(config_get('top_page_inc'));
    echo '<div class="warning">';
    echo '<div align="center">Access Denied<br /><br />';
    print_bracket_link($p_url, lang_get('proceed'));
    print '</div></div>';
    print_bottom_page(config_get('bottom_page_inc'));
    print_footer(__FILE__);
    print_body_bottom();
    print_html_bottom();
    exit;
}
开发者ID:BackupTheBerlios,项目名称:webnotes-svn,代码行数:24,代码来源:access_api.php

示例6: access_denied

function access_denied()
{
    if (!php_version_at_least('4.1.0')) {
        global $_SERVER;
    }
    if (!auth_is_user_authenticated()) {
        if (basename($_SERVER['SCRIPT_NAME']) != 'login_page.php') {
            if (!isset($_SERVER['REQUEST_URI'])) {
                if (!isset($_SERVER['QUERY_STRING'])) {
                    $_SERVER['QUERY_STRING'] = '';
                }
                $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'] . '?' . $_SERVER['QUERY_STRING'];
            }
            $t_return_page = string_url($_SERVER['REQUEST_URI']);
            print_header_redirect('login_page.php?return=' . $t_return_page);
        }
    } else {
        echo '<center>';
        echo '<p>' . error_string(ERROR_ACCESS_DENIED) . '</p>';
        print_bracket_link('main_page.php', lang_get('proceed'));
        echo '</center>';
    }
    exit;
}
开发者ID:centaurustech,项目名称:BenFund,代码行数:24,代码来源:access_api.php

示例7: print_lost_password_link

function print_lost_password_link()
{
    # lost password feature disabled or reset password via email disabled -> stop here!
    if (LDAP != config_get_global('login_method') && ON == config_get('lost_password_feature') && ON == config_get('send_reset_password') && ON == config_get('enable_email_notification')) {
        print_bracket_link('lost_pwd_page.php', lang_get('lost_password_link'));
    }
}
开发者ID:nextgens,项目名称:mantisbt,代码行数:7,代码来源:print_api.php

示例8: require_api

require_api('constant_inc.php');
require_api('gpc_api.php');
require_api('html_api.php');
require_api('lang_api.php');
require_api('news_api.php');
require_api('print_api.php');
news_ensure_enabled();
$f_news_id = gpc_get_int('news_id', null);
html_page_top();
?>

<?php 
if ($f_news_id !== null) {
    $t_project_id = news_get_field($f_news_id, 'project_id');
    if (news_is_private($f_news_id)) {
        access_ensure_project_level(config_get('private_news_threshold'), $t_project_id);
    } else {
        access_ensure_project_level(VIEWER, $t_project_id);
    }
    print_news_string_by_news_id($f_news_id);
}
?>

<div id="news-menu">
	<?php 
print_bracket_link('news_list_page.php', lang_get('archives'));
?>
</div>

<?php 
html_page_bottom();
开发者ID:N0ctrnl,项目名称:mantisbt,代码行数:31,代码来源:news_view_page.php

示例9: form_security_field

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;
?>
" />
		<?php 
echo lang_get('headline');
?>
	</td>
	<td class="right">
		<?php 
print_bracket_link('news_menu_page.php', lang_get('go_back'));
?>
	</td>
</tr>
<tr class="row-1">
	<td class="category" width="25%">
		<span class="required">*</span><?php 
echo lang_get('headline');
?>
	</td>
	<td width="75%">
		<input type="text" name="headline" size="64" maxlength="64" value="<?php 
echo $v_headline;
?>
" />
	</td>
开发者ID:Tarendai,项目名称:spring-website,代码行数:31,代码来源:news_edit_page.php

示例10: relationship_view_box

/**
 * print HTML relationship form
 * @param integer $p_bug_id A bug identifier.
 * @return void
 */
function relationship_view_box($p_bug_id)
{
    ?>
<br/>

<?php 
    collapse_open('relationships');
    ?>
<table class="width100" cellspacing="1">
<tr class="row-2">
	<td width="15%" class="form-title" colspan="2">
		<?php 
    collapse_icon('relationships');
    echo lang_get('bug_relationships');
    if (ON == config_get('relationship_graph_enable')) {
        ?>
		<span class="small"><?php 
        print_bracket_link('bug_relationship_graph.php?bug_id=' . $p_bug_id . '&graph=relation', lang_get('relation_graph'));
        ?>
</span>
		<span class="small"><?php 
        print_bracket_link('bug_relationship_graph.php?bug_id=' . $p_bug_id . '&graph=dependency', lang_get('dependency_graph'));
        ?>
</span>
		<?php 
    }
    ?>
	</td>
</tr>
<?php 
    # bug not read-only and user authenticated
    if (!bug_is_readonly($p_bug_id)) {
        # user access level at least updater
        if (access_has_bug_level(config_get('update_bug_threshold'), $p_bug_id)) {
            ?>
<tr class="row-1">
	<th class="category"><?php 
            echo lang_get('add_new_relationship');
            ?>
</th>
	<td><?php 
            echo lang_get('this_bug');
            ?>
		<form method="post" action="bug_relationship_add.php">
		<?php 
            echo form_security_field('bug_relationship_add');
            ?>
		<input type="hidden" name="src_bug_id" value="<?php 
            echo $p_bug_id;
            ?>
" size="4" />
		<?php 
            relationship_list_box(config_get('default_bug_relationship'));
            ?>
		<input type="text" name="dest_bug_id" value="" />
		<input type="submit" name="add_relationship" class="button" value="<?php 
            echo lang_get('add_new_relationship_button');
            ?>
" />
		</form>
	</td></tr>
<?php 
        }
    }
    ?>
<tr>
	<td colspan="2"><?php 
    echo relationship_get_summary_html($p_bug_id);
    ?>
</td>
</tr>
</table>

<?php 
    collapse_closed('relationships');
    ?>
<table class="width100" cellspacing="1">
<tr>
	<td class="form-title">
		<?php 
    collapse_icon('relationships');
    echo lang_get('bug_relationships');
    ?>
	</td>
</tr>
</table>

<?php 
    collapse_end('relationships');
}
开发者ID:derrickweaver,项目名称:mantisbt,代码行数:95,代码来源:relationship_api.php

示例11: lang_get

echo $f_master_bug_id;
?>
" />
		<input type="hidden" name="project_id" value="<?php 
echo $t_project_id;
?>
" />
		<input type="hidden" name="handler_id" value="0" />
		<?php 
echo lang_get('enter_report_details_title');
?>
	</td>
	<td class="right">
		<?php 
if (BOTH == config_get('show_report')) {
    print_bracket_link('bug_report_advanced_page.php' . ($f_master_bug_id > 0 ? '?m_id=' . $f_master_bug_id : ''), lang_get('advanced_report_link'));
}
?>
	</td>
</tr>


<!-- Category -->
<tr <?php 
echo helper_alternate_class();
?>
>
	<td class="category" width="30%">
		<?php 
echo '<span class="required">*</span>', lang_get('category');
?>
开发者ID:jin255ff,项目名称:company_website,代码行数:31,代码来源:bug_report_page.php

示例12: sprintf

<table class="width100" cellspacing="1">

<!-- Title -->
<tr>
	<td class="form-title" colspan="2">
		<?php 
echo sprintf(lang_get('tag_update'), $t_name);
?>
		<input type="hidden" name="tag_id" value="<?php 
echo $f_tag_id;
?>
"/>
	</td>
	<td class="right" colspan="3">
		<?php 
print_bracket_link('tag_view_page.php?tag_id=' . $f_tag_id, lang_get('tag_update_return'));
?>
	</td>
</tr>

<!-- Info -->
<tr class="row-category">
	<td width="15%"><?php 
echo lang_get('tag_id');
?>
</td>
	<td width="25%"><?php 
echo lang_get('tag_name');
?>
</td>
	<td width="20%"><?php 
开发者ID:nourchene-benslimane,项目名称:mantisV0,代码行数:31,代码来源:tag_update_page.php

示例13: print_summary_menu

function print_summary_menu($p_page = '')
{
    print '<div align="center">';
    print_bracket_link('print_all_bug_page.php', lang_get('print_all_bug_page_link'));
    if (config_get('use_jpgraph') != 0) {
        $t_summary_page = 'summary_page.php';
        $t_summary_jpgraph_page = 'summary_jpgraph_page.php';
        switch ($p_page) {
            case $t_summary_page:
                $t_summary_page = '';
                break;
            case $t_summary_jpgraph_page:
                $t_summary_jpgraph_page = '';
                break;
        }
        print_bracket_link($t_summary_page, lang_get('summary_link'));
        print_bracket_link($t_summary_jpgraph_page, lang_get('summary_jpgraph_link'));
    }
    print '</div>';
}
开发者ID:amjadtbssm,项目名称:website,代码行数:20,代码来源:html_api.php

示例14: implode

                    }
                }
            }
        }
        if (0 < count($t_depends)) {
            $t_depends = implode($t_depends, '<br />');
        } else {
            $t_depends = '<span class="small dependency_met">' . lang_get('plugin_no_depends') . '</span>';
        }
        echo '<tr ', helper_alternate_class(), '>';
        echo '<td class="small center">', $t_name, '</td>';
        echo '<td class="small">', $t_description, $t_author, $t_url, '</td>';
        echo '<td class="center">', $t_depends, '</td>';
        echo '<td class="center">';
        if ($t_ready) {
            print_bracket_link('manage_plugin_install.php?name=' . $t_basename . form_security_param('manage_plugin_install'), lang_get('plugin_install'));
        }
        echo '</td></tr>';
    }
    ?>

</table>
<?php 
}
?>

<br /><?php 
echo lang_get('plugin_key');
?>
:
<span class='dependency_met'><?php 
开发者ID:nourchene-benslimane,项目名称:mantisV0,代码行数:31,代码来源:manage_plugin_page.php

示例15: html_page_top1

<?php

require "faq_api.php";
require "css_faq.php";
html_page_top1();
html_page_top2();
access_ensure_project_level(DEVELOPER);
$f_id = gpc_get_int('f_id');
# Delete the faq entry
$result = faq_delete_query($f_id);
$t_redirect_url = $g_faq_menu_page;
if ($result) {
    ?>
	<div align="center">
<?php 
    print lang_get('operation_successful') . '<p>';
} else {
    print_mantis_error(ERROR_GENERIC);
}
if (ON == plugin_config_get('faq_view_window')) {
    ?>
	<a href="javascript:window.opener='x';window.close();">Close Window</a>
<?php 
} else {
    print_bracket_link($g_faq_menu_page, lang_get('proceed'));
}
?>
</div>
<?php 
html_page_bottom1();
开发者ID:xxNull-lsk,项目名称:faq,代码行数:30,代码来源:faq_delete.php


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