Thanks a lot for all your help and that you spending time on this.
If anyone else need the source code:
(additions: column number in every column header, renamed column
headers)
[code]
<?php $sortable = array('id' => 'sort_none', 'hardware_unit_id' =>
'sort_none', 'description' => 'sort_none'); ?>
<?php $viewName = array('id', 'Hardware Gerät', 'DNS Name'); ?>
<?php if(isset($this->params['named']['direction'])
{
$sortable[$this->params['named']['sort']] = 'sort_'.$this-
>params['named']['direction'];
} ?>
<?php $colNumb=1; ?>
<table id="tab1" style="width:auto;">
<tr>
<th>[Optionen]</th>
<?php foreach($sortable as $sortFieldName => $sortCssClass): ?>
<th><?php echo $colNumb; ?><?php echo $paginator-
>sort($viewName[$colNumb-1], $sortFieldName, array('class' =>
$sortCssClass)); ?></th>
<?php $colNumb++; ?>
<?php endforeach; ?>
</tr>
...
[/code]
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment