-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathschedulemodal.php
95 lines (93 loc) · 3.38 KB
/
schedulemodal.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
<div id="myModal" class="modal" style="overflow-y: scroll;">
<!-- Modal content -->
<div class="modal-content">
<form action="" method="post" role="form" name="frm">
<div id="divchangedate">
<input type="hidden" name="schedulestartdate" id="schedulestartdate">
<input type="hidden" name="scheduleenddate" id="scheduleenddate">
<input type="hidden" name="sc_bookingdate" id="sc_bookingdate">
<input type="hidden" name="sc_starttime" id="sc_starttime">
<input type="hidden" name="sc_endtime" id="sc_endtime">
</div>
<div class="modal-header">
<h4>Hall Booking Panel</h4>
<span id="close-model" class="close">×</span>
</div>
<div class="modal-body" style="padding-bottom:0px;">
<div class="row">
<div class="tabs" style="background-color: #e9ecef;">
<input type="radio" name="tabs" id="tabone" checked="checked">
<label for="tabone">Hall Booking Entry</label>
<div class="tab" style="padding-bottom:0px;">
<div class="row">
<?php include("hall_booking.php"); ?>
</div>
<div class="modal-footer" style="align-items: center;justify-content: flex-end;display:flex;margin-top:15px;margin-left:-1.5rem;margin-right:-1.5rem;">
<h3><a class="btn btn-warning btn-lg" style="width:200px;" onclick="nextTab(1)">Next</a></h3>
</div>
<script>
function nextTab(n){
if(n==1){
// validateform();
document.getElementById('tabtwo').click();
}
}
</script>
</div>
<input type="radio" name="tabs" id="tabtwo">
<label for="tabtwo">Requirement</label>
<div class="tab" style="padding-bottom:0px;">
<!--Equipment booking starts here -->
<div class="row">
<div class="col-md-4">
<select name="equipment_id" id="equipment_id" class="form-control" onchange="funloadmaxqty(this.value)" >
<option value="">SELECT Equipment</option>
<?php
$sqlequipments ="SELECT * FROM equipments";
$qsqlequipments = mysqli_query($con,$sqlequipments);
echo mysqli_error($con);
while($rsequipments = mysqli_fetch_array($qsqlequipments))
{
echo "<option value='$rsequipments[equipment_id]'>$rsequipments[equipment_type] (Max Qty " . $rsequipments['equipment_quantity'] . ")</option>";
}
?>
</select>
<input type="hidden" name="equipment_type" id="equipment_type">
<input type="hidden" name="equipment_img" id="equipment_img">
</div>
<div class="col-md-4">
<input type="number" name="equipmentqty" id="equipmentqty" class="form-control" placeholder="Required quantity" >
</div>
<div class="col-md-4">
<input type="button" class="btn btn-info" value="Add" onclick="funinsertequip(equipment_id.value,equipmentqty.value,equipment_type.value,equipment_img.value)" >
</div>
</div>
<table class="table table-bordered" id="tblequipmenttable">
<thead>
<tr>
<th>Image</th>
<th>Equipment</th>
<th>Quantity</th>
<th>Action</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<!--Equipment booking ends here -->
<div class="modal-footer" style="align-items: center;justify-content: flex-end;display:flex;margin-top:15px;margin-left:-1.5rem;margin-right:-1.5rem;">
<h3><button class="btn btn-warning btn-lg" type="submit" name="btnsubmit" onclick="validate()">Click Here to Book</button></h3>
</div>
<script>
function validate(){
document.getElementById('tabone').click();
// validateform();
}
</script>
</div>
</div>
</div>
</div>
</form>
</div>
</div>