echo $s; } $projectArray[$project_id] = $project_id; } } } if ($none) { echo '<tr><td colspan="12">' . $AppUI->_('No projects available') . '</td></tr>'; } else { ?> <tr> <td colspan="12" align="right"> <?php $s = '<input type="submit" class="button" value="' . $AppUI->_('Update projects status') . '" />'; $s .= '<input type="hidden" name="update_project_status" value="1" />'; $s .= '<input type="hidden" name="m" value="projects" />'; $s .= arraySelect($pstatus, 'project_status', 'size="1" class="text"', $project_status_filter + 1, true); echo $s; // 2 will be the next step ?> </td> </tr> <?php } ?> </table> </form> <?php if ($is_tabbed) { echo buildPaginationNav($AppUI, $m, $currentTabId, $xpg_totalrecs, $xpg_pagesize, $page); }
if ($catsql) { $q->addWhere($catsql); } if ($company_id) { $q->addWhere('project_company = ' . (int) $company_id); } if ($project_id) { $q->addWhere('file_project = ' . (int) $project_id); } if ($task_id) { $q->addWhere('file_task = ' . (int) $task_id); } $q->addGroup('file_version_id'); // counts total recs from selection $xpg_totalrecs = count($q->loadList()); $pageNav = buildPaginationNav($AppUI, $m, $tab, $xpg_totalrecs, $xpg_pagesize, $page); echo $pageNav; ?> <script language="javascript" type="text/javascript"> function expand(id){ var element = document.getElementById(id); element.style.display = (element.style.display == '' || element.style.display == 'none') ? 'block' : 'none'; } </script> <table width="100%" border="0" cellpadding="2" cellspacing="1" class="tbl list"> <?php global $showProject; $showProject = true; echo displayFiles($AppUI, 0, $task_id, $project_id, $company_id); ?> </table>
/** * This generates page navigation for lists that are sensitive to the * user's language ($AppUI), the module ($m), and the active tab ($tab). * The $params are to add extra query parameters. This is especially * necessary when you have pagination within a subview. * * @param w2p_Coretype_CAppUI $AppUI * @param string $m * @param int $tab * @param array $params * @return string */ public function buildNavigation($AppUI, $m, $tab, $params = array()) { $m .= count($params) ? '&' . http_build_query($params) : ''; return buildPaginationNav($AppUI, $m, $tab, $this->_itemCount, $this->_pagesize, $this->_currentPage); }