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


PHP projects_list_data函数代码示例

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


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

示例1: CProject

}
$addPwT = $AppUI->getState('addProjWithTasks', 0);
$addPwOiD = $AppUI->getState('addProjWithOwnerInDep', 0);
$extraGet = '&user_id=' . $user_id;
// collect the full projects list data via function in projects.class.php
/*
 *  TODO:  This is a *nasty* *nasty* kludge that should be cleaned up.
 * Unfortunately due to the global variables from dotProject, we're stuck with
 * this mess for now.
 * 
 * May God have mercy on our souls for the atrocity we're about to commit.
 */
$tmpDepartments = $department;
$department = $dept_id;
$project = new CProject();
$projects = projects_list_data($user_id);
$department = $tmpDepartments;
?>

<table width="100%" border="0" cellpadding="3" cellspacing="1" class="tbl">
<tr>
	<td align="right" width="65" nowrap="nowrap">&nbsp;<?php 
echo $AppUI->_('sort by');
?>
:&nbsp;</td>
	<td align="center" width="100%" nowrap="nowrap" colspan="6">&nbsp;</td>
    <td align="right" nowrap="nowrap">
        <form action="?m=departments&a=view&dept_id=<?php 
echo $dept_id;
?>
&tab=<?php 
开发者ID:viniciusbudines,项目名称:sisnuss,代码行数:31,代码来源:departments_tab.view.projects.php

示例2: DBQuery

$owner = $AppUI->getState('ProjIdxowner') !== NULL ? $AppUI->getState('ProjIdxowner') : 0;
$bufferUser = '<select name="show_owner" onchange="document.pickUser.submit()" class="text">';
$bufferUser .= '<option value="0">' . $AppUI->_('All Users');
$q = new DBQuery();
$q->addTable('users', 'u');
$q->addQuery('user_id,user_username,contact_first_name,contact_last_name');
$q->addJoin('contacts', 'c', 'contact_id = user_contact');
$q->addWhere('user_id <> 1');
$q->addOrder('contact_last_name');
if ($rows = $q->loadList()) {
    foreach ($rows as $row) {
        $bufferUser .= '<option value="' . $row['user_id'] . '" ' . ($owner == $row['user_id'] ? 'selected' : '') . '>' . $row['contact_first_name'] . ' ' . $row['contact_last_name'] . '</option>';
    }
}
// Collect the full projects list data via function in projects.class.php
projects_list_data();
$nolist = array(P_HOLDING, P_COMPLETED, P_ARCHIVED, P_ALL);
if ($AppUI->user_type > 5) {
    // only Manager & upper level can create Template project
    $nolist[] = P_TEMPLATE;
}
// Setup the title block
$titleBlock = new CTitleBlock('Projects');
$titleBlock->addCell($AppUI->_('Owner') . ':');
$titleBlock->addCell($bufferUser, '', '<form action="?m=projects" method="post" name="pickUser">', '</form>');
$titleBlock->addCell($AppUI->_('Company') . '/' . $AppUI->_('Division') . ':');
$titleBlock->addCell($buffer, '', '<form action="?m=projects" method="post" name="pickCompany">', '</form>');
$titleBlock->addCell();
if ($canAuthor) {
    $label = in_array($psfilter, $nolist) ? $pstatus[$psf = P_ACTIVE] : $pstatus[$psf = $psfilter];
    $titleBlock->addButton($AppUI->_('new ' . $label . ' project'), 'index.php?m=projects&a=addedit&project_status=' . $psf);
开发者ID:n2i,项目名称:xvnkb,代码行数:31,代码来源:index.php


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