ho realizzato una lista da spuntare e sono riuscito a metterci anche i checkbox, ma non so come posso leggere la lista e identificare quelli spuntati.... ho provato a dare un occhio al componente users ma essendo per administrator come compomenente frontend non va quindi vi devo chiedere aiuto....
inoltre non va la parte che riordina la lista, ma non capisco il perchè
function showUtenti($rows, $option) {
JHTML::_('behavior.tooltip');
?>
<form action="index.php?option=com_assemblea" method="post" name="listautentiForm">
<table border="1" cellspacing="2" cellpadding="2">
<thead>
<tr>
<th width="2%" class="title">
<?php echo JText::_('NUM'); ?>
</th>
<th width="3%" class="title">
<input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($rows->items); ?>);" />
</th>
<th class="title">
<?php echo JHTML::_('grid.sort', 'Name', 'a.name', @$rows->lists['order_Dir'], @$rows->lists['order'] ); ?>
</th>
<th class="title">
<?php echo JHTML::_('grid.sort', 'Cognome', 'a.cognome', @$rows->lists['order_Dir'], @$rows->lists['order'] ); ?>
</th>
<th class="title">
<?php echo JHTML::_('grid.sort', 'Anno', 'a.annonascita', @$rows->lists['order_Dir'], @$rows->lists['order'] ); ?>
</th>
<th class="title">
<?php echo JHTML::_('grid.sort', 'Provincia', 'a.provincia', @$rows->lists['order_Dir'], @$rows->lists['order'] ); ?>
</th>
<th class="title">
<?php echo JHTML::_('grid.sort', 'Nazione', 'a.nazione', @$rows->lists['order_Dir'], @$rows->lists['order'] ); ?>
</th>
<th class="title">
<?php echo JHTML::_('grid.sort', 'ID', 'a.id', @$rows->lists['order_Dir'], @$rows->lists['order'] ); ?>
</th>
</tr>
</thead>
<tfoot>
</tfoot>
<tbody>
<?php
$k = 0;
$i = 0;
foreach ($rows as $row) {
$link = 'index.php?option=com_assemblea&task=modificautente&cid[]='. $row->id. '';
?>
<tr class="<?php echo "row$k"; ?>">
<td>
<?php echo $i+1; //echo $i+1+$row->pagination->limitstart;?>
</td>
<td>
<?php echo " "; //JHTML::_('grid.id', $i, $row->id ); ?>
</td>
<td>
<a href="<?php echo $link; ?>">
<?php echo $row->name; ?></a>
</td>
<td>
<?php echo $row->cognome; ?>
</td>
<td>
<?php echo $row->annonascita; ?>
</td>
<td>
<?php echo $row->provincia; ?>
</td>
<td>
<?php echo $row->nazione; ?>
</td>
<td>
<?php echo $row->id; ?>
</td>
</tr>
<?php
$i = $i + 1;
$k = 1 - $k;
}
?>
</table>
</tbody>
</table>
<input type="hidden" name="option" value="com_assemblea" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="boxchecked" value="0" />
<input type="hidden" name="filter_order" value="<?php echo $rows->lists['order']; ?>" />
<input type="hidden" name="filter_order_Dir" value="<?php echo $rows->lists['order_Dir']; ?>" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>
<?php
}
grazie