Current File : /home/obabain/anms_obaba_in/ViewEmployee.jsp |
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ include file="Connection.jsp" %>
<%@include file="master.jsp" %>
<%
Statement st=con.createStatement();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script src='https://code.jquery.com/jquery-3.3.1.js'></script>
<script src='https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js'></script>
<script src="https://cdn.datatables.net/1.10.19/js/dataTables.bootstrap4.min.js" charset="utf-8"></script>
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.19/css/dataTables.bootstrap4.min.css">
</head>
<style>
table
{
border-collapse: ;
}
tr,td
{
border:1px solid #ccc;
text-align:center
}
#a1
{
border-left:1px solid #ccc;
height:10px
}
td
{
}
</style>
<body>
<script type="text/javascript">
$(document).ready(function() {
$('#example').DataTable();
} );
</script>
<form>
<div class="col-md-9" style="background-color:white;">
<div class="panel panel-default" >
<div class="panel-heading main-color-bg">
<h3 class="panel-title">Employee View</h3>
<!-- <a href="SupplierAp.jsp" class="btn btn-danger" style="color:white;margin-top:-22px;margin-left:110px; ">Approved List</a>
-->
</div>
<div style="margin-top:-22px;" class="pull-right">
<!-- <a href="supplierRA.jsp" class="btn btn-danger" style="color:white;margin-top:-22px; ">Suppliers Rating List</a>
-->
<a class="btn btn-danger" style="margin-top:-20px;" href="Employeemaster.jsp">+New</a>
</div>
</div>
<!-- <div class="headerbar-item pull-right" style="margin-top:10px;"><a class="btn btn-primary" style="background:#204b58" onclick="goBack()">Back</a>
<a class="btn btn-primary" style="background:#204b58" href="supplier.jsp">New</a>
</div> -->
<div>
<table id="example" class="table table-striped table-bordered" >
<thead>
<tr>
<th>Edit</th>
<th>Delete</th>
<th >Employee Name</th>
<th > Department</th>
<th>Contact No.</th>
<th >Joining Date</th>
<th>Employee Address</th>
</tr>
</thead>
<tbody>
<%
ResultSet rs=null;
rs=st.executeQuery("select * from employee ");
while(rs.next())
{
%>
<tr>
<td> <a href="editemp.jsp?Id=<%=rs.getString("emid")%>" title="Edit">
<!-- <span class="fontstyle">Edit</span> -->
<span class="glyphicon glyphicon-pencil"></span></a></td>
<td>
<a title="Delete" href="delemp.jsp?Id=<%=rs.getString("emid")%>" onclick = "if (! confirm('Continue?')) { return false; }">
<span class="glyphicon glyphicon-remove"></span>
</a>
</td>
<td><a href="EmpDetailView.jsp?Id=<%= rs.getString("emid")%>"><%=rs.getString("ename")%></a></td>
<td><%=rs.getString("edep") %></td>
<td><%=rs.getString("contact") %></td>
<td><%=rs.getString("jod") %></td>
<td><%=rs.getString("eaddress") %></td>
</tr>
<%} %>
</tbody>
</table>
</div>
</div>
</div>
</div>
</form>
<script type="text/javascript">
function goBack() {
window.history.back();
};
</script>
</body>
<%-- <%@include file="footer.jsp" %> --%>
</html>