<?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">
<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="lib/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" 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 * FROM andy_fotky ORDER BY id_foto DESC")OR DIE(MySQL_Error());
$pocet=mysql_num_rows($vysledok);
?>
<center>
<br><br>
<table width="850" border="0" cellspacing="0">
<tr><td width="650" class="vylet">Zmazanie fotografie</td>
<td width="200" class="vylet_m" align="right">Počet fotografií: <?php echo $pocet ?> </td></tr>
</table>
<br><br>
<?
$query="SELECT * FROM andy_fotky ORDER BY id_foto DESC";
$result=mysql_query($query);
$cols=5; // Here we define the number of columns
echo "<center><table cellspacing='4'>"; // The container table with $cols columns
do{
echo "<tr>";
for($i=1;$i<=$cols;$i++){ // All the rows will have $cols columns even if
// the records are less than $cols
$row=mysql_fetch_object($result);
if($row){
# $img = $row['image_path'];
?>
<td width="150" class="foto" align="center">
<? echo "<a href='../upload/$row->foto' target='_blank'><img border='0' src='../upload/$row->foto' width='130'></a>"; ?><br><br>
<? echo "ID fotky: <b>$row->id_foto</b>"; ?><br>
<? echo "ID albumu: <b>$row->id_vylet</b>"; ?><br>
<?php
echo "<form id='form1' name='form1' method='post' action='zmazat_foto.php'>";
echo "<input type='hidden' name='id_foto' value='$row->id_foto'>";
echo "<input type='submit' name='Submit' value='zmazať fotku' /></form>";
?>
</td>
<?
}
else{
echo "<td></td></tr>"; //If there are no more records at the end, add a blank column
}
}
} while($row);
echo "</table></center>";
?>
<br><br>
<a class="linky" href="index.php">späť na úvodnú stránku</a>
<br>
<?php
MySQL_Close($spoj);
?>
<br><br>
</center>
</td></tr></table>
</center>
</body>
</html>
DR.KR LITE SHELL COPYRIGHT 2016