</script> <div class="container"> <div class="float-left left-side"> <h1 class="content-title"> Thông tin khuyến mại </h1> <div class="line-break-news"></div> <div class="fulltext box"> <div id="wrapper" class="clearfix"> <?php foreach ($this->items as $item) { $item->slug = $item->id . ':' . $item->alias; $link = JRoute::_(Jnt_HanhphucHelperRoute::getArticleRoute($item->slug, $item->catid)); ?> <div class="tack"> <div class="tackHolder"> <a href="<?php echo $link; ?> " title="<?php echo $this->escape($item->title); ?> "> <?php if ($item->images) {
defined('_JEXEC') or die; ?> <div class="module-title module-padding" id="business-promotion">THÔNG TIN KHUYẾN MẠI</div> <div class="line-break"></div> <div class="box"> <ul class="promotion-content"> <?php if (!empty($list)) { foreach ($list as $item) { $slug = $item->id . ':' . $item->alias; $link = JRoute::_(Jnt_HanhphucHelperRoute::getArticleRoute($slug)); ?> <li> <div class="left-side-promotion-content fltlft"> <?php if ($item->images) { ?> <img src="<?php echo JURI::base(); echo $item->images; ?> " width="70" /> <?php } ?> </div>
/** * @package Joomla.Site * @subpackage mod_stats * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ // no direct access defined('_JEXEC') or die; ?> <div class="box"> <ul class="menu-featured-users fltlft"> <?php foreach ($list as $user) { $link = JRoute::_(Jnt_HanhphucHelperRoute::getServicesRoute($user->id, $user->username)); ?> <li class="fltlft"> <div class="image" style="margin: 10px auto;"> <a class="title" style="width: 60px; height: 60px;" href="<?php echo $link; ?> "> <?php $userLogo = $user->business_logo; if ($userLogo) { ?> <img src="<?php echo JURI::base(); ?>
<div id="wrapper" class="clearfix"> <?php foreach ($this->items as $item) { $item->slug = $item->id . ':' . $item->alias; $link = JRoute::_(Jnt_HanhphucHelperRoute::getItemRoute('album', $item->slug)); ?> <div class="tack"> <div class="tackHolder"> <a href="<?php echo $link; ?> " title="<?php echo $this->escape($item->name); ?> "> <?php if ($item->images) { ?> <img src="<?php echo JURI::base() . $item->images; ?> " style="float: left; margin-right: 10px; width: 50%;" /> <?php } ?> </a> </div>
<div class="module-business-blog <?php echo $moduleclass_sfx; ?> padding-5"> <div class="row bussiness-blog-box box relative"> <?php if (!empty($blogs)) { ?> <a href="#" id="slider-prev" class="pull-left"></a> <a href="#" id="slider-next" class="pull-right"></a> <ul class="b_blogs"> <?php foreach ($blogs as $blog) { $link = JRoute::_(Jnt_HanhphucHelperRoute::getServicesRoute($blog->userid, $blog->username)); ?> <li class="col-md-4"> <a href="<?php echo $link; ?> " class="image pull-left" title="<?php echo $blog->business_name; ?> "> <?php /* <img src="<?php echo JURI::base() . 'images/business/' . $blog->business_logo ?>" /> */ ?> <img src="http://hanhphuc.vn/images/business/3669/logo/logo.jpg" class="img-responsive" /> </a> <?php
protected static function _findItem($needles = null) { $app = JFactory::getApplication(); $menus = $app->getMenu('site'); // Prepare the reverse lookup array. if (self::$lookup === null) { self::$lookup = array(); $component = JComponentHelper::getComponent('com_jnt_hanhphuc'); $items = $menus->getItems('component_id', $component->id); foreach ($items as $item) { if (isset($item->query) && isset($item->query['view'])) { $view = $item->query['view']; if (!isset(self::$lookup[$view])) { self::$lookup[$view] = array(); } if (isset($item->query['id'])) { self::$lookup[$view][$item->query['id']] = $item->id; } } } } if ($needles) { foreach ($needles as $view => $ids) { if (isset(self::$lookup[$view])) { foreach ($ids as $id) { if (isset(self::$lookup[$view][(int) $id])) { return self::$lookup[$view][(int) $id]; } } } } } else { $active = $menus->getActive(); if ($active && $active->component == 'com_jnt_hanhphuc') { return $active->id; } } return null; }
?> </a> <p class="item-title"><?php echo $item->name; ?> </p> <p class="item-price"><strong>Giá</strong>: <?php echo number_format($item->current_price); ?> VNĐ</p> </div> <div class="item-provider"> <a href="<?php echo JRoute::_(Jnt_HanhphucHelperRoute::getServicesRoute($item->business_id, $item->business_username)); ?> " class="item-provider-link"> <?php echo $item->business_username; ?> </a> </div> <div class="clr"></div> </li> <?php } ?> </ul> <div class="clr"></div>
<?php if (count($this->items) > 0) { ?> <div class="services-list relative"> <div class="seperator absolute"></div> <h2 id="product-service">SẢN PHẨM VÀ DỊCH VỤ</h2> <ul class="items"> <?php foreach ($this->items as $item) { $id = $item->category . '-' . $item->category_alias; $bid = $item->id . '-' . $item->alias; $username = JRequest::getString('user'); $link = JRoute::_(Jnt_HanhphucHelperRoute::getSerivceItemRoute($id, $bid, $username)); ?> <li class="service-business-detail"> <a title="<?php echo htmlspecialchars($item->name); ?> " href="<?php echo $link; ?> "> <?php if ($item->img) { ?> <div class="img"> <img src='<?php echo JURI::base();
<div class="relative list-items"> <ul> <?php foreach ($list as $item) { $img = @getimagesize(JPATH_ROOT . DS . $item->images); $w = 100; $frameHeight = 70; $h = 0; if (!empty($img)) { $h = round($img[1] * $w / $img[0]); } if ($h < $frameHeight) { $margin = round(($frameHeight - $h) / 2); } $item->slug = $item->id . ':' . $item->alias; $link = JRoute::_(Jnt_HanhphucHelperRoute::getAlbumRoute($item->slug)); ?> <li> <div> <a href="<?php echo $link; ?> "> <img src="<?php echo $item->thumb; ?> " alt="<?php echo $item->name; ?> " style="border: none; width: <?php echo $w . 'px';
} ?> </div> <div class="fltlft service-info" style="width: 400px;"> <h3><?php echo $serviceInfo->name; ?> </h3> <ul class="fltlft"> <li> <label>Nhà cung cấp</label> <span>: <a href="<?php echo JRoute::_(Jnt_HanhphucHelperRoute::getServicesRoute($serviceInfo->business_id, $serviceInfo->username)); ?> "> <?php echo $serviceInfo->uname; ?> </a> </span> </li> <li> <label>Loại dịch vụ</label> <span>: <?php echo $serviceInfo->cat_title; ?> </span> </li>