Moved units onto jqGrid. Also generalized the jqGridSetup (now jqGridView) function and moved it into the app controller.
git-svn-id: file:///svn-source/pmgr/branches/ledger_transactions_20090605/site@117 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -29,18 +29,10 @@ class CustomersController extends AppController {
|
||||
* - Creates a list of tenants
|
||||
*/
|
||||
|
||||
function jqGridSetup($action, $title) {
|
||||
$this->set('title', $title); $this->set('heading', $title);
|
||||
// The resulting page will contain a jqGrid, which will
|
||||
// use ajax to obtain the actual data for this action
|
||||
$this->set('action', $action);
|
||||
$this->render('/elements/customers');
|
||||
}
|
||||
|
||||
function index() { $this->current(); }
|
||||
function current() { $this->jqGridSetup('current', 'Current Tenants'); }
|
||||
function past() { $this->jqGridSetup('past', 'Past Tenants'); }
|
||||
function all() { $this->jqGridSetup('all', 'All Tenants'); }
|
||||
function current() { $this->jqGridView('current', 'Current Tenants'); }
|
||||
function past() { $this->jqGridView('past', 'Past Tenants'); }
|
||||
function all() { $this->jqGridView('all', 'All Tenants'); }
|
||||
|
||||
|
||||
/**************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user