"http://www.w3.org/TR/html4/loose.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="style.css" /> <title>E Retail System</title> </head> <body> <div class="header"> <h2>E Retail Store</h2> </div> <div class="container"> <div class="main"> <?php $result = $admin->getProductById($_GET['view_product_id']); while ($row = mysql_fetch_array($result)) { ?> <div class="product_wide"> <div class="product_header"> <h3 class="left_head"><?php echo ucfirst($row[1]); ?> </h3><h3 class="right_head">Rs. <?php echo $row[2]; ?> </h3> <div class="clear"></div> </div> <div class="product_image_wide"> <?php
if (isset($_GET['remove'])) { $customer->removeFromCart($_GET['product_id']); } if (!$customer->hasItems()) { ?> <div class="info"> <p>Your Cart is empty</p> </div> <?php } $result = $customer->getCart(); $total = 0; foreach ($result as $key => $value) { $result = $admin->getProductById($key); while ($row = mysql_fetch_array($result)) { ?> <div class="info"> <div class="cart_img"> <?php if (empty($row[6])) { $img = "sury.jpg"; } else { $img = $row[6]; } ?> <img src="<?php echo $img; ?> " width="50px" height="60" />
} require_once 'header.php'; require_once 'product.php'; require_once 'category.php'; require_once 'administator.php'; require_once 'db.php'; $error = "Please fill all the texts in the fields."; $admin = new Administator(); ?> <div class="container"> <div class="main" style="margin-top: 10px;"> <?php $result1 = $admin->getAllOrder(); while ($row1 = mysql_fetch_array($result1)) { $result = $admin->getProductById($row1[4]); while ($row = mysql_fetch_array($result)) { ?> <div class="product_wide"> <div class="product_header"> <h3 class="left_head_1">Customer Name: <?php echo ucfirst($row1[1]); ?> </h3><h3 class="right_head_2">Phone No. <?php echo $row1[2]; ?> </h3> <div class="clear"></div> </div> <div class="product_image_wide"> <?php