Back to top

Autore Topic: Checkbox Front-end non funziona  (Letto 1687 volte)

Offline evangelis

  • Esploratore
  • **
  • Post: 62
    • Mostra profilo
Checkbox Front-end non funziona
« il: 21 Gen 2009, 14:42:27 »
Ciao ragazzi!
Ho un problema...
Da un certo punto in poi tutti i componenti di joomla che creo hanno sempre lo stesso errore.
E' quello della selezione delle checkbox dì una lista per la selezione di un elemento.
Ho provato con tanti broswer, ma ho sempre lo stesso errore:
isChecked is not defined
onclick(click clientX=277, clientY=266)index.ph...sAA%3D%3D (riga 2)
[Break on this error] isChecked(this.checked);


Il codice lo posto qui:

<?php

//La struttura che definisce il modulo di immissione dati è letta campo per campo,
// vengono impostati valori predefiniti per gli attributi che fossero stati lasciati vuoti,
// quindi il codice HTML viene visualizzato.

defined('_JEXEC') or die('Impossibile accedere alla pagina');
jimport('joomla.application.component.view');

?>

<form action="index.php?option=com_fatture" method="post" name="adminForm">

<table>
       <tr>

       </tr>
</table>

<?php
 //SOPRA Tabella filtro

 //SOTTO Tabella centrale
?>
<table class="adminlist">
<thead>
       <tr>
       <?php //Check box ?>
       <th width="40" class="title">
           <input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($this->items); ?>)" />
       </th>
       <th width="5%%">
           <?php echo JText::_('ID')?>
       </th>
       <th width="20%%">
           <?php echo JText::_('Agenzia')?>
       </th>
       <th width="25%%">
           <?php echo JText::_('Giornale')?>
       </th>
       <th width="20%%">
           <?php echo JText::_('Data inizio')?>
       </th>
      <th width="20%%">
           <?php echo JText::_('Data fine')?>
       </th>
       <th width="10%%">
           <?php echo JText::_('Fermato')?>
       </th>
       </tr>
<tbody>
        <?php
        $i =0;
         //Stampo le righe della tabella
        foreach($this->items as $item) {
        ?>
         <tr>
            <th width="40" class="title">
               <?php echo JHTML::_('grid.id', $i, $item->id_contratto)?>
            </th>
            <th width="5%%">
               <?php echo JText::_($item->id_contratto)?>
            </th>
            <th width="20%%">
               <?php echo JText::_($item->id_agenzia)?>
            </th>
            <th width="25%%">
               <?php echo JText::_($item->id_giornale)?>
            </th>
            <th width="20%%">
               <?php echo JText::_($item->data_inizio)?>
            </th>
            <th width="20%%">
               <?php echo JText::_($item->data_fine)?>
            </th>
            <th width="10%%">
               <?php echo JText::_($item->fermato)?>
            </th>
         </tr>
        <?php
         $i++;
      }
        ?>
        </tbody>
      
      <tfoot><tr><td colspan="7">
         <?php echo $this->pagination->getListFooter(); ?>
      </td></tr></tfoot>
</table>

<input type="hidden" name="option" value="com_fatture" />
<input type="hidden" name="controller" value="contratti" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="boxchecked" value="0" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>

Mi smebra giustio....

 



Web Design Bolzano Kreatif