Current File : //home/obabain/public_html/abc/finalreportview2.jsp |
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@page import="java.sql.*,java.util.*"%>
<%@page import="java.sql.ResultSet"%>
<%@ include file="Connection.jsp" %>
<%@include file="master.jsp"%>
<!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">
<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">
<title>Insert title here</title>
<script>
function myFunction1(m_id)
{
var result = confirm("Are You Sure To Delete?");
if(result)
{
window.location.href = 'fettling&griding_Delete.jsp?id=' +id;
}
else
{
window.location.href = 'Fettling&grinding_view.jsp';
}
}
</script>
<style>
.button{ background-color: #4CAF50;}
.button:hover {background-color: blue}
.button:active {
background-color: #3e8e41;
box-shadow: 0 5px #666;
transform: translateY(4px);
border-radius: 15px;
}
</style>
</head>
<script type="text/javascript">
$(document).ready(function() {
$('#example').DataTable();
} );
</script>
<body>
<div class="row">
<div class="col-sm-9">
<div class="panel panel-default">
<div class="panel-heading main-color-bg">
<h3 class="panel-title">Final Report Inspection Detail View:</h3>
<!-- <a class="btn btn-danger pull-right" href="MeltingView_3.jsp" style="margin-top:-24px;">Total Melted View</a>
--> <a class="btn btn-danger pull-right" href="finalinspection.jsp" style="margin-top:-24px;">Add New</a>
</div>
<div class="panel-body">
<div style="overflow-x:auto;">
<table class="table table-bordered" id="example" >
<thead>
<tr class="success">
<th>Ballon No</th>
<th>Characteristic</th>
<th>Tolerance High</th>
<th>Tolerance Low</th>
<th>Observed Parameter</th>
<th>Instrument Used</th>
<th>Cali On</th>
<th>Cali Due</th>
<th>1</th>
<th>2</th>
<th>3</th>
<th>4</th>
<th>5</th>
<th>6</th>
<th>7</th>
<th>8</th>
<th>9</th>
<th>10</th>
<th>Remark</th>
<th>Delete</th>
</tr>
</thead>
<tbody>
<%
Statement st=con.createStatement();
String id=request.getParameter("wid");
ResultSet rs11=st.executeQuery("select * from final_inspection_report2 where fid="+id+" ");
while(rs11.next()){
%>
<tr>
<td><%=rs11.getString("ballonno") %></td>
<td><%=rs11.getString("characteristic") %></td>
<td><%=rs11.getString("tolerance_high") %></td>
<td><%=rs11.getString("tolerance_low") %></td>
<td><%=rs11.getString("observed_param") %></td>
<td><%=rs11.getString("instrument_used") %></td>
<td><%=rs11.getString("cali_on") %></td>
<td><%=rs11.getString("cali_off") %></td>
<td><%=rs11.getString("first") %></td>
<td><%=rs11.getString("second") %></td>
<td><%=rs11.getString("third") %></td>
<td><%=rs11.getString("fourth") %></td>
<td><%=rs11.getString("fifth") %></td>
<td><%=rs11.getString("sixth") %></td>
<td><%=rs11.getString("seventh") %></td>
<td><%=rs11.getString("eighth") %></td>
<td><%=rs11.getString("nineth") %></td>
<td><%=rs11.getString("tenth") %></td>
<td><%=rs11.getString("remark") %></td>
<td> <a title="Delete" href="finalreportdelete1.jsp?Id=<%=rs11.getString("id")%>" onclick = "if (! confirm('Continue?')) { return false; }">
<span class="glyphicon glyphicon-remove"></span> </td>
</tr>
<%}%>
</tbody>
</table>
</div>
<button class="btn btn-primary" onclick="goBack()">Back</button>
<!-- </div> -->
<script type="text/javascript">
function goBack()
{
window.history.back();
};
</script>
</div>
</div>
</div>
<script>
$(document).ready(function(){
$("#myInput").on("keyup", function() {
var value = $(this).val().toLowerCase();
$("#myTable tr").filter(function() {
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
});
});
});
</script>
</div>
</body>
</html>