-
Notifications
You must be signed in to change notification settings - Fork 1
/
ExtraLeaves.jsp
188 lines (162 loc) · 8.66 KB
/
ExtraLeaves.jsp
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
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@page language="java" import="java.util.*"%>
<%@page import="java.sql.PreparedStatement" %>
<%@page import="org.prasad.AddEmployee.EmployeePojo" %>
<% List<EmployeePojo> cList = (ArrayList<EmployeePojo>)request.getAttribute("edata");%>
<% EmployeePojo exleave = new EmployeePojo(); %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Extra Leaves</title>
<link rel="shortcut icon" href="resources/images/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="resources/css/custom.css">
<script src="resources/javascript/ExtraLeaves.js"></script>
<link rel="script" type="text/javascript" href="resources/javascript/javascript.js">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
</head>
<body>
<div class="main-header">
<div class="container-fluid">
<div class="row">
<div class="col-md-6">
<div class="logo">
<img src="resources/images/betabulls.png" class="img-responsive"/>
</div>
</div>
<div class="col-md-6">
<ul class="social-network social-circle">
<li><a href="https://www.facebook.com/" class="icoFacebook" title="Facebook"><i class="fa fa-facebook"></i></a></li>
<li><a href="https://twitter.com/" class="icoTwitter" title="Twitter"><i class="fa fa-twitter"></i></a></li>
<li><a href="https://plus.google.com/collections/featured" class="icoGoogle" title="Google +"><i class="fa fa-google-plus"></i></a></li>
<li><a href="https://www.linkedin.com/" class="icoLinkedin" title="Linkedin"><i class="fa fa-linkedin"></i></a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="nav-back">
<div class="navbar-wrapper">
<div class="container-fluid">
<nav class="navbar nav-bottom">
<div class="">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#"><!--div class="logo">
<img src="images/betabulls.png" class="img-responsive"/>
</div--></a>
</div>
<font color="white"><h5 align="right">Welcome <%=session.getAttribute("empname") %>,</h5></font>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="HomeServlet" class="">Dashboard</a></li>
<li class=" dropdown">
<a href="#" class="dropdown-toggle " data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Employees <span class="caret"></span></a>
<ul class="dropdown-menu">
<li class=" dropdown">
<!--<a href="#" class="dropdown-toggle " data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">List Employees</a>-->
<li><a href="AddEmployee.jsp">Add Employees</a></li>
<li><a href="ViewEmployees.jsp">List Of Employees </a></li>
</ul>
</li>
<!--li><a href="#">Manage Employees</a></li-->
<li class=" dropdown">
<a href="#" class="dropdown-toggle " data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Leaves <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="AddLeaves.jsp">Add Leaves</a></li>
<li><a href="MangLvServlet">Manage Leaves</a></li>
<li><a href="ListLeavePositionServlet">List Leave Position</a></li>
<li><a href="UninformedLeaves.jsp">Uninformed Leave</a></li>
</ul>
</li>
<li class=" dropdown"><a href="#" class="dropdown-toggle active" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Time Sheet<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="AddAttnd.jsp">Add Attendence</a></li>
<li><a href="AddAttendence.jsp">Add Attendence Sheet</a></li>
<li><a href="ManageAttendence.jsp">Manage Attendence</a></li>
<li><a href="ListAttendenceServlet">List Attendence</a></li>
</ul>
</li>
<li class=" down active"><a href="#" class="dropdown-toggle active" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Reports<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="ExtraLeavesServlet">Report on Leaves Taken</a></li>
<li><a href="AbsenteesServlet">Report On Absentees</a></li>
<li><a href="Below9hrsServlet">Report On Below 9Hours</a></li>
</ul>
</li>
</ul>
<ul class="nav navbar-nav pull-right">
<li class=" dropdown"><a href="#" class="dropdown-toggle active" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Signed In As <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="PasswordChange.jsp">Change Password</a></li>
<li><a href="Profile.jsp">My Profile</a></li>
<li><a href="Index.jsp">Logout</a></li>
</ul>
</li>
<li class="profileicon-border"><img src="resources/images/a.jpg" class="img-responsive profileicon"></li>
</ul>
</div>
</div>
</nav>
</div>
</div>
</div>
<div class="container">
<div class="form addemployee " style="margin: 0 auto 25px; margin-top:35px;">
<fieldset style="min-height: 490px;">
<legend>Report On Leaves</legend>
<form class="form-horizontal" role="form" method="get" action="ExtraLeavesServlet" >
<div class="form-group">
<label class="control-label col-sm-3" for="employeeid">Month and Year</label>
<div class="col-sm-6">
<input type="month" class="form-control" id="sel2" name="fdate"></div>
<button type="submit" class="btn btn-info" ><span class="glyphicon glyphicon-search"></span> SUBMIT</button>
</div>
<h4 align="left">Month & Year : <%=request.getAttribute("fdate") %></h4>
<div class="table-responsive">
<table class="table table-bordered table table-striped">
<thead>
<tr style="background-color:silver";>
<th><font color='Red'>Employee Id</font></th>
<th><font color='Red'>Employee Name</font></th>
<th><font color='Red'>Date of Leave from</font></th>
<th><font color='Red'>Date of Leave to</font></th>
</tr>
</thead>
<% for(EmployeePojo exleave1:cList) { %>
<tr>
<td><%out.println(exleave1.getEid()); %></td>
<td><%out.println(exleave1.getEname());%></td>
<td><%out.println(exleave1.getTot());%></td>
<td><%out.println(exleave1.getAveg());%></td>
</tr><% } %>
</tbody>
</table>
<div style="text-align:center;">
<button formaction="ExtraLeavePDFServlet" class="btn btn-danger" ><span class="fa fa-file-pdf-o" ></span> PDF</button>
</div>
</div>
</form>
</fieldset>
</div>
</div>
<div class="fdown">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
© 2014 BetaBulls * Privacy Policy
</div>
</div>
</div>
</div>
</body>
</html>