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


PHP help_button函数代码示例

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


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

示例1: printnode

function printnode($nodeid, $text, $depth = 0, $delete_ok = false)
{
    global $Language;
    $purifier = Codendi_HTMLPurifier::instance();
    // print current node, then all subnodes
    print '<BR>';
    for ($i = 0; $i < $depth; $i++) {
        print "&nbsp; &nbsp; ";
    }
    html_image('ic/cfolder15.png', array());
    print '&nbsp; ' . $purifier->purify($text) . " ";
    if ($nodeid != 0) {
        print '&nbsp; <A href="trove_cat_edit.php?trove_cat_id=' . $nodeid . '">[' . $Language->getText('admin_trove_cat_list', 'edit') . ']</A> ';
    }
    if ($delete_ok) {
        print '&nbsp; <A href="trove_cat_delete.php?trove_cat_id=' . $nodeid . '">[' . $Language->getText('admin_trove_cat_list', 'delete') . ']</A> ';
    }
    if ($nodeid != 0) {
        print '&nbsp;' . help_button('trove_cat', $nodeid) . "\n";
    }
    $res_child = db_query("SELECT trove_cat_id,fullname,parent FROM trove_cat " . "WHERE parent='" . db_ei($nodeid) . "' ORDER BY fullpath");
    while ($row_child = db_fetch_array($res_child)) {
        $delete_ok = $row_child["parent"] != 0;
        printnode($row_child["trove_cat_id"], $row_child["fullname"], $depth + 1, $delete_ok);
    }
}
开发者ID:pombredanne,项目名称:tuleap,代码行数:26,代码来源:trove_cat_list.php

示例2: _toolbar

 function _toolbar($params)
 {
     // No toolbar in printer version
     if (isset($params['pv']) && $params['pv'] > 0) {
         return;
     }
     $tools = array();
     $this->_addDocmanTool($params, $tools);
     $dPm =& Docman_PermissionsManager::instance($params['group_id']);
     $user =& $this->_controller->getUser();
     $oneFolderWritable = $dPm->oneFolderIsWritable($user);
     if ($oneFolderWritable) {
         $url_params = array('action' => 'newGlobalDocument');
         if (isset($params['item'])) {
             $url_params['id'] = $params['item']->accept(new Docman_View_ToolbarNewDocumentVisitor());
         }
         $tools[] = '<b><a href="' . $this->buildUrl($params['default_url'], $url_params) . '">' . $GLOBALS['Language']->getText('plugin_docman', 'new_document') . '</a></b>';
         if ($this->_controller->userCanAdmin()) {
             $tools[] = '<b><a href="' . $params['default_url'] . '&amp;action=admin">' . $GLOBALS['Language']->getText('plugin_docman', 'toolbar_admin') . '</a></b>';
         }
     }
     $tools[] = help_button('DocumentManagerPlugin.html', false, $GLOBALS['Language']->getText('global', 'help'));
     echo implode(' | ', $tools);
     echo "\n";
 }
开发者ID:nterray,项目名称:tuleap,代码行数:25,代码来源:Docman_View_Docman.class.php

示例3: project_admin_header

