eh si...ho usato un model_id
[img width= height=]http://www.scdcittadisaluzzo.it/images/Loghi/logo.png[/img]<h1>Scuola calcio città di Saluzzo</h20>
<BR>
<h1>Elenco iscritti</h1>
<?php
// start ord
$img="";
if (Jrequest::getVar('direction','','get')=="") {
$ord="asc";
}
if (Jrequest::getVar('direction','','get')=="desc") {
$ord="asc";
$img="desc";
}
if (Jrequest::getVar('direction','','get')=="asc") {
$ord="desc";
$img="asc";
}
// end ord
?>
<table style="width: 100%" id="db_multi_record_loader">
<thead>
<tr>
<th style="width: 15%" class="col1 cell"><a class="order_link direction_asc"
href="index.php?option=com_chronoforms&chronoform=Visualizza&order=cf_id&direction=<?php echo $ord; ?>"
>Numero <?php if (Jrequest::getVar('order','','get')=="cf_id"){
echo "<img src=\"media/system/images/sort_".$img.".png\" alt=\"\" />"; } ?>[/url]</th>
<th style="width: 25%" class="col2 cell"><a class="order_link direction_asc"
href="index.php?option=com_chronoforms&chronoform=Visualizza&order=cognome&direction=<?php echo $ord; ?>
">Cognome <?php if (Jrequest::getVar('order','','get')=="cognome")
{echo "<img src=\"media/system/images/sort_".$img.".png\" alt=\"\" />"; } ?>[/url]</th>
<th style="width: 25%" class="col3 cell"><a class="order_link"
href="index.php?option=com_chronoforms&chronoform=Visualizza&order=nome&direction=<?php
echo $ord; ?>">Nome
<?php if (Jrequest::getVar('order','','get')=="nome"){
echo "<img src=\"media/system/images/sort_".$img.".png\" alt=\"\" />"; } ?>[/url]</th>
<th style="width: 35%" class="col4 cell">
<a class="order_link"
href="index.php?option=com_chronoforms&chronoform=Visualizza&order=data&direction=
<?php echo $ord; ?>">Anno di nascita
<?php if (Jrequest::getVar('order','','get')=="anno"){
echo "<img src=\"media/system/images/sort_".$img.".png\" alt=\"\" />"; } ?>[/url]</th>
</tr>
</thead>
<?php
$bb=$form->data['elenco'];
foreach ($bb as $a) {
echo "<tr><td>".$a['cf_id']."</td><td><a class=\"order_link\"
href=\"index.php?option=com_chronoforms&chronoform=modifica&rec=".$a['cf_id']."\">".$a['cognome']."[/url]
</td><td>".$a['nome']."</td><td>".$a['anno']."</td></tr>";
}
?>
</table>
<p></p>
<span></h20>TOTALE <?php echo count($form->data['elenco']); ?> iscritti</span>