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


PHP category_get_row函数代码示例

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


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

示例1: displayResultsCore

function displayResultsCore($query, $fields)
{
    $result = db_query_bound($query);
    $nbRows = 0;
    while ($row = db_fetch_array($result)) {
        $nbRows++;
        $t_bug = bug_get($row['id']);
        print "<tr> \n";
        print '<td><a href="' . string_get_bug_view_url($row['id']) . '">' . bug_format_id($row['id']) . '</a></td>';
        //print "<td> ".string_get_bug_view_url( ))." </td>\n";
        print "<td> " . string_display_line(get_enum_element('status', $t_bug->status)) . " </td>\n";
        print "<td> " . category_get_row($t_bug->category_id)['name'] . " </td>\n";
        print "<td> " . $t_bug->summary . " </td>\n";
        print "<td> " . user_get_field($t_bug->reporter_id, 'username') . " </td>\n";
        if ($t_bug->handler_id != null) {
            print "<td> " . user_get_field($t_bug->handler_id, 'username') . " </td>\n";
        }
        if (sizeof($fields) > 0) {
            for ($i = 0; $i < sizeof($fields); $i++) {
                print "<td> " . $row[$fields[$i]] . " </td>\n";
            }
        }
        print "</tr>\n";
    }
    return $nbRows;
}
开发者ID:bcramet,项目名称:CAMOSInternal,代码行数:26,代码来源:plugin_bug_util.php

示例2: require_api

require_api('gpc_api.php');
require_api('html_api.php');
require_api('lang_api.php');
require_api('print_api.php');
require_api('utility_api.php');
form_security_validate('manage_proj_cat_update');
auth_reauthenticate();
$f_category_id = gpc_get_int('category_id');
$f_project_id = gpc_get_int('project_id', ALL_PROJECTS);
$f_name = trim(gpc_get_string('name'));
$f_assigned_to = gpc_get_int('assigned_to', 0);
access_ensure_project_level(config_get('manage_project_threshold'), $f_project_id);
if (is_blank($f_name)) {
    trigger_error(ERROR_EMPTY_FIELD, ERROR);
}
$t_row = category_get_row($f_category_id);
$t_old_name = $t_row['name'];
$t_project_id = $t_row['project_id'];
# check for duplicate
if (utf8_strtolower($f_name) != utf8_strtolower($t_old_name)) {
    category_ensure_unique($t_project_id, $f_name);
}
category_update($f_category_id, $f_name, $f_assigned_to);
form_security_purge('manage_proj_cat_update');
if ($f_project_id == ALL_PROJECTS) {
    $t_redirect_url = 'manage_proj_page.php';
} else {
    $t_redirect_url = 'manage_proj_edit_page.php?project_id=' . $f_project_id;
}
html_page_top(null, $t_redirect_url);
html_operation_successful($t_redirect_url);
开发者ID:Kirill,项目名称:mantisbt,代码行数:31,代码来源:manage_proj_cat_update.php

示例3: category_full_name

/**
 * Retrieves category name (including project name if required)
 * @param string $p_category_id category id
 * @param bool $p_show_project show project details
 * @param int $p_project_id current project id override
 * @return string category full name
 * @access public
 */
function category_full_name( $p_category_id, $p_show_project = true, $p_current_project = null ) {
	if( 0 == $p_category_id ) {
		# No Category
		return lang_get( 'no_category' );
	} else {
		$t_row = category_get_row( $p_category_id );
		$t_project_id = $t_row['project_id'];

		$t_current_project = is_null( $p_current_project ) ? helper_get_current_project() : $p_current_project;

		if( $p_show_project && $t_project_id != $t_current_project ) {
			return '[' . project_get_name( $t_project_id ) . '] ' . $t_row['name'];
		}

		return $t_row['name'];
	}
}
开发者ID:rombert,项目名称:mantisbt,代码行数:25,代码来源:category_api.php

示例4: config_get

# 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 Mantis.  If not, see <http://www.gnu.org/licenses/>.
# --------------------------------------------------------
# $Id: manage_proj_cat_edit_page.php,v 1.32.2.1 2007-10-13 22:33:32 giallu Exp $
# --------------------------------------------------------
require_once 'core.php';
$t_core_path = config_get('core_path');
require_once $t_core_path . 'category_api.php';
auth_reauthenticate();
$f_project_id = gpc_get_int('project_id');
$f_category = gpc_get_string('category');
access_ensure_project_level(config_get('manage_project_threshold'), $f_project_id);
$t_row = category_get_row($f_project_id, $f_category);
$t_assigned_to = $t_row['user_id'];
html_page_top1();
html_page_top2();
print_manage_menu('manage_proj_cat_edit_page.php');
?>

<br />
<div align="center">
<form method="post" action="manage_proj_cat_update.php">
<?php 
echo form_security_field('manage_proj_cat_update');
?>
<table class="width50" cellspacing="1">
<tr>
	<td class="form-title" colspan="2">
开发者ID:jin255ff,项目名称:company_website,代码行数:31,代码来源:manage_proj_cat_edit_page.php

示例5: category_full_name

/**
 * Retrieves category name (including project name if required)
 * @param string $p_category_id category id
 * @param bool $p_show_project show project details
 * @param int $p_project_id current project id override
 * @return string category full name
 * @access public
 */
function category_full_name($p_category_id, $p_show_project = true, $p_current_project = null)
{
    if (0 == $p_category_id) {
        # No Category
        return lang_get('no_category');
    } else {
        if (!category_exists($p_category_id)) {
            return '@' . $p_category_id . '@';
        } else {
            $t_row = category_get_row($p_category_id);
            $t_project_id = $t_row['project_id'];
            $t_current_project = is_null($p_current_project) ? helper_get_current_project() : $p_current_project;
            // WK/BFE: Block auskommentiert, damit Projekte in Kategorien nicht angezeigt werden, LB/BFE 2015
            /*		
            		if( $p_show_project && $t_project_id != $t_current_project ) {
            			return '[' . project_get_name( $t_project_id ) . '] ' . $t_row['name'];
            		}
            */
            return $t_row['name'];
        }
    }
}
开发者ID:bfekomsthoeft,项目名称:TTS_Praxisprojekt1,代码行数:30,代码来源:category_api.php


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