Current File : /home/obabain/autoclutchess_obaba_in/componentview.jsp |
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ include file="Connection.jsp"%>
<%
Statement st=con.createStatement();
ResultSet rs=null;
String id=request.getParameter("id");
%>
<%@include file="master.jsp"%>
<style type="text/css">
.highlight-error {
border-color: red;
}
</style>
<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">
<body>
<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">
<h3 class="panel-title">Components Master View:</h3>
<a style="background:;margin-top:-23px;margin-right:30px;" class="btn btn-danger pull-right" href="componet.jsp">Add New</a>
<!-- <a style="background:;margin-top:-23px;margin-right:30px;" class="btn btn-success pull-right" href="dieslistview1.jsp">List Of Dies</a> -->
</div>
<div class="panel-body">
<script type="text/javascript">
$(document).ready(function() {
$('#example').DataTable();
} );
</script>
<div style="overflow-x:auto;">
<table class="table table-striped table-bordered" id="example">
<thead>
<tr class="success">
<th>Sl No.</th>
<th>Part Name</th>
<th>Part No.</th>
<th>Grade</th>
<th>No.of Cavity</th>
<th>Pattern Material</th>
<th>Pattern Type</th>
<th>Core Box Metal</th>
<th>No.of Core Box</th>
<th>No.core Box In Set</th>
<th>Casting Wt/pc</th>
<th>PRNG wt/pc</th>
<th>Returns wt/pc</th>
<th>Casting wt/box</th>
<th>PRNG wt/box</th>
<th>Return wt/box</th>
<th>Yeild %</th>
<th>No.of Cores/pc</th>
<th>Core Process</th>
<th>Single Casting Core Wt in Kg</th>
<th>Mould Process</th>
<th>Mould Wt Top in Kg</th>
<th>Mould Wt Bottom in Kg</th>
<th>Sleeve Size</th>
<th>Sleeve Qty</th>
<th>Filter Qty</th>
<th>Mould Box Size Top</th>
<th>Mould Box Size Bottom</th>
<th>Edit</th>
<th>Delete</th>
</tr>
</thead>
<tbody>
<%
int i=0;
//rs=st.executeQuery("select * from pattern1");
String id1=request.getParameter("wid");
rs=st.executeQuery("select * from components where cust_id="+id1+"");
// ResultSet rs11=st1.executeQuery("select tb.*,(select pattern_name from pattern3 where p_id=tb.p_id)part from pattern1 tb ");
while(rs.next())
{
i+=1;
%>
<tr style="height:2px;">
<td> <b><%=i%> </b> </td>
<td><%=rs.getString("a1")%></td>
<td><%=rs.getString("a2")%></td>
<td><%=rs.getString("a3")%></td>
<td><%=rs.getString("a4")%></td>
<td><%=rs.getString("a5")%></td>
<td><%=rs.getString("a6")%></td>
<td><%=rs.getString("a7")%></td>
<td><%=rs.getString("a8")%></td>
<td><%=rs.getString("a9")%></td>
<td><%=rs.getString("a10")%></td>
<td><%=rs.getString("a11")%></td>
<td><%=rs.getString("a12")%></td>
<td><%=rs.getString("a13")%></td>
<td><%=rs.getString("a14")%></td>
<td><%=rs.getString("a15")%></td>
<td><%=rs.getString("a16")%></td>
<td><%=rs.getString("a17")%></td>
<td><%=rs.getString("a18")%></td>
<td><%=rs.getString("a19")%></td>
<td><%=rs.getString("a20")%></td>
<td><%=rs.getString("a21")%></td>
<td><%=rs.getString("a22")%></td>
<td><%=rs.getString("a23")%></td>
<td><%=rs.getString("a24")%></td>
<td><%=rs.getString("a25")%></td>
<td><%=rs.getString("a26")%></td>
<td><%=rs.getString("a27")%></td>
<td><a href="Componentsedit.jsp?Id=<%=rs.getString("id")%>"><li class="glyphicon glyphicon-pencil"></li></a></td>
<td align="left"><a href="deletecomponent1.jsp?Id=<%=rs.getString("id")%>" onclick = "if (! confirm('Continue?')) { return false; }"><li class="glyphicon glyphicon-trash"></li></a></td>
</tr>
<%}%>
</tbody>
</table>
</div>
<div class="modal-footer" id="contact_submit">
<div class="row">
<!-- <a class="btn btn-default" href="#" style="margin-right:10px">Reset</a> -->
<!-- <button type="submit" style="background:" class="" ></button>-->
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<%@include file="footer.jsp"%>
</form>
<script type="text/javascript">
function goBack() {
window.history.back();
};
</script>
</body>
</html>