Current Path : /home/da040400/www_root/adm/
Upload File :
Current File : /home/da040400/www_root/adm/uprava_vyletu.php

<?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>

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='center' width='40'>ID: <span class='id'>$row->id</span></td>";
echo "<td class='ramik' align='left' width='350'><b>$row->nazov</b></td>";
echo "<td class='ramik' align='center' width='180'><a class='linky' href='upravit_vylet.php?id=$row->id'>upraviť informácie o výlete</a></td>";
echo "<td class='ramik' align='center' width='80'>$row->pridane</td>";
#echo "<td class='ramik'>";
#echo "<form id='form1' name='form1' method='post' action='zmazat_vylet.php'>";
#echo "<input type='hidden' name='id' value='$row->id'>";
#echo "<input type='submit' name='Submit' value='zmazať výlet' /></form>"; 
echo "</tr>";
$i++;
};
?>
</table><br><br>

<?php 
echo "<form action='zmazat_vylet.php' method='get'>"; 
echo "<b>ID výletu na vymazanie:</b>&nbsp;&nbsp;";
echo "<input type='text' name='id' size='4' length='4' value=''>&nbsp;&nbsp;";
echo "<input type='submit' name='submit' value='zmazať výlet'>";
echo "</form>";
?>

<br>








<?php
MySQL_Close($spoj);
?> 

<br><br>
   
</center>


</td></tr></table>
</center>


</body>
</html>

DR.KR LITE SHELL COPYRIGHT 2016