Your IP : 216.73.216.162


Current Path : /home/x/b/o/xbodynamge/namtation/wp-content/
Upload File :
Current File : /home/x/b/o/xbodynamge/namtation/wp-content/page_creer_block_reservation.php.tar

home/xbodynamge/namtation/reservation/admin/page_creer_block_reservation.php000060400000005444151117520740023662 0ustar00<?php
include_once('init.inc.php');
?>

<html>
<body>
<table style="width:100%;border:1px solid black;border-collapse:collapse;">
<tr>
<?php include_once('menu.php');?>
<td style="border:1px solid black;vertical-align: top;">

<form action="action_block_reservation.php" method="POST">

<?php

if (isset($_GET['status'])){

if ($_GET['status']=="ko"){
echo "<br><br><font color=\"red\">Les réservations n'ont pas été encodées, tous les champs doivent être remplis</font><br><br>";
}
if ($_GET['status']=="ok"){
echo "<br><br><font color=\"green\">Les réservations ont bien été encodées</font><br><br>";
}


}

?>

<table style="width:100%;border:0px">

<tr>
<td style="width:90px;">
Salle
</td>
<td>
<select name="salle">
<option></option>
<?php
$sql = "SELECT * from reservation".$DB_prefixtable."salle";
$req = mysqli_query($db, $sql) or die('Erreur SQL !'.mysqli_error());  
while($salle = mysqli_fetch_assoc($req)):?>
  <option value="<?php echo $salle['id'];?>" selected><?php echo $salle['salle']?></option>
<?php endwhile;
?>
</select>
</td>
</tr>

<tr>
<td>
Client
</td>
<td>
<select name="client">
<option></option>
<?php
$sql = "SELECT * from reservation".$DB_prefixtable."client order by nom, prenom";
$req = mysqli_query($db, $sql) or die('Erreur SQL !'.mysqli_error());  
while($client = mysqli_fetch_assoc($req)):?>
  <option value="<?php echo $client['id'];?>" <?php if ($_POST['client']==$client['id']) echo "selected";?>><?php echo $client['nom']." ".$client['prenom']?></option>
<?php endwhile;
?>
</select>
</td>
</tr>

<tr>
<td>
Block de date
</td>
<td>
<select name="bloc_date">
<option></option>
<?php
$sql = "SELECT distinct lib_bloc from reservation".$DB_prefixtable."bloc order by lib_bloc";
$req = mysqli_query($db, $sql) or die('Erreur SQL !'.mysqli_error());  
while($libbloc = mysqli_fetch_assoc($req)):?>
  <option value="<?php echo $libbloc['lib_bloc'];?>"><?php echo $libbloc['lib_bloc'];?></option>
<?php endwhile;
?>
</select>
</td>
</tr>


<tr>
<td>
Typde de séance
</td>
<td>
<select name="type_seance">
<option></option>
<?php
$sql = "SELECT distinct type_seance from reservation".$DB_prefixtable."seance_type order by type_seance";
$req = mysqli_query($db, $sql) or die('Erreur SQL !'.mysqli_error());  
while($type_seance = mysqli_fetch_assoc($req)):?>
  <option value="<?php echo $type_seance['type_seance'];?>"><?php echo $type_seance['type_seance'];?></option>
<?php endwhile;
?>
</select>
</td>
</tr>



<tr>
<td>
Heure de début
</td>
<td>
<input type="text" name="heure_debut" size="100" maxlength="5" >
</td>
</tr>


<tr>
<td>
Heure de fin
</td>
<td>
<input type="text" name="heure_fin" size="100" maxlength="5" >
</td>
</tr>



</table>

<input type="hidden" name="type" value="new">
<input type="submit" value="Ajouter des réservations pour toutes les dates du bloc">
</form>


</body>
</html>home/xbodynamge/www/reservation/admin/page_creer_block_reservation.php000060400000005444151132121040022477 0ustar00<?php
include_once('init.inc.php');
?>

<html>
<body>
<table style="width:100%;border:1px solid black;border-collapse:collapse;">
<tr>
<?php include_once('menu.php');?>
<td style="border:1px solid black;vertical-align: top;">

<form action="action_block_reservation.php" method="POST">

<?php

if (isset($_GET['status'])){

if ($_GET['status']=="ko"){
echo "<br><br><font color=\"red\">Les réservations n'ont pas été encodées, tous les champs doivent être remplis</font><br><br>";
}
if ($_GET['status']=="ok"){
echo "<br><br><font color=\"green\">Les réservations ont bien été encodées</font><br><br>";
}


}

?>

<table style="width:100%;border:0px">

<tr>
<td style="width:90px;">
Salle
</td>
<td>
<select name="salle">
<option></option>
<?php
$sql = "SELECT * from reservation".$DB_prefixtable."salle";
$req = mysqli_query($db, $sql) or die('Erreur SQL !'.mysqli_error());  
while($salle = mysqli_fetch_assoc($req)):?>
  <option value="<?php echo $salle['id'];?>" selected><?php echo $salle['salle']?></option>
<?php endwhile;
?>
</select>
</td>
</tr>

<tr>
<td>
Client
</td>
<td>
<select name="client">
<option></option>
<?php
$sql = "SELECT * from reservation".$DB_prefixtable."client order by nom, prenom";
$req = mysqli_query($db, $sql) or die('Erreur SQL !'.mysqli_error());  
while($client = mysqli_fetch_assoc($req)):?>
  <option value="<?php echo $client['id'];?>" <?php if ($_POST['client']==$client['id']) echo "selected";?>><?php echo $client['nom']." ".$client['prenom']?></option>
