<?php require('header.php'); 
require("connect.php");
?>
    <div class="row">
        <div class="box col-md-12">
            <div class="box-inner">
                <div class="box-header well" data-original-title="">
                    <h2>Προϊόντα</h2>

                    
                </div>
                <div class="box-content">
                    <table class="table table-striped table-bordered bootstrap-datatable datatable dataTable">
                        <thead>
                        <tr>
                            <!-- <th>img</th> -->
                            <th>ID</th>
                            <th>Όνομα Προϊόντος</th>
                            <th>Τιμή Προϊόντος</th>
                            <th>Συνολικό Υπόλοιπο</th>
                            
                        </tr>
                        </thead>
                        <tbody>
                        <?php
                            $q = "SELECT products_model, products_image, products_price, application, flagsnew, FlagProsorino, products_quantity FROM products";
                            $res = mysqli_query($dbC,$q);
                            while($row = mysqli_fetch_array($res)){
                                //<td><img width=\"50px\" src=\"http://www.libertab2b.gr/cus/images/".$row['products_image']."\" /></td>
                                echo "<tr>
                                        <td>".$row['products_model']."</td>
                                        <td>".$row['application']."</td>
                                        <td>".number_format($row['products_price'],2)."</td>
                                        <td>".$row['products_quantity']."</td>
                                    </tr>";
                            }
                        ?>
                        </tbody>
                    </table>
                   
                </div>
            </div>
        </div>
    </div><!--/span-->

<?php require('footer.php'); ?>