Loděnice

".$detail[nadpis].""; echo "

".$detail[obsah]."

"; echo "
"; } ?>

Aktuální rezervace:

='$dnes' ORDER BY datumOD"); while($detail_R2=mysql_fetch_array($result_R2)){ echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } ?>
Akce Termín Rezervuje Stav Upravil Rezervováno
"; echo $detail_R2[akceR]; echo ""; //echo $detail_R2[datumOD]; if($detail_R2[datumDO]=="0000-00-00"){ $datumEMAIL = substr($detail_R2[datumOD],8,2).". ".substr($detail_R2[datumOD],5,2).". ".substr($detail_R2[datumOD],0,4); } else { $datumEMAIL = substr($detail_R2[datumOD],8,2).". ".substr($detail_R2[datumOD],5,2).". ".substr($detail_R2[datumOD],0,4)." - ".substr($detail_R2[datumDO],8,2).". ".substr($detail_R2[datumDO],5,2).". ".substr($detail_R2[datumDO],0,4); } echo $datumEMAIL; echo ""; echo $detail_R2[rezervuje]; echo ""; if($detail_R2[stavR]==0){ ?> "; echo ""; $result_A=mysql_query("select * from auth WHERE id=$detail_R2[stavR]"); $detail_A=mysql_fetch_array($result_A); echo $detail_A[jmeno]; echo ""; $result_D2=mysql_query("select * from rezervace_detail WHERE idInfo=$detail_R2[idInfo] GROUP BY detail"); $dalsiVec = 0; $last = 0; while($detail_D2=mysql_fetch_array($result_D2)){ if(strlen($detail_D2[detail])==6){ $den = substr($detail_D2[detail],0,1); $idMat = substr($detail_D2[detail],2,4) - 1000; } else { $den = substr($detail_D2[detail],0,2); $idMat = substr($detail_D2[detail],3,4) - 1000; } if($dalsiVec>0){ echo ', '; } $result_L2=mysql_query("select * from lodenice WHERE idVec=$idMat"); $detail_L2=mysql_fetch_array($result_L2); if($den>$last AND $last<>0){ echo "
"; } if($detail_D2[stav]<>'0'){ echo "".$detail_L2[nazev].""; } else { echo $detail_L2[nazev]; } $dalsiVec++; $last = $den; } echo "

Předešlé rezervace:

"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } ?>
Akce Termín Rezervuje Stav Upravil Rezervováno
"; echo $detail_R2[akceR]; echo ""; //echo $detail_R2[datumOD]; if($detail_R2[datumDO]=="0000-00-00"){ $datumEMAIL = substr($detail_R2[datumOD],8,2).". ".substr($detail_R2[datumOD],5,2).". ".substr($detail_R2[datumOD],0,4); } else { $datumEMAIL = substr($detail_R2[datumOD],8,2).". ".substr($detail_R2[datumOD],5,2).". ".substr($detail_R2[datumOD],0,4)." - ".substr($detail_R2[datumDO],8,2).". ".substr($detail_R2[datumDO],5,2).". ".substr($detail_R2[datumDO],0,4); } echo $datumEMAIL; echo ""; echo $detail_R2[rezervuje]; echo ""; if($detail_R2[stavR]==0){ ?> "; echo ""; $result_A=mysql_query("select * from auth WHERE id=$detail_R2[stavR]"); $detail_A=mysql_fetch_array($result_A); echo $detail_A[jmeno]; echo ""; $result_D2=mysql_query("select * from rezervace_detail WHERE idInfo=$detail_R2[idInfo] GROUP BY detail"); $dalsiVec = 0; $last = 0; while($detail_D2=mysql_fetch_array($result_D2)){ if(strlen($detail_D2[detail])==6){ $den = substr($detail_D2[detail],0,1); $idMat = substr($detail_D2[detail],2,4) - 1000; } else { $den = substr($detail_D2[detail],0,2); $idMat = substr($detail_D2[detail],3,4) - 1000; } if($dalsiVec>0){ echo ', '; } $result_L2=mysql_query("select * from lodenice WHERE idVec=$idMat"); $detail_L2=mysql_fetch_array($result_L2); if($den>$last AND $last<>0){ echo "
"; } if($detail_D2[stav]<>'0'){ echo "".$detail_L2[nazev].""; } else { echo $detail_L2[nazev]; } $dalsiVec++; $last = $den; } echo "