<?php endwhile;
?>
</select>
</td>
</tr>

<tr>
<td>
Block de date
</td>
<td>
<select name="bloc_date">
<option></option>
<?php
$sql = "SELECT distinct lib_bloc from reservation".$DB_prefixtable."bloc order by lib_bloc";
$req = mysqli_query($db, $sql) or die('Erreur SQL !'.mysqli_error());  
while($libbloc = mysqli_fetch_assoc($req)):?>
  <option value="<?php echo $libbloc['lib_bloc'];?>"><?php echo $libbloc['lib_bloc'];?></option>
<?php endwhile;
?>
</select>
</td>
</tr>


<tr>
<td>
Typde de séance
</td>
<td>
<select name="type_seance">
<option></option>
<?php
$sql = "SELECT distinct type_seance from reservation".$DB_prefixtable."seance_type order by type_seance";
$req = mysqli_query($db, $sql) or die('Erreur SQL !'.mysqli_error());  
while($type_seance = mysqli_fetch_assoc($req)):?>
  <option value="<?php echo $type_seance['type_seance'];?>"><?php echo $type_seance['type_seance'];?></option>
<?php endwhile;
?>
</select>
</td>
</tr>



<tr>
<td>
Heure de début
</td>
<td>
<input type="text" name="heure_debut" size="100" maxlength="5" >
</td>
</tr>


<tr>
<td>
Heure de fin
</td>
<td>
<input type="text" name="heure_fin" size="100" maxlength="5" >
</td>
</tr>



</table>

<input type="hidden" name="type" value="new">
<input type="submit" value="Ajouter des réservations pour toutes les dates du bloc">
</form>


</body>
</html>home/xbodynamge/crosstraining/reservation/admin/page_creer_block_reservation.php000060400000005444151144223510024550 0ustar00<?php
include_once('init.inc.php');
?>

<html>
<body>
<table style="width:100%;border:1px solid black;border-collapse:collapse;">
<tr>
<?php include_once('menu.php');?>
<td style="border:1px solid black;vertical-align: top;">

<form action="action_block_reservation.php" method="POST">

<?php

if (isset($_GET['status'])){

if ($_GET['status']=="ko"){
echo "<br><br><font color=\"red\">Les réservations n'ont pas été encodées, tous les champs doivent être remplis</font><br><br>";
}
if ($_GET['status']=="ok"){
echo "<br><br><font color=\"green\">Les réservations ont bien été encodées</font><br><br>";
}


}

?>

<table style="width:100%;border:0px">

<tr>
<td style="width:90px;">
Salle
</td>
<td>
<select name="salle">
<option></option>
<?php
$sql = "SELECT * from reservation".$DB_prefixtable."salle";
$req = mysqli_query($db, $sql) or die('Erreur SQL !'.mysqli_error());  
while($salle = mysqli_fetch_assoc($req)):?>
  <option value="<?php echo $salle['id'];?>" selected><?php echo $salle['salle']?></option>
<?php endwhile;
?>
</select>
</td>
</tr>

<tr>
<td>
Client
</td>
<td>
<select name="client">
<option></option>
<?php
$sql = "SELECT * from reservation".$DB_prefixtable."client order by nom, prenom";
$req = mysqli_query($db, $sql) or die('Erreur SQL !'.mysqli_error());  
while($client = mysqli_fetch_assoc($req)):?>
  <option value="<?php echo $client['id'];?>" <?php if ($_POST['client']==$client['id']) echo "selected";?>><?php echo $client['nom']." ".$client['prenom']?></option>
<?php endwhile;
?>
</select>
</td>
</tr>

<tr>
<td>
Block de date
</td>
<td>
<select name="bloc_date">
<option></option>
<?php
$sql = "SELECT distinct lib_bloc from reservation".$DB_prefixtable."bloc order by lib_bloc";
$req = mysqli_query($db, $sql) or die('Erreur SQL !'.mysqli_error());  
while($libbloc = mysqli_fetch_assoc($req)):?>
  <option value="<?php echo $libbloc['lib_bloc'];?>"><?php echo $libbloc['lib_bloc'];?></option>
<?php endwhile;
?>
</select>
</td>
</tr>


<tr>
<td>
Typde de séance
</td>
<td>
<select name="type_seance">
<option></option>
<?php
$sql = "SELECT distinct type_seance from reservation".$DB_prefixtable."seance_type order by type_seance";
$req = mysqli_query($db, $sql) or die('Erreur SQL !'.mysqli_error());  
while($type_seance = mysqli_fetch_assoc($req)):?>
  <option value="<?php echo $type_seance['type_seance'];?>"><?php echo $type_seance['type_seance'];?></option>
<?php endwhile;
?>
</select>
</td>
</tr>



<tr>
<td>
Heure de début
</td>
<td>
<input type="text" name="heure_debut" size="100" maxlength="5" >
</td>
</tr>


<tr>
<td>
Heure de fin
</td>
<td>
<input type="text" name="heure_fin" size="100" maxlength="5" >
</td>
</tr>



</table>

<input type="hidden" name="type" value="new">
<input type="submit" value="Ajouter des réservations pour toutes les dates du bloc">
</form>


</body>
</html>