Reduced number of enquiries on enq view to speed it up

This commit is contained in:
Karl Cordes 2010-03-30 12:05:16 +11:00
parent 16da1cf374
commit 241724b8a3
2 changed files with 15 additions and 16 deletions

View file

@ -8,7 +8,7 @@ class EnquiriesController extends AppController {
var $paginate = array(
'contain' => false,
'limit' => 250,
'limit' => 150,
'order'=>array('Enquiry.id' => 'desc')
);

View file

@ -1,28 +1,27 @@
<?php echo $javascript->link('findcustomer'); ?>
<div class="customers form">
<?php echo $this->element('tipbox', array('tip' => "Start typing the Company name into the box, a list of results should appear. Select the Customer you're looking for and click 'View'")); ?>
<?php echo $form->create('Customer', array('action'=>'find'));
echo '<h2>Find Customer';
echo $html->image('system-search.png');
echo '</h2>';
echo $form->input('Customer.name', array('Label'=>'Customer Name', 'id'=>'customerName'));
<?php echo $form->create('Customer', array('action'=>'find'));
echo '<h2>Find Customer';
echo $html->image('system-search.png');
echo '</h2>';
//echo $form->input('Customer.id', array('type'=>'hidden'));
echo $form->input('Customer.name', array('Label'=>'Customer Name', 'id'=>'customerName'));
//echo $form->end('Find');
?>
//echo $form->input('Customer.id', array('type'=>'hidden'));
//echo $form->end('Find');
?>
<div class ="ui-widget">
<button id="findButton">Find Customer</button>
<button id="findButton">Find Customer</button>
</div>
</div>
<div id="dialog" title="Search Results">
<ul id="similarCustList">
</ul>
<ul id="similarCustList">
</ul>
</div>