Current File : /home/obabain/autoclutchess_obaba_in/finalreportview.jsp |
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ include file="Connection.jsp"%>
<%
Statement st=con.createStatement();
ResultSet rs=null;
String id=request.getParameter("id");
%>
<%@include file="master.jsp"%>
<style type="text/css">
.highlight-error {
border-color: red;
}
</style>
<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">
<body>
<form method="post" id="contact" name="form1">
<section id="main">
<div class="container">
<div class="row" style="width:110%">
<div class="col-md-10">
<div class="panel panel-default" >
<div class="panel-heading main-color-bg">
<h3 class="panel-title">Final Report Inspection View:</h3>
<a style="background:;margin-top:-23px;margin-right:30px;" class="btn btn-danger pull-right" href="finalinspection.jsp">Add New</a>
</div>
<div class="panel-body">
<script type="text/javascript">
$(document).ready(function() {
$('#example').DataTable();
} );
</script>
<div style="overflow-x:auto;">
<table class="table table-striped table-bordered" id="example">
<thead>
<tr class="success">
<th>Sl No.</th>
<th>Detail View</th>
<th>Customer Name</th>
<th>Part Name</th>
<th>Po No</th>
<th>Invoice No</th>
<th>Inspected By</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<%
int i=0;
rs=st.executeQuery("select * from final_inspection_report1");
while(rs.next())
{
i+=1;
%>
<tr style="height:2px;">
<td> <b><%=i%> </b> </td>
<td><a class="btn btn-success " href="finalreportview2.jsp?wid=<%=rs.getString("id")%>" >View</a></td>
<td><%=rs.getString("customer_name")%></a></td>
<td> <%=rs.getString("part_name")%></td>
<td> <%=rs.getString("po_no")%> </td>
<td> <%=rs.getString("invoice_no")%> </td>
<td> <%=rs.getString("inspected_by")%> </td>
<td>
<div class="options btn-group">
<a class="btn btn-primary dropdown-toggle fontstyle" data-toggle="dropdown">
<li class="glyphicon glyphicon-cog"><span class="fontstyle">Options</span></li>
</a>
<ul class="dropdown-menu">
<%-- <li>
<a href="editPO.jsp?Id=<%=rs.getString("porder_id")%>">
<span class="fontstyle">Edit</span>
</a>
</li> --%>
<li>
<a href="dispatchpdf.jsp?Id=<%=rs.getString("id")%>"><span class="fontstyle" style="color:blue;">Download PDF(Original)</span></a>
<a href="finalreportdelete.jsp?Id=<%=rs.getString("id")%>" onclick = "if (! confirm('Continue?')) { return false; }">
<span class="fontstyle" style="color:red;">Delete</span>
</a>
</li>
</ul>
</div>
</td>
</tr>
<%}%>
</tbody>
</table>
</div>
<div class="modal-footer" id="contact_submit">
<div class="row">
<!-- <a class="btn btn-default" href="#" style="margin-right:10px">Reset</a> -->
<!-- <button type="submit" style="background:" class="" ></button>-->
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<%@include file="footer.jsp"%>
</form>
<script type="text/javascript">
function goBack() {
window.history.back();
};
</script>
</body>
</html>