<?php
require_once('auth.php');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>ADMIN - Výlety</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=utf8">
<META name="description" content="Ekovýlety">
<META name="keywords" content="Ekovýlety, exkurzie, podujatia pre školy a verejnosť">
<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="styly.css" type="text/css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/demo.css">
<body>
<br>
<center>
<table width="950" class="admin">
<tr><td class="hlava_adm" height="60">Administrácia stránky - EKOVYLETY.sk</td></tr>
<tr><td class="menu_adm" height="25">
<a class="admin" href="index.php">úvodná stránka</a>
</td></tr>
<tr><td class="hlavna">
<br>
<center>
<?php
include('identifikacia.php');
?>
</center>
<?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());
mysql_query("set names utf8");
$vysledok=MySQL_Query("SELECT *,Date_Format(pridane, '%d.%m.%Y') AS pridane FROM andy_vylety ORDER BY id DESC")OR DIE(MySQL_Error());
$pocet=mysql_num_rows($vysledok);
#$row_vysledok = mysql_fetch_object($vysledok);
?>
<center>
<br><br>
Počet výletov: <?php echo $pocet?><br><br>
<table width='850' 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='180'><a class='linky' href='vylet_detail.php?id=$row->id'>zobraziť informácie</a></td>";
echo "<td class='ramik' align='center' width='150'><a class='linky' href='vylet_prihlaseni.php?id=$row->id'>prihlásení</a></td>";
echo "<td class='ramik' align='center' width='100'>$row->pridane</td></tr>";
$i++;
};
?>
</table><br>
<br>
<?php
MySQL_Close($spoj);
?>
<br><br>
</center>
</td></tr></table>
</center>
</body>
</html>
DR.KR LITE SHELL COPYRIGHT 2016