Ejemplo n.º 1
0
 /**
  * Product::getSpec()
  * 
  * @return list of product spec order by position
  */
 function getSpec()
 {
     $productSpec = new productspec();
     $productSpec->where('product_id', $this->id);
     $productSpec->order_by('position', 'asc');
     $productSpec->include_related("productgenspec", "*", TRUE, TRUE);
     $productSpec->get_iterated();
     return $productSpec;
 }
Ejemplo n.º 2
0
 function loadNewProductSpec($id)
 {
     $product = new product($id);
     $dis['productSpec'] = $product->productSpec;
     $dis['object'] = $product;
     $dis['base_url'] = base_url();
     $allSpec = new productspec();
     $allSpec->where('product_id', $product->id);
     $allSpec->order_by('position', 'asc');
     $allSpec->get_iterated();
     $dis['allSpec'] = $allSpec;
     return $this->load->view('admin/products/loadProductSpec', $dis);
 }
Ejemplo n.º 3
0
         $firstProduct = $r;
     }
     ?>
                     <div class="p_r_txt" style="width: 250px;padding-left:10px;padding-right:10px;">
                     <?php 
     echo $r->name;
     ?>
                     </div>
             <?php 
 }
 ?>
              <?php 
 $productSpec = new productspec();
 $productSpec->where('product_id', $firstProduct->id);
 $productSpec->order_by('position', 'asc');
 $productSpec->get_iterated();
 ?>
 			<div class="clr"></div>
 		</div>
         <div class="p_d_row">
 			<div class="p_l_txt" style="width: 190px;">Hình ảnh</div>
 			
             <?php 
 $h = 0;
 foreach ($this->compareProduct as $r) {
     $h++;
     ?>
                     <div class="p_r_txt" style="width: 250px;padding-left:10px;padding-right:10px;text-align: center;">
                     <img src="<?php 
     echo image($r->image, "product_home");
     ?>