← Back
Editing: tableau_fs0.php
<?php ###___###___###___###___###___###___###___###___###___###___###___###___### ### SmaDIB: Smart Database Interface Builder 0.6.0.1 ### ### by Smartmedia 2000 http://www.smartmedia2000.it/ ### ### info email: smadib@smartmedia2000.it ### ###___###___###___###___###___###___###___###___###___###___###___###___### require_once ("../funct.php"); require_once ("sess.php"); require_once ("conn.php"); $ptitolo = "Tableau ".$tipoAr[$_REQUEST[$tp]]; $noscr = "y"; $fixH = "y"; require_once ("testacoda.php"); $query = new doQuery(); $id_sistemaz = $_REQUEST['id_sistemaz']; $nome_sist = $_REQUEST['nome_sist']; $fisso = $_REQUEST['fisso']; $anno = $_REQUEST['anno'] ? $_REQUEST['anno'] : (substr ($dataScadl, 0, 4) == date ("Y") ? date ("Y") : date ("Y")+1); $colSovrap = "#CC0000"; $giorni = array ('Sun'=>'dom', 'Mon'=>'lun', 'Tue'=>'mar', 'Wed'=>'mer', 'Thu'=>'gio', 'Fri'=>'ven', 'Sat'=>'sab'); if ($op == "ds") { $sql = "SELECT `stato` FROM `contratti` WHERE `id`=$idC LIMIT 1"; $row = $query->freeQuery ($sql, 0); if ($row[0]->stato < 10 && $fisso != "") # da movibile a fisso $stato = $row[0]->stato+10; else if ($row[0]->stato > 10 && $fisso == "") # da fisso a movibile $stato = $row[0]->stato-10; else $stato = $row[0]->stato; $sql = "UPDATE `contratti` SET `id_sistemaz`='$id_sistemaz', `stato`='$stato' WHERE `id`=$idC LIMIT 1"; $query->freeQuery ($sql, 0); } if ($az == "ed") { # nuovo inserimento $sql = "SELECT `contratti`.`data_in`, `contratti`.`data_out` AS `data_fi`, `contratti`.`stato`, `id_sistemaz`, `cognome`, `nome` FROM `contratti`, `persone`, `presenze` WHERE `contratti`.`id_utente`=$id_utente $c2p AND `presenze`.`tipo_pers` < 3 AND `contratti`.`id`=$idC LIMIT 1"; $row = $query->freeQuery ($sql, 0); list ($aIn, $mIn, $gIn) = explode ('-', $row[0]->data_in); list ($aFi, $mFi, $gFi) = explode ('-', $row[0]->data_fi); $data_in = date ("Y-m-d", mktime(0,0,0,$mIn,$gIn,$aIn)-(3600*24*7) ); $data_in0 = mktime(0,0,0,$mIn,$gIn,$aIn); $data_fi = date ("Y-m-d", mktime(0,0,0,$mFi,$gFi,$aFi)+(3600*24*7) ); $data_fi0 = mktime(0,0,0,$mFi,$gFi,$aFi)-(3600*24); list ($aIn, $mIn, $gIn) = explode ('-', $data_in); list ($aFi, $mFi, $gFi) = explode ('-', $data_fi); if ($row[0]->stato > 10) $checkF = "checked=\"checked\""; # prende il nome della struttura $sqlNs = "SELECT `nome` AS `nome_sist` FROM `sistemazioni` WHERE `id`=".$row[0]->id_sistemaz." LIMIT 1"; $rowNs = $query->freeQuery ($sqlNs, 0); $insStrutt = "<b>".$row[0]->cognome." ".$row[0]->nome."</b> da ".date2data ($row[0]->data_in)." a ".date2data ($row[0]->data_fi)." sistemazione <input type=\"text\" readonly=\"readonly\" name=\"nome_sist\" size=\"6\" value=\"".$rowNs[0]->nome_sist."\" /> <input type=\"checkbox\" name=\"fisso\" $checkF /> posto fisso <input type=\"submit\" name=\"invio\" value=\"Inserisci\" /> <input type=\"button\" value=\"Canc.\" onclick=\"javascript:cancSist()\" /> $backPres <input type=\"hidden\" name=\"id_sistemaz\" value=\"".$row[0]->id_sistemaz."\" /> <input type=\"hidden\" name=\"nomeC\" value=\"$nomeC\" /> <input type=\"hidden\" name=\"az\" value=\"ed\" /> <input type=\"hidden\" name=\"op\" value=\"ds\" /> <input type=\"hidden\" name=\"st\" value=\"$st\" /> <input type=\"hidden\" name=\"tp\" value=\"$tp\" /> <input type=\"hidden\" name=\"idC\" value=\"$idC\" />\n"; } else { # lista degli anni per i tableau $insStrutt = "<table align=\"center\"><tr>"; # link piantine if ($id_utente == 12 || $id_utente == 11) $insStrutt.= "<td><a href=\"".$dominio."/images/".$tipoAr[$tp]."_piantina.jpg\" target=\"_new\">piantina</a> - </td>"; $sqlA = "SELECT DISTINCT `anno` FROM `stagioni` WHERE `id_utente` = ".$id_utente." ORDER BY `anno` DESC"; $rowsA = $query->freeQuery ($sqlA, 0); foreach ($rowsA as $rowA) $insStrutt.= "<td><a href=\"".$_SERVER['PHP_SELF']."?tp=".$tp."&anno=".$rowA->anno."\">".$rowA->anno."</a></td>"; $insStrutt.= "</tr></table>"; } $legenda = "<table align=\"center\" border><tr>"; foreach ($coloriSt AS $st=>$col) $legenda.= "<td bgcolor=\"$col\">".$statoAr[$st]."</td>"; $legenda.= "</tr></table>"; echo $testa; ?> <style type="text/css"> td { font-size: 10px; border-collapse: separate; border-spacing: 0px 1px; } .sab { font-weight:bold; border-left-style:solid; border-left-color: #AAAAFF; border-left-width: 1px; } .tabstr1 { font-size: 10px; height: 10px; white-space: nowrap; } .tabstr0 { font-size: 10px; height: 10px; background-color: #FFFFFF; white-space: nowrap; } .tabstr-1 { font-size: 10px; height: 10px; background-color: #000000; white-space: nowrap; } #cal { position: absolute; top: 160px; padding-bottom: 20px; padding-left: 100px; z-index: -2; } #str { position: fixed; top: 160px; left: 0px; } #head { position: fixed; width: 100%; align: left; top: 0px; } #leg { position: fixed; width: 100%; align: center; top: 40px; } #lnk { position: fixed; width: 100%; align: center; top: 140px; } #anno { position: absolute; width: 100%; align: center; top: 140px; } </style> <script type="text/javascript" language="javascript"> <!-- function loadSpy(){ var demoThree= new ScrollSpy({ min: 0, mode: 'horizontal', onTick: function(position,state,enters,leaves) { $("str").style.top = -position.y+160+"px"; $("head").style.top = -position.y+"px"; $("leg").style.top = -position.y+40+"px"; $("lnk").style.top = -position.y+140+"px"; }, container: window }); } function cancSist() { document.form1.id_sistemaz.value = ''; document.form1.nome_sist.value = ''; document.form1.fisso.checked = false; document.forms['form1'].submit(); } function confDel2(id, stag) { if (confirm("Vuoi davvero cancellare la riga? Premi ok per confermare.")) document.location='<?php echo $_SERVER['PHP_SELF']; ?>?id='+ id +'&id_stagione='+ stag +'&az=canc'; } function changePer() { document.forms['form1'].periodo.value = ''; document.forms['form1'].op.value = ''; document.forms['form1'].submit(); } function sistemaz (nome, num) { parent.document.form1.nome_sist.value = nome; parent.document.form1.id_sistemaz.value = num; } //--> </script> <?php echo "<div id=\"leg\"><h2 align=\"center\">".$ptitolo." ".$tipoAr[$tp]." ".$anno."</h2>\n"; $id_sistemaz = $_REQUEST['id_sistemaz']; $nome_sist = $_REQUEST['nome_sist']; $dataScadl2 = $anno.substr ($dataScadl, 4); $colSovrap = "#CC0000"; $mesi = array ('', 'gennaio', 'febbraio', 'marzo', 'aprile', 'maggio', 'giugno', 'luglio', 'agosto', 'settembre', 'ottobre', 'novembre', 'dicembre'); $gMesi = array(1=>31, 2=>28, 3=>31, 4=>30, 5=>31, 6=>30, 7=>31, 8=>31, 9=>30, 10=>31, 11=>30, 12=>31); $giorni = array ('Sun'=>'dom', 'Mon'=>'lun', 'Tue'=>'mar', 'Wed'=>'mer', 'Thu'=>'gio', 'Fri'=>'ven', 'Sat'=>'sab'); $fumo = array ('', 'ind', 'nf', 'f'); $c2mat = array ('', 'ind', '1mat', '2mat'); if ($az == "ed") { # nuovo inserimento $sql = "SELECT `contratti`.`data_in`, `contratti`.`data_out` AS `data_fi` FROM `contratti`, `persone`, `presenze` WHERE `contratti`.`id_utente`=$id_utente AND `contratti`.`id`=`presenze`.`id_contratto` AND `persone`.`id`=`presenze`.`id_persona` AND `contratti`.`id`=$idC LIMIT 1"; } else { # tutto il periodo $sql = "SELECT MIN(`data_in`) AS `data_in`, MAX(`data_fi`) AS `data_fi` FROM `periodi`, `stagioni` WHERE `periodi`.`id_utente`=$id_utente AND `periodi`.`id_stagione` = `stagioni`.`id` AND `stagioni`.`fine` > '".$anno."-08-31' AND `stagioni`.`fine` <= '".($anno+1)."-01-31' AND `data_in`>='".$anno."-01-01'"; } # date per inizio e fine del tableau $row = $query->freeQuery ($sql, 0); list ($aIn, $mIn, $gIn) = explode ('-', $row[0]->data_in); list ($aFi, $mFi, $gFi) = explode ('-', $row[0]->data_fi); $aIn+=0; $aFi+=0; if ($az == "ed") { $data_in = date ("Y-m-d", mktime(0,0,0,$mIn,$gIn,$aIn)-(3600*24*7) ); $data_in0 = mktime(0,0,0,$mIn,$gIn,$aIn); $data_fi = date ("Y-m-d", mktime(0,0,0,$mFi,$gFi,$aFi)+(3600*24*7) ); $data_fi0 = mktime(0,0,0,$mFi,$gFi,$aFi)-(3600*24); list ($aIn, $mIn, $gIn) = explode ('-', $data_in); list ($aFi, $mFi, $gFi) = explode ('-', $data_fi); } # prima riga mesi for ($i=$mIn+0; $i<=$mFi; $i++) { $bgcol = rowCol ($i); $colsp = ($i > $mIn && $i < $mFi) ? $gMesi[$i] : ($i == $mIn ? $gMesi[$i]-$gIn+1 : $gFi); if ($az == "ed") $cal.= "<td colspan=\"$colsp\" align=\"center\" bgcolor=\"$bgcol\">".$mesi[$i]."</td>"; else { $cal.= "<td colspan=\"$colsp\" align=\"center\" bgcolor=\"$bgcol\"><a name=\"".$mesi[$i]."\">"; for ($j=0; $j< ($colsp/5); $j++) $cal.= $mesi[$i]." - "; $cal.= "</a></td>"; } $linkInt.= "<a href=\"#".$mesi[$i]."\">".$mesi[$i]."</a> "; $totGg+= $colsp; } $cal.= "<td rowspan=\"2\"></td> </tr>\n"; $calG = "<tr><td> </td>\n"; $calG0 = $calG; # strriscia con indicazione di giorni per a name # seconda riga giorni colorati nei periodi $datainAr = array (); $datafiAr = array (); $coloriAr = array (); $sqlCol = "SELECT DISTINCT `periodo`, `data_in`, `data_fi` FROM `periodi`, `listini`, `stagioni` WHERE `periodi`.`id_utente` = ".ID_UTENTE." AND `periodi`.`id_stagione` = `stagioni`.`id` AND `listini`.`id_stagione`=`periodi`.`id_stagione` AND (`listini`.`tipo` = ".$tp." OR `listini`.`tipo` = 0) AND `stagioni`.`fine` > '".$anno."-08-31' AND `stagioni`.`fine` <= '".($anno+1)."-01-31' ORDER BY `data_in`"; $rowsCol = $query->freeQuery ($sqlCol, 0); foreach ($rowsCol as $i=>$rowC) { list ($yy1, $mm1, $dd1) = explode ('-', $rowC->data_in); list ($yy2, $mm2, $dd2) = explode ('-', $rowC->data_fi); $datainAr[] = mktime (0,0,0,$mm1,$dd1,$yy1); $datafiAr[] = mktime (0,0,0,$mm2,$dd2,$yy2); $coloriPerAr[] = $coloriPer[$rowC->periodo]; } $t = mktime (0,0,0,$mIn,$gIn,$aIn); $gt = $gIn+1; while ($t < mktime (0,0,0,$mFi+1,$gFi,$aFi)) { $bgcolor = ""; $bgcolA = ""; for ($g=0; $g<count($datainAr); $g++) if ($t >= $datainAr[$g] && $t <= $datafiAr[$g]) # colore di sfondo $bgcolor = "bgcolor=\"".$coloriPerAr[$g]."\""; $data = date ("d/n/Y", $t); list ($dd, $mm, $yy) = explode ('/', $data); $dd = (date ("N", $t) == 6) ? "<b>".$dd."</b>" : $dd; if ($data == date ("d/n/Y", time ()+3600*2)) { # oggi $bgcolor = "class=\"oggi\""; $bgcolA = $bgcolor; } $calG.= "<td ".$bgcolor.">".$dd." </td>\n"; $calG0.= "<td ".$bgcolor."><a name=\"".$t."\" ".$bgcolA.">".$dd."</a> </td>\n"; # non aggiunge 3600*24 per evitare l'ora legale $t = mktime (0,0,0,$mIn,$gt++,$aIn); } $calG.= "</tr>\n"; $calG0.= "</tr>\n"; $sqlS = "SELECT `id`, `tipo`, `nome`, `colore`, `posti`, `tipo_letti`, `fumatori`, `stato` FROM `sistemazioni` WHERE `id_utente` = ".ID_UTENTE." AND (`tipo` = ".$tp." OR `tipo` = 0) AND (`tipo` > 1 OR `nome` LIKE '".$pag."%') ORDER BY `nome` ASC"; # condizioni limiti per partizione if ($lim) { $sqlS.= " LIMIT ".$parTabl[$lim].", ".$parTabl[0]; } $rowsS = $query->freeQuery ($sqlS, 0); foreach ($rowsS as $i=>$rowS) { # flag di piazzola divisa $mezzaP = $rowS->nome != $oldNome." B" && $rowS->nome != $oldNome." A"; if ($mezzaP) $scarta = 0; # $scarta vale solo per le piazzole divisibili # controlla se e' occupata da uno stagionale $sqlOS = "SELECT `id` FROM `contratti` WHERE `id_utente` = ".ID_UTENTE." AND `id_sistemaz` = ".$rowS->id." AND `tipo_contr` > 1 AND `tipo_contr` < 10 AND (`data_in` LIKE '".date("Y")."%' OR `data_out` LIKE '".date("Y")."%' OR `data_out` LIKE '".(date ("Y")+1)."%') LIMIT 1"; $rowOS = $query->freeQuery ($sqlOS, 0); //eco($rowS->nome." ".$rowOS[0]->id." ".$rowS->posti." ".$scarta." ".$oldNome." ".$mezzaP); if (!$rowOS[0]->id && ($rowS->posti > 1 || !$scarta)) { if ($mezzaP) $tableauStr.= " <tr><td bgcolor=\"#AAAAFF\" height=\"1\"></td></tr>\n"; $bkCol = $rowS->colore ? $rowS->colore : "EECCEE"; if ($rowS->tipo == 1) $tableauStr.= " <tr><td class=\"tabstr".$rowS->stato."\" bgcolor=\"#".$bkCol."\"> <b>piazzola ".$rowS->nome."</b></td></tr>\n"; else $tableauStr.= " <tr><td class=\"tabstr".$rowS->stato."\" bgcolor=\"#".$bkCol."\"> <b>".$rowS->nome."</b> ".$rowS->posti." ".$lettiAr[$rowS->tipo_letti]." ".$fumoAr[$rowS->fumatori+1]."</td></tr>\n"; $idAr = array (); $numeroAr = array (); $statoAr = array (); $datainAr = array (); $datafiAr = array (); $dataggAr = array (); # durate in giorni $coloriStAr = array (); $coloriBkAr = array (); $nomeAr = array (); $datiAr = array (); $titleAr = array (); //if ($dataNuContr) $wdnc = " AND `data_operaz` >= '$dataNuContr'"; $sqlC = "SELECT `contratti`.`id`, `numero`, `piazzola`, `contratti`.`stato`, `contratti`.`data_in`, `contratti`.`data_out`, DATE_FORMAT(`contratti`.`data_scad`, '%d/%m') AS `data_scad`, `cognome`, `nome`, `persone`, `adulti`, `bambini`, `neonati`, `cani0`, `cani1`, `cani2`, `tipo_strutt`, `caratt_strutt` FROM $wc2p $wdnc AND `id_sistemaz` = ".$rowS->id." AND `contratti`.`data_in` >= '".$anno."-01-01' AND `contratti`.`data_out` <= '".($anno+1)."-01-31' AND (`presenze`.`tipo_pers` = 1 OR `presenze`.`tipo_pers` = 2) ORDER BY `data_in`"; $rowsC = $query->freeQuery ($sqlC, 0); foreach ($rowsC as $k=>$rowC) { $dati = " "; list ($yy1, $mm1, $dd1) = explode ('-', $rowC->data_in); list ($yy2, $mm2, $dd2) = explode ('-', $rowC->data_out); # se la data e' fuori dal periodo visualizzato si riassegnano gli estremi $datain0 = mktime (0,0,0,$mIn,$gIn,$aIn) < mktime (0,0,0,$mm1,$dd1,$yy1) ? mktime (0,0,0,$mm1,$dd1,$yy1) : mktime (0,0,0,$mIn,$gIn,$aIn); if ($rowC->persone && $tp==2) $dati.= $rowC->persone."p "; if ($rowC->adulti) $dati.= $rowC->adulti."a "; if ($rowC->bambini) $dati.= $rowC->bambini."b "; if ($rowC->neonati) $dati.= $rowC->neonati."n "; if ($rowC->cani0 || $rowC->cani1 || $rowC->cani2) $dati.= ($rowC->cani0+$rowC->cani1+$rowC->cani2)."c "; if ($rowC->piazzola == 2) $dati.= " 1/2p"; if ($tp == 2) $dati.= $fumo[$rowC->tipo_strutt]." ".$c2mat[$rowC->caratt_strutt]; $idAr[] = $rowC->id; $numeroAr[] = $rowC->numero; $statoAr[] = $rowC->stato; $datainAr[] = $datain0; $datafiAr[] = mktime (23,0,0,$mm2,$dd2-1,$yy2); $dataggAr[] = (mktime (0,0,0,$mm2,$dd2,$yy2)-$datain0)/(3600*24); # mette colore per sistemazione fissa if ($rowC->stato < 11) { $coloriStAr[] = $coloriSt[$rowC->stato]; $coloriBkAr[] = ""; } else { $coloriStAr[] = $coloriSt[$rowC->stato-10]; $coloriBkAr[] = "background-color:".$coloriStF; } $nomeAr[] = $rowC->cognome." ".$rowC->nome[0]; $rS = $rowC->stato; # fa apparire la data di scadenza nei posti giusti if ($rowC->data_scad!="0000-00-00" && (($rS>0 && $rS<5) || ($rS>10 && $rS<15))) { $titleAr[] = $rowC->cognome." ".$rowC->nome.":".$dati." scad. ".$rowC->data_scad."/".date("Y"); $dati.= " ".$rowC->data_scad; } else $titleAr[] = $rowC->cognome." ".$rowC->nome.": ".$dati; $datiAr[] = $dati; } if ($mezzaP) $tableau.= "<tr><td colspan=\"".($totGg+1)."\" bgcolor=\"#AAAAFF\" height=\"1\"></td></tr>\n"; $tableau.= "<tr><td height=\"10\" style=\"font-size:10px\"><b> |</b></td>\n"; $t = mktime (0,0,0,$mIn,$gIn,$aIn); while ($t < mktime (0,0,0,$mFi,$gFi,$aFi)) { $data = date ("d/n/Y", $t); $oggiT = date ("d/n/Y", time()+3600*2); list ($dd, $mm, $yy) = explode ('/', $data); $ddSty = date ("N", $t) == 6 ? " class=\"sab\"" : ""; # se è sabato $cas = date ("N", $t) == 6 ? " " : ""; # se è sabato $dN = $giorni [date ("D", $t)]; for ($g=0; $g<count($datainAr); $g++) { if (($t < $datafiAr[$g] && $t >= $datafiAr[$g]-47*1800) || ($t >= $datainAr[$g] && $t < $datainAr[$g]+47*1800)) { $flA++; $linkC = "contratti_ed.php?tp=".$tp."&st=".$statoAr[$g]."&id=".$idAr[$g]."&az=ed"; $denomC = "<span style=\"".$coloriBkAr[$g]."\">".$numeroAr[$g]." ".$nomeAr[$g]."</span>".$datiAr[$g]; $titleC = $numeroAr[$g]." ".$titleAr[$g]; } //if ($t < $dFi && $t >= $dIn) $flA++; # cliccabili i giorni del periodo in modifica if ($t >= $datainAr[$g] && $t < $datafiAr[$g]) { $fl++; $bgcolor = $coloriStAr[$g]; # se la data di soggiorno è posteriore al periodo visualizzato va ricalcolato il colspan if (mktime (0,0,0,$mIn,$gIn,$aIn) > $datainAr[$g]) $colsp = $dataggAr[$g]-( (mktime (0,0,0,$mIn,$gIn,$aIn)-$datainAr[$g]) / (3600*24) ); else $colsp = $dataggAr[$g]; } } # colorazione dell'oggi if ($data == $oggiT) { $ddSty = " class=\"oggi\""; $cas = ""; } if ($flA && $fl == 1) {# primo giorno occupato $tableau.= "<td bgcolor=\"$bgcolor\" colspan=\"$colsp\" nowrap><a href=\"$linkC\" target=\"_parent\" title=\"$titleC\" style=\"font-size:9px;\">$denomC</a></td>\n"; $t+= 3600*24*$colsp; } else if ($fl) { # altri giorni occupati $tableau.= "<td bgcolor=\"$bgcolor\"></td>\n"; $t+= 3600*24; } else { # giorni liberi if ($az == "ed" && $t == $data_in0 && $rowS->stato == 1) $tableau.= "<td bgcolor=\"#CC99CC\"".$ddSty."><a href=\"javascript:sistemaz('".$rowS->nome."', '".$rowS->id."')\" title=\"sistemaz. ".$rowS->nome."\">In</a></td>\n"; else if ($az == "ed" && $t == $data_fi0 && $rowS->stato == 1) $tableau.= "<td bgcolor=\"#CC99CC\"".$ddSty.">Out</td>\n"; else $tableau.= "<td".$ddSty.">".$cas."</td>"; $t+= 3600*24; } $fl = 0; $flA = 0; $colsp = 1; $bgcolor = ""; } $tableau.= "</tr>\n"; $scarta = 0; } else { # per non far apparire le mezze quando la piazzola e' presa stagionale if ($rowS->posti == 1) $scarta--; else $scarta = 2; } # memorizza il nome e libera il flag se e' un'altra piazzola if ($rowS->posti > 1) $oldNome = $rowS->nome; # riga vuota per numeri dei giorni if (ID_UTENTE == 23 && !fmod ($i+1, 20)) { $tableauStr.= " <tr><td bgcolor=\"#AAAAFF\" height=\"1\"></td></tr> <tr><td class=\"tabstr".$rowS->stato."\" bgcolor=\"#FFFFFF\">| </td></tr>\n"; $tableau.= "<tr><td colspan=\"".($totGg+1)."\" bgcolor=\"#AAAAFF\" height=\"1\"></td></tr>". $calG; } } $tableauStr.= " <tr><td bgcolor=\"#AAAAFF\" height=\"1\"></td></tr>\n"; $tableau.= " <tr><td colspan=\"".($totGg+1)."\" bgcolor=\"#AAAAFF\" height=\"1\"></td></tr>\n"; ?> <font size="1"><?php echo $insStrutt; ?></font><?php echo $legenda; ?></div> <div id="lnk"><?php echo $linkInt; ?></div> <form name="form1" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <div id="str"> <table cellspacing="0" cellpadding="0"> <tr><td align="right" height="1" style="width: 100pX; background: #ffffff; font-size: 10px;">mesi</td> <tr><td align="right" height="1" style="width: 100pX; background: #ffffff; font-size: 10px;">giorni</td></tr> <?php echo $tableauStr; ?> </table> </div> <div id="cal"> <table cellspacing="0" cellpadding="0" class="calend"> <tr> <td width="100%" valign="top"> <?php echo $cal; ?> <?php echo $calG0; ?> </tr> <?php echo $tableau; ?> <tr> <td width="100%" valign="top"> <?php echo $calG; ?> <?php echo $cal; ?> </tr> </table> </div> </form> <script language="javascript" src="https://ajax.googleapis.com/ajax/libs/mootools/1.2.4/mootools-yui-compressed.js" type="text/javascript"></script> <script language="javascript" src="scrollspy.js" type="text/javascript"></script> <script language="javascript" type="text/javascript"> var Page = { initialize: function() { loadSpy(); } } window.addEvent("domready", Page.initialize); </script> </body> </html>
Save File
Cancel