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


PHP site_project_header函数代码示例

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


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

示例1: writeHeader

 /**
  * writeHeader - write the header of the output
  */
 function writeHeader()
 {
     site_project_header(array('title' => _('Advanced search'), 'group' => $this->groupId, 'toptab' => 'none'));
     $sectionarray = $this->getSectionArray();
     $this->handleTransferInformation($sectionarray);
     $GLOBALS['HTML']->advancedSearchBox($sectionarray, $this->groupId, $this->words, $this->isExact);
 }
开发者ID:neymanna,项目名称:fusionforge,代码行数:10,代码来源:AdvancedSearchHtmlSearchRenderer.class.php

示例2: project_admin_header

function project_admin_header($params)
{
    global $DOCUMENT_ROOT, $group_id, $feedback;
    $params['toptab'] = 'admin';
    $params['group'] = $group_id;
    site_project_header($params);
    $project =& group_get_object($group_id);
    $is_admin = $project->userIsAdmin();
    if ($project->isProject()) {
        echo '
	<P><B>
	<A HREF="/project/admin/?group_id=' . $group_id . '">Admin</A> | ';
        if ($is_admin) {
            echo '<A HREF="/project/admin/userperms.php?group_id=' . $group_id . '">User Permissions</A> | 
	<A HREF="/project/admin/editgroupinfo.php?group_id=' . $group_id . '">Edit Public Info</A> |
	<A HREF="/project/admin/history.php?group_id=' . $group_id . '">Project History</A>
        <br>';
        }
        echo '
	<A HREF="/project/admin/editpackages.php?group_id=' . $group_id . '">Edit/Release Files</A>';
        if ($is_admin) {
            echo '
        | <A HREF="/people/createjob.php?group_id=' . $group_id . '">Post Jobs</A> | 
	<A HREF="/people/?group_id=' . $group_id . '">Edit Jobs</A> |
	<A HREF="/project/admin/editimages.php?group_id=' . $group_id . '">Screenshots</A> |
	<A HREF="/project/admin/mydatabase.php?group_id=' . $group_id . '">Database</A> |
	<A HREF="/project/admin/vhost.php?group_id=' . $group_id . '">Virtual Host</A> | 
    <A HREF="/project/admin/donation_admin.php?group_id=' . $group_id . '">Donation</A></B>
	<P>';
        }
    }
}
开发者ID:BackupTheBerlios,项目名称:berlios,代码行数:32,代码来源:project_admin_utils.php

示例3: news_header

function news_header($params)
{
    global $HTML, $group_id, $news_name, $news_id, $sys_news_group, $sys_use_news;
    if (!$sys_use_news) {
        exit_disabled();
    }
    $params['toptab'] = 'news';
    $params['group'] = $group_id;
    /*
    	Show horizontal links
    */
    if ($group_id && $group_id != $sys_news_group) {
        site_project_header($params);
    } else {
        $HTML->header($params);
    }
    if ($group_id && $group_id != $sys_news_group) {
        $menu_texts = array();
        $menu_links = array();
        $menu_texts[] = _('Submit');
        $menu_links[] = '/news/submit.php?group_id=' . $group_id;
        if (session_loggedin()) {
            $project =& group_get_object($params['group']);
            if ($project && is_object($project) && !$project->isError()) {
                $perm =& $project->getPermission(session_get_user());
                if ($perm && is_object($perm) && !$perm->isError() && $perm->isAdmin()) {
                    $menu_texts[] = _('Admin');
                    $menu_links[] = '/news/admin/?group_id=' . $group_id;
                }
            }
        }
        echo $HTML->subMenu($menu_texts, $menu_links);
    }
}
开发者ID:neymanna,项目名称:fusionforge,代码行数:34,代码来源:news_utils.php

示例4: scm_header

