Ciao ragazzi, ho inserito nella mia pagina il seguente codice:
Che uso nel seguente modo:codice:<script type="text/javascript"> $(function() { $(".data:input").datepicker({ numberOfMonths : [3,4] }); }); </script> <script type="text/javascript"> $(function() { $('#slider_example_1').timepicker({ hourGrid: 4, minuteGrid: 10 }); }); </script> <script> jQuery(document).ready(function(){ // binds form submission and fields to the validation engine jQuery("#f_form_aula").validationEngine(); }); $(document).ready(function(){ $('#tabella tr').mouseover(function(){ $(this).css('background-color','#e4f8ff'); }); $('#tabella tr').mouseout(function(){ $(this).css('background-color','white'); }); }); </script>
Mi si presenta il DataPicker ma non funziona più il validationEngine negli altri campi!!! Help mecodice:<div style="width:975px; float:left; margin-left:35px;"> <div style="width:100%;"> <div><h2>AULE » INSERIMENTO NUOVA AULA</h2></div> <form name="f_form_aula" id="f_form_aula" method="post" action="transict_inserimento_nuova_aula.php"> <div> <table border="0" width="100%"> <?php $query = "SELECT * FROM pls_sedi"; $result = mysql_query($query) or die('Error, query failed'); ?> <tr> <td style="padding:5px;">Sede*</td> <td style="padding:5px;"> <select class="validate[required]" style="width:100%;" name="sede_aula"> <option value="">Scegli la sede</option> <?php while($row = mysql_fetch_array($result)){ ?> <option value="<?=$row['ID'];?>"><?php echo $row['citta']." » Numero Aule: ".$row['numero_aule']; ?></option> <?php } ?> </select> </td> </tr> <?php $query = "SELECT * FROM pls_corsi"; $result = mysql_query($query) or die('Error, query failed'); ?> <tr> <td style="padding:5px;">Corso*</td> <td style="padding:5px;"> <select class="validate[required]" style="width:100%;" name="corso_aula"> <option value="">Scegli il corso</option> <?php while($row = mysql_fetch_array($result)){ ?> <option value="<?=$row['ID'];?>"><?php echo $row['nome']." » Durata: ".$row['durata']; ?></option> <?php } ?> </select> </td> </tr> <?php $query = "SELECT * FROM pls_docenti WHERE status = 'Disponibile'"; $result = mysql_query($query) or die('Error, query failed'); ?> <tr> <td style="padding:5px;">Docente*</td> <td style="padding:5px;"> <select class="validate[required]" style="width:100%;" name="docente_aula"> <option value="">Scegli il docenti</option> <?php while($row = mysql_fetch_array($result)){ ?> <option value="<?=$row['ID'];?>"><?php echo $row['nome']." ".$row['cognome']; ?></option> <?php } ?> </select> </td> </tr> <tr> <td style="padding:5px;">Numero di persone ammesse all'aula*</td> <td style="padding:5px;"><input class="validate[required,custom[onlyNumber]]" type="text" name="numpersone_aula" style="width:99%; height:20px;" /></td> </tr> <tr> <td style="padding:5px;">Allievi*</td> <td style="padding:5px;"> <?php $query = "SELECT * FROM pls_azienda"; $result = mysql_query($query) or die('Error, query failed'); while($row = mysql_fetch_array($result)){ print("<span style=\"font-weight:bold;\">".$row['nome']."</span> "); $query2 = "SELECT * FROM pls_allievi WHERE id_azienda = '".$row['ID']."'"; $result2 = mysql_query($query2) or die('Error, query failed'); while($row2 = mysql_fetch_array($result2)){ ?><input type="checkbox" name="allievo" value="<?php print("".$row2['nome']." ".$row2['cognome'].""); ?>" /> <?php print("".$row2['nome']." ".$row2['cognome'].""); ?> <?php } } ?> </td> </tr> <tr> <td style="padding:5px;">Data*</td> <td style="padding:5px;"><input id="datepicker" class="data" type="text" name="data_aula" style="width:99%; height:20px;" /></td> </tr> <tr> <td style="padding:5px;">Ora*</td> <td style="padding:5px;"><input type="text" id="slider_example_1" name="ora_aula" style="width:99%; height:20px;" /></td> </tr> <tr> <td style="padding:5px;">Note</td> <td style="padding:5px;"><textarea name="note_aula" style="width:99%; height:30px;"></textarea></td> </tr> <tr> <td colspan="2"><center><input type="submit" name="submit" value="Inserisci nel Database" /></center></td> </tr> </table> </div> </form> </div> </div>![]()

Rispondi quotando