| Current Path : /home/x/b/o/xbodynamge/namtation/wp-content/ |
| Current File : /home/x/b/o/xbodynamge/namtation/wp-content/action_reservation.php.tar |
home/xbodynamge/www/reservation/admin/action_reservation.php 0000604 00000002504 15112275140 0020510 0 ustar 00 <?php
include_once('init.inc.php');
if ($_POST['type']=="annuler"){
try {
$transactDB = new PDO("mysql:host=".$DB_server.";dbname=".$DB_dbname, $DB_login, $DB_pass);
$transactDB->beginTransaction();
$transactDB->query("delete from reservation".$DB_prefixtable."reservation where id = ".$_POST['id_reservation']);
$transactDB->query("update reservation".$DB_prefixtable."client set nb_seance=nb_seance+1 where id = ".$_POST['id_client']);
$transactDB->commit();
} catch (Exception $e) {
$transactDB->rollback();
}
header('Location: '.$_POST['nextpage']);
}
if ($_POST['type']=="creer"){
try {
$transactDB = new PDO("mysql:host=".$DB_server.";dbname=".$DB_dbname, $DB_login, $DB_pass);
$transactDB->beginTransaction();
$transactDB->query("insert into reservation".$DB_prefixtable."reservation (id_client, id_salle, date, heure_deb, heure_fin, type_seance) value (".$_POST['id_client'].", '".$_POST['id_salle']."', '".$_POST['date']."', '".$_POST['heure_debut']."', '".$_POST['heure_fin']."', '".$_POST['type_seance']."')");
$transactDB->query("update reservation".$DB_prefixtable."client set nb_seance=nb_seance-1 where id = ".$_POST['id_client']);
$transactDB->commit();
} catch (Exception $e) {
$transactDB->rollback();
}
header('Location: '.$_POST['nextpage']);
}
?>
home/xbodynamge/www/reservation/dev/admin/action_reservation.php 0000604 00000002364 15113002336 0021266 0 ustar 00 <?php
include_once('init.inc.php');
if ($_POST['type']=="annuler"){
try {
$transactDB = new PDO("mysql:host=".$DB_server.";dbname=".$DB_dbname, $DB_login, $DB_pass);
$transactDB->beginTransaction();
$transactDB->query("delete from reservation_reservation where id = ".$_POST['id_reservation']);
$transactDB->query("update reservation_client set nb_seance=nb_seance+1 where id = ".$_POST['id_client']);
$transactDB->commit();
} catch (Exception $e) {
$transactDB->rollback();
}
header('Location: page_client.php');
}
if ($_POST['type']=="creer"){
try {
$transactDB = new PDO("mysql:host=".$DB_server.";dbname=".$DB_dbname, $DB_login, $DB_pass);
$transactDB->beginTransaction();
$transactDB->query("insert into reservation_reservation (id_client, id_salle, date, heure_deb, heure_fin, type_seance) value (".$_POST['id_client'].", '".$_POST['id_salle']."', '".$_POST['date']."', '".$_POST['heure_debut']."', '".$_POST['heure_fin']."', '".$_POST['type_seance']."')");
$transactDB->query("update reservation_client set nb_seance=nb_seance-1 where id = ".$_POST['id_client']);
$transactDB->commit();
} catch (Exception $e) {
$transactDB->rollback();
}
header('Location: page_client.php');
}
?>
home/xbodynamge/namtation/reservation/admin/action_reservation.php 0000604 00000002504 15113162325 0021657 0 ustar 00 <?php
include_once('init.inc.php');
if ($_POST['type']=="annuler"){
try {
$transactDB = new PDO("mysql:host=".$DB_server.";dbname=".$DB_dbname, $DB_login, $DB_pass);
$transactDB->beginTransaction();
$transactDB->query("delete from reservation".$DB_prefixtable."reservation where id = ".$_POST['id_reservation']);
$transactDB->query("update reservation".$DB_prefixtable."client set nb_seance=nb_seance+1 where id = ".$_POST['id_client']);
$transactDB->commit();
} catch (Exception $e) {
$transactDB->rollback();
}
header('Location: '.$_POST['nextpage']);
}
if ($_POST['type']=="creer"){
try {
$transactDB = new PDO("mysql:host=".$DB_server.";dbname=".$DB_dbname, $DB_login, $DB_pass);
$transactDB->beginTransaction();
$transactDB->query("insert into reservation".$DB_prefixtable."reservation (id_client, id_salle, date, heure_deb, heure_fin, type_seance) value (".$_POST['id_client'].", '".$_POST['id_salle']."', '".$_POST['date']."', '".$_POST['heure_debut']."', '".$_POST['heure_fin']."', '".$_POST['type_seance']."')");
$transactDB->query("update reservation".$DB_prefixtable."client set nb_seance=nb_seance-1 where id = ".$_POST['id_client']);
$transactDB->commit();
} catch (Exception $e) {
$transactDB->rollback();
}
header('Location: '.$_POST['nextpage']);
}
?>
home/xbodynamge/namtation/reservation/dev/admin/action_reservation.php 0000604 00000002364 15113272363 0022445 0 ustar 00 <?php
include_once('init.inc.php');
if ($_POST['type']=="annuler"){
try {
$transactDB = new PDO("mysql:host=".$DB_server.";dbname=".$DB_dbname, $DB_login, $DB_pass);
$transactDB->beginTransaction();
$transactDB->query("delete from reservation_reservation where id = ".$_POST['id_reservation']);
$transactDB->query("update reservation_client set nb_seance=nb_seance+1 where id = ".$_POST['id_client']);
$transactDB->commit();
} catch (Exception $e) {
$transactDB->rollback();
}
header('Location: page_client.php');
}
if ($_POST['type']=="creer"){
try {
$transactDB = new PDO("mysql:host=".$DB_server.";dbname=".$DB_dbname, $DB_login, $DB_pass);
$transactDB->beginTransaction();
$transactDB->query("insert into reservation_reservation (id_client, id_salle, date, heure_deb, heure_fin, type_seance) value (".$_POST['id_client'].", '".$_POST['id_salle']."', '".$_POST['date']."', '".$_POST['heure_debut']."', '".$_POST['heure_fin']."', '".$_POST['type_seance']."')");
$transactDB->query("update reservation_client set nb_seance=nb_seance-1 where id = ".$_POST['id_client']);
$transactDB->commit();
} catch (Exception $e) {
$transactDB->rollback();
}
header('Location: page_client.php');
}
?>
home/xbodynamge/namtation/reservation/coach/action_reservation.php 0000604 00000002504 15113472463 0021653 0 ustar 00 <?php
include_once('init.inc.php');
if ($_POST['type']=="annuler"){
try {
$transactDB = new PDO("mysql:host=".$DB_server.";dbname=".$DB_dbname, $DB_login, $DB_pass);
$transactDB->beginTransaction();
$transactDB->query("delete from reservation".$DB_prefixtable."reservation where id = ".$_POST['id_reservation']);
$transactDB->query("update reservation".$DB_prefixtable."client set nb_seance=nb_seance+1 where id = ".$_POST['id_client']);
$transactDB->commit();
} catch (Exception $e) {
$transactDB->rollback();
}
header('Location: '.$_POST['nextpage']);
}
if ($_POST['type']=="creer"){
try {
$transactDB = new PDO("mysql:host=".$DB_server.";dbname=".$DB_dbname, $DB_login, $DB_pass);
$transactDB->beginTransaction();
$transactDB->query("insert into reservation".$DB_prefixtable."reservation (id_client, id_salle, date, heure_deb, heure_fin, type_seance) value (".$_POST['id_client'].", '".$_POST['id_salle']."', '".$_POST['date']."', '".$_POST['heure_debut']."', '".$_POST['heure_fin']."', '".$_POST['type_seance']."')");
$transactDB->query("update reservation".$DB_prefixtable."client set nb_seance=nb_seance-1 where id = ".$_POST['id_client']);
$transactDB->commit();
} catch (Exception $e) {
$transactDB->rollback();
}
header('Location: '.$_POST['nextpage']);
}
?>
home/xbodynamge/www/reservation/coach/action_reservation.php 0000604 00000002504 15113530767 0020507 0 ustar 00 <?php
include_once('init.inc.php');
if ($_POST['type']=="annuler"){
try {
$transactDB = new PDO("mysql:host=".$DB_server.";dbname=".$DB_dbname, $DB_login, $DB_pass);
$transactDB->beginTransaction();
$transactDB->query("delete from reservation".$DB_prefixtable."reservation where id = ".$_POST['id_reservation']);
$transactDB->query("update reservation".$DB_prefixtable."client set nb_seance=nb_seance+1 where id = ".$_POST['id_client']);
$transactDB->commit();
} catch (Exception $e) {
$transactDB->rollback();
}
header('Location: '.$_POST['nextpage']);
}
if ($_POST['type']=="creer"){
try {
$transactDB = new PDO("mysql:host=".$DB_server.";dbname=".$DB_dbname, $DB_login, $DB_pass);
$transactDB->beginTransaction();
$transactDB->query("insert into reservation".$DB_prefixtable."reservation (id_client, id_salle, date, heure_deb, heure_fin, type_seance) value (".$_POST['id_client'].", '".$_POST['id_salle']."', '".$_POST['date']."', '".$_POST['heure_debut']."', '".$_POST['heure_fin']."', '".$_POST['type_seance']."')");
$transactDB->query("update reservation".$DB_prefixtable."client set nb_seance=nb_seance-1 where id = ".$_POST['id_client']);
$transactDB->commit();
} catch (Exception $e) {
$transactDB->rollback();
}
header('Location: '.$_POST['nextpage']);
}
?>
home/xbodynamge/crosstraining/reservation/admin/action_reservation.php 0000604 00000002504 15113664063 0022560 0 ustar 00 <?php
include_once('init.inc.php');
if ($_POST['type']=="annuler"){
try {
$transactDB = new PDO("mysql:host=".$DB_server.";dbname=".$DB_dbname, $DB_login, $DB_pass);
$transactDB->beginTransaction();
$transactDB->query("delete from reservation".$DB_prefixtable."reservation where id = ".$_POST['id_reservation']);
$transactDB->query("update reservation".$DB_prefixtable."client set nb_seance=nb_seance+1 where id = ".$_POST['id_client']);
$transactDB->commit();
} catch (Exception $e) {
$transactDB->rollback();
}
header('Location: '.$_POST['nextpage']);
}
if ($_POST['type']=="creer"){
try {
$transactDB = new PDO("mysql:host=".$DB_server.";dbname=".$DB_dbname, $DB_login, $DB_pass);
$transactDB->beginTransaction();
$transactDB->query("insert into reservation".$DB_prefixtable."reservation (id_client, id_salle, date, heure_deb, heure_fin, type_seance) value (".$_POST['id_client'].", '".$_POST['id_salle']."', '".$_POST['date']."', '".$_POST['heure_debut']."', '".$_POST['heure_fin']."', '".$_POST['type_seance']."')");
$transactDB->query("update reservation".$DB_prefixtable."client set nb_seance=nb_seance-1 where id = ".$_POST['id_client']);
$transactDB->commit();
} catch (Exception $e) {
$transactDB->rollback();
}
header('Location: '.$_POST['nextpage']);
}
?>
home/xbodynamge/crosstraining/reservation/coach/action_reservation.php 0000604 00000002504 15113664067 0022551 0 ustar 00 <?php
include_once('init.inc.php');
if ($_POST['type']=="annuler"){
try {
$transactDB = new PDO("mysql:host=".$DB_server.";dbname=".$DB_dbname, $DB_login, $DB_pass);
$transactDB->beginTransaction();
$transactDB->query("delete from reservation".$DB_prefixtable."reservation where id = ".$_POST['id_reservation']);
$transactDB->query("update reservation".$DB_prefixtable."client set nb_seance=nb_seance+1 where id = ".$_POST['id_client']);
$transactDB->commit();
} catch (Exception $e) {
$transactDB->rollback();
}
header('Location: '.$_POST['nextpage']);
}
if ($_POST['type']=="creer"){
try {
$transactDB = new PDO("mysql:host=".$DB_server.";dbname=".$DB_dbname, $DB_login, $DB_pass);
$transactDB->beginTransaction();
$transactDB->query("insert into reservation".$DB_prefixtable."reservation (id_client, id_salle, date, heure_deb, heure_fin, type_seance) value (".$_POST['id_client'].", '".$_POST['id_salle']."', '".$_POST['date']."', '".$_POST['heure_debut']."', '".$_POST['heure_fin']."', '".$_POST['type_seance']."')");
$transactDB->query("update reservation".$DB_prefixtable."client set nb_seance=nb_seance-1 where id = ".$_POST['id_client']);
$transactDB->commit();
} catch (Exception $e) {
$transactDB->rollback();
}
header('Location: '.$_POST['nextpage']);
}
?>
home/xbodynamge/crosstraining/reservation/dev/admin/action_reservation.php 0000604 00000002364 15115333471 0023340 0 ustar 00 <?php
include_once('init.inc.php');
if ($_POST['type']=="annuler"){
try {
$transactDB = new PDO("mysql:host=".$DB_server.";dbname=".$DB_dbname, $DB_login, $DB_pass);
$transactDB->beginTransaction();
$transactDB->query("delete from reservation_reservation where id = ".$_POST['id_reservation']);
$transactDB->query("update reservation_client set nb_seance=nb_seance+1 where id = ".$_POST['id_client']);
$transactDB->commit();
} catch (Exception $e) {
$transactDB->rollback();
}
header('Location: page_client.php');
}
if ($_POST['type']=="creer"){
try {
$transactDB = new PDO("mysql:host=".$DB_server.";dbname=".$DB_dbname, $DB_login, $DB_pass);
$transactDB->beginTransaction();
$transactDB->query("insert into reservation_reservation (id_client, id_salle, date, heure_deb, heure_fin, type_seance) value (".$_POST['id_client'].", '".$_POST['id_salle']."', '".$_POST['date']."', '".$_POST['heure_debut']."', '".$_POST['heure_fin']."', '".$_POST['type_seance']."')");
$transactDB->query("update reservation_client set nb_seance=nb_seance-1 where id = ".$_POST['id_client']);
$transactDB->commit();
} catch (Exception $e) {
$transactDB->rollback();
}
header('Location: page_client.php');
}
?>