/**
 * GForge SCM Library
 *
 * Copyright 2004 (c) GForge LLC
 *
 * @version   $Id$
 * @author Tim Perdue tim@gforge.org
 * @date 2005-04-16
 *
 * This file is part of GForge.
 *
 * GForge is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * GForge 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 GForge; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
function scm_header($params)
{
    global $HTML, $sys_use_scm;
    if (!$sys_use_scm) {
        exit_disabled();
    }
    $project =& group_get_object($params['group']);
    if (!$project || !is_object($project)) {
        exit_error('Error', 'Could Not Get Project');
    } elseif ($project->isError()) {
        exit_error('Error', $project->getErrorMessage());
    }
    if (!$project->usesSCM()) {
        exit_error('Error', _('Error - This project has turned off SCM.'));
    }
    site_project_header(array('title' => _('SCM Repository'), 'group' => $params['group'], 'toptab' => 'scm'));
    /*
    	Show horizontal links
    */
    if (session_loggedin()) {
        $perm =& $project->getPermission(session_get_user());
        if ($perm && is_object($perm) && !$perm->isError() && $perm->isAdmin()) {
            echo $HTML->subMenu(array(_('SCM'), _('Admin'), _('Reporting')), array('/scm/?group_id=' . $params['group'], '/scm/admin/?group_id=' . $params['group'], '/scm/reporting/?group_id=' . $params['group']));
        }
    }
    echo '<div style="width:99%">';
}
开发者ID:neymanna,项目名称:fusionforge,代码行数:52,代码来源:scm_utils.php

示例5: patch_header

function patch_header($params)
{
    global $group_id, $DOCUMENT_ROOT;
    $params['toptab'] = 'patch';
    $params['group'] = $group_id;
    //only projects can use the bug tracker, and only if they have it turned on
    $project = project_get_object($group_id);
    if (!$project->isProject()) {
        exit_error('Error', 'Only Projects Can Use The Patch Manager');
    }
    if (!$project->usesPatch()) {
        exit_error('Error', 'This Project Has Turned Off The Patch Manager');
    }
    site_project_header($params);
    echo '<P><B><A HREF="/patch/?func=addpatch&group_id=' . $group_id . '">Submit A Patch</A>';
    if (user_isloggedin()) {
        echo ' | <A HREF="/patch/?func=browse&group_id=' . $group_id . '&set=my">My Patches</A>';
    }
    echo ' | <A HREF="/patch/?func=browse&group_id=' . $group_id . '&set=open">Open Patches</A>';
    if (user_isloggedin()) {
        echo ' | <A HREF="/patch/reporting/?group_id=' . $group_id . '">Reporting</A>';
    }
    echo ' | <A HREF="/patch/admin/?group_id=' . $group_id . '">Admin</A>';
    echo '</B>';
}
开发者ID:BackupTheBerlios,项目名称:berlios,代码行数:25,代码来源:patch_utils.php

示例6: 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

示例7: support_header

function support_header($params)
{
    global $group_id, $DOCUMENT_ROOT;
    //required by new site_project_header
    $params['group'] = $group_id;
    $params['toptab'] = 'support';
    //only projects can use the bug tracker, and only if they have it turned on
    $project = project_get_object($group_id);
    if (!$project->isProject()) {
        exit_error('Error', 'Only Projects Can Use The Tech Support Manager');
    }
    if (!$project->usesSupport()) {
        exit_error('Error', 'This Project Has Turned Off The Tech Support Manager');
    }
    site_project_header($params);
    echo '<P><B><A HREF="/support/?func=addsupport&group_id=' . $group_id . '">Submit A Request</A>';
    if (user_isloggedin()) {
        echo ' | <A HREF="/support/?func=browse&group_id=' . $group_id . '&set=my">My Requests</A>';
    }
    echo ' | <A HREF="/support/?func=browse&group_id=' . $group_id . '&set=open">Open Requests</A>';
    if (user_isloggedin()) {
        echo ' | <A HREF="/support/reporting/?group_id=' . $group_id . '">Reporting</A>';
    }
    echo ' | <A HREF="/support/admin/?group_id=' . $group_id . '">Admin</A>';
    echo '</B>';
    echo '<HR NoShade SIZE="1" SIZE="300">';
}
开发者ID:BackupTheBerlios,项目名称:berlios,代码行数:27,代码来源:support_utils.php

示例8: bug_header

