-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtakestaffattend.php
66 lines (50 loc) · 1.88 KB
/
takestaffattend.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
<?php
include 'dbconnect.php';
include 'smartsession.php';
include 'headerstaff.php';
date_default_timezone_set('Singapore');
if (!session_id())
{
session_start();
}
$user_id =$_SESSION['uid'];
?>
<div class = "container">
<br>
<fieldset>
<form method ="POST" action="takestaffattendprocess.php" enctype="multipart/form-data">
<div class="container-fluid" id="container-wrapper">
<div class="d-sm-flex align-items-center justify-content-between mb-4">
<h1 class="h3 mb-0 text-gray-800">Take Staff Attendance (Today's Date : <?php echo $todaysDate = date("d-m-Y");?>)</h1>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="staff.php">Home</a></li>
<li class="breadcrumb-item active" aria-current="page">Take Staff Attendance</li>
</ol>
</div>
<?php
date_default_timezone_set('Singapore');
$date = date('d/m/Y h:i:s a', time());
echo "$date";
?>
<div class="form-group">
<label for="exampleSelect1" class="form-label mt-4"> Select Event </label>
<select name="attend_event">
<option value ="Clock In">Clock In</option>
<option value ="Clock Out">Clock Out</option>
</select>
<div class="form-group">
Select RTK file attachment to upload:
<input type="file" name="image"><br><br>
<label for="floatingInput"> Note: Only PDF, JPG, JPEG, PNG file are accepted** </label>
</div>
<br>
<div class=form-group>
<button class="btn btn-warning" name="upload">Enter</button>
<button type="reset" class="btn btn-primary">Reset</button>
</div>
<br><br>
</fieldset>
</form>
<br><br>
</div>
<?php include 'footermain.php'; ?>