本文整理匯總了PHP中CProject::getAllowedProjectsInRows方法的典型用法代碼示例。如果您正苦於以下問題:PHP CProject::getAllowedProjectsInRows方法的具體用法?PHP CProject::getAllowedProjectsInRows怎麽用?PHP CProject::getAllowedProjectsInRows使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CProject
的用法示例。
在下文中一共展示了CProject::getAllowedProjectsInRows方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: db_error
<?php
/* PROJECTS $Id: reports.php 5874 2009-04-25 13:04:46Z merlinyoda $ */
if (!defined('DP_BASE_DIR')) {
die('You should not access this file directly.');
}
$project_id = intval(dPgetParam($_REQUEST, 'project_id', 0));
$report_type = dPgetParam($_REQUEST, 'report_type', '');
// check permissions for this record
$canRead = getPermission($m, 'view', $project_id);
if (!$canRead) {
$AppUI->redirect('m=public&a=access_denied');
}
$project_list = array('0' => $AppUI->_('All', UI_OUTPUT_RAW));
$obj = new CProject();
$ptrc = $obj->getAllowedProjectsInRows($AppUI->user_id);
$nums = db_num_rows($ptrc);
echo db_error();
for ($x = 0; $x < $nums; $x++) {
$row = db_fetch_assoc($ptrc);
if ($row['project_id'] == $project_id) {
$display_project_name = '(' . $row['project_short_name'] . ') ' . $row['project_name'];
}
$project_list[$row['project_id']] = '(' . $row['project_short_name'] . ') ' . $row['project_name'];
}
if (!$suppressHeaders) {
?>
<script language="javascript">
function changeIt() {
var f=document.changeMe;