<?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>
<?
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");
$kategoria = MySQL_Query("select id,nazov from andy_vylety ORDER BY nazov ASC");
?>
<center>
<br>
<script type='text/javascript'>
function notEmpty(){var themessage = "";
if(document.getElementById('id_vylet').value.length == 0){themessage = themessage + "Nevybrali ste výlet"+"\n";}
if (themessage != "") {alert (themessage); return false;
}else {return true;}
}
</script>
<form enctype="multipart/form-data" action="pridaj_foto.php" method="POST" onsubmit="return notEmpty();">
<table class="napiste" width="900" cellspacing="1" cellpadding="2" border="0">
<tr><td " width="140" valign="top">Vyberte výlet:</td><td width="760">
<SELECT size=1 name="id_vylet" id="id_vylet">
<OPTION value="">Vyberte výlet do ktorého albumu dávate fotku:</OPTION>
<?php
$i=1;
while ($row_vysledok = mysql_fetch_object($kategoria)){
echo "<OPTION value='$row_vysledok->id'>$row_vysledok->nazov</OPTION>";
$i++;
};
?>
</SELECT>
</td></tr>
<tr><td class="b2" width="140">Súbor:</td><td class="b2" width="760"><input type="file" name="foto" size="60" id="foto"> </td></tr>
<tr><td class="b2" width="140"> </td><td><input type="submit" value="Odoslať fotku" name="posli"></td><td class="b2" width="760"> </td></tr>
</table>
</form>
<br><br>
<a class="linky" href="fotky.php">zmazanie fotografie z databázi</a><br><br>
</center>
</td></tr></table>
</center>
</body>
</html>
DR.KR LITE SHELL COPYRIGHT 2016