Ejemplo n.º 1
0
						<?php 
d_getProductCat();
?>
                    </div>
                </div>
				<div class = "col-md-9">
					<?php 
d_cart();
?>
					<div id="shopping_cart" align = "right"; style = "border: 2px #f05f40 solid;">
						<span style = "font-size: 15px; padding: 5px; line-height: 30px;">
							Welcome Guest! <b>Shopping Cart -</b> Total Items: <b><?php 
total_items();
?>
</b>  Total Price: <b><?php 
total_price();
?>
</b>  <a href = "cart.php"> View Cart </a>
						</span>
					</div>
					<br><span>Store > <a href = "store.php?cat=3">Delivery</a> > <?php 
storeName();
?>
 > <?php 
productName();
?>
</span><br><br>
					<h1><?php 
productName();
?>
</h1>
Ejemplo n.º 2
0
					<ul class="list-group">
						<?php 
getGenre();
?>
					</ul>
				</div>
				<span style="float:right; font-size:18px; padding:5px; line-height:40px;">
					<?php 
selection();
?>
					Welcome Guest!  <strong style ="color:red">JobBucket-</strong> Shortlisted : <strong style ="color:red"> <?php 
echo total_selections();
?>
</strong>
					Total Price:<strong style ="color:red;text-decoration:underline;"><?php 
echo total_price();
?>
</strong>
					<a href ="picked.php"  class="btn btn-danger">Go To JobBucket</a>
				</span>
				<div class ="col-md-9">
					<?php 
getWorkers();
?>
					<?php 
getOccWorker();
?>
					<?php 
getGenreWorker();
?>
				</div>
Ejemplo n.º 3
0
     $id = $_GET['id'];
     $product = get_product($id);
     break;
 case 'cart':
     break;
 case 'add_to_cart':
     $id = $_GET['id'];
     $add_item = add_to_cart($id);
     $_SESSION['total_items'] = total_items($_SESSION['cart']);
     $_SESSION['total_price'] = total_price($_SESSION['cart']);
     header('Location: index.php?view=product&id=' . $id);
     break;
 case 'update_cart':
     update_cart();
     $_SESSION['total_items'] = total_items($_SESSION['cart']);
     $_SESSION['total_price'] = total_price($_SESSION['cart']);
     header('Location: index.php?view=cart');
     break;
 case 'admin':
     break;
 case 'rings':
     $val = $_POST['val'];
     $cat = $_GET['id'];
     $products = get_cat_products($cat, $val);
     break;
 case 'news':
     $news = news();
     break;
 case 'save_goods':
     db_connect();
     break;
        </tbody>
        <tfoot>
         <tr class="text-right">
           <td colspan="4"></td>
           <td colspan="1">Grand Total</td>
           <td> $
           <?php 
    echo number_format(total_price($results)[0], 2);
    ?>
          </td>
         </tr>
         <tr class="text-right">
           <td colspan="4"></td>
           <td colspan="1">Profit</td>
           <td> $<?php 
    echo number_format(total_price($results)[1], 2);
    ?>
</td>
         </tr>
        </tfoot>
      </table>
    </div>
  <?php 
} else {
    $session->msg("d", "Sorry no sales has been found. ");
    redirect('sales_report.php', false);
}
?>
</body>
</html>
<?php