Limit 60 chars in enquiry reg view

This commit is contained in:
Karl Cordes 2009-03-27 14:15:33 +11:00
parent 53eda4cd9c
commit 718ad07f97
2 changed files with 8 additions and 3 deletions

View file

@ -88,7 +88,7 @@ foreach ($enquiries as $enquiry):
<?php echo $html->link($enquiry['Enquiry']['title'], array('controller'=>'enquiries', 'action'=>'view', $enquiry['Enquiry']['id'])); ?>
</td>
<td>
<td class="customername">
<?php echo $html->link($enquiry['Customer']['name'], array('controller'=> 'customers', 'action'=>'view', $enquiry['Customer']['id'])); ?>
</td>
<td class="contactname">
@ -111,7 +111,7 @@ foreach ($enquiries as $enquiry):
<td class="comments">
<?php
$displayedComment = substr($enquiry['Enquiry']['comments'], 0, 150);
$displayedComment = substr($enquiry['Enquiry']['comments'], 0, 60);
echo $displayedComment;
if(strlen($enquiry['Enquiry']['comments']) > strlen($displayedComment) ) {
echo '.... '.$html->link('view all', array('controller'=>'enquiries', 'action'=>'view', $enquiry['Enquiry']['id']));

View file

@ -380,6 +380,7 @@ table.mer tr td {
padding: 1px;
}
table.mer tr.altrow td {
background: #f4f4f4;
}
@ -421,7 +422,7 @@ table.mer tr td.principlename {
}
table.mer tr td.comments {
font-size: x-small;
font-size: xx-small;
text-align: left;
}
@ -437,6 +438,10 @@ table.mer tr td.contactemail {
table.mer tr td.contactname {
padding: 0;
font-size: small;
}
table.mer tr td.customername {
padding: 0;
font-size: small;
}
table.mer tr td.viewedit {
padding: 0;