Files
resatennis_tyroltenn/www/tyroltenn/consult_port.php

67 lines
1.8 KiB
PHP
Executable File

<?php
session_start();
if(count($_SESSION)==2 and isset($_SESSION['id_joueur']) and isset($_SESSION['id_club'])) {
$id_joueur_log=$_SESSION['id_joueur'];
$id_club_log=$_SESSION['id_club'];
?>
<!DOCTYPE html PUBLIC "-//WAPFORUM/DTD XHTML Mobile 1.1//EN"
"<http://www.openmobilealliance.org/tech/DTD/xhtml-mobile11.dtd">
<head>
<TITLE>ResaTennis</TITLE>
<meta http-equiv:"content-type" content="text/html, charset=UTF-8">
<!--<meta http-equiv:"Cache-Control" content="public">-->
<!-- Style CSS -->
<link rel="stylesheet" href="style_port.css" type="text/css">
</head>
<body>
<div id="tout">
<?php
echo "<p><div style='text-align:left;'><a href='menu_port.php'>Retour au menu</a></div>";
/* Affichage du nom du club */
include_once("fonctions_mobile.php");
$nom_club=recherche_club($id_club_log);
echo "<div style='text-align:center;font-weight:bold;font-size:10px;'>";
echo "";
/* Date du jour */
if(count($_GET)==1 and isset($_GET['date'])) {
$date_get=$_GET['date'];
}
else {
$date_get="ajd";
}
$ts=time();
if($date_get=='ajd') {
$date_lien='demain';
$date_fr=date("d/m/Y", $ts);
echo "R&eacute;servations au $nom_club - $date_fr <a href='consult_port.php?date=$date_lien'> >></a></div></p>";
}
else {
$date_lien='ajd';
$ts+=(3600*24);
$date_fr=date("d/m/Y", $ts);
echo "<a href='consult_port.php?date=$date_lien'><< </a>R&eacute;servations au $nom_club - $date_fr</div></p>";
}
/* inclusion des fonctions mobile */
/* Affichage planning journée mobile */
affichage_mobile($id_club_log, $date_fr);
/* Légende */
echo "<p style='text-align:center;font-size:12px;font-weight:bold;'>";
echo "cliquez sur une case vide pour r&eacute;server<br />";
echo "CI: Court Int&eacute;rieur ; CE: Court Ext&eacute;rieur";
echo "</p>";
include_once("piedpage_port.php");
}
else {
echo "acces impossible";
include("index_port.php");
}
?>