Current File : /home/obabain/public_html/abc/chemical_cview.jsp |
<%@include file="master.jsp"%>
<%@include file="Connection.jsp" %>
<%
ResultSet resultSet = null;
%>
<%@page import="java.sql.*,java.util.*"%>
<%@page import="java.sql.ResultSet"%>
<style type="text/css">
.highlight-error {
border-color: red;
}
td.vcenter {
vertical-align: middle;
}
.inlineTable {
display: inline-block;
}
.panel-default>.panel-heading-custom {
background: #ff0000;
color: #fff;
}
</style>
<!-- <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">-->
<script
src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<body>
<div class="row">
<form action="#" method="post" id="contact" >
<section id="main">
<div class="container">
<div class="row" style="width: 120%">
<div class="col-md-9">
<div class="panel panel-default">
<div class="panel-heading main-color-bg">
<h3 class="panel-title">Chemical Property</h3>
</div>
<!-- <form action="chemicals_action.jsp" method="post"> -->
<% String id=request.getParameter("Id");%>
<div class="panel-body">
<a class="btn btn-primary" href="Chemical_Composition.jsp?Id=<%=id%>" style="margin-left:880px;">Add New</a>
<br><br>
<table id="myTable" class="table table-bordered" style="width:650px;margin-left:80px;">
<tr>
<th> <br>Elements</th>
<th colspan="2" > Customer Specification<br><br>  Max    Min</th>
<th colspan="2"> SAACPL Control Limit<br><br>  Max    Min</th>
<th> <br> Aim Piont</th>
</tr>
<%
try
{
Statement st=con.createStatement();
ResultSet rs=st.executeQuery("select tb.*,(select product_name from ip_products where product_id=tb.product_id)product from chemicals_action tb where product_id="+id+"");
/* ResultSet rs = st.executeQuery("select * from chemicals_action"); */
while(rs.next())
{
%>
   <b>View Chemical Property:</b><%=rs.getString("product") %> <br><br>
<tr>
<th>Carbon</th>
<th> <%=rs.getString("carbon_max") %> </th>
<th> <%=rs.getString("carbon_min") %> </th>
<th> <%=rs.getString("carboncl_max") %> </th>
<th> <%=rs.getString("carboncl_min") %> </th>
<th> <%=rs.getString("carboncl_aimpoint") %> </th>
</tr>
<tr>
<th>Silicon</th>
<th> <%=rs.getString("silicon_max") %> </th>
<th> <%=rs.getString("silicon_min") %> </th>
<th> <%=rs.getString("siliconcl_max") %> </th>
<th> <%=rs.getString("siliconcl_min") %> </th>
<th> <%=rs.getString("silicon_aimpoint") %> </th>
</tr>
<tr>
<th>Manganese</th>
<th> <%=rs.getString("manganese_max") %></th>
<th> <%=rs.getString("manganese_min") %></th>
<th> <%=rs.getString("manganesecl_max") %></th>
<th> <%=rs.getString("manganesecl_min") %></th>
<th> <%=rs.getString("manganese_aimpoint") %></th>
</tr>
<tr>
<th>Chromium</th>
<th> <%=rs.getString("chromium_max") %></th>
<th> <%=rs.getString("chromium_min") %></th>
<th> <%=rs.getString("chromiumcl_max") %></th>
<th> <%=rs.getString("chromiumcl_min") %></th>
<th> <%=rs.getString("chromium_aimpoint") %></th>
</tr>
<tr>
<th>Nickel</th>
<th> <%=rs.getString("nickel_max") %></th>
<th> <%=rs.getString("nickel_min") %></th>
<th> <%=rs.getString("nickelcl_max") %></th>
<th> <%=rs.getString("nickelcl_min") %></th>
<th> <%=rs.getString("nickel_aimpoint") %></th>
</tr>
<tr>
<th>Molybdenum</th>
<th> <%=rs.getString("molybdenum_max") %></th>
<th> <%=rs.getString("molybdenum_min") %></th>
<th> <%=rs.getString("molybdenumcl_max") %></th>
<th> <%=rs.getString("molybdenumcl_min") %></th>
<th> <%=rs.getString("molybdenum_aimpoint") %></th>
</tr>
<tr>
<th>Phosphorus</th>
<th> <%=rs.getString("phosphorus_max") %></th>
<th> <%=rs.getString("phosphorus_min") %></th>
<th> <%=rs.getString("phosphoruscl_max") %></th>
<th> <%=rs.getString("phosphoruscl_min") %></th>
<th> <%=rs.getString("phosphorus_aimpoint") %></th>
</tr>
<tr>
<th>Sulphur</th>
<th> <%=rs.getString("sulphur_max") %></th>
<th> <%=rs.getString("sulphur_min") %></th>
<th> <%=rs.getString("sulphurcl_max") %></th>
<th> <%=rs.getString("sulphurcl_min") %></th>
<th> <%=rs.getString("sulphur_aimpoint") %></th>
</tr>
<tr>
<th>Copper</th>
<th> <%=rs.getString("copper_max") %></th>
<th> <%=rs.getString("copper_min") %></th>
<th> <%=rs.getString("coppercl_max") %></th>
<th> <%=rs.getString("coppercl_min") %></th>
<th> <%=rs.getString("copper_aimpoint") %></th>
</tr>
<tr>
<th>Tungsten</th>
<th> <%=rs.getString("tungsten_max") %></th>
<th> <%=rs.getString("tungsten_min") %></th>
<th> <%=rs.getString("tungstencl_max") %></th>
<th> <%=rs.getString("tungstencl_min") %></th>
<th> <%=rs.getString("tungsten_aimpoint") %></th>
</tr>
<tr>
<th>Iron</th>
<th> <%=rs.getString("iron_max") %></th>
<th> <%=rs.getString("iron_min") %></th>
<th> <%=rs.getString("ironcl_max") %></th>
<th> <%=rs.getString("ironcl_min") %></th>
<th> <%=rs.getString("iron_aimpoint") %></th>
</tr>
<%
}
}
catch (Exception e)
{
e.printStackTrace();
}
%>
</table>
<a href="ViewProduct.jsp" class="btn btn-primary">Back</a>
</div>
</form>
</div>
</div>
</div>
</section>
<script src="http://cdn.ckeditor.com/4.6.1/standard/ckeditor.js"></script>
<script src="http://cdn.ckeditor.com/4.6.1/standard/ckeditor.js"></script>
<script type="text/javascript">
function goBack() {
window.history.back();
};
</script>
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
<script
src="https://cdn.jsdelivr.net/jquery.validation/1.16.0/jquery.validate.min.js"></script>
<script
src="https://cdn.jsdelivr.net/jquery.validation/1.16.0/additional-methods.min.js"></script>
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
</form>
</div>
</body>
</html>