-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathleaves.php
More file actions
151 lines (141 loc) · 5.88 KB
/
leaves.php
File metadata and controls
151 lines (141 loc) · 5.88 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
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
<?php require_once(dirname(__FILE__) . '/config.php');
if ( !isset($_SESSION['Admin_ID']) || !isset($_SESSION['Login_Type']) ) {
header('location:' . BASE_URL);
} ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<title>Leaves - Wisely Payroll</title>
<link rel="stylesheet" href="<?php echo BASE_URL; ?>bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
<link rel="stylesheet" href="<?php echo BASE_URL; ?>plugins/datatables/dataTables.bootstrap.css">
<link rel="stylesheet" href="<?php echo BASE_URL; ?>plugins/datatables/jquery.dataTables_themeroller.css">
<link rel="stylesheet" href="<?php echo BASE_URL; ?>dist/css/AdminLTE.css">
<link rel="stylesheet" href="<?php echo BASE_URL; ?>plugins/datepicker/datepicker3.css">
<link rel="stylesheet" href="<?php echo BASE_URL; ?>dist/css/skins/_all-skins.min.css">
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
<?php require_once(dirname(__FILE__) . '/partials/topnav.php'); ?>
<?php require_once(dirname(__FILE__) . '/partials/sidenav.php'); ?>
<div class="content-wrapper">
<section class="content-header">
<h1>Leaves</h1>
<ol class="breadcrumb">
<li><a href="<?php echo BASE_URL; ?>"><i class="fa fa-dashboard"></i> Home</a></li>
<li class="active">Leaves</li>
</ol>
</section>
<section class="content">
<div class="row">
<?php if ( $_SESSION['Login_Type'] == 'admin' ) { ?>
<div class="col-xs-12">
<div class="box">
<div class="box-header">
<h3 class="box-title">All Leaves</h3>
</div>
<div class="box-body">
<table id="allleaves" class="table table-bordered table-stripe">
<thead>
<tr>
<th>#</th>
<th>EMP CODE</th>
<th>SUBJECT</th>
<th>DATES</th>
<th>MESSAGE</th>
<th>TYPE</th>
<th>STATUS</th>
<th>ACTIONS</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
<?php } else { ?>
<div class="col-lg-4">
<div class="box">
<div class="box-header">
<h3 class="box-title">Apply for Leave</h3>
</div>
<div class="box-body">
<form method="post" role="form" data-toggle="validator" id="leave-form">
<div class="form-group">
<label for="leave_subject">Leave Subject</label>
<input type="text" class="form-control" name="leave_subject" id="leave_subject" required />
</div>
<div class="form-group">
<label for="leave_dates">Leave Dates (MM/DD/YYYY)</label>
<input type="text" class="form-control multidatepicker" name="leave_dates" id="leave_dates" required />
<small class="text-muted">You can select multiple dates separated by comma.</small>
</div>
<div class="form-group">
<label for="leave_message">Leave Message</label>
<textarea class="form-control" name="leave_message" id="leave_message" rows="10" required></textarea>
</div>
<div class="form-group">
<label for="leave_type">Leave Type</label>
<select class="form-control" name="leave_type" id="leave_type" required>
<option value="">Please make a choice</option>
<option value="Casual Leave">Casual Leave</option>
<option value="Earned Leave">Privileged / Earned Leave</option>
<option value="Sick Leave">Medical / Sick Leave</option>
<option value="Maternity Leave">Maternity Leave</option>
<option value="Leave Without Pay">Leave Without Pay</option>
</select>
</div>
<div class="form-group">
<button type="submit" class="btn btn-primary">Apply for Leave</button>
</div>
</form>
</div>
</div>
</div>
<div class="col-lg-8">
<div class="box">
<div class="box-header">
<h3 class="box-title">My Leaves</h3>
</div>
<div class="box-body">
<table id="myleaves" class="table table-bordered table-stripe">
<thead>
<tr>
<th>#</th>
<th>SUBJECT</th>
<th>DATES</th>
<th>MESSAGE</th>
<th>TYPE</th>
<th>STATUS</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
<?php } ?>
</div>
</section>
</div>
<footer class="main-footer">
<strong>Copyright © 2017 <a href="http://wisely.co" target="_blank">Wisely</a>.</strong> All rights reserved.
</footer>
</div>
<script src="<?php echo BASE_URL; ?>plugins/jQuery/jquery-2.2.3.min.js"></script>
<script src="<?php echo BASE_URL; ?>bootstrap/js/bootstrap.min.js"></script>
<script src="<?php echo BASE_URL; ?>plugins/datatables/jquery.dataTables.min.js"></script>
<script src="<?php echo BASE_URL; ?>plugins/datatables/dataTables.bootstrap.min.js"></script>
<script src="<?php echo BASE_URL; ?>plugins/jquery-validator/validator.min.js"></script>
<script src="<?php echo BASE_URL; ?>plugins/bootstrap-notify/bootstrap-notify.min.js"></script>
<script src="<?php echo BASE_URL; ?>plugins/datepicker/bootstrap-datepicker.js"></script>
<script src="<?php echo BASE_URL; ?>dist/js/app.min.js"></script>
<script type="text/javascript">var baseurl = '<?php echo BASE_URL; ?>';</script>
<script src="<?php echo BASE_URL; ?>dist/js/script.js?rand=<?php echo rand(); ?>"></script>
</body>
</html>