Beispiel #1
0
 /**
  * Function displays the details of the products available 
  * 
  * 
  * @return array
  */
 function productDetail()
 {
     include_once 'classes/Core/CProductDetail.php';
     include_once 'classes/Display/DProductDetail.php';
     include 'classes/Core/CAdminHome.php';
     $output['username'] = Core_CAdminHome::userName();
     $output['currentDate'] = date('l, M d, Y H:i:s');
     $output['username'] = Core_CAdminHome::userName();
     $default = new Core_CProductDetail();
     $output['product'] = $default->productDetail();
     $output['attributes'] = $default->attributeList();
     $output['rating'] = $default->reviewRating();
     $output['review'] = $default->reviewCount();
     $output['relprod'] = $default->relatedProducts();
     Bin_Template::createTemplate('productdetail.html', $output);
 }
Beispiel #2
0
 /**
  * This function is used to get the pop up  of image of product 
  *
  * @return string
  */
 function showPopupProducts()
 {
     $sql = "SELECT * FROM product_inventory_table a INNER JOIN products_table b ON a.product_id = b.product_id WHERE b.product_id =" . (int) $_GET['prodid'] . " AND b.status=1";
     $obj = new Bin_Query();
     $obj->executeQuery($sql);
     $rating = Core_CProductDetail::reviewRating();
     return Display_DProductDetail::showPopupProducts($obj->records, $rating);
 }