<div class="centro_main">
  <?php 
foreach ($list_product as $item) {
    ?>
  <!--module -->
  <!--module -->
  <div class="module">
      <!--product_content -->
      <div class="product_content">
            <div class="product">
        <a href="<?php 
    echo $item->href_detail_product;
    ?>
">
        <img width="150" height="160" src="<?php 
    echo basics::upload() . $item->image_product;
    ?>
">
        </a>
        </div>
        <div class="product_name">
		<a href="<?php 
    echo $item->href_detail_product;
    ?>
"></a>
		<?php 
    echo $item->name_product;
    ?>
<br/>
		</div>
		<div class="product_price">
Esempio n. 2
0
 public static function GetBannerByGroup($group)
 {
     if (isset(self::$BannerGroup[$group])) {
         return self::$BannerGroup[$group];
     } else {
         $groupbanner = null;
         $banner = new fpp_banner_Model();
         $banner = $banner->db2cls();
         $banners = $banner->fetch_where(array('group_banner' => $group));
         foreach ($banners as $row) {
             $wb = $row->group_banner;
             $href = $row->href_banner;
             $url_banner = Basic::TransVar("url_banner");
             $url = $row->{$url_banner};
             $groupbanner .= '<div class="banners banners_group_' . $group . '">' . html::anchor($href, html::image(basics::upload() . $url, array('alt' => $row->name_banner, 'title' => $row->name_banner))) . ' </div>';
         }
         self::$BannerGroup[$group] = $groupbanner;
         return self::$BannerGroup[$group];
     }
 }
Esempio n. 3
0
 public static function GalleryImage()
 {
     $uri = Uri::Instance();
     $id = (int) $uri->segment('id');
     $db = Database::Instance();
     $r = $db->query("SELECT * FROM product_images WHERE product_id_product = {$id}");
     $str = null;
     $ct = 0;
     foreach ($r as $row) {
         $str .= '
     <a rel="prettyPhoto[grp]" id="imggal_' . $ct . '" href="' . basics::upload() . $row->pi_image . '" class="gallery" >a
     </a>';
         $ct++;
     }
     return $str;
 }
          </div>
            <div id='carousel_inner'>
                <ul id='carousel_ul'>
                  <?php 
foreach ($products as $product) {
    ?>
                    <li>
                      <div style="position:relative; width:200px; margin-left:7px">
                        <div class="precio typeface-js">
                          <span>S/.</span><?php 
    echo $product->price_product;
    ?>
                        </div>
                        <div style="position:absolute; top:0; left:0; width:185px; height:167px">
                          <img width='185' height='167'  src="<?php 
    echo basics::upload() . $product->image_product;
    ?>
" />
                        </div>
                      </div>
                    </li>
                  <?php 
}
?>
                </ul>
            </div>
          <div id='right_scroll'>
          <a href='javascript:slide("right");'><img src='<?php 
echo basics::media();
?>
images/right.png' /></a>
Esempio n. 5
0
 public static function GetSchemaCategory_SelDisplay()
 {
     $initlevel = 1;
     $html = null;
     $new_array = array();
     $table = new fpp_category_Model();
     $orm = $table->db2cls();
     $orm->limit = null;
     $checksub = true;
     $uri = Uri::Instance();
     $itemid = (int) $uri->segment("items");
     $rl1 = $orm->fetch_where(array('enable' => '1'), array('cat_id' => 'ASC', 'order_cat' => 'DESC'));
     foreach ($rl1 as $row) {
         if ($row->cat_id == $initlevel) {
             $new_array[$row->id_category] = $row;
             $new_array[$row->id_category]->sub = array();
         } else {
             $nnew_array[$row->id_category] = $row;
             $nnew_array2[$row->cat_id][] = $row;
             if ($row->cat_id == $itemid) {
                 $new_array[$itemid]->sub[] = $row;
                 $checksub = false;
             }
         }
     }
     if ($checksub and @$nnew_array[$itemid]->cat_id != "") {
         $cidn12 = $nnew_array[$itemid]->cat_id;
         $arraycid = $nnew_array2[$cidn12];
         $new_array[$cidn12]->sub = $arraycid;
     }
     foreach ($new_array as $row) {
         $name_category = Basic::TransVar("name_category");
         $href = html::anchor("category/items/" . @$row->id_category, @$row->{$name_category});
         $img = $row->image_category != "" ? html::image(basics::upload() . $row->image_category) : null;
         if (!(@$row->id_category == '')) {
             $html .= "<li class='supcat'>{$img} {$href}</li>";
             foreach ($row->sub as $sub) {
                 $href = html::anchor("category/items/" . $sub->id_category, $sub->{$name_category});
                 $html .= "<li  class='subcat'>{$href}</li>";
             }
             //           $html .= "</ul>";
         }
     }
     //       echo Kohana::debug($new_array);
     return $html;
 }
Esempio n. 6
0
        ?>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="11%" align="center" class="border-right">
              <a href="<?php 
        echo $value->delete;
        ?>
">
                <img src="<?php 
        echo basics::media();
        ?>
images/x.png" alt="x" width="25" height="25" />
              </a>
            </td>
            <td width="21%" valign="top" align="center" ><img src="<?php 
        echo basics::upload() . $value->image;
        ?>
" alt="<?php 
        echo $value->name;
        ?>
" title="<?php 
        echo $value->name;
        ?>
" width="98" height="98" style="border:1px solid #CCCCCC; margin:10px 0 10px 0" /></td>
            <td width="26%" align="left" valign="middle" class="border-right"><span class="bold"><?php 
        echo $value->name;
        ?>
<br/>
            <?php 
        echo Cart::GetAttrByID($id);
        ?>