-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpatient.php
78 lines (72 loc) · 2.07 KB
/
patient.php
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
$html='
<!DOCTYPE HTML>
<html>
<head>
<title> Bienvenue </title>
<link rel="stylesheet" href="style.css" />
<link href="img/logo.png" rel="icon"/>
</head>
<body>
<header><nav>
<ul>
<li><a href="patient.php">Patient</a></li>
<li><a href="#">Visite</a></li>
<li><a href="#">Département</a></li>
<li><a href="medecin.php">Medecin</a></li>
<li><a href="#">Lit</a></li>
<li><a href="#">Chambre</a></li>
</ul></nav></header>
<section>
<div id="barre">search by name:<form action="request.php" target="affichage" method="get" id="myForm" ><input name="text" type="text">
<input type="submit" value="search">
sort by department : <input type=checkbox name="chek" onClick="myFunction();">
</form></div>
<iframe src="request.php" name="affichage"> </iframe>';
// -------------------------------------formulaire-----------
$html.='<div id="formulaire">
<form method="post" action="insert.php" enctype="multipart/form-data">
<table width="200" align="center" >
<tr>
<td>Nom :</td>
<td> <input name="nom" type="text" id="nom" required /></td>
<tr>
<td>Age: </td>
<td> <input name="age" type="number" id="age" /></td>
</tr>
<td>
Email :
</td>
<td> <input name="mail" type="email" id="mail" required /></td>
</tr>
<tr>
<td>Date de naissance</td>
<td> <input name="dn" type="date" id="dn" required></textarea></td>
</tr>
<tr>
<td>Adresse</td>
<td> <textarea name="adr" id="adr"></textarea></td>
</tr>
<tr>
<td>Photo</td>
<td> <input name="fichier" type="file" id="fichier" /></td>
</tr>
<tr>
<td>Login: </td>
<td> <input name="login" type="text" id="login" /></td>
</tr>
<tr>
<td>Password: </td>
<td> <input name="pwd" type="password" id="pwd" /></td>
</tr>
<tr>
<td colspan="2" align="center"><input name="ok" type="submit" /> </td>
</tr>
</table>
</form></div>';
$html.='<br><center>
<button class="button button1" id="button1">afficher</button>
<button class="button button1" id="button2">ajouter</button></center>';
$html.='</section><script src="script.js"> </script></body></html>';
echo $html ;
?>