git-svn-id: file:///svn-source/pmgr/branches/ledger_transactions_20090605/site@120 97e9348a-65ac-dc4b-aefc-98561f571b83
19 lines
847 B
PHP
19 lines
847 B
PHP
<?php /* -*- mode:PHP -*- */
|
|
|
|
// Define the table columns
|
|
$cols = array();
|
|
$cols['ID'] = array('index' => 'Contact.id', 'formatter' => 'id');
|
|
$cols['Last Name'] = array('index' => 'Contact.last_name', 'formatter' => 'name');
|
|
$cols['First Name'] = array('index' => 'Contact.first_name', 'formatter' => 'name');
|
|
$cols['Company'] = array('index' => 'Contact.company_name', 'formatter' => 'longname');
|
|
if (0) { // REVISIT<AP>: Need to figure out how to put this in play
|
|
$cols['Type'] = array('index' => 'ContactsCustomer.type', 'width' => '75');
|
|
$cols['Active'] = array('index' => 'ContactsCustomer.active', 'width' => '75');
|
|
}
|
|
$cols['Comment'] = array('index' => 'Contact.comment', 'formatter' => 'comment');
|
|
|
|
|
|
echo $this->element('jqGrid',
|
|
array('jqGridColumns' => $cols));
|
|
|