Current File : /home/obabain/public_html/abc/c_view.jsp |
<%@include file="master.jsp"%>
<%@include file="Connection.jsp"%>
<%
ResultSet resultSet = null;
Statement st=null;
%>
<%@page import="java.sql.*,java.util.*"%>
<%@page import="java.sql.ResultSet"%>
<%! String ab=null; %>
<%
Statement st1=con.createStatement();
String id=request.getParameter("Id");
ResultSet rs=st1.executeQuery("select * from ip_purchase_invoice_item where item_product_id="+id+"");
while(rs.next())
{
ab=rs.getString("item_name");
}
%>
<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>
<br>
<h3 style="margin-left:440px;"> <%=ab%> </h3>
<%
try
{
/* Statement st=con.createStatement(); */
rs = st1.executeQuery("select * from cc_action where product_id="+id+"");
while(rs.next())
{
%>
<div class="panel-body">
<div style="overflow-x:auto;">
<table id="myTable" class="table table-bordered"> <!-- style="width:650px;margin-left:10px;" -->
<tr>
<th> </th>
<th colspan="2">Carbon<br><br>Max Min</th>
<th colspan="2">Silicon<br><br>Max Min</th>
<th colspan="2" >Manganese<br><br>Max Min</th>
<th colspan="2">Chromium<br><br>Max Min</th>
<th colspan="2">Nickel<br><br>Max Min</th>
<th colspan="2">Molybdenum<br><br>Max Min</th>
<th colspan="2">Copper<br><br>Max Min</th>
<th colspan="2">Iron<br><br>Max Min</th>
<th colspan="2">Calsium<br><br>Max Min</th>
</tr>
<tr>
<th> </th>
<th> <%=rs.getString("carbon_max") %> </th>
<th> <%=rs.getString("carbon_min") %> </th>
<th> <%=rs.getString("silicon_max") %> </th>
<th> <%=rs.getString("silicon_min") %> </th>
<th> <%=rs.getString("manganese_max") %> </th>
<th> <%=rs.getString("manganese_min") %></th>
<th> <%=rs.getString("chromium_max") %> </th>
<th> <%=rs.getString("chromium_min") %> </th>
<th> <%=rs.getString("nickel_max") %> </th>
<th> <%=rs.getString("nickel_min") %> </th>
<th> <%=rs.getString("moly_max") %></th>
<th> <%=rs.getString("moly_min") %></th>
<th> <%=rs.getString("phos_max") %></th>
<th> <%=rs.getString("phos_min") %></th>
<th> <%=rs.getString("sulphur_max") %></th>
<th> <%=rs.getString("sulphur_min") %></th>
<th> <%=rs.getString("cal_max") %></th>
<th> <%=rs.getString("cal_min") %></th>
</tr>
<tr>
<th>Specified</th>
<th colspan="2"> <%=rs.getString("carbon_s") %> </th>
<th colspan="2"> <%=rs.getString("silicon_s") %> </th>
<th colspan="2"> <%=rs.getString("manganese_s") %> </th>
<th colspan="2"> <%=rs.getString("chromium_s") %> </th>
<th colspan="2"> <%=rs.getString("nickel_s") %> </th>
<th colspan="2"> <%=rs.getString("moly_s") %></th>
<th colspan="2"> <%=rs.getString("phos_s") %> </th>
<th colspan="2"> <%=rs.getString("sulphur_s") %> </th>
<th colspan="2"> <%=rs.getString("calsium_s") %> </th>
</tr>
<tr>
<th>Observed</th>
<th colspan="2"> <%=rs.getString("carbon_o") %> </th>
<th colspan="2"> <%=rs.getString("silicon_o") %> </th>
<th colspan="2"> <%=rs.getString("manganese_o") %></th>
<th colspan="2"> <%=rs.getString("chromium_o") %></th>
<th colspan="2"> <%=rs.getString("nickel_o") %></th>
<th colspan="2"> <%=rs.getString("moly_o") %></th>
<th colspan="2"> <%=rs.getString("phos_o") %></th>
<th colspan="2"> <%=rs.getString("sulphur_o") %></th>
<th colspan="2"> <%=rs.getString("calsium_o") %></th>
</tr>
<%
}
}
catch (Exception e)
{
e.printStackTrace();
}
%>
</table>
</div>
<div class="modal-footer" id="contact_submit">
<a class="btn btn-danger" style="float:left;" onclick="goBack()">Back</a>
<!-- <a href="ViewProduct.jsp" style="margin-right:655px;" class="btn btn-primary">Back</a>
<a class="btn btn-primary" href="Chemical_Composition.jsp">Reset</a>
<button type="submit" class="btn btn-primary" >Save Changes</button> -->
</div>
</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>