Buon giorno e Buon Anno a tutti.
Mi si presenta l'errore in oggetto quando con il mouse vado sopra entrambi i datepicker che ho creato:
Tabella php relativa:
Immagine errore:
Grazie per l'aiuto
Mi si presenta l'errore in oggetto quando con il mouse vado sopra entrambi i datepicker che ho creato:
Codice:
/* -------------------------------Dialog---------------------------------------*/
var Mesi = [ "Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Ottobre", "Novembre", "Dicembre" ];
$(function() {
$( "#datepicker" ).datepicker({
showOn: "button",
buttonImage: "images/calendar.gif",
buttonImageOnly: true,
buttonText: "Select date",
dateFormat: 'dd/mm/yy',
dayNamesMin: [ "Do", "Lu", "Ma", "Me", "Gi", "Ve", "Sa" ] ,
monthNames: [ "Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Ottobre", "Novembre", "Dicembre" ]
});
});
$(function ()
{
$("#datepicker2").datepicker({
dateFormat: 'dd-mm-yy'
});
$("#dialog").dialog({
autoOpen: false,
show: {
effect: "blind",
duration: 1000
},
hide: {
effect: "explode",
duration: 1000
},
height: 150,
width: 500,
closeOnEscape: false,
open: function(event, ui) { $(".ui-dialog-titlebar-close").hide(); }
});
$("#opener").click(function () {
$("#dialog").dialog("open");
});
});
var my_dlg;
function MioDialogo(formtagdiv) {
var mydlg=$("#"+formtagdiv).dialog({
autoOpen: false,
modal: true,
close: function(event, ui){ },
height: 500,
width: 1200
});
return mydlg;
}
/* ----------------------------------------------------------------------------*/
Tabella php relativa:
Codice:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="generator" content="PSPad editor, www.pspad.com">
<meta charset="utf-8">
<title>Tabella Entrate Uscite</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<link rel="stylesheet" href="tabGEU_style.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<script src="tabentusc.js"></script>
</head>
<body>
<?php
require_once "../inizioPHP.php";
?>
<div class="tabelle" align="center" >
<table id="tab" width="55%" height="8%" border="1" >
<tr >
<td align="left" width="100%" >
<font><strong>Tabella Entrate Uscite </strong></font>
</td>
</tr>
</table>
<table id="tab" width="55%" height="40%" border="1" >
<tr >
<td align="left" >
<p><strong>Date: </strong><input type="text" id="datepicker" value="<?php if(!empty($array)){ $res=explode('-',$array[$nrRec][0]) ; echo $res[2]."/".$res[1]."/".$res[0]; } ?>" >
<input id="mese" type="text" name="mese" size="6" value="<?php if(!empty($array)) echo MonthName($res[1]); ?>">
<input id="anno" type="text" name="anno" size="2" value="<?php if(!empty($array)) echo $res[0]; ?> "></p>
</td>
</tr>
<tr >
<td align="left" >
<font><strong>Soggetti: </strong></font><input type="text" id="soggetto" name="soggetto" value="<?php if(!empty($array)) echo $array[$nrRec][1]; ?>">
<select id="soggetti" name="soggetti">
<option value="inserisci">inserisci</option>
<?php
if(!empty($array)) {
$options="";
while($row = mysql_fetch_array($resultSog))
if (trim($row[1])!=trim($array[$nrRec][1])) {
$options.= '<option value="' . $row[0] . '">' . $row[1] . '</option>';
} else {
$options.= '<option value="' . $row[0] . '" selected>' . $row[1] . '</option> ';
}
$options.='<option value="'.strtoupper("nuovo soggetto").'">'.strtoupper("nuovo soggetto").'</option>';
echo $options;
}
?>
</select>
</td>
</tr>
<tr >
<td align="left" >
<font><strong>Valore: </strong></font><input type="text" id="valore" name="valore" value="<?php if(!empty($array)){ setlocale(LC_MONETARY, 'it_IT'); $val=$array[$nrRec][2]; echo "€ ".sprintf("%01.2f", $val); } ?>">
</td>
</tr>
<tr >
<td align="left" >
<font><strong>Categoria: </strong></font><input type="text" id="categoria" name="categoria" value="<?php if(!empty($array)) echo $array[$nrRec][3]; ?>">
<select id="categorie" name="categorie">
<option value="categorie">inserisci</option>
<?php
if(!empty($array)) {
$options="";
while($row = mysql_fetch_array($resultCat))
if (trim($row[1])!=trim($array[$nrRec][3])) {
$options.= '<option value="' . $row[0] . '">' . $row[1] . '</option>';
} else {
$options.= '<option value="' . $row[0] . '" selected>' . $row[1] . '</option> ';
}
$options.='<option value="'.strtoupper("nuova categoria").'">'.strtoupper("nuova categoria").'</option>';
echo $options;
}
?>
</select>
</td>
</tr>
<tr >
<td align="left" >
<font><strong>Dove Acquistato: </strong></font><input type="text" id="doveacquis" name="doveacquis" value="<?php if(!empty($array)) echo $array[$nrRec][4]; ?>">
<select id="doveacq" name="doveacq">
<option value="doveacquistato">inserisci</option>
<?php
if(!empty($array)) {
$options="";
while($row = mysql_fetch_array($resultDove))
if (trim($row[1])!=trim($array[$nrRec][4])) {
$options.= '<option value="' . $row[0] . '">' . substr($row[1], 0, 29). '</option>';
} else {
$options.= '<option value="' . $row[0] . '" selected>' . substr($row[1], 0, 29). '</option> ';
}
$options.='<option value="'.strtoupper("nuovo doveacquistato").'">'.strtoupper("nuovo doveacquistato").'</option>';
echo $options;
}
?>
</select>
</td>
</tr>
</table>
<table id="tab" width="55%" height="8%" border="1" >
<tr >
<td id="one" align="center" width="3%" >
<div class="uno" title="Primo" >
</div>
</td>
<td id="two" align="center" width="3%" >
<div class="due" title="Indietro" >
</div>
</td>
<td id="three" align="center" width="3%" >
<div class="tre" >
<input id="nrrec" name="nrrec" type="text" size="3" value="<?php if(!empty($array)) echo $nrRec+1; else echo "0"; ?>">
</div>
</td>
<td id="four" align="center" width="6%" >
<div class="quattro" >
<font id="totrec">di [<?php echo $num_rows; ?> ] </font >
<input type="hidden" id="totR" name="totR" value="<?php echo $num_rows; ?>" />
</div>
</td>
<td id="five" width="3%" >
<div class="cinque" title="Avanti" >
</div>
</td>
<td id="six" width="3%" >
<div class="sei" title="Ultimo" >
</div>
</td>
<td id="seven" width="3%" >
<div class="sette" title="Inserisci" >
</div>
</td>
<td id="eight" width="3%" >
<div class="otto" title="Conferma" >
</div>
</td>
<td id="nine" width="3%" >
<div class="nove" title="Cancella" >
</div>
</td>
<td id="ten" width="3%" >
<div class="dieci" title="Aggiorna" >
</div>
</td>
<td id="eleven" width="3%" >
<div class="undici" title="Modifica">
</div>
</td>
<td id="twelve" width="3%" >
<div class="dodici" title="Cerca" >
</div>
</td>
<td id="thirteen" width="3%" >
<div class="tredici" title="Vai al Record" >
</div>
</td>
<td id="fourteen" width="3%" >
<div class="quattordici" title="Delete" >
</div>
</td>
<td id="fifteen" width="3%" >
<div class="quindici" title="Chiudi" >
<?php
if(!empty($array))$id=$array[$nrRec][5]; else $id=0;
echo ' <input type="hidden" id="IdGEU" name="IdGEU" value="'.$id.'" />
<input type="hidden" id="server" name="server" value="'.$server.'" />
<input type="hidden" id="user" name="user" value="'.$user.'" />
<input type="hidden" id="passw" name="passw" value="'.$passw.'" />
<input type="hidden" id="nrRsalvato" name="nrRsalvato" value="" />';
?>
</div>
</td>
</tr>
</table>
<script>
$(function() {
$( "#datepicker2" ).datepicker();
});
</script>
</div>
<div id="indivphp" style="visibility: hidden">
<div id="dialogPHP" title="" value="" >
</div>
</div>
<div id="indivphp2" style="visibility: hidden">
<div id="dialogPHP2" title="" value="" >
</div>
</div>
<div id="indivphp3" style="visibility: hidden">
<div id="dialogPHP3" title="" value="" >
</div>
</div>
<span id="div_hidden" style="visibility: hidden">
<div id="scelta"></div>
<div id="scelta2"></div>
<div id="input" title="Parola da cercare" value=""></div>
<div id="data" title="Data da cercare" value=""></div>
<div id="dialog" title="Data da trovare">
<input type="text" id="datepicker2" /><input type="submit" value="|||" id="btnDate">
</div>
<input type="submit" id="opener" style="visibility: hidden" >
</span>
<div id="spin"> </div>
</body>
</html>
Immagine errore:
Grazie per l'aiuto
Allegati
Ultima modifica: