<?php include("side_nav.php"); ?>
<?php include("top_nav.php"); ?>
<?php
   $sql = mysqli_query($con, "SELECT * FROM logo");
?>

        <!-- page content -->
        <div class="right_col" role="main">
         
            <div class="clearfix"></div>

            <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                  <div class="x_title">
                    <h2>Products <small></small></h2>
                    <ul class="nav navbar-right panel_toolbox">
                      <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                      </li>
                      <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>
                        <ul class="dropdown-menu" role="menu">
                          <li><a href="#">Settings 1</a>
                          </li>
                          <li><a href="#">Settings 2</a>
                          </li>
                        </ul>
                      </li>
                      <li><a class="close-link"><i class="fa fa-close"></i></a>
                      </li>
                    </ul>
                    <div class="clearfix"></div>
                  </div>
                  <div class="x_content">
                    <p class="text-muted font-13 m-b-30">
                      Table showing the list of displayed items.
                    </p>
					
					
                    <table id="datatable-buttons" class="table table-striped table-bordered">
                      <thead>
                        <tr>
                          <th>Product Name</th>
                          <th>Category</th>
                        </tr>
                      </thead>

                      
                      <tbody>
					  <?php while($row = mysqli_fetch_array($sql)): ?>
                        <tr>
                          <td><img src="<?php echo substr($row['logo_url'] , 0) ?>" width="100px" /></td>
                          <td><?php echo $row['company_name']; ?></td>
                       </tr>
					  <?php endwhile; ?>
                      </tbody>
					  
                    </table>
                    
				  </div>
                </div>
              </div>
            </div>
        </div>
        <!-- /page content -->
        </div>
		</div>

    <!-- jQuery -->
    <script src="../vendors/jquery/dist/jquery.min.js"></script>
    <!-- Bootstrap -->
    <script src="../vendors/bootstrap/dist/js/bootstrap.min.js"></script>
    <!-- FastClick -->
    
    <script src="../vendors/starrr/dist/starrr.js"></script>
    <!-- Custom Theme Scripts -->
    <script src="../build/js/custom.min.js"></script>
	</body>
</html>       