<?php
include '../include/header.php'; 

?>



<!-- Page wrapper  -->
        <div class="page-wrapper">
            <!-- Bread crumb -->
            <div class="row page-titles">
                <div class="col-md-5 align-self-center">
                     </div>
                <div class="col-md-7 align-self-center">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="javascript:void(0)">Home</a></li>
                        <li class="breadcrumb-item active">Workorder Details</li>
                    </ol>
                </div>
            </div>
            <!-- End Bread crumb -->
            <!-- Container fluid  -->
            <div class="container-fluid">
                <!-- Start Page Content -->
                <div class="row">
                    <div class="col-12">
                        <div class="card">
                          
							
							

	
	<div class="card-body">
	<h3>Workorder Details</h3>
	 <a href="workorder_master.php" class="btn btn-block btn-primary" name="add_ward" style="width:100px; float:right; margin-bottom:10px;">Add</a>
                              
                                <div class="table-responsive m-t-40">
                                    <table id="example23" class="display nowrap table table-hover table-striped table-bordered" cellspacing="0" width="100%">
                                        <thead>
                                            <tr>
                                              
					<th>#</th>
					<th>Workorder NO</th>
					<th>Workorder Detail</th>
					<th>Validity</th>
					<th>GST NO</th>
					
					<th align="center">Action</th>
                                            </tr>
                                        </thead>
                                        
                                        <tbody>
                                            <?php $i=1; ?>
				<?php
					
											
											$sqlww = "select *from tbl_workorder_master ";
						$resultww = $objhr->viewdata($sqlww);
				
				 if($resultww->num_rows > 0){
						while($rowsww = $resultww->fetch_assoc()){	 
						
						$m_id = $rowsww['id'];
				
				 
					
						?>
				<tr>
					<td><?php echo $i++; ?></td>
					<td><?php echo $rowsww['workorder_no']; ?></td>
					<td><?php echo $rowsww['workorder_detail']; ?></td>
					<td><?php echo $rowsww['validity']; ?></td>
					<td><?php echo $rowsww['gst_no']; ?></td>
					
					
					
										
					<td align=""><a href=""><button type="button" class="btn btn-sm btn-primary" name="" style="width:80px;">Edit</button></a> </td>
					
				</tr>
				<?php }}?>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
	
	
							
							 </div>
                        </div>
                    </div>
                </div>
                <!-- End PAge Content -->
            </div>
            <!-- End Container fluid  -->



 
 
  
  <?php include '../include/footer.php'; ?>

							 <script src="../js/lib/datatables/datatables.min.js"></script>
    <script src="../js/lib/datatables/cdn.datatables.net/buttons/1.2.2/js/dataTables.buttons.min.js"></script>
    <script src="../js/lib/datatables/cdn.datatables.net/buttons/1.2.2/js/buttons.flash.min.js"></script>
    <script src="../js/lib/datatables/cdnjs.cloudflare.com/ajax/libs/jszip/2.5.0/jszip.min.js"></script>
    <script src="../js/lib/datatables/cdn.rawgit.com/bpampuch/pdfmake/0.1.18/build/pdfmake.min.js"></script>
    <script src="../js/lib/datatables/cdn.rawgit.com/bpampuch/pdfmake/0.1.18/build/vfs_fonts.js"></script>
    <script src="../js/lib/datatables/cdn.datatables.net/buttons/1.2.2/js/buttons.html5.min.js"></script>
    <script src="../js/lib/datatables/cdn.datatables.net/buttons/1.2.2/js/buttons.print.min.js"></script>
    <script src="../js/lib/datatables/datatables-init.js"></script>
	