<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Výlety</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=windows-1250">
<META name="description" content="Stránka katedry humánnej geografie a demogeografie">
<META name="keywords" content="Demografia, humánna geografia, študijný program, administratíva">
<META name="author" content="vladimir bacik" >
<META name="copyright" content="http://www.sodbtn.sk">
<meta name="Robots" content="index,follow">
<meta name="Revisit-after" content="5">
<LINK href="css/styly.css" type="text/css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/demo.css">
<link href="css/facybox.css" media="screen" rel="stylesheet" type="text/css">
<link href="css/facybox_urls.css" media="screen" rel="stylesheet" type="text/css">
<link href="css/faceplant.css" media="screen" rel="stylesheet" type="text/css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" type="text/javascript"></script>
<script src="css/facybox.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
$('a[rel*=facybox]').facybox({
// noAutoload: true
});
});
</script>
<body>
<br>
<center>
<table width="950">
<tr><td class="hlava" height="40">hlava stránky</td></tr>
<tr><td class="hlavna">
<?php
require("spojenie.php"); # Vložíme skript, ktorý obsahuje nastavenie pripojenia.
$spoj = MySQL_Connect($SQL_Server, $SQL_Uzivatel, $SQL_Heslo) OR DIE(MySQL_Error());
MySQL_Select_Db($Databaza) OR DIE(MySQL_Error());
$vysledok=MySQL_Query("SELECT *,COUNT(foto) AS pocet FROM andy_vylety,andy_fotky WHERE andy_vylety.id=andy_fotky.id_vylet GROUP BY id_vylet ORDER BY id_vylet DESC")OR DIE(MySQL_Error());
#$vysledok=MySQL_Query("SELECT * FROM akcie ORDER BY id DESC")OR DIE(MySQL_Error());
$pocet=mysql_num_rows($vysledok);
?>
<center>
<br><br>
<?php
$num_displayed = 5 ;
// Select random rows from the database
$result = mysql_query ("SELECT * FROM andy_fotky ORDER BY RAND() LIMIT $num_displayed");
echo "<center>";
echo "<div>";
echo "<div id='shadow'>";
echo "<div class='example'>";
echo "<div id='screenshots'>";
while ($row = mysql_fetch_object($result)) {
echo "<a href='../upload/$row->foto' rel='facybox'><img border='0' src='../upload/$row->foto' height='110'></a> " ;
};
echo "</div>";
echo "</div>";
echo "</div>";
echo "</div>";
echo "</center>"
?>
<br><br>
<table width='720' cellspacing='0' cellpadding='5' border="0">
<?php
$i=1;
while ($row_vysledok = mysql_fetch_object($vysledok)){
#if ($i%2==0) {$col='#ffffff';} else {$col='#cecfce';}
echo "<tr bgcolor=$col>";
echo "<td width='520' class='ramik'><a class='linky' href='fotogaleria_detail.php?id=$row_vysledok->id'><b>$row_vysledok->nazov</b></a></td>";
echo "<td width='200' class='ramik' align='right'>počet fotografií: <b>$row_vysledok->pocet</b></td>";
echo "</tr>";
$i++;
};
?>
</table>
<br>
<?php
MySQL_Close($spoj);
?>
<br><br>
</center>
</td></tr></table>
</center>
</body>
</html>
DR.KR LITE SHELL COPYRIGHT 2016