Current File : //home/obabain/autoclutchess_obaba_in/SandProcessInspection.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
     <%@ include file="Connection.jsp"%>
     
  <%--    <% String onumber=(String)session.getAttribute("morder");%>
     <% String product=(String)session.getAttribute("product");%>
     <% String heat=(String)session.getAttribute("heat");%> --%>
     
    <%!int inid=0; 
    ResultSet rs=null;
    String date="";
    String heat_no="";
    String item_description="";
    String grade="";
    %>
     
     
    <% 
    String id="";
      id=request.getParameter("Id");
      Statement st=con.createStatement();
      rs=st.executeQuery("select * from heat_treat where id="+id+"");
        while(rs.next())
        {
        	date=rs.getString("date");
        	heat_no=rs.getString("heat_no");
        	item_description=rs.getString("item_description");
        	grade=rs.getString("grade");
        }
     %>
          
      
<!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">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"  rel="stylesheet">

    <link href="css/select2.min.css" rel="stylesheet">
    <link href="css/jquery.datetimepicker.css" rel="stylesheet">
    <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>
    
<title>Purchase</title>
<style>
table,th,td
{
border:1px solid #ddd;
}
</style>

 <style type="text/css">
  .template { display:none ; }
  </style>
  <script type="text/javascript">
function country_change()
{
    var country = $(".country").val();
	
    $.ajax({
		type: "POST",
		url: "subprocess_p2.jsp",
		data: "country_id="+country,
		cache: false,
		success: function(response)
        {
            $(".state").html(response);
        }
    });
}
function state_change()
{
    var state = $(".state").val();
	
	$.ajax({
		type: "POST",
		url: "city.jsp",
		data: "state_id="+state,
		cache: false,
		success: function(response)
        {
            $(".city").html(response);
        }
    });
}
</script>
</head>
<body>
<%@include file="master.jsp" %>

<form  method="post" name="po" action="ProcessInspection.jsp?Id=<%=id%>">

<div class="content">
<div class="row">
<div class="col-md-9"  style="background-color:white;width:80%;height:300px">
<div class="panel panel-default" >
       <div class="panel-heading main-color-bg">
        <h3 class="panel-title">Process Inspection Process(Sand Casting)</h3>
              </div>
             </div>
<div class="pal-body">

<div align="center">
<div class="row" style="margin:5px;" >
									<div class="col-xs-2">
	<label for="lastname" >Select Material:</label> 
	 
													
				</div>					
<div class="col-xs-2" style="margin-left:-50px">
	<select id="select" class="country form-control" name="prod" class="form-control" onchange="country_change()">
	                        <option value="0">select</option>
	                        <%
                     rs=st.executeQuery("select tb.*,(select product_name from ip_products where product_id=tb.product)pnmae from ip_furnace tb group by product");

	                        while(rs.next())
	                        {
	                        %>
                            <option value="<%=rs.getString("product_id")%>"><%=rs.getString("product_name")%></option>
                            <%} %>
                  </select>
                  </div>
                  </div>
              <div class="row" style="margin:5px;margin-top:30px">
									<div class="col-xs-2">
                  	<label>Heat_no:</label> 
                  	</div>
                  	<div class="col-xs-2" style="margin-left:-55px">
	<select class="state form-control" name="heat" style="margin:5px;" onchange="state_change()">
</select>
	</div>
	<div class="col-xs-2">
	<div align="center" style="margin-top:5px">
<input  type="submit" style="background:#204b58;" class="btn btn-info" value="Submit">
 </div>
	</div>
	
</div>
</div>
	</div>
	</div>
	</div>
</div>
</form>
</body>
</html>