Added support for querying only occupied or vacant units. It's working at the moment, but I'll probably move some more logic to the controller next.

git-svn-id: file:///svn-source/pmgr/branches/initial_20090526@29 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-05-28 21:52:14 +00:00
parent 5c6189cdef
commit dbe037fee8
4 changed files with 46 additions and 22 deletions

View File

@@ -18,12 +18,12 @@
'format' => __('Page %page% of %pages%, showing %current% records (%start% - %end%) of %count% total', true)));
$rows = array($paginator->sort('id'),
$paginator->sort('name'),
$paginator->sort('Unit', 'name'),
$paginator->sort('unit_size_id'),
$paginator->sort('status'),
$paginator->sort('comment'));
} else {
$rows = array('Id', 'Name', 'Size', 'Status', 'Comment');
$rows = array('Id', 'Unit', 'Size', 'Status', 'Comment');
}
echo $html->tableHeaders($rows);