1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
<?php
session_start(); // Création de la session
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Cloture d'intervention</title>
</head>
<body>
<?php
$intervention=$_POST['intervention'];
$user=ucfirst($_SESSION['user']);
$password=$_SESSION['password'];
$db_conn = ocilogon( "$user", "$password" ,"//127.0.0.1/XE");
$request="update pti.intervention set datefin=sysdate where idintervention=&intervention";
$update=ociparse($db_conn,$request);
ociexecute($update);
echo "La demande d'intervention $intervention a été cloturée avec succès";
?>
<input type="button" value="Accueil" onClick="document.location='index.php';" />
</form>
</body>
</html> |