Current File : /home/obabain/public_html/abc/qplan_view.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;
%>

<%@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://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.1/css/bootstrap.css">  -->
<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">View</h3>
        <a style="background:;margin-top:-23px;margin-right:30px;" class="btn btn-danger pull-right" href="qplan_temp.jsp">Add New</a>
       </div>
            
 <div class="panel-body">     
<script type="text/javascript">
$(document).ready(function() {
    $('#example').DataTable();
} );
</script>  
<div style="overflow-x:auto;width:100%;">
 <table class="table table-striped table-bordered" id="example" style="width:1000px;float-left:220px;">              

 <thead>  
         
<tr class="success"> 
<th>Edit</th>
<th>Delete</th>
 <th>Grade</th>
<th width="5%">Tapping&nbsp;Temperature&nbsp;in&nbsp;&#8451;</th>
 <th>MIN</th>
 <th>MAX</th>
</tr>

</thead>        
<tbody>     
       <%     
       rs=st.executeQuery("select tb.*,(select grade from grade where id=tb.grade)grad from qplan_temp tb;");
       while(rs.next())
       {
       %>  
       <tr>
     <td> <a href=Tempedit.jsp?Id=<%=rs.getString("id")%>" title="EDIT"> <span class="glyphicon glyphicon-pencil"></span></a>   </td>
    
        <td>  
      <a href="Tempdelete.jsp?Id=<%=rs.getString("id")%>" title="DELETE" onclick = "if (! confirm('Are You Sure To Delete?')) {return false;}">
                       <span class="glyphicon glyphicon-remove"></span> </a>
                 </td>          
        <td>  <b><%=rs.getString("grad")%></b> </td>
        <td>  <%=rs.getString("temp")%>  </td>
        <td>  <%=rs.getString("min")%>  </td>
        <td>  <%=rs.getString("max")%>  </td>
       </tr>     
     
       <%}%>
       </tbody>
       </table>


       
      <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> 
</div>
</section>



<%@include file="footer.jsp"%>
</form>
<script type="text/javascript">
function goBack() {
    window.history.back();
   
};
</script>


</body>
</html>