MER changes

This commit is contained in:
Karl Cordes 2009-01-23 13:43:39 +11:00
parent 582e397854
commit 77eda644ff
2 changed files with 19 additions and 6 deletions

View file

@ -8,6 +8,7 @@
<tr>
<th><?php echo $paginator->sort('user_id');?></th>
<th><?php echo $paginator->sort('Date', 'created');?></th>
<th><?php echo $paginator->sort('principle_id');?></th>
<th><?php echo $paginator->sort('Enquiry Number', 'title');?></th>
<th><?php echo $paginator->sort('customer_id');?></th>
<th><?php echo $paginator->sort('contact_id');?></th>
@ -15,7 +16,7 @@
<th><?php __('Phone No'); ?></th>
<th><?php echo $paginator->sort('state_id');?></th>
<th><?php echo $paginator->sort('country_id');?></th>
<th><?php echo $paginator->sort('principle_id');?></th>
<th><?php echo $paginator->sort('status_id');?></th>
<th><?php echo $paginator->sort('comments');?></th>
<th class="actions"><?php __('Actions');?></th>
@ -73,6 +74,9 @@ foreach ($enquiries as $enquiry):
<?php
/* Change the date from MySQL DATETIME to a D M Y format */
echo date('j M Y',$time->toUnix($enquiry['Enquiry']['created'])); ?>
</td>
<td>
<?php echo $html->link($enquiry['Principle']['name'], array('controller'=> 'principles', 'action'=>'view', $enquiry['Principle']['id'])); ?>
</td>
<td>
<?php echo $html->link($enquiry['Enquiry']['title'], array('controller'=>'enquiries', 'action'=>'view', $enquiry['Enquiry']['id'])); ?>
@ -97,14 +101,19 @@ foreach ($enquiries as $enquiry):
<td>
<?php echo $html->link($enquiry['Country']['name'], array('controller'=> 'countries', 'action'=>'view', $enquiry['Country']['id'])); ?>
</td>
<td>
<?php echo $html->link($enquiry['Principle']['name'], array('controller'=> 'principles', 'action'=>'view', $enquiry['Principle']['id'])); ?>
</td>
<td>
<?php echo $html->link($enquiry['Status']['name'], array('controller'=> 'statuses', 'action'=>'view', $enquiry['Status']['id'])); ?>
</td>
<td>
<?php echo $enquiry['Enquiry']['comments']; ?>
<td class = "comments">
<?php
$displayedComment = substr($enquiry['Enquiry']['comments'], 0, 260);
echo $displayedComment;
if(strlen($enquiry['Enquiry']['comments']) > strlen($displayedComment) ) {
echo '.... '.$html->link('view full comment', array('controller'=>'enquiries', 'action'=>'view', $enquiry['Enquiry']['id']));
}
?>
</td>
<td class="actions">
<?php echo $html->link(__('View', true), array('controller'=>'enquiries','action'=>'view', $enquiry['Enquiry']['id'])); ?>

View file

@ -322,6 +322,10 @@ table.mer tr td.posted {
table.mer tr td.notposted {
background: #FFFFFF;
}
table.mer tr td.comments {
font-size: small;
text-align: left;
}
table.quotetable tr.mostrecent td {
background: #ADD8E6;