Moved map listings to jqGrid, and fixed cut/paste error in the comments of the transactions controller.

git-svn-id: file:///svn-source/pmgr/branches/ledger_transactions_20090605/site@137 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-06-15 21:34:35 +00:00
parent af32d88605
commit dfb0d90246
4 changed files with 48 additions and 64 deletions

View File

@@ -2,22 +2,44 @@
class MapsController extends AppController {
/**************************************************************************
**************************************************************************
**************************************************************************
* action: index
* - Generates a list of all site maps
* action: index / all
* - Generate a listing of maps
*
* REVISIT <AP> 20090528:
* We'll need to present only those site area maps that correspond
* to the users particular site.
*/
function index() {
$this->Map->recursive = 0;
$this->set('maps', $this->paginate());
function index() { $this->all(); }
function all() { $this->jqGridView('All Maps', 'all'); }
/**************************************************************************
**************************************************************************
**************************************************************************
* virtuals: jqGridData
* - With the application controller handling the jqGridData action,
* these virtual functions ensure that the correct data is passed
* to jqGrid.
*/
function jqGridDataTables(&$params, &$model) {
return array
('link' => array('SiteArea' => array('fields' => array('SiteArea.id', 'SiteArea.name')),
),
);
}
function jqGridRecordLinks(&$params, &$model, &$records, $links) {
$links['Map'] = array('id');
return parent::jqGridRecordLinks($params, $model, $records, $links);
}
/**************************************************************************
**************************************************************************
**************************************************************************

View File

@@ -22,8 +22,8 @@ class TransactionsController extends AppController {
/**************************************************************************
**************************************************************************
**************************************************************************
* action: index / active / closed / all
* - Generate a listing of leases
* action: index / all
* - Generate a listing of transactions
*/
function index() { $this->all(); }