Current Path : /home/da040400/www_root/adm/
Upload File :
Current File : /home/da040400/www_root/adm/vylet_prihlaseni.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=utf-8">
<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

$id = $_GET["id"]; 

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 WHERE id=$id")OR DIE(MySQL_Error());
$pocet=mysql_num_rows($vysledok);
$row = mysql_fetch_object($vysledok);

$vysledok2=MySQL_Query("SELECT *,Date_Format(pridane, '%d.%m.%Y') AS pridane FROM andy_prihlaseni WHERE id_vylet=$id")OR DIE(MySQL_Error());
$pocetp=mysql_num_rows($vysledok2);
#$row2 = mysql_fetch_object($vysledok2);


?>


<br><br>

<center>


<table width="850" border="0" cellspacing="0">
<tr><td width="750" class="vylet"><?php echo $row->nazov ?>&nbsp;| <?php echo $row->krajina ?></td><td width="100" class="vylet" align="right">
<?php 
if ($row->vylet_pre=='verejnost') echo "<img src='../pictures/verejnost.png'><br>";
if ($row->vylet_pre=='skola') echo "<img src='../pictures/skoly.png'><br>";
?>
</td></tr>
<tr><td colspan="2" class="vylet2">
pridané: <?php echo $row->pridane ?> <br>
termín výletu: <?php echo $row->termin ?><br> 
počet miest: <?php echo $row->volne_miesta ?><br>
počet prihlásených: <?php echo $pocetp; ?><br><br> 
<?php echo $row->popis ?>
</td></tr></table>
<br><br>

<table width='850' cellpadding='2' cellspacing='1'>
<tr><td class="admin">ID</td><td class="admin">meno</td><td class="admin">priezvisko</td><td class="admin">e-mail</td><td class="admin">mobil</td><td class="admin">prihlásený</td><td class="admin">zmazať</td></tr>
<?php 
$i=1;
while ($row = mysql_fetch_object($vysledok2)){
echo "<tr><td class='ramik' align='center' width='20'>$row->id</td>";
echo "<td class='ramik' align='left' width='200'><b>$row->meno</b></td>";
echo "<td class='ramik' align='left' width='230'><b>$row->priezvisko</b></td>";
echo "<td class='ramik' align='center' width='200'>$row->email</td>";
echo "<td class='ramik' align='center' width='200'>$row->mobil</td>";
echo "<td class='ramik' align='center' width='200'>$row->pridane</td>";
echo "<td class='ramik' align='center' width='200'>";
echo "<form id='form1' name='form1' method='post' action='zmazat_ucastnika.php'>";
echo "<input type='hidden' name='id' value='$row->id'>";
echo "<input type='submit' name='Submit' value='zmazať osobu' /></form>"; 
echo "</td>";

$i++;
};
?>
</table><br>


<br><br>
<a class="linky" href="vylety_admin.php">späť na všetky výlety</a>

<?php
MySQL_Close($spoj);
?> 

<br><br>



</center>


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


</body>
</html>

DR.KR LITE SHELL COPYRIGHT 2016