Example #1
0
                    ?>
     
        			</div>
				</div>
            <?php 
                }
            }
            unset($_from);
            $this->pop_vars();
            ?>
					
			</div>
			<div class="subBrand">
               <?php 
            $cat_info = get_cat_info_ex($GLOBALS['smarty']->_var['cat']['id']);
            $GLOBALS['smarty']->assign('index_image', get_advlist('导航菜单-' . $cat_info['cat_id'] . '-右侧-促销专题', 5));
            ?>
             <?php 
            if ($this->_var['index_image']) {
                ?>
              <dl class="categorys-promotions">
                <dt>促销活动</dt>
                <dd>
                  <ul>
				  <?php 
                $_from = $this->_var['index_image'];
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                $this->push_vars('', 'ad');
                $this->_foreach['index_image'] = array('total' => count($_from), 'iteration' => 0);
Example #2
0
$this->push_vars('', 'cat');
$this->_foreach['name'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['name']['total'] > 0) {
    foreach ($_from as $this->_var['cat']) {
        $this->_foreach['name']['iteration']++;
        ?>
      
      <dl style="display: none; margin-top:46px;<?php 
        if ($this->_foreach['name']['iteration'] <= 1) {
            ?>
display: block;<?php 
        }
        ?>
"> 
        <?php 
        $GLOBALS['smarty']->assign('index_image', get_advlist('分类-' . $GLOBALS['smarty']->_var['cat']['id'] . '-促销广告', 1));
        ?>
	   
        <span>
        <?php 
        if ($this->_var['index_image']) {
            ?>
        <?php 
            $_from = $this->_var['index_image'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $this->push_vars('', 'ad');
            $this->_foreach['index_image'] = array('total' => count($_from), 'iteration' => 0);
            if ($this->_foreach['index_image']['total'] > 0) {
                foreach ($_from as $this->_var['ad']) {
Example #3
0
function get_top_cat_new_txt_advlist_by_cat_id($id)
{
    return get_advlist('顶级分类页-分类ID' . $id . '-最新促销活动-文字', 5);
}
Example #4
0
        ?>
" class="row2_2"><img data-original="<?php 
        echo $this->_var['ad']['image'];
        ?>
"  src="themes/68ecshopcom_360buy/images/loading.gif"  alt="<?php 
        echo $this->_var['ad']['name'];
        ?>
" /></a> 
        <?php 
    }
}
unset($_from);
$this->pop_vars();
?>
        <?php 
$GLOBALS['smarty']->assign('index_lit_img6', get_advlist('首页幻灯片-小图下3', 1));
?>
        <?php 
$_from = $this->_var['index_lit_img6'];
if (!is_array($_from) && !is_object($_from)) {
    settype($_from, 'array');
}
$this->push_vars('', 'ad');
$this->_foreach['index_image'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['index_image']['total'] > 0) {
    foreach ($_from as $this->_var['ad']) {
        $this->_foreach['index_image']['iteration']++;
        ?>
 
        <a href="<?php 
        echo $this->_var['ad']['url'];
Example #5
0
        $this->_foreach['index_image']['iteration']++;
        ?>
 <a  href="<?php 
        echo $this->_var['ad_0_27399000_1445444788']['url'];
        ?>
" class="j_ItemInfo"> <img data-original="<?php 
        echo $this->_var['ad_0_27399000_1445444788']['image'];
        ?>
" src="themes/68ecshopcom_360buy/images/loading2.gif" alt="" height="278" width="150"> </a> <?php 
    }
}
unset($_from);
$this->pop_vars();
?>
        <?php 
$GLOBALS['smarty']->assign('index_image2', get_advlist('首页-分类ID' . $GLOBALS['smarty']->_var['goods_cat']['id'] . '右侧广告2', 1));
?>
        <?php 
$_from = $this->_var['index_image2'];
if (!is_array($_from) && !is_object($_from)) {
    settype($_from, 'array');
}
$this->push_vars('', 'ad_0_27425500_1445444788');
$this->_foreach['index_image'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['index_image']['total'] > 0) {
    foreach ($_from as $this->_var['ad_0_27425500_1445444788']) {
        $this->_foreach['index_image']['iteration']++;
        ?>
 <a  href="<?php 
        echo $this->_var['ad_0_27425500_1445444788']['url'];
        ?>