Current File : //home/obabain/public_html/abc/Issue_no_View1.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ include file="Connection.jsp" %>
    <%!
    
    String issueno=null;
   
    String qno=null;
    String issuedate=null;
   
    int inid=0;
    String date=null;
   
    %>
    <%   
    String id=request.getParameter("id");

	Statement st=con.createStatement();
    ResultSet rs=st.executeQuery("select * from  issue1 where id='"+id+"'");
    		
    while(rs.next())
    {
   issueno=rs.getString("issueno");
    issuedate=rs.getString("issue_date");
     
    }
    rs=st.executeQuery("select NOW() as date");
    while(rs.next())
    {
    date=rs.getString("date");
    }
    
    %>
<!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>
</head>
<style>

label1 {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: 700;
    width: 80px;
}
</style>
<body>
<form action="Add_Items_Issue.jsp?id=<%=id %>" method="post">
<%@include file="master.jsp" %>
<div class="content">
<div class="row">
<div class="col-md-9"  style="background-color:white;">
<div class="panel panel-default" >
       <div class="panel-heading main-color-bg">
        <h3 class="panel-title">Issue View1</h3>
              </div>
             </div>
<div class="panel-body">

<div class="row">
 <div align="right" >
 <a href="ViewIsuue.jsp" style="background:#204b58;margin-right: 40px" class="btn btn-info"  >View</a>
 </div>

 
<%--  <input type="hidden" value="<%=id%>" name="id1">  --%>

 <div class="form-group col-xs-2">
               <p> <label for="quotno" style="margin:5px;">
              Issue No<span style="color:red;"></span></label></p>
<input type="text" class="form-control" name="quotno" value="<%=issueno %>" readonly="readonly" >
</div>
 <div class="form-group col-xs-2">
 <p> <label for="invgrp" style="margin:5px;">
Issue Date</label></p>
<input type="text" class="form-control" name="invgrp" readonly="readonly" value="<%=issuedate %>">
</div>
<br>

 <div class="col-xs-3" style="margin-top: 20px;">
        <button type="submit" class="btn btn-danger">Add&nbsp;More&nbsp;Items</button>

</div>
</div>

</div>
<hr>  
            <b></b>         
            <br><br>
            <div class="panel-body">
<table id="myTable" class="table table-bordered" style="width:99%;">
<tr>

<th>Item Name <span style="color:red;"></span></th>

<th>Issue Qty</th>
<th>Closing Qty</th>
 <th>Edit</th> 
<th>Delete</th>


</tr>
<tbody>
<%
ResultSet rp=st.executeQuery("select * from  issue_table  where issue_no ='"+id+"'");
while(rp.next())
{
%>
<tr id='addr0'>
            

<td><%=rp.getString("pname")%>
</td>

<td><%=rp.getString("issue_qty")%>
</td>

<td><%=rp.getString("closing_stock")%>
</td>
 <td style="text-align:center;">
 <a  href="Issue_Edit.jsp?Id=<%=rp.getString("id")%>&id1=<%=id %>"><span class="glyphicon glyphicon-pencil"></span></a>
                </td>  
    <td style="text-align:center;">
 <a   href="Issue_Delete.jsp?Id=<%=rp.getString("id")%>&id2=<%=id %>" onclick = "if (! confirm('Are you Sure To Delete?')) { return false; }"><span class="glyphicon glyphicon-remove"></span></a>
                </td> 

</tr>
    
<%} %>
</tbody>
</table>
 <div class="pull-right" style="margin-right: 50px;">
<div class="col-xs-12 col-md-7 col-md-offset-3 col-lg-3 col-lg-offset-3">
 

</div>
</div>
</div>
<div class="modal-footer" id="contact_submit">
<input type="button" value="Back" style="background:#204b58; margin-right:650px;" class="btn btn-info pull-left"  onclick="goBack()"/>
</div>
</div>
</div>
</div>
<%@include file="footer.jsp" %>
</form>
<script type="text/javascript">
function goBack() {
    window.history.back();
   
};
</script>
</body>

</html>