function project_admin_header($params)
{
    global $group_id, $feedback, $Language;
    $params['toptab'] = 'admin';
    $params['group'] = $group_id;
    site_project_header($params);
    echo '
	<P><TABLE width="100%"><TR>';
    echo '<TD width="1"><b>' . $Language->getText('project_admin_utils', 'menu_config') . '</b></td><td><b>
	<A HREF="/project/admin/editgroupinfo.php?group_id=' . $group_id . '">' . $Language->getText('project_admin_utils', 'edit_public_info') . '</A> |
	<A HREF="/project/admin/servicebar.php?group_id=' . $group_id . '">' . $Language->getText('project_admin_editservice', 's_conf') . '</A> |
	<A HREF="/project/admin/reference.php?group_id=' . $group_id . '">' . $Language->getText('project_admin_utils', 'references') . '</A>';
    $em = EventManager::instance();
    $em->processEvent('admin_toolbar_configuration', array('group_id' => $group_id));
    echo '</td><td>';
    if (isset($params['help'])) {
        echo help_button($params['help'], false, $Language->getText('global', 'help'));
    }
    echo '</td></tr>';
    echo '</td></tr><tr><td><b>' . $Language->getText('project_admin_utils', 'menu_permissions') . '</b></td><td><b>
	<A HREF="/project/admin/userperms.php?group_id=' . $group_id . '">' . $Language->getText('project_admin_utils', 'user_perms') . '</A> | 
	<A HREF="/project/admin/ugroup.php?group_id=' . $group_id . '">' . $Language->getText('project_admin_utils', 'ug_admin') . '</A> | 
	<A HREF="/project/admin/permission_request.php?group_id=' . $group_id . '">' . $Language->getText('project_admin_ugroup', 'permission_request') . '</A>';
    echo '</td><td></td></tr><tr><td><b>' . $Language->getText('project_admin_utils', 'menu_data') . '</b></td><td><b>
	<A HREF="/project/export/index.php?group_id=' . $group_id . '">' . $Language->getText('project_admin_utils', 'project_data_export') . '</A> |
	<A HREF="/tracker/import_admin.php?group_id=' . $group_id . '&mode=admin">' . $Language->getText('project_admin_utils', 'tracker_import') . '</A> |
	<A HREF="/project/admin/history.php?group_id=' . $group_id . '">' . $Language->getText('project_admin_history', 'proj_history') . '</A> |
    <A HREF="/project/stats/source_code_access.php/?group_id=' . $group_id . '">' . $Language->getText('project_admin_utils', 'access_logs') . '</A>';
    //Call hook that can be displayed in this area
    $em->processEvent('admin_toolbar_data', array('group_id' => $group_id));
    //<A HREF="/project/admin/?group_id='.$group_id.'&func=import">Tracker Import</A>
    echo '</td><td></td></tr></table>';
    echo '</B>
	<P>';
}
开发者ID:rinodung,项目名称:tuleap,代码行数:35,代码来源:project_admin_utils.php

示例4: survey_header

function survey_header($params)
{
    global $group_id, $is_admin_page, $Language;
    $params['toptab'] = 'survey';
    $params['group'] = $group_id;
    $pm = ProjectManager::instance();
    $project = $pm->getProject($group_id);
    if (!$project->usesSurvey()) {
        exit_error($Language->getText('global', 'error'), $Language->getText('survey_s_utils', 's_off'));
    }
    site_project_header($params);
    echo "<P><B>";
    // Admin link is displayed only if the user is a project administrator
    if (user_ismember($group_id, 'A')) {
        echo "<A HREF=\"/survey/admin/?group_id={$group_id}\">" . $Language->getText('survey_s_utils', 'admin') . "</A>";
    }
    if ($is_admin_page && $group_id && user_ismember($group_id, 'A')) {
        echo " | <A HREF=\"/survey/admin/add_survey.php?group_id={$group_id}\">" . $Language->getText('survey_admin_index', 'add_s') . "</A>";
        echo " | <A HREF=\"/survey/admin/edit_survey.php?func=browse&group_id={$group_id}\">" . $Language->getText('survey_admin_browse_survey', 'edit_s') . "</A>";
        echo " | <A HREF=\"/survey/admin/add_question.php?group_id={$group_id}\">" . $Language->getText('survey_admin_index', 'add_q') . "</A>";
        echo " | <A HREF=\"/survey/admin/edit_question.php?func=browse&group_id={$group_id}\">" . $Language->getText('survey_admin_browse_question', 'edit_q') . "</A>";
        echo " | <A HREF=\"/survey/admin/show_results.php?group_id={$group_id}\">" . $Language->getText('survey_s_utils', 'show_r') . "</A>";
    }
    if (isset($params['help'])) {
        if (user_ismember($group_id, 'A')) {
            echo ' | ';
        }
        echo help_button($params['help'], false, $Language->getText('global', 'help'));
    }
    echo "</B><P>";
}
开发者ID:nterray,项目名称:tuleap,代码行数:31,代码来源:survey_utils.php

