-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdays.php
More file actions
71 lines (68 loc) · 2.04 KB
/
days.php
File metadata and controls
71 lines (68 loc) · 2.04 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
<?php include('master/head.php'); ?>
<?php include('master/db.php'); ?>
<?php
if (!(isset($_GET['edit']) && $_SESSION['log_role']=="admin")) {
header("location: dashboard.php");
}
?>
<td id="content">
<style>
select {
width: unset;
}
</style>
<ul class="breadcrumb">
<li><a href="dashboard.php">Dashboard</a></li>
<li><a href="lab.php">Laboratory</a></li>
<li>Days</li>
</ul>
<!-- Display message -->
<?php if (isset($_SESSION['msg'])): ?>
<div style="padding: 20px 2px;">
<span class="msg-alert">
<?php
echo $_SESSION['msg'];
unset($_SESSION['msg']);
?>
</span>
</div>
<?php endif ?>
<!-- Test Name -->
<div style="font-size: 16; font-weight: bold;">
Test Name :
<?php
// Print test name from the database
$sql = "SELECT * from lab_test where lab_test_id = '{$_GET['edit']}'";
$result = mysqli_query($con,$sql);
$row = mysqli_fetch_assoc($result);
// Print test name
echo $row['lab_test'];
// print_r($row);
?>
</div>
<div style="padding: 20px 0px;">
Available days : <span style=" color: #e84393; font-weight: bold;"><?php echo $row['days']; ?></span>
</div>
<div>
<form action="process.php" method="POST">
<select name="day" data-validation="required" data-validation-error-msg="Required">
<option value="" selected disabled>Select a day</option>
<option value="Mon">Monday</option>
<option value="Tue">Tuesday</option>
<option value="Wed">Wednesday</option>
<option value="Thu">Thursday</option>
<option value="Fri">Friday</option>
<option value="Sat">Saturday</option>
<option value="Sun">Sunday</option>
</select>
<select name="action" data-validation="required" data-validation-message="Select">
<option value="" selected disabled>add/delete</option>
<option value="add">Add</option>
<option value="del">Delete</option>
</select>
<input type="hidden" value="<?php echo $row['lab_test_id']; ?>" name="test_id">
<button type="submit" class="btn" name="test_day">Go</button>
</form>
</div>
</td>
<?php include('master/foot.php');