-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathview.php
171 lines (125 loc) · 7.28 KB
/
view.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
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
<?php
include './php/configure.php';
$id = $_GET['id'];
$sql = "SELECT * FROM report WHERE id='$id'";
$resultSelect = mysqli_query($conn, $sql);
$row = mysqli_fetch_array($resultSelect);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
* {
margin: 0;
padding: 0;
}
.container {
/* margin: 10px 13px; */
}
.people {
padding: 15px 10px;
border: 1px solid rgb(78, 78, 78);
margin: 10px auto;
border-radius: 12px;
}
.modal-footer button {
margin: 5px 25px;
/* width: 50%; */
padding: 7px 200px;
}
.modal-footer {
display: flex;
justify-content: space-between;
align-items: center;
}
</style>
<title>View Reports</title>
</head>
<body>
<div class="container people">
<form action="./php/add_reports.php" method="post" enctype="multipart/form-data">
<div class="h2">Medical Reports No. <?php echo $row['id']; ?></div>
<div class="container mt-3">
<label for="exampleDataList" class="form-label">Patients's Username(बिरामीको प्रयोगकर्ता नाम)</label>
<input class="form-control border border-2 border-success" list="datalistOptions" id="exampleDataList" name="pusername" placeholder="Type Username to search..." readonly value=<?php echo $row['username']; ?>>
<div class="form-group mt-3 ">
<label for="exampleFormControlInput1">Patients's Email Address(बिरामीको इमेल ठेगाना)</label>
<input type="email" class="form-control border border-2 border-success" name="pemail" id="exampleFormControlInput1" placeholder="[email protected]" readonly value=<?php echo $row['email']; ?>>
</div>
<div class="form-group mt-3">
<label for="exampleFormControlSelect1">Witness(साक्षी) if Any </label>
<select class="form-control border border-2 border-success" id="exampleFormControlSelect1" name="witness" readonly>
<option value="No-one">No-one</option>
<option value="Father">Father</option>
<option value="Mother" selected>Mother</option>
<option value="Sister">Sister</option>
<option value="Brother">Brother</option>
<option value="Friends">Friends</option>
<option value="Staff">Staff</option>
<option value="someone">Other</option>
</select>
</div>
<div class="form-group mt-3">
<label for="exampleFormControlTextarea1">Symptoms(लक्षणहरू) Of The Patient</label>
<textarea class="form-control border border-2 border-success" id="exampleFormControlTextarea1" rows="5" name="symptoms" <?php echo $row['symptom']; ?> readonly></textarea>
</div>
<div class="form-group mt-3">
<label for="exampleFormControlTextarea1">Description Of The Disease(रोग को विवरण)</label>
<textarea class="form-control border border-2 border-success" id="exampleFormControlTextarea1" rows="7" name="disease" readonly><?php echo $row['description']; ?></textarea>
</div>
<div class="form-group mt-3">
<label for="exampleFormControlTextarea1">Description Of Medicines(औषधिको विवरण)</label>
<textarea class="form-control border border-2 border-success" id="exampleFormControlTextarea1" rows="5" name="medicine" readonly><?php echo $row['medicines']; ?></textarea>
</div>
<div class="form-group mt-3">
<label for="exampleFormControlTextarea1">Necessary Medical Reports(आवश्यक मेडिकल रिपोर्टहरू)</label>
<textarea class="form-control border border-2 border-success" id="exampleFormControlTextarea1" rows="5" name="reports" readonly><?php echo $row['reports']; ?></textarea>
</div>
<div class="form-group mt-3">
<label for="exampleFormControlTextarea1">Instruction Regarding Diet(आहार सम्बन्धि निर्देशन)</label>
<textarea class="form-control border border-2 border-success" id="exampleFormControlTextarea1" rows="5" name="diet" readonly><?php echo $row['instruction']; ?></textarea>
</div>
<div class="form-group mt-3">
<label for="exampleFormControlInput1">Next Visit Date</label>
<input type="datetime-local" class="form-control border border-2 border-success" id="exampleFormControlInput1" placeholder="dd/mm/yyyy" name="visit_date" readonly>
</div>
<?php echo $row['visit_date']; ?>
<div class="form-group mt-3">
<label for="exampleFormControlInput1">Doctor's Name(डाक्टरको नाम)</label>
<input type="text" class="form-control border border-2 border-success" id="exampleFormControlInput1" name="doctor_name" value= <?php echo $row['prescribed_by']; ?> readonly>
</div>
<!-- Report photo -->
<div class="form-group mt-3">
<label for="exampleFormControlFile1">Input the File Photo (Everything_All_About_Disease)</label>
<input type="file" class="form-control-file border border-2 border-success" id="exampleFormControlFile1" name="photo" readonly>
</div>
<?php
echo $row['photo']; ?>
<!-- report photo End here -->
<hr style="height: 2px ;">
<div class="modal-footer">
<a href=<?php if ($_SESSION['doctor'] != null) {
echo "./doctor-report.php";
} else {
echo "./view-reports.php";
} ?>>
<button type="button" class="btn btn-success" data-bs-dismiss="modal">Understand</button>
</a>
<a href=<?php if ($_SESSION['doctor'] != null) {
echo "./doctor-report.php";
} else {
echo "./view-reports.php";
} ?>>
<button type="button" class="btn btn-danger data-bs-dismiss=" modal">Close</button>
</a>
</div>
</div>
</form>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>