Current File : /home/obabain/public_html/abc/edit_mc.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
           <%@ include file="Connection.jsp" %>
  
<!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>
<style type="text/css">
.rrow
{
 display: inline-block;
   margin: 30px;
}    
</style>
</head>
<%@include file="master.jsp" %>

<body>
    <div class="row">
        <div class="col-md-9">
            <div class="panel panel-default">
             <!--  <div class="panel-heading main-color-bg" style="background-color:green;color:#00FF00;height:40px;"> -->
              <div class="panel-heading main-color-bg" style="height:40px;">  
              </div>
              <div class="panel-body">

   <form action="update_mc.jsp"  method="post" id="" name="">
  
       <%
       try
       {
    	String id=request.getParameter("id");	   
	    Statement st=con.createStatement();
	    ResultSet resultSet = st.executeQuery("select * from main_patternlists where id="+id+"");
        while(resultSet.next())
        {
       %>
          
     <br>  
    <div class="form-group"> 
     <div class="row">
          <input type="hidden" value="<%=id%>" name="id">               <!--  important -->
        <div class="col-sm-4">
           <label for="">Order No:</label>
           <input type="text" class="form-control"  value="<%=resultSet.getString("order_no")%>" id=""  name="order_no">
        </div> 

  
  
        <div class="col-sm-4">
           <label for="">Heat&nbsp;No:</label>
           <input type="text" class="form-control"    value="<%=resultSet.getString("heat_no")%>"  id=""  name="heat_no">
        </div>
        
        <div class="col-sm-4">
              <label for="">Item&nbsp;Description:</label>
              <input type="text" class="form-control"    value="<%=resultSet.getString("item_description")%>" id=""  name="item_description">
           </div>
          
      </div>
   </div>
   
    <div class="form-group">
         <div class="row">
         
          
           <div class="col-sm-4">
              <label for="">Tapping&nbsp;Temp&nbsp;in&nbsp;c:</label>
              <input type="text" class="form-control"    value="<%=resultSet.getString("tapping_temp")%>" id=""  name="tapping_temp">
           </div>
           
           <div class="col-sm-4">
              <label for="">Poured&nbsp;Qty&nbsp;in&nbsp;No's:</label>
              <input type="text" class="form-control"    value="<%=resultSet.getString("pouredq_no")%>" id=""  name="pouredq_no">
           </div>
           
           <div class="col-sm-4">
              <label for="">Poured&nbsp;Qty&nbsp;in&nbsp;Kg's:</label>
              <input type="text" class="form-control"    value="<%=resultSet.getString("pouredq_kg")%>" id=""  name="pouredq_kg">
           </div>
  
        </div>
     </div>
     
     
     <div class="form-group">
         <div class="row">
         
           <div class="col-sm-4">
              <label for="">Rej&nbsp;Qty(Kg):</label>
              <input type="text" class="form-control"    value="<%=resultSet.getString("rej_qtywt")%>" id=""  name="rej_qtywt">
           </div>
           
           <div class="col-sm-4">
              <label for="">Weight(Kg):</label>
              <input type="text" class="form-control"    value="<%=resultSet.getString("weight")%>" id=""  name="weight">
           </div>
           
           <div class="col-sm-4">
              <label for="">Remarks:</label>
              <input type="text" class="form-control"    value="<%=resultSet.getString("remarks")%>" id=""  name="remarks">
           </div>
           
        </div>
     </div>    
           
         
      <br>   
   
       <input type="submit" value="Update" class="btn btn-primary" style="margin-left:430px;">
        <%
        }
       }
    
       catch(Exception e) 
       {
        e.printStackTrace();
       }
    %>  
 </form> 
      
              </div>
              <br>
            </div>
          </div>
        </div>
     <script type="text/javascript">
  function goBack() 
  {
   window.history.back(); 
  };
</script>
</body>
</html>