示例5: printnode

function printnode($nodeid, $text, $delete_ok = false)
{
    global $Language;
    // print current node, then all subnodes
    print '<BR>';
    for ($i = 0; $i < $GLOBALS['depth']; $i++) {
        print "&nbsp; &nbsp; ";
    }
    html_image('ic/cfolder15.png', array());
    print '&nbsp; ' . $text . " ";
    if ($nodeid != 0) {
        print '&nbsp; <A href="trove_cat_edit.php?trove_cat_id=' . $nodeid . '">[' . $Language->getText('admin_trove_cat_list', 'edit') . ']</A> ';
    }
    if ($delete_ok) {
        print '&nbsp; <A href="trove_cat_delete.php?trove_cat_id=' . $nodeid . '">[' . $Language->getText('admin_trove_cat_list', 'delete') . ']</A> ';
    }
    if ($nodeid != 0) {
        print '&nbsp;' . help_button('trove_cat', $nodeid) . "\n";
    }
    $GLOBALS["depth"]++;
    $res_child = db_query("SELECT trove_cat_id,fullname,parent FROM trove_cat " . "WHERE parent='{$nodeid}' ORDER BY fullpath");
    while ($row_child = db_fetch_array($res_child)) {
        $delete_ok = $row_child["parent"] != 0;
        printnode($row_child["trove_cat_id"], $row_child["fullname"], $delete_ok);
    }
    $GLOBALS["depth"]--;
}
开发者ID:nterray,项目名称:tuleap,代码行数:27,代码来源:trove_cat_list.php