function bug_header($params)
{
    global $group_id, $is_bug_page, $DOCUMENT_ROOT;
    //used so the search box will add the necessary element to the pop-up box
    $is_bug_page = 1;
    //required params for site_project_header();
    $params['group'] = $group_id;
    $params['toptab'] = 'bugs';
    $project = project_get_object($group_id);
    //only projects can use the bug tracker, and only if they have it turned on
    if (!$project->isProject()) {
        exit_error('Error', 'Only Projects Can Use The Bug Tracker');
    }
    if (!$project->usesBugs()) {
        exit_error('Error', 'This Project Has Turned Off The Bug Tracker');
    }
    echo site_project_header($params);
    echo '<P><B><A HREF="/bugs/?func=addbug&group_id=' . $group_id . '">Submit A Bug</A>
	 | <A HREF="/bugs/?func=browse&group_id=' . $group_id . '&set=open">Open Bugs</A>';
    if (user_isloggedin()) {
        echo ' | <A HREF="/bugs/?func=browse&group_id=' . $group_id . '&set=my">My Bugs</A>';
        echo ' | <A HREF="/bugs/?func=modfilters&group_id=' . $group_id . '">Filters</A>';
        echo ' | <A HREF="/bugs/reporting/?group_id=' . $group_id . '">Reporting</A>';
    }
    echo ' | <A HREF="/bugs/admin/?group_id=' . $group_id . '">Admin</A></B>';
}
开发者ID:BackupTheBerlios,项目名称:berlios,代码行数:26,代码来源:bug_utils.php

示例9: 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

示例10: header

 function header($params)
 {
     global $DOCUMENT_ROOT, $HTML, $group_id;
     use_javascript('/js/sortable.js');
     html_use_jquery();
     $params['toptab'] = 'taskboard';
     $params['group'] = $group_id;
     $labels[] = _("View Taskboard");
     $links[] = '/plugins/taskboard/index.php?group_id=' . $group_id;
     if (session_loggedin()) {
         if (forge_check_perm('tracker', $this->getID(), 'manager')) {
             $labels[] = _('Administration');
             $links[] = '/plugins/taskboard/admin/index.php?group_id=' . $group_id;
             $action = getStringFromRequest('action');
             if ($action == 'edit_column') {
                 $labels[] = _('Configure Columns');
                 $links[] = '/plugins/taskboard/admin/index.php?group_id=' . $group_id . '&action=columns';
                 $column_id = getStringFromRequest('column_id', '');
                 if ($column_id) {
                     $labels[] = _('Delete Column');
                     $links[] = '/plugins/taskboard/admin/index.php?group_id=' . $group_id . '&action=delete_column&column_id=' . $column_id;
                 }
             }
         }
     }
     $params['submenu'] = $HTML->subMenu($labels, $links);
     site_project_header($params);
 }
开发者ID:vpylypv,项目名称:taskboard,代码行数:28,代码来源:TaskBoardHtml.class.php

示例11: feature_header

function feature_header($params)
{
    global $group_id, $DOCUMENT_ROOT;
    //required by new site_project_header
    $params['group'] = $group_id;
    $params['toptab'] = 'feature';
    //only projects can use the bug tracker, and only if they have it turned on
    $project = project_get_object($group_id);
    if (!$project->isProject()) {
        exit_error('Error', 'Only Projects Can Use The Feature Request Manager');
    }
    if (!$project->usesFeature()) {
        exit_error('Error', 'This Project Has Turned Off The Feature Request Manager');
    }
    site_project_header($params);
    echo '<P><B><A HREF="/feature/?func=addfeature&group_id=' . $group_id . '">Submit A Feature Request</A>';
    if (user_isloggedin()) {
        echo ' | <A HREF="/feature/?func=browse&group_id=' . $group_id . '&set=my">My Feature Requests</A>';
    }
    echo ' | <A HREF="/feature/?func=browse&group_id=' . $group_id . '&set=open">Open Feature Requests</A>';
    if (user_isloggedin()) {
        echo ' | <A HREF="/feature/reporting/?group_id=' . $group_id . '">Reporting</A>';
    }
    echo ' | <A HREF="/feature/admin/?group_id=' . $group_id . '">Admin</A>';
    echo '</B><P>';
}
开发者ID:BackupTheBerlios,项目名称:berlios,代码行数:26,代码来源:feature_utils.php

