adding the processes pagging toolbar

This commit is contained in:
Erik Amaru Ortiz
2011-02-07 16:04:51 +00:00
parent 9d3cd25bf4
commit 73cdf51d10
5 changed files with 83 additions and 13 deletions

View File

@@ -24,6 +24,8 @@
*/
$oHeadPublisher =& headPublisher::getSingleton();
G::loadClass('configuration');
$conf = new Configurations;
$oHeadPublisher->addExtJsScript('processes/main', false ); //adding a javascript file .js
$oHeadPublisher->addContent('processes/main'); //adding a html file .html.
@@ -35,6 +37,9 @@
'ID_SELECT', 'ID_SEARCH', 'ID_NO_SELECTION_WARNING', 'ID_PROCESS_DELETE_LABEL', 'ID_PROCESS_DELETE_ALL_LABEL',
'ID_PROCESS_CANT_DELETE', 'ID_EDIT_BPMN'
));
$oHeadPublisher->assign('pageSize', $conf->getEnvSetting('casesListRowNumber'));
$oHeadPublisher->assign('TRANSLATIONS', $translations);
G::RenderPage('publish', 'extJs');

View File

@@ -44,6 +44,7 @@ else {
}
$r->data = $proData;
$r->totalCount = count($proData); //$oProcess->getAllProcessesCount();
//$r->totalCount = count($proData);
$r->totalCount = $oProcess->getAllProcessesCount();
echo G::json_encode($r);