Current File : /home/obabain/autoclutchess_obaba_in/Testcertificateview2.jsp |
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ page import="java.sql.*" %>
<%@ 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">
<title>Insert title here</title>
</head>
<body>
<% String id=request.getParameter("id");
String id2=request.getParameter("id2"); %>
<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">
<input type="button" value="Back" class="btn btn-danger pull-left" onclick="goBack()" style="margin-top:-9px;">
<h3 class="panel-title ">  TestCertificate View -- Sand Casting:</h3>
</div>
<div class="panel-body">
<div>
<div style="padding:20px;width:100px">
<label>Tc no</label>
<input type="text" value="<%=id2 %>" class="form-control" readonly>
</div>
<table class="table table-bordered" id="example">
<thead>
<tr>
<th>Slno</th>
<th>Heat</th>
<th>Grade</th>
<th>Item</th>
<th>Qty_nos</th>
<th>Qty_wt</th>
</tr>
</thead>
<tbody>
<%
int i=1;
Statement st=con.createStatement();
ResultSet rs=st.executeQuery("SELECT * FROM testcertificate123 where t_id="+id);
while(rs.next())
{
%>
<tr>
<td><%=i %></td>
<td><%=rs.getString("heat")%></td>
<td><%=rs.getString("grade")%></td>
<td><%=rs.getString("item")%></td>
<td><%=rs.getString("qty_no")%></td>
<td><%=rs.getString("qty_wt")%></td>
</tr>
<%
i++;
}
%>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</form>
</body>
<script type="text/javascript">
function goBack() {
window.history.back();
};
</script>
</html>