Current Path : /home/da040400/www_root/pokus2/
Upload File :
Current File : /home/da040400/www_root/pokus2/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>www.ekovylety.sk - 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/colours_front.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_1pixel.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>www.ekovylety.sk</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="vylety.php" rel="self" id="current">ponuka v&yacute;letov</a></li><li><a href="aktuality.php" rel="self">aktuality</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 DESC")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 DESC")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 DESC")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'>
<?php 
$i=1;
while ($row = mysql_fetch_object($vysledok)){
echo "<tr><td class='ramik' align='center' width='20'>$i</td>";
echo "<td class='ramik' align='left' width='400'><b>$row->nazov</b></td>";
echo "<td class='ramik' align='center' width='100'><a class='linky' href='vylet_detail.php?id=$row->id'>info</a></td>";
echo "<td class='ramik' align='center' width='100'>$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='center' width='20'>$i</td>";
echo "<td class='ramik' align='left' width='300'><b>$row->nazov</b></td>";
echo "<td class='ramik' align='center' width='300'><a class='linky' href='vylet_detail.php?id=$row->id'>info</a></td>";
echo "<td class='ramik' align='center' width='100'>$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; 2012 Andrej Popovič</p>
	</div>
   </div>
  </div>
 </div>
</body>
</html><!--  www.multithemes.com and www.rwmultitool -->

DR.KR LITE SHELL COPYRIGHT 2016