Current Path : /home/da040400/www_root/
Upload File :
Current File : /home/da040400/www_root/vylety.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head><!--  www.multithemes.com  -->
		<title> - ponuka v&yacute;letov</title>
		<link rel="stylesheet" type="text/css" media="screen" href="rw_common/themes/multinotheme/styles.css"  />
		<link rel="stylesheet" type="text/css" media="screen" href="rw_common/themes/multinotheme/colourtag.css"  />
		<link rel="stylesheet" type="text/css" media="handheld" href="%pathto(handheld.css)%"  />
		<link rel="stylesheet" type="text/css" media="screen" href="rw_common/themes/multinotheme/css/header/header2.css" />
		<link rel="stylesheet" type="text/css" media="screen" href="rw_common/themes/multinotheme/css/skin/image2_rwmt.css" />
		<link rel="stylesheet" type="text/css" media="screen" href="rw_common/themes/multinotheme/css/skin/colours_back1.css" />
		<link rel="stylesheet" type="text/css" media="screen" href="rw_common/themes/multinotheme/css/border/border_all.css" />
		<link rel="stylesheet" type="text/css" media="screen" href="rw_common/themes/multinotheme/css/border/border_2pixel.css" />
		<link rel="stylesheet" type="text/css" media="screen" href="rw_common/themes/multinotheme/css/width/800.css" />
		<link rel="stylesheet" type="text/css" media="screen" href="rw_common/themes/multinotheme/css/menu/right.css" />
		<link rel="stylesheet" type="text/css" media="screen" href="rw_common/themes/multinotheme/css/title/left.css" />
				
				
		<script type="text/javascript" src="rw_common/themes/multinotheme/javascript.js"></script>
			
		<!--[if lte IE 6]>
		<script>
        var blankSrc = "rw_common/themes/multinotheme/extras/blank.gif";
		</script>
		<style type="text/css" media="screen">
			#logo, #body_image, #pageHeader {behavior: url(rw_common/themes/multinotheme/extras/iepngfix-crop.htc);}			
			img {behavior: url(rw_common/themes/multinotheme/extras/pngbehavior.htc);}
		</style>
		<![endif]-->
		<!--[if lte IE 6]>
		<link title="default" rel="Stylesheet" type="text/css" href="rw_common/themes/multinotheme/extras/ie6.css">
		<![endif]-->

		
		
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<meta name="robots" content="all" />
		<meta name="generator" content="RapidWeaver" />
		
		</head>
		<body>		
		<div id="body_image">		
		<div id="container">
		<div id="container_image">		
		<div id="pageHeader">		
		
		<h1></h1>
		<h2></h2>
		</div>	
		<div id="sidebarContainer">
		<div id="navcontainer">
			<ul><li><a href="index.php" rel="self">&uacute;vodn&aacute; str&aacute;nka</a></li><li><a href="aktuality.php" rel="self">aktuality</a></li><li><a href="vylety.php" rel="self" id="current">ponuka v&yacute;letov</a></li><li><a href="page5/page5.php" rel="self">predn&aacute;&scaron;ky pre &scaron;koly</a></li><li><a href="page6/page6.php" rel="self">v&yacute;lety pre &scaron;koly</a></li><li><a href="page13/page13.php" rel="self">d&ocirc;ležit&eacute; inform&aacute;cie</a></li><li><a href="spolupraca/spolupraca.html" rel="self">spolupr&aacute;ca</a></li><li><a href="pripravujeme/pripravujeme.html" rel="self">pripravujeme</a></li><li><a href="projekty/projekty.html" rel="self">projekty</a></li><li><a href="page14/page14.html" rel="self">kontakt</a></li></ul>
		</div>
		<div class="clearer"></div>
		<div class="sideHeader"></div>
		<div id="sidebar">
		 <br />
		 
		</div>
		</div>	
		<div id="contentContainer">
		<div id="content">
				<?php

$date = Date ("Y.m.d");
$date2 = Date ("d.m.Y");


