Can also now use the Headers to sort results in User Enquiries view. Resolves another part of issue #31
This commit is contained in:
parent
b4c0f38ae8
commit
b382094091
|
|
@ -18,14 +18,15 @@ echo $paginator->counter(array(
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table cellpadding="0" cellspacing="0" class="mer">
|
<table cellpadding="0" cellspacing="0" class="mer">
|
||||||
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th><?php echo $paginator->sort('user_id'); ?></th>
|
<th class="paginatorSort"><?php echo $paginator->sort('user_id'); ?></th>
|
||||||
<th><?php echo $paginator->sort('Date', 'created'); ?></th>
|
<th class="paginatorSort"><?php echo $paginator->sort('Date', 'created'); ?></th>
|
||||||
<?php /* <th> echo $paginator->sort('Date Submitted', 'submitted'); </th> */ ?>
|
<?php /* <th> echo $paginator->sort('Date Submitted', 'submitted'); </th> */ ?>
|
||||||
<th><?php echo $paginator->sort('principle_id'); ?></th>
|
<th class="paginatorSort"><?php echo $paginator->sort('principle_id'); ?></th>
|
||||||
<th><?php echo $paginator->sort('Enquiry Number', 'title'); ?></th>
|
<th class="paginatorSort"><?php echo $paginator->sort('Enquiry Number', 'title'); ?></th>
|
||||||
<th><?php echo $paginator->sort('customer_id'); ?></th>
|
<th class="paginatorSort"><?php echo $paginator->sort('customer_id'); ?></th>
|
||||||
<th><?php echo $paginator->sort('contact_id'); ?></th>
|
<th class="paginatorSort"><?php echo $paginator->sort('contact_id'); ?></th>
|
||||||
<th><?php __('Email'); ?></th>
|
<th><?php __('Email'); ?></th>
|
||||||
<th><?php __('Phone No'); ?></th>
|
<th><?php __('Phone No'); ?></th>
|
||||||
|
|
||||||
|
|
@ -34,6 +35,8 @@ echo $paginator->counter(array(
|
||||||
<th>Comments</th>
|
<th>Comments</th>
|
||||||
<th class="actions"><?php __('Actions'); ?></th>
|
<th class="actions"><?php __('Actions'); ?></th>
|
||||||
</tr>
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
$i = 0;
|
$i = 0;
|
||||||
foreach ($enquiries as $enquiry):
|
foreach ($enquiries as $enquiry):
|
||||||
|
|
@ -171,6 +174,7 @@ echo $paginator->counter(array(
|
||||||
</tr>
|
</tr>
|
||||||
<?php $i++; ?>
|
<?php $i++; ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<div class="paging">
|
<div class="paging">
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ $(function() {
|
||||||
getPage(enquiriesURL);
|
getPage(enquiriesURL);
|
||||||
|
|
||||||
|
|
||||||
$("div.paging > a, div.paging > span > a").live('click',function() {
|
$("div.paging > a, div.paging > span > a, th.paginatorSort > a").live('click',function() {
|
||||||
destination = $(this).attr('href');
|
destination = $(this).attr('href');
|
||||||
getPage(destination);
|
getPage(destination);
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue