-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patheditAppointmentView.php
More file actions
52 lines (44 loc) · 1.54 KB
/
editAppointmentView.php
File metadata and controls
52 lines (44 loc) · 1.54 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
include_once "inc/prelude.php";
connectDB();
$sql = "select * from cojoDatabase.ServiceTransport where id = $1";
$ret = pg_query_params($db, $sql, [$_GET["id"]]);
closeDB();
if (!$ret) {
setFlash("This isn't the serviceTransport you're looking for.");
header("Location: appointments.php");
exit;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>COJO :: Modifier un transport</title>
<style>
body {
background-image: url(" r/transport.jpg");
} </style>
<?php include "inc/resources.php" ?>
</head>
<body>
<div class="wrapper">
<header>
<h1>COJO PROJECT</h1>
<h1>COJO</h1>
<?php breadcrumb("Modifier un transport") ?>
</header>
<?php
$r = pg_fetch_row($ret);
?><form action="doEditAppointment.php" method="POST">
<input type="hidden" name="id" value="<?php echo $r[0] ?>"><br />
Depart: <input type="text" class="depart" name="depart" value="<?php echo $r[1]; ?>" /> <br />
Arrivee: <input type="text" class="arrivee" name="arrivee" value="<?php echo $r[2]; ?>" /> <br />
Itineraire: <input type="text" name="itineraire" value="<?php echo $r[3] ?>"><br />
Frequence Horaire: <input type="text" name="freqHoraire" value="<?php echo $r[4] ?>"><br />
<input type="submit" value="Submit">
</form> <?php
?>
</div>
</body>
</html>