require("spojenie.php"); # Vlož&iacute;me skript, ktor&yacute; obsahuje nastavenie pripojenia.
$spoj = MySQL_Connect($SQL_Server, $SQL_Uzivatel, $SQL_Heslo) OR DIE(MySQL_Error());
MySQL_Select_Db($Databaza) OR DIE(MySQL_Error());
mysql_query("SET NAMES 'utf8'");

#$vysledok=MySQL_Query("SELECT *,Date_Format(termin, '%d.%m.%Y') AS termin FROM andy_vylety WHERE termin >= '28.11.2012' ORDER BY id ASC")OR DIE(MySQL_Error());
$vysledok=MySQL_Query("SELECT *,Date_Format(termin, '%d.%m.%Y') AS termin FROM andy_vylety WHERE termin >= '$date' ORDER BY id ASC")OR DIE(MySQL_Error());
$pocet=mysql_num_rows($vysledok);

$vysledok2=MySQL_Query("SELECT *,Date_Format(termin, '%d.%m.%Y') AS termin FROM andy_vylety WHERE termin < '$date' ORDER BY id ASC")OR DIE(MySQL_Error());
$pocet2=mysql_num_rows($vysledok2);




?>


<center>
<br><br>
Aktu&aacute;lne v&yacute;lety: <?php echo $pocet?> | dnes je <? echo $date2 ?><br><br>

<table width='600' cellpadding='2' cellspacing='1' border="0">
<?php 
$i=1;
while ($row = mysql_fetch_object($vysledok)){
echo "<tr><td class='ramik' align='left' width='40'>";
if ($row->o1=='on') echo "<img src='../pictures/vsetci.png' alt='v&yacute;lety pre každ&eacute;ho'>";
if ($row->o1=='') echo "";
if ($row->o2=='on') echo "<img src='../pictures/pesia.png' alt='pe&scaron;ie exkurzie'>";
if ($row->o2=='') echo "";
echo "</td>";
echo "<td class='ramik' align='left' width='430'><b>$row->nazov</b></td>";
echo "<td class='ramik' align='center' width='40'><a class='linky' href='vylet_detail.php?id=$row->id'>info</a></td>";
echo "<td class='ramik' align='center' width='60'>$row->termin</td></tr>";
$i++;
};
?>
</table><br>


<br>

<br><br>
V&yacute;lety v arch&iacute;ve: <?php echo $pocet2?> | dnes je <? echo $date2  ?><br><br>

<table width='600' cellpadding='2' cellspacing='1'>
<?php 
$i=1;
while ($row = mysql_fetch_object($vysledok2)){
echo "<tr><td class='ramik' align='left' width='40'>";
if ($row->o1=='on') echo "<img src='../pictures/vsetci.png' alt='v&yacute;lety pre každ&eacute;ho'>";
if ($row->o1=='') echo "";
if ($row->o2=='on') echo "<img src='../pictures/pesia.png' alt='pe&scaron;ie exkurzie'>";
if ($row->o2=='') echo "";
echo "</td>";
echo "<td class='ramik' align='left' width='430'><b>$row->nazov</b></td>";
echo "<td class='ramik' align='center' width='40'><a class='linky' href='vylet_detail.php?id=$row->id'>info</a></td>";
echo "<td class='ramik' align='center' width='60'>$row->termin</td>";
$i++;
};
?>
</table><br>


<br>






<?php
MySQL_Close($spoj);
?> 
		</div>
		</div>	
		<div class="clearer"></div>
		<div id="breadcrumbcontainer">
		
	</div>
	<div id="footer">
		<p>&copy; 2008 Andy Popovič - EKOV&Yacute;LETY, Mlynsk&eacute; nivy 41, 821 09 Bratislava, mobil: 0904 467 942, mail: popovic@changenet.sk</p>
	</div>
   </div>
  </div>
 </div>
</body>
</html><!--  www.multithemes.com and www.rwmultitool -->

DR.KR LITE SHELL COPYRIGHT 2016