-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch_patient.php
More file actions
90 lines (68 loc) · 2.43 KB
/
search_patient.php
File metadata and controls
90 lines (68 loc) · 2.43 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
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
79
80
81
82
83
84
85
86
87
88
89
90
<?php
include_once 'connection/checkUser.php';
include_once 'parts/header.php';
include_once 'database/Database.php';
$err = '';
//check if postback
if ($_SERVER["REQUEST_METHOD"] == "POST") {
}
if (($_SERVER["REQUEST_METHOD"] == "POST") && empty($err)) {
header('Location: index.php');
} else {
?>
?>
<body>
<div id="wrapper">
<?php include_once 'parts/nav.php'; ?>
<!-- Page Content -->
<div id="page-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Search Patient</h1>
</div>
<!-- /.col-lg-12 -->
</div>
</br>
<!-- /.row -->
<div class="panel panel-default">
<div class="panel-heading">
Search
</div>
<!-- /.panel-heading -->
<div class="panel-body">
<form role="form" method="POST" action=<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>>
<div class="form-group">
<i class="fa fa-caret-right"></i> <label>Patient First Name</label>
<input class="form-control" name="first_name" style="width:200px">
</div>
<div class="form-group">
<i class="fa fa-caret-right"></i> <label>Patient Last Name</label>
<input class="form-control" name="last_name" style="width:200px">
</div>
<div class="form-group">
<i class="fa fa-caret-right"></i> <label>Patient Id</label>
<input class="form-control" name="patient_id" style="width:200px" maxlength="9"
onkeypress='return event.charCode >= 46 && event.charCode <= 57'>
</div>
<button type="submit" class="btn btn-success">Search</button>
<button type="reset" class="btn btn-warning">Reset</button>
</form>
</div>
<!-- /.panel-body -->
</div>
<!-- /.panel -->
</div>
<!-- /.container-fluid -->
</div>
<!-- /#page-wrapper -->
</div>
<!-- /#wrapper -->
<?php
include_once 'parts/bottom.php';
?>
</body>
</html>
<?php
}
?>