SD-28
This commit is contained in:
parent
220aa8e27c
commit
fe0fb41d04
@ -407,6 +407,8 @@ class IdentiteController extends Zend_Controller_Action
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$pageTotal = $pageCurrent = 1;
|
$pageTotal = $pageCurrent = 1;
|
||||||
|
$pagePrev = 1;
|
||||||
|
$pageNext = 1;
|
||||||
}
|
}
|
||||||
$this->view->assign('PageTotal', $pageTotal);
|
$this->view->assign('PageTotal', $pageTotal);
|
||||||
$this->view->assign('PagePrev', $pagePrev);
|
$this->view->assign('PagePrev', $pagePrev);
|
||||||
@ -1171,6 +1173,8 @@ class IdentiteController extends Zend_Controller_Action
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$pageTotal = $pageCurrent = 1;
|
$pageTotal = $pageCurrent = 1;
|
||||||
|
$pagePrev = 1;
|
||||||
|
$pageNext = 1;
|
||||||
}
|
}
|
||||||
$this->view->assign('PageTotal', $pageTotal);
|
$this->view->assign('PageTotal', $pageTotal);
|
||||||
$this->view->assign('PagePrev', $pagePrev);
|
$this->view->assign('PagePrev', $pagePrev);
|
||||||
|
@ -154,6 +154,8 @@ class JuridiqueController extends Zend_Controller_Action
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$pageTotal = $pageCurrent = 1;
|
$pageTotal = $pageCurrent = 1;
|
||||||
|
$pagePrev = 1;
|
||||||
|
$pageNext = 1;
|
||||||
}
|
}
|
||||||
$this->view->assign('PageTotal', $pageTotal);
|
$this->view->assign('PageTotal', $pageTotal);
|
||||||
$this->view->assign('PagePrev', $pagePrev);
|
$this->view->assign('PagePrev', $pagePrev);
|
||||||
@ -384,9 +386,6 @@ class JuridiqueController extends Zend_Controller_Action
|
|||||||
$this->view->List = isset($response->List->item)?$response->List->item:null;
|
$this->view->List = isset($response->List->item)?$response->List->item:null;
|
||||||
// --- Pagination
|
// --- Pagination
|
||||||
$nbReponsesTotal = $response->Nb;
|
$nbReponsesTotal = $response->Nb;
|
||||||
$pageTotal = $pageCurrent = 1;
|
|
||||||
$pagePrev = null;
|
|
||||||
$pageNext = null;
|
|
||||||
if ($nbReponses < $nbReponsesTotal) {
|
if ($nbReponses < $nbReponsesTotal) {
|
||||||
$pageTotal = ceil( $nbReponsesTotal / $nbReponses );
|
$pageTotal = ceil( $nbReponsesTotal / $nbReponses );
|
||||||
$pageCurrent = $page;
|
$pageCurrent = $page;
|
||||||
@ -398,6 +397,10 @@ class JuridiqueController extends Zend_Controller_Action
|
|||||||
if( $pageNext > $pageTotal ) {
|
if( $pageNext > $pageTotal ) {
|
||||||
$pageNext = $pageTotal;
|
$pageNext = $pageTotal;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
$pageTotal = $pageCurrent = 1;
|
||||||
|
$pagePrev = 1;
|
||||||
|
$pageNext = 1;
|
||||||
}
|
}
|
||||||
$this->view->assign('PageTotal', $pageTotal);
|
$this->view->assign('PageTotal', $pageTotal);
|
||||||
$this->view->assign('PagePrev', $pagePrev);
|
$this->view->assign('PagePrev', $pagePrev);
|
||||||
|
@ -425,6 +425,8 @@ class SurveillanceController extends Zend_Controller_Action
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$pageTotal = $pageCurrent = 1;
|
$pageTotal = $pageCurrent = 1;
|
||||||
|
$pagePrev = 1;
|
||||||
|
$pageNext = 1;
|
||||||
}
|
}
|
||||||
$this->view->assign('PageTotal', $pageTotal);
|
$this->view->assign('PageTotal', $pageTotal);
|
||||||
$this->view->assign('PagePrev', isset($pagePrev)?$pagePrev:1);
|
$this->view->assign('PagePrev', isset($pagePrev)?$pagePrev:1);
|
||||||
@ -644,6 +646,8 @@ class SurveillanceController extends Zend_Controller_Action
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$pageTotal = $pageCurrent = 1;
|
$pageTotal = $pageCurrent = 1;
|
||||||
|
$pagePrev = 1;
|
||||||
|
$pageNext = 1;
|
||||||
}
|
}
|
||||||
$this->view->assign('PageTotal', $pageTotal);
|
$this->view->assign('PageTotal', $pageTotal);
|
||||||
$this->view->assign('PagePrev', $pagePrev);
|
$this->view->assign('PagePrev', $pagePrev);
|
||||||
|
Loading…
Reference in New Issue
Block a user