示例6: _getHelp

 function _getHelp($section = '', $questionmark = false)
 {
     if (trim($section) !== '' && $section[0] !== '#') {
         $section = '#' . $section;
     }
     if ($questionmark) {
         $help_label = '[?]';
     } else {
         $help_label = $GLOBALS['Language']->getText('global', 'help');
     }
     return help_button('ci.html' . $section, false, $help_label);
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:12,代码来源:hudsonViews.class.php

示例7: people_header

function people_header($params)
{
    global $group_id, $HTML, $Language;
    echo $HTML->header($params);
    echo '
	   <H2>' . $GLOBALS['sys_name'] . ' - ' . $Language->getText('people_utils', 'people_skills') . '</H2>
		<P><B>
	<A HREF="/people/admin/">' . $Language->getText('people_utils', 'admin') . '</A>';
    if (array_key_exists('help', $params) && $params['help']) {
        echo ' | ' . help_button($params['help'], false, $Language->getText('global', 'help'));
    }
    echo '</B>';
    echo '<HR NoShade SIZE="1" SIZE="90%">';
}
开发者ID:nterray,项目名称:tuleap,代码行数:14,代码来源:people_utils.php

示例8: commits_header_admin

function commits_header_admin($params)
{
    global $group_id, $Language;
    //required params for site_project_header();
    $params['group'] = $group_id;
    $params['toptab'] = 'cvs';
    $pm = ProjectManager::instance();
    $project = $pm->getProject($group_id);
    if (!$project->usesCVS()) {
        exit_error($Language->getText('global', 'error'), $Language->getText('cvs_commit_utils', 'error_off'));
    }
    echo site_project_header($params);
    if ($params['help']) {
        echo ' | <b>' . help_button($params['help'], false, $Language->getText('global', 'help')) . '</b>';
    }
    echo ' <hr width="300" size="1" align="left" noshade>';
}
开发者ID:pombredanne,项目名称:tuleap,代码行数:17,代码来源:commit_utils.php

示例9: printnode

function printnode($nodeid, $text)
{
    // print current node, then all subnodes
    print '<BR>';
    for ($i = 0; $i < $GLOBALS[depth]; $i++) {
        print "&nbsp; &nbsp; ";
    }
    print html_image('images/ic/cfolder15.png', '15', '13', array());
    print '&nbsp; ' . $text . " ";
    print '<A href="trove_cat_edit.php?trove_cat_id=' . $nodeid . '">[Edit]</A> ';
    print help_button('trove_cat', $nodeid) . "\n";
    $GLOBALS["depth"]++;
    $res_child = db_query("SELECT trove_cat_id,fullname FROM trove_cat " . "WHERE parent='{$nodeid}'");
    while ($row_child = db_fetch_array($res_child)) {
        printnode($row_child["trove_cat_id"], $row_child["fullname"]);
    }
    $GLOBALS["depth"]--;
}
开发者ID:BackupTheBerlios,项目名称:berlios,代码行数:18,代码来源:trove_cat_list.php

示例10: news_header

function news_header($params)
{
    global $HTML, $group_id, $news_name, $news_id, $Language;
    $params['toptab'] = 'news';
    $params['group'] = $group_id;
    if (isset($params['project_id'])) {
        $params['group'] = $params['project_id'];
        $group_id = $params['project_id'];
    }
    /*
    	Show horizontal links
    */
    if ($group_id && $group_id != $GLOBALS['sys_news_group']) {
        site_project_header($params);
    } else {
        $HTML->header($params);
        echo '
			<H2>' . $GLOBALS['sys_name'] . ' <A HREF="/news/">' . $Language->getText('news_index', 'news') . '</A></H2>';
    }
    if (!isset($params['pv']) || !$params['pv']) {
        echo '<P><B>';
        // 'Admin' tab is only displayed if the user is News admin or project admin
        if ($group_id) {
            if (user_ismember($group_id, 'A') || user_ismember($group_id, 'N2')) {
                echo '<A HREF="/news/submit.php?group_id=' . $group_id . '">' . $Language->getText('news_utils', 'submit_news') . '</A> | <A HREF="/news/admin/?group_id=' . $group_id . '">' . $Language->getText('news_utils', 'admin') . '</A>';
            } else {
                if (user_ismember($group_id, 'A') || user_ismember($group_id, 'N1')) {
                    // 'Submit News' tab is only displayed if the user is News writer, or project admin
                    echo '<A HREF="/news/submit.php?group_id=' . $group_id . '">' . $Language->getText('news_utils', 'submit_news') . '</A>';
                }
            }
            if (user_ismember($group_id, 'A') || user_ismember($group_id, 'N2') || user_ismember($group_id, 'N1')) {
                if (isset($params['help'])) {
                    echo ' | ';
                }
            }
        }
        if (isset($params['help'])) {
            echo help_button($params['help'], false, $Language->getText('global', 'help'));
        }
        echo '</b><P>';
    }
}
开发者ID:pombredanne,项目名称:tuleap,代码行数:43,代码来源:news_utils.php

示例11: file_utils_admin_header

function file_utils_admin_header($params)
{
    global $group_id, $Language;
    $params['toptab'] = 'file';
    $params['group'] = $group_id;
    site_project_header($params);
    if (user_ismember($group_id, "R2")) {
        $pm = ProjectManager::instance();
        $p = $pm->getProject($group_id);
        echo '<strong>';
        echo '<a href="/file/?group_id=' . $group_id . '">' . $Language->getText('project_admin_editservice', $p->services['file']->getLabel()) . '</a>';
        echo ' | <a href="/file/admin/?group_id=' . $group_id . '">' . $Language->getText('file_file_utils', 'admin') . '</a>';
        echo ' | <a href="/file/admin/manageprocessors.php?group_id=' . $group_id . '">' . $Language->getText('file_file_utils', 'manage_proc') . '</a>';
        if (!isset($params['help'])) {
            $params['help'] = "frs.html";
        }
        echo ' | ' . help_button($params['help'], false, $Language->getText('global', 'help'));
        echo "</strong><br><hr>";
    }
}
开发者ID:rinodung,项目名称:tuleap,代码行数:20,代码来源:file_utils.php

示例12: printnode

function printnode($nodeid, $text)
{
    global $Language;
    print '<br />';
    for ($i = 0; $i < $GLOBALS[depth]; $i++) {
        print "&nbsp; &nbsp; ";
    }
    print html_image('ic/cfolder15.png', '15', '13', array());
    print '&nbsp; ' . $text . " ";
    print url_make_link("trove_cat_add.php?parent_trove_cat_id='.{$nodeid}.'", "[" . _('Add') . "]");
    if ($nodeid != 0) {
        print url_make_link("trove_cat_edit.php?parent_trove_cat_id='.{$nodeid}.'", "[" . _('Edit') . "]");
        print help_button('trove_cat', $nodeid) . "\n";
    }
    $GLOBALS['depth']++;
    $res_child = db_query("\n\t\tSELECT trove_cat_id,fullname FROM trove_cat \n\t\tWHERE parent='{$nodeid}'\n\t\tAND trove_cat_id!=0;\n\t");
    while ($row_child = db_fetch_array($res_child)) {
        printnode($row_child["trove_cat_id"], $row_child["fullname"]);
    }
    $GLOBALS["depth"]--;
}
开发者ID:neymanna,项目名称:fusionforge,代码行数:21,代码来源:trove_cat_list.php

示例13: mail_header_admin

function mail_header_admin($params)
{
    global $group_id, $Language;
    //required for site_project_header
    $params['group'] = $group_id;
    $params['toptab'] = 'mail';
    $pm = ProjectManager::instance();
    $project = $pm->getProject($group_id);
    if (!$project->usesMail()) {
        exit_error($Language->getText('global', 'error'), $Language->getText('mail_utils', 'mail_turned_off'));
    }
    site_project_header($params);
    echo '
		<P><B><A HREF="/mail/admin/?group_id=' . $group_id . '">' . $Language->getText('mail_utils', 'admin') . '</A></B>
 | <B><A HREF="/mail/admin/?group_id=' . $group_id . '&add_list=1">' . $Language->getText('mail_utils', 'add_list') . '</A></B>
 | <B><A HREF="/mail/admin/?group_id=' . $group_id . '&change_status=1">' . $Language->getText('mail_utils', 'update_list') . '</A></B>
';
    if ($params['help']) {
        echo ' | <B>' . help_button($params['help'], false, $Language->getText('global', 'help')) . '</B>';
    }
}
开发者ID:pombredanne,项目名称:tuleap,代码行数:21,代码来源:mail_utils.php

示例14: snippet_header

function snippet_header($params)
{
    global $is_snippet_page, $HTML, $feedback, $Language;
    if ($GLOBALS['sys_use_snippet'] == 0) {
        exit_permission_denied();
    }
    // LJ used so the search box will add the necessary element to the pop-up box
    // Codendi Specific
    $is_snippet_page = 1;
    $HTML->header($params);
    /*
    	Show horizontal links
    */
    echo '<H2>' . $params['title'] . '</H2>';
    echo '<P><B>';
    echo '<A HREF="/snippet/">' . $Language->getText('snippet_utils', 'browse') . '</A>
		 | <A HREF="/snippet/submit.php">' . $Language->getText('snippet_utils', 'create_s') . '</A>
		 | <A HREF="/snippet/package.php">' . $Language->getText('snippet_utils', 'create_p') . '</A></B>';
    if (isset($params['help']) && $params['help']) {
        echo ' | ' . help_button($params['help'], false, $Language->getText('global', 'help'));
    }
    echo '<P>';
    html_feedback_top($feedback);
}
开发者ID:nterray,项目名称:tuleap,代码行数:24,代码来源:snippet_utils.php

示例15: _getHelp

 function _getHelp()
 {
     return help_button('communication.html#instant-messaging-plug-in', false, $GLOBALS['Language']->getText('global', 'help'));
 }
开发者ID:pdaniel-frk,项目名称:tuleap,代码行数:4,代码来源:IMViews.class.php


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