示例12: docman_header

function docman_header($title, $pagehead, $style = 'xyz')
{
    global $group_id, $HTML, $sys_use_docman;
    if (!$sys_use_docman) {
        exit_disabled();
    }
    $project =& group_get_object($group_id);
    if (!$project || !is_object($project)) {
        exit_no_group();
    }
    if (!$project->usesDocman()) {
        exit_error(_('Error'), _('This project has turned off the Doc Manager.'));
    }
    site_project_header(array('title' => $title, 'group' => $group_id, 'toptab' => 'docman'));
    $menu_text = array();
    $menu_links = array();
    $menu_text[] = _('Submit new documentation');
    $menu_links[] = '/docman/new.php?group_id=' . $group_id;
    $menu_text[] = _('View Documentation');
    $menu_links[] = '/docman/index.php?group_id=' . $group_id;
    $menu_text[] = _('Search in documents');
    $menu_links[] = '/docman/search.php?group_id=' . $group_id;
    if (session_loggedin()) {
        $perm =& $project->getPermission(session_get_user());
        if ($perm && is_object($perm) && !$perm->isError() && $perm->isDocEditor()) {
            $menu_text[] = _('Admin');
            $menu_links[] = '/docman/admin/index.php?group_id=' . $group_id;
        }
    }
    echo $HTML->subMenu($menu_text, $menu_links);
}
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:doc_utils.php

示例13: survey_header

function survey_header($params)
{
    global $group_id, $is_admin_page, $HTML, $sys_use_survey;
    if (!$sys_use_survey) {
        exit_disabled();
    }
    $params['toptab'] = 'surveys';
    $params['group'] = $group_id;
    if ($project =& group_get_object($group_id)) {
        if (!$project->usesSurvey()) {
            exit_error(_('Error'), _('This Group Has Turned Off Surveys.'));
        }
        site_project_header($params);
        if ($is_admin_page && $group_id) {
            echo $HTML->subMenu(array(_('Surveys'), _('Admin'), _('Add Survey'), _('Edit Survey'), _('Add Questions'), _('Edit Questions'), _('Show Results')), array('/survey/?group_id=' . $group_id, '/survey/admin/?group_id=' . $group_id, '/survey/admin/add_survey.php?group_id=' . $group_id, '/survey/admin/edit_survey.php?group_id=' . $group_id, '/survey/admin/add_question.php?group_id=' . $group_id, '/survey/admin/show_questions.php?group_id=' . $group_id, '/survey/admin/show_results.php?group_id=' . $group_id));
        } else {
            if (session_loggedin()) {
                $perm =& $project->getPermission(session_get_user());
                if ($perm && is_object($perm) && !$perm->isError() && $perm->isAdmin()) {
                    echo $HTML->subMenu(array(_('Admin')), array('/survey/admin/?group_id=' . $group_id));
                }
            }
        }
    }
    // end if (valid group id)
}
开发者ID:neymanna,项目名称:fusionforge,代码行数:26,代码来源:survey_utils.php

示例14: quota_management_Project_Header

function quota_management_Project_Header($params)
{
    global $DOCUMENT_ROOT, $HTML, $id;
    $params['toptab'] = 'quota_management';
    $params['group'] = $id;
    /*                                                                                                                                                              
    	Show horizontal links                                                                                                                                   
    */
    site_project_header($params);
}
开发者ID:neymanna,项目名称:fusionforge,代码行数:10,代码来源:index.php

示例15: projects_hierarchy_Project_Header

function projects_hierarchy_Project_Header($params)
{
    global $DOCUMENT_ROOT, $HTML, $id;
    $params['toptab'] = 'projects_hierarchy';
    $params['group'] = $id;
    /*                                                                                                                                                              
    	Show horizontal links                                                                                                                                   
    */
    site_project_header($params);
}
开发者ID:neymanna,项目名称:fusionforge,代码行数:10,代码来源:index.php


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