forked from GeekHaven/Leave-Application-Portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathform.php
executable file
·214 lines (171 loc) · 7.87 KB
/
form.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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<?php
session_start();
if(!isset($_SESSION['user'])){
echo '<script language="javascript">alert("Please Login")</script>';
header("Refresh: 1; url=index.php");
exit();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://bootswatch.com/4/materia/bootstrap.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt"
crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.8.0/css/bootstrap-datepicker.standalone.min.css">
<link rel="stylesheet" href="./static/css/form.css">
<title>Dashboard</title>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt"
crossorigin="anonymous">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://use.fontawesome.com/4c124acc27.js"></script>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.3.0/js/bootstrap-datepicker.js"></script> -->
<!--<script src="./static/js/form.js"></script>-->
</head>
<body>
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<div class="collapse navbar-collapse" id="navbarColor01">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<h3><a class="nav-link" href="student_dashboard.php"><- BACK TO Dashboard</a></h3>
</li>
</ul>
<ul class="navbar-nav">
<li class="nav-item float-right">
<h3><a class="nav-link" href="student_dashboard.php"><?php echo $_SESSION['user'] ?></a></h3>
</li>
</ul>
</div>
</nav>
<!-- End Navbar -->
<!-- Form -->
<div class="container mt-5">
<form action="./core/application-submission.php" method="post" enctype="multipart/form-data">
<h2 class="text-center">Apply for Leave</h2>
<div class="row mt-5">
<div class="col-md-6">
<div class="form-group">
<label>Name of the Student</label>
<input type="text" class="form-control" placeholder="" name="studentName">
</div>
</div>
<!-- col-md-6 -->
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label>Branch</label>
<input type="text" class="form-control" placeholder="ECE/IT or ece/it" name="branch">
</div>
</div>
<!-- col-md-6 -->
<div class="col-md-6">
<div class="form-group">
<label>Semester</label>
<input type="text" class="form-control" name="semester" placeholder="">
</div>
</div>
<!-- col-md-6 -->
</div>
<!-- row -->
<div class="row" style="padding-top: 10px">
<span class="" style="padding-top: 15px; padding-left: 15px">Period of Leave</span>
<div class="col-md-5" style="padding-right: 20px">
<div class="form-group">
<div class='input-group date' id='datepicker' data-date-format="dd-mm-yyyy">
<input type='date' class="form-control" placeholder="dd/mmm/yyyy" name="startDate" id="startDate" />
<span class="input-group-addon">
<span class="fa fa-calendar-alt fa-2x"></span>
</span>
</div>
</div>
</div>
<span class="" style="padding-top: 10px;padding-right: 20px">to</span>
<div class="col-md-5">
<div class="form-group">
<div class='input-group date' id='datepicker1' data-date-format="dd-mm-yyyy">
<input type='date' class="form-control" placeholder="dd/mmm/yyyy" name="endDate" id="endDate" />
<span class="input-group-addon">
<i class="fa fa-calendar-alt fa-2x"></i>
</span>
</div>
</div>
</div>
</div>
<!-- col-md-6 -->
<div class="row" style="padding-top: 30px">
<div class="col-md-6">
<div class="form-group">
<label>Nature of Leave</label>
<input type="text" class="form-control" placeholder="" name="natureOfLeave">
</div>
</div>
<!-- col-md-6 -->
<div class="col-md-6">
<div class="form-group">
<label>Purpose of Leave</label>
<input type="text" class="form-control" id="phone" placeholder="" name="purpose">
</div>
</div>
<!-- col-md-6 -->
</div>
<!-- row -->
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label>Whether classes are scheduled or not during leave</label>
<input type="text" class="form-control" placeholder="YES/NO or yes/no" name="classScheduledOnLeave">
</div>
</div>
<!-- col-md-6 -->
<div class="col-md-6">
<div class="form-group">
<label>Address during leave</label>
<input type="text" class="form-control" name="address" placeholder="">
</div>
</div>
<!-- col-md-6 -->
</div>
<!-- row -->
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label>Mobile No.</label>
<input type="text" class="form-control" placeholder="" name="mobile">
</div>
</div>
<!-- col-md-6 -->
</div>
<!-- row -->
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label for="company">Attachments (if any)</label>
<div class="file-field input-field">
<div class="btn">
<input type="file" name="file">
</div>
</div>
</div>
</div>
<!-- col-md-6 -->
</div>
<!-- row -->
<div style="padding-top: 20px">
<button type="submit" class="btn btn-primary btn-lg btn-block">Submit</button>
</div>
<div></div>
</form>
</div>
<!-- End Form -->
<footer class="my-5 pt-5 text-muted text-center text-small">
<i class="fa fa-envelope fa-2x mr-3" aria-hidden="true"></i>
<i class="fa fa-facebook-official fa-2x mr-3" aria-hidden="false"></i>
<i class="fa fa-twitter fa-2x " aria-hidden="true"></i>
<p class="mb-1 mt-2">Web Development Wing, Geekhaven</p>
</footer>
</body>