<?php include 'header1.php';?>

  <div class="content-page">
    <div class="content">
      <div class="container">
        <div class="row">
          <div class="col-sm-12">
            <div class="page-header-title">
			<button type="button" class="btn btn-dark  waves-effect waves-light" onclick="location.href='index.php'">BACK </button>
			 <button type="button" class="btn btn-danger waves-effect waves-light" onclick="location.href='add_bar_size.php'">ADD Bar Material</button>
             
              <div class="clearfix"></div>
            </div>
          </div>
        </div>
      
        
        <div class="row">  
          <div class="col-md-12">
            <div class="panel panel-primary">
              <div class="panel-heading">
                <h3 class="panel-title">Bar Size</h3>
              </div>
              <div class="panel-body">
                <table  id="datatable-buttons" class="table table-striped table-bordered">
                  <thead>
                    <tr>
                   
									
									<th>Sr No.</th>
									<th>Bar Size</th>
									
									<th>Action</th>
									
                    </tr>
                  </thead>
                  <tbody>
			<?php
$i='1';
$query1a = "select * from bar_size_master ORDER BY bar_id  desc";
$result1a = mysqli_query($conn,$query1a);
//echo $query1a;
//exit();
while($row=mysqli_fetch_array($result1a))
{		
$bar_id  = $row['bar_id'];
$bar_size = $row['bar_size'];


 ?>	 
                    <tr>
                    	
                        <td><?php echo $i?></td>
							
							<td><?php echo $bar_size?></td>
					 
                     
                      	<td><a href="delete_bar_size.php?bar_id=<?php echo $bar_id?>" class="btn waves-light" target="_blank" style=" background-color:#044eb3;  color: #FFFFFF">Delete</a></td>
                         
                    </tr>
                     <?php  $i++; }?>
                  </tbody>
                </table>
              </div>
            </div>
          </div>
        </div>
        
      </div>
    </div>
	<?php include 'footer1.php';?>