-
Notifications
You must be signed in to change notification settings - Fork 11
/
patient.html
175 lines (154 loc) · 5.73 KB
/
patient.html
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<?php
require_once("patient.php");
?>
<html ng-app="health">
<head>
<style>
.box-shadow{
box-shadow:0 0 10px 0 rgba(0,0,0,.40);
height:auto;
margin:1%;
padding:2%;
}
.textarea{
margin:1%;
padding:1%;
}
.btn-primary{
margin:5%;
}
body{
font-family: 'Montserrat', sans-serif;
}
.patient_info{
margin:2%;
padding:1%;
}
.input-group-btn:last-child>.btn, .input-group-btn:last-child>.btn-group{
font-size:20px;
}
</style>
<title>Patient page</title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script type="text/javascript" src="angular.min.js"></script>
<script type="text/javascript" src="app.js"></script>
<link rel="stylesheet" type="text/css" href="angular-loader/build/loading-bar.css">
<script type="text/javascript" src="angular-loader/build/loading-bar.js"></script>
<link href='https://fonts.googleapis.com/css?family=Montserrat' rel='stylesheet' type='text/css'>
</head>
<body ng-controller="healthcontroller">
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">E-Village Aid</a>
</div>
<div>
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li> <a type="button" data-toggle="modal" data-target="#myModal">Register</a>
<div id="myModal" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Modal Header</h4>
</div>
<div class="modal-body">
<p><div class="row">
<div class="col-md-offset-3 col-md-6">
<form enctype="multipart/form-data" method="post" action="patient.php">
<div class="form-group">
<label for="pid"><h4>Patient id:</h4></label>
<input type="text" class="form-control" id="pid" name="pid">
</div>
<div class="form-group">
<label for="pname"><h4>Patient Name:</h4></label>
<input type="text" class="form-control" id="pname" name="pname">
</div>
<div class="form-group">
<label class="radio-inline"><input type="radio" name="gender" value="Male">Male</label>
<label class="radio-inline"><input type="radio" name="gender" value="Female">Female</label>
</div>
<div class="form-group">
<label for="dob"><h4>Date Of Birth:</h4></label>
<input type="text" class="form-control" id="dob" name="dob" />
</div>
<div class="form-group">
<label for="dis"><h4>Disease:</h4></label>
<input type="text" id="dis" name="dis" />
</div>
<div>
<label for="report"><h4>Patient Reports:</h4></label>
<input type="file" id="report" name="report">
</div>
<button type="submit" name="submit" class="btn btn-primary">Upload</button>
<button type="submit" class="btn btn-primary">Download</button>
</form>
</div>
</div></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-info btn-lg" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</li>
<li> <?php
if (isset($_SESSION['username'])) {
echo '<a href="logout.php">Log Out (' . $_SESSION['username'] . ')</a>';
}
?> </li>
</ul>
</div>
</div>
</nav>
<form class=" navbar-form " role="search">
<div class="col-md-offset-4 col-md-4 input-group">
<input type="text" class="form-control" ng-model="patient" placeholder="Search this site">
<span class="input-group-btn">
<button type="submit" class="btn btn-default">
<span class="glyphicon glyphicon-search"></span>
</button>
</span>
</div>
</form>
<div style="margin-top:2%"class="row"></div>
<div ng-repeat="name in data|filter:patient " class="row patient_info">
<div class="col-md-4 col-xs-12 col-sm-12"></div>
<div class="col-md-4 col-xs-12 col-sm-12 box-shadow">
<div class="row">
<div class="col-md-6 col-xs-12 col-sm-12"><h4>Patient Id</h4></div>
<div class="col-md-6 col-xs-12 col-sm-12">{{name.p_id}}</div>
</div>
<div class="row">
<div class="col-md-6 col-xs-12 col-sm-12"><h4>Patient Name</h4></div>
<div class="col-md-6 col-xs-12 col-sm-12">{{name.p_name}}</div>
</div>
<div class="row">
<div class="col-md-6 col-xs-12 col-sm-12"><h4>Patient Report</h4></div>
<div class="col-md-6 col-xs-12 col-sm-12"><a href="files/{{name.p_file}}" target="_blank">{{name.p_file}}</a></div>
</div>
<div class="row">
<div class="col-md-6 col-xs-12 col-sm-12" ><h4>Status</h4></div>
<div class="col-md-6 col-xs-12 col-sm-12" ><a href="files/{{name.sreport}}" target="_blank">{{name.status}}</a></div>
</div>
<div class="row">
<div class="textarea text-center col-md-12 col-xs-12 col-sm-12" ><h4>Doctors Advice For You:</h4></div>
</div>
<div class=" textarea text-center col-md-12 col-xs-12 col-sm-12" >{{name.comment}}</div>
<div class="row">
<?php
echo '<a type="button"class="btn btn-primary" href="submitp.php?id=' . "{{name.p_id}}".'"><h5>Add Report</h5></a><BR/>';
?>
</div>
</div>
<div class="col-md-4"></div>
</div>
</body>
</html>