/
all.php
32 lines (24 loc) · 830 Bytes
/
all.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
include ('sc-app.inc');
include(APP_WEB_DIR . '/inc/header.inc');
use \com\indigloo\Url as Url ;
use \com\indigloo\ui\Pagination as Pagination;
use \com\indigloo\sc\auth\Login as Login ;
use \com\indigloo\ui\Filter as Filter;
$qparams = Url::getRequestQueryParams();
$filters = array();
$groupDao = new \com\indigloo\sc\dao\Group();
$pageSize = 100;
$paginator = new Pagination($qparams,$pageSize);
$groups = $groupDao->getPaged($paginator,$filters);
$startId = NULL ;
$endId = NULL ;
if(sizeof($groups) > 0 ) {
$startId = $groups[0]['id'] ;
$endId = $groups[sizeof($groups)-1]['id'] ;
}
$pageBaseUrl = "/group/all.php" ;
$title = "All groups";
$file = APP_WEB_DIR. "/view/group/cards-page.php" ;
include ($file);
?>