git-svn-id: file:///svn-source/pmgr/branches/ledger_transactions_20090605/site@120 97e9348a-65ac-dc4b-aefc-98561f571b83
36 lines
1.5 KiB
PHP
36 lines
1.5 KiB
PHP
<?php /* -*- mode:PHP -*- */
|
|
|
|
// Define the table columns
|
|
$cols = array();
|
|
$cols['ID'] = array('index' => 'Customer.id', 'formatter' => 'id');
|
|
if (0) // REVISIT<AP>: Need to figure out how to put this in play
|
|
$cols['Relationship'] = array('index' => 'ContactsCustomer.type', 'width' => '75');
|
|
$cols['Name'] = array('index' => 'Customer.name', 'formatter' => 'longname');
|
|
$cols['Last Name'] = array('index' => 'PrimaryContact.last_name', 'formatter' => 'name');
|
|
$cols['First Name'] = array('index' => 'PrimaryContact.first_name', 'formatter' => 'name');
|
|
$cols['Leases'] = array('index' => 'lease_count', 'width' => '60');
|
|
$cols['Comment'] = array('index' => 'Customer.comment', 'formatter' => 'comment');
|
|
|
|
echo $this->element('jqGrid',
|
|
array('jqGridColumns' => $cols));
|
|
|
|
?>
|
|
|
|
<div>Search By:<BR>
|
|
<input type="checkbox" id="autosearch" onclick="enableAutosubmit(this.checked)" CHECKED>Enable Autosearch<BR>
|
|
|
|
Last Name<BR>
|
|
<input type="text" CLASS="filt-text" id="filt_last_name" name="PrimaryContact.last_name" />
|
|
<button CLASS="filt-submit" ID="submit_filt_last_name" style="margin-left:30px;">Search</button><BR>
|
|
|
|
First Name<BR>
|
|
<input type="text" CLASS="filt-text" id="filt_first_name" name="PrimaryContact.first_name" />
|
|
<button CLASS="filt-submit" ID="submit_filt_first_name" style="margin-left:30px;">Search</button><BR>
|
|
|
|
<div>
|
|
<button CLASS="filt-clear" ONCLICK="gridRestore()">Clear</button>
|
|
</div>
|
|
|
|
</div>
|
|
|