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


PHP CLink::getProjectTaskLinksByCategory方法代码示例

本文整理汇总了PHP中CLink::getProjectTaskLinksByCategory方法的典型用法代码示例。如果您正苦于以下问题:PHP CLink::getProjectTaskLinksByCategory方法的具体用法?PHP CLink::getProjectTaskLinksByCategory怎么用?PHP CLink::getProjectTaskLinksByCategory使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CLink的用法示例。


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

示例1: buildPaginationNav

if ($canEdit) {
    $titleBlock = new CTitleBlock('', '', $m, "{$m}.{$a}");
    $titleBlock->addCell('<input type="submit" class="button" value="' . $AppUI->_('new link') . '">', '', '<form action="?m=links&a=addedit&project_id=' . $project_id . '&task_id=' . $task_id . '" method="post" accept-charset="utf-8">', '</form>');
    $titleBlock->show();
}
$page = (int) w2PgetParam($_GET, 'page', 1);
$search = w2PgetParam($_POST, 'search', '');
if (!isset($project_id)) {
    $project_id = (int) w2PgetParam($_POST, 'project_id', 0);
}
$df = $AppUI->getPref('SHDATEFORMAT');
$tf = $AppUI->getPref('TIMEFORMAT');
$link_types = w2PgetSysVal('LinkType');
if ($canRead) {
    $link = new CLink();
    $links = $link->getProjectTaskLinksByCategory($AppUI, $project_id, $task_id, $tab - 1, $search);
} else {
    $AppUI->redirect('m=public&a=access_denied');
}
$xpg_pagesize = w2PgetConfig('page_size', 50);
$xpg_min = $xpg_pagesize * ($page - 1);
// This is where we start our record set from
// counts total recs from selection
$xpg_totalrecs = count($links);
echo buildPaginationNav($AppUI, $m, $tab, $xpg_totalrecs, $xpg_pagesize, $page);
?>
<table width="100%" border="0" cellpadding="2" cellspacing="1" class="tbl">
<tr>
	<th nowrap="nowrap">&nbsp;</th>
	<th nowrap="nowrap"><?php 
echo $AppUI->_('Link Name');
开发者ID:viniciusbudines,项目名称:sisnuss,代码行数:31,代码来源:index_table.php

示例2: die

    die('You should not access this file directly.');
}
// @todo    convert to template
global $AppUI, $project_id, $task_id, $showProject, $tab, $search_string, $m;
$type_filter = $m == 'links' ? $tab - 1 : -1;
if ($task_id && !$project_id) {
    $task = new CTask();
    $task->load($task_id);
    $project_id = $task->task_project;
}
$page = (int) w2PgetParam($_GET, 'page', 1);
if (!isset($project_id)) {
    $project_id = (int) w2PgetParam($_POST, 'project_id', 0);
}
$link = new CLink();
$items = $link->getProjectTaskLinksByCategory(null, $project_id, $task_id, $type_filter, $search_string);
$module = new w2p_System_Module();
$fields = $module->loadSettings('links', 'index_list');
if (0 == count($fields)) {
    $fieldList = array('link_name', 'link_description', 'link_category', 'link_project', 'link_task', 'link_owner', 'link_date');
    $fieldNames = array('Link Name', 'Description', 'Category', 'Project Task', 'Task Name', 'Owner', 'Date');
    $module->storeSettings('links', 'index_list', $fieldList, $fieldNames);
    $fields = array_combine($fieldList, $fieldNames);
}
$xpg_pagesize = w2PgetConfig('page_size', 50);
$xpg_min = $xpg_pagesize * ($page - 1);
// This is where we start our record set from
// counts total recs from selection
$xpg_totalrecs = count($items);
$items = array_slice($items, $xpg_min, $xpg_pagesize);
$pageNav = buildPaginationNav($AppUI, $m, $tab, $xpg_totalrecs, $xpg_pagesize, $page);
开发者ID:illuminate3,项目名称:web2project,代码行数:31,代码来源:index_table.php


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