<a href="/../products/AddProduct.php" class="btn btn-default">Add Product</a> <a href="/../orders/index.php" class="btn btn-default">Orders</a> </div> <table class="table"> <thead> <th>ID</th> <th>Name</th> <th>Price</th> <th>Options</th> </thead> <tbody> <?php $product = new EntityManager(); $list_products = $product->findAll('product'); foreach ($list_products as $product) { ?> <tr> <td><?php print $product['id']; ?> </td> <td><?php print $product['name']; ?> </td> <td><?php print $product['price']; ?>
<a href="/../orders/index.php" class="btn btn-default">Orders</a> </div> <table class="table"> <thead> <th>ID</th> <th>User</th> <th>Product</th> <th>Price</th> </thead> <tbody> <?php $orders = new EntityManager(); $list_orders = $orders->findAll('order'); foreach ($list_orders as $order) { ?> <tr> <td><?php print $order['id']; ?> </td> <td><?php print $order['username']; ?> </td> <td><?php print $order['name']; ?>
<a href="/../products/AddProduct.php" class="btn btn-default">Add Product</a> <a href="/../orders/index.php" class="btn btn-default">Orders</a> </div> <table class="table"> <thead> <th>ID</th> <th>Name</th> <th>Options</th> </thead> <tbody> <?php $user = new EntityManager(); $list_users = $user->findAll('user'); foreach ($list_users as $user) { ?> <tr> <td><?php print $user['id']; ?> </td> <td><?php print $user['username']; ?> </td> <td> <a href="EditUser.php?id=<?php print $user['id'];