Current File : //home/obabain/public_html/abc/Temparature_view.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"%>
<% String id=request.getParameter("Id");%>
<!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>
<div class="row">
<div class="col-md-9">
<div class="panel panel-default">
<div class="panel-heading main-color-bg">
<h3 class="panel-title">Quality Plan for foundry process Control(Temperature)</h3>
</div>
<div class="panel-body">
<a class="btn btn-primary" href="Tempareture.jsp?Id=<%=id%>" style="margin-left:880px;">Add New</a>
<br><br>
<table class="table table-bordered">
<thead>
<tr class="success">
<th>MATERIAL GRADE</th>
<th>TAPPING TEMP.In Degree C</th>
</tr>
</thead>
<%
try
{
Statement st=con.createStatement();
ResultSet rs=st.executeQuery("select tb.*,(select product_name from ip_products where product_id=tb.product_id)material from quality_plan tb where product_id="+id+"");
/* ResultSet rs = st.executeQuery("select * from quality_plan"); */
while(rs.next())
{
%>
<tbody>
<tr>
<%-- <td scope="col">
<%=rs.getString("id") %>
</td> --%>
<td scope="col">
<%=rs.getString("material") %>
</td>
<td scope="col">
<%=rs.getString("temp") %>
</td>
</tbody>
<%
}
}
catch (Exception e)
{
e.printStackTrace();
}
%>
</table>
<a href="ViewProduct.jsp" class="btn btn-primary">Back</a>
<!-- <button class="btn btn-primary" onclick="goBack()">Back</button> style="margin-right:655px;"-->
</div>
<script type="text/javascript">
function goBack()
{
window.history.back();
};
</script>
</div>
</div>
</div>
<!-- </div> -->
</body>
</html>