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/action_reservation.php.tar

home/xbodynamge/www/reservation/admin/action_reservation.php000060400000002504151122751400020510 0ustar00<?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.php000060400000002364151130023360021266 0ustar00<?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.php000060400000002504151131623250021657 0ustar00<?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.php000060400000002364151132723630022445 0ustar00<?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.php000060400000002504151134724630021653 0ustar00<?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.php000060400000002504151135307670020507 0ustar00<?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.php000060400000002504151136640630022560 0ustar00<?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.php000060400000002504151136640670022551 0ustar00<?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.php000060400000002364151153334710023340 0ustar00<?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'); 
}



?>