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( var $paginate = array(
'contain' => false, 'contain' => false,
'limit' => 250, 'limit' => 150,
'order'=>array('Enquiry.id' => 'desc') 'order'=>array('Enquiry.id' => 'desc')
); );

View file

@ -1,7 +1,7 @@
<?php echo $javascript->link('findcustomer'); ?> <?php echo $javascript->link('findcustomer'); ?>
<div class="customers form"> <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')); <?php echo $form->create('Customer', array('action'=>'find'));
echo '<h2>Find Customer'; echo '<h2>Find Customer';
echo $html->image('system-search.png'); echo $html->image('system-search.png');
@ -23,6 +23,5 @@
<div id="dialog" title="Search Results"> <div id="dialog" title="Search Results">
<ul id="similarCustList"> <ul id="similarCustList">
</ul> </ul>
</div> </div>