Witaj ".$_SESSION['login'].'! [ Wyloguj się! ';echo "] [";
echo ' Powrót]';
if(isset($_SESSION['blad_perm'])){
echo "".$_SESSION['blad_perm']."";unset($_SESSION['blad_perm']);
}
elseif(isset($_SESSION['id_log'])){
echo "".$_SESSION['id_log']."";unset($_SESSION['id_log']);
}
elseif(isset($_SESSION['slots_log'])){
echo "".$_SESSION['slots_log']."";unset($_SESSION['slots_log']);
}
if ($ile>=1)
{
if($_SESSION['perm']=='modder' || $_SESSION['perm']=='admin'){
echo ' | ';
}
else{
echo '
ID Eventu | ';
}
echo<<
END;
}
$akt_date = date("Y-m-d");
for ($i = 1; $i <= $ile; $i++)
{
$row = mysqli_fetch_assoc($rezultat);
$a4 = $row['date_stop'];
if($a4 < $akt_date){
$a1 = $row['title'];
$a2 = $row['description'];
$a3 = $row['date_start'];
$a5 = $row['time_start'];
$a6 = $row['time_stop'];
$a7 = $row['location'];
$a8 = $row['id_events'];
$a9 = $a6 - $a5;
$a5 = substr($a5,0,strlen($a5)-3);
$a6 = substr($a6,0,strlen($a6)-3);
echo<<
|
$a1 |
$a3 |
$a5 |
$a9 |
$a7 |
END;
}
}
echo "
";
?>