?>
</span> </li> <?php 
        }
    }
    if ($this->_vars['SpecSelList']) {
        foreach ((array) $this->_vars['SpecSelList'] as $this->_vars['SelKey'] => $this->_vars['SelSpec']) {
            ?>
 <li class="content"> <ul> <?php 
            foreach ((array) $this->_vars['SpecSelList'][$this->_vars['SelKey']]['spec_value'] as $this->_vars['SelSkey'] => $this->_vars['SelSpecval']) {
                if ($this->_vars['SelSpec']['spec_type'] == "image") {
                    ?>
 <li> <a href="<?php 
                    echo $this->_plugins['function']['selector'][0]->_selector(array('key' => $this->_vars['SelSpec']['type'], 'value' => "{$this->_vars['SelKey']},{$this->_vars['SelSkey']}"), $this);
                    ?>
"> <img src="<?php 
                    echo tpl_modifier_storager(isset($this->_vars['SelSpecval']['spec_image']) && '' !== $this->_vars['SelSpecval']['spec_image'] ? $this->_vars['SelSpecval']['spec_image'] : $this->system->getConf('spec.default.pic'));
                    ?>
" alt="<?php 
                    echo $this->_vars['SelSpecval']['spec_value'];
                    ?>
" title="<?php 
                    echo $this->_vars['SelSpecval']['spec_value'];
                    ?>
" width="20" height="20"> </a> </li> <?php 
                } else {
                    ?>
 <li> <a href="<?php 
                    echo $this->_plugins['function']['selector'][0]->_selector(array('key' => $this->_vars['SelSpec']['type'], 'value' => "{$this->_vars['SelKey']},{$this->_vars['SelSkey']}"), $this);
                    ?>
"> <span><?php 
                    echo $this->_vars['SelSpecval']['spec_value'];
コード例 #2
0
star="<?php 
    echo $this->_vars['product']['goods_id'];
    ?>
"<?php 
}
?>
 title="<?php 
echo tpl_modifier_escape($this->_vars['product']['name'], html);
?>
" class="star-off"><a <?php 
if ($this->_vars['login'] == "nologin") {
    ?>
 href="<?php 
    echo "passport", is_numeric("passport") && 'index' == "login" || !"login" ? '' : '-' . "login", '.html';
    ?>
" <?php 
} else {
    ?>
href="#" onclick="return false;"<?php 
}
?>
 class="listact" title="加入收藏" rel="nofollow">加入收藏</a></li> <li class="vdetail zoom"><a title="<?php 
echo tpl_modifier_escape($this->_vars['product']['name'], html);
?>
" href="<?php 
echo "product-{$this->_vars['product']['goods_id']}", is_numeric($this->_vars['product']['goods_id']) && 'index' == index || !index ? '' : '-' . index, '.html';
?>
" pic='<?php 
echo tpl_modifier_storager(isset($this->_vars['product']['big_pic']) && '' !== $this->_vars['product']['big_pic'] ? $this->_vars['product']['big_pic'] : $this->system->getConf('site.default_big_pic'));
?>
' target="_blank" class="listact" title="查看详细">查看详细</a></li> -->
コード例 #3
0
width="<?php 
            echo $this->_vars['setting']['goodsImgWidth'];
            ?>
"<?php 
        }
        if ($this->_vars['setting']['goodsImgHeight']) {
            ?>
height="<?php 
            echo $this->_vars['setting']['goodsImgHeight'];
            ?>
"<?php 
        }
    }
    ?>
 src="<?php 
    echo tpl_modifier_storager($this->_vars['g']['thumbnail_pic']);
    ?>
" alt="<?php 
    echo $this->_vars['g']['name'];
    ?>
"> </a> </div> <ul class="qg_font"> <?php 
    if ($this->_vars['setting']['showGoodsName'] == "on") {
        ?>
 <h2><a href="<?php 
        echo "product-{$this->_vars['g']['goods_id']}", is_numeric($this->_vars['g']['goods_id']) && 'index' == "index" || !"index" ? '' : '-' . "index", '.html';
        ?>
" target="_blank" title="<?php 
        echo tpl_modifier_escape($this->_vars['g']['name'], html);
        ?>
"><?php 
        echo tpl_modifier_cut($this->_vars['g']['name'], $this->_vars['setting']['max_length']);
            } elseif ($this->_env_vars['thumbnail_pic_height']) {
                ?>
height:<?php 
                echo $this->_env_vars['thumbnail_pic_height'];
                ?>
px;<?php 
            }
            ?>
"><a href="<?php 
            echo tpl_function_link(array('ctl' => "product", 'act' => "index", 'arg0' => $this->_vars['goods_data']['goods_id']), $this);
            ?>
" target="_blank" title="<?php 
            echo $this->_vars['goods_data']['name'];
            ?>
"><img src="<?php 
            echo tpl_modifier_storager(isset($this->_vars['goods_data']['thumbnail_pic']) && '' !== $this->_vars['goods_data']['thumbnail_pic'] ? $this->_vars['goods_data']['thumbnail_pic'] : $this->system->getConf('site.default_thumbnail_pic'));
            ?>
" <?php 
            if ($this->_vars['setting']['restrict'] == 'off') {
                if ($this->_vars['setting']['goodsImgWidth']) {
                    ?>
width="<?php 
                    echo $this->_vars['setting']['goodsImgWidth'];
                    ?>
"<?php 
                }
                if ($this->_vars['setting']['goodsImgHeight']) {
                    ?>
height="<?php 
                    echo $this->_vars['setting']['goodsImgHeight'];
                    ?>
/*设置浏览过的商品*/
withBroswerStore(function(broswerStore){
  broswerStore.get('history',function(history){
  history=JSON.decode(history);
  if(!history||$type(history)!=='array')history=[];
   if(history.length==40){history.pop()};
   var newhis={'goodsId':<?php 
echo $this->_vars['goods']['goods_id'];
?>
,
               'goodsName':'<?php 
echo tpl_modifier_replace($this->_vars['goods']['name'], "'", "\\'");
?>
',
               'goodsImg':'<?php 
echo tpl_modifier_storager($this->_vars['images']['gimages'][$this->_vars['goods']['image_default']]['small']);
?>
',
               'viewTime':$time()
              };
   if(!history.some(function(i,index){


   if(i['goodsId']==newhis['goodsId']){
         history.erase(i);
         history.include(newhis)
         return true;
   }
      return false;

   })){
    $this->_env_vars['foreach'][brandlist]['first'] = $this->_env_vars['foreach'][brandlist]['iteration'] == 0;
    $this->_env_vars['foreach'][brandlist]['iteration']++;
    $this->_env_vars['foreach'][brandlist]['last'] = $this->_env_vars['foreach'][brandlist]['iteration'] == $this->_env_vars['foreach'][brandlist]['total'];
    if ($this->_env_vars['foreach']['brandlist']['iteration'] <= $this->bundle_vars['setting']['num']) {
        ?>
 <div class="floatLeft" style="margin-right:10px;margin-bottom:15px"> <?php 
        if ($this->_vars['data']['brand_logo']) {
            ?>
 <a style="display:block; width:120px;height:40px; margin-bottom:5px; overflow:hidden" href="<?php 
            echo $this->_env_vars['base_url'], "brand-{$this->_vars['data']['brand_id']}", is_numeric($this->_vars['data']['brand_id']) && 'index' == index || !index ? '' : '-' . index, '.html';
            ?>
" title="<?php 
            echo $this->_vars['data']['brand_name'];
            ?>
"><img src="<?php 
            echo tpl_modifier_storager($this->_vars['data']['brand_logo']);
            ?>
"></a> <?php 
        }
        ?>
 </div> <?php 
    }
}
unset($this->_env_vars['foreach'][brandlist]);
?>
</div> <div class="more"><a href="<?php 
echo $this->_env_vars['base_url'], "brand", is_numeric(brand) && 'index' == showList || !showList ? '' : '-' . showList, '.html';
?>
">更多品牌</a></div> </div> <script>

コード例 #7
0
				var ssid = this.get('specid');
				var thisChecked = this.getParent('tr').getElements('.select-spec-unselect[specid!='+ssid+']').getNext('input[name^=pSpecId]').get('value');
				var thisPspecid = this.getNext('input[name^=pSpecId]').get('value');
				var filterPspecid = checkProSpec(ssid , thisChecked);
                
				selValue.addClass('goods-spec-select');
                
				$H(sI.get(ssid)).each(function(tsi,psid){
					tsi =$H(tsi);
					tsi['p_spec_value_id'] = psid;
					if (tsi.get('spec_type') == 'text'){
						selSpecHtml += _li_text.substitute(tsi);
					}else{
						if(tsi['spec_image'] == '')
							tsi['spec_image_src'] = $('spec_value_image_src_'+tsi['spec_value_id']).get('value')?$('spec_value_image_src_'+tsi['spec_value_id']).get('value'):'<?php 
echo tpl_modifier_storager($this->_vars['spec_default_pic']);
?>
';
						selSpecHtml += _li_img.substitute(tsi);
					}
				});
                
				selDom.set('html', selSpecHtml);
                
				selDom.getElements('li').each(function(cli){
					if( filterPspecid.contains( cli.get('specpvid') ) && cli.get('specpvid') != thisPspecid ){
						cli.addClass('noclick');
						return;
                    }
					cli.addEvent('click',function(){
						selValue.set('html',this.get('html'));
    echo tpl_input_default(array('type' => 'viewIMG', 'value' => tpl_modifier_storager(isset($this->_vars['goods']['thumbnail_pic']) && '' !== $this->_vars['goods']['thumbnail_pic'] ? $this->_vars['goods']['thumbnail_pic'] : $this->system->getConf('site.default_thumbnail_pic'))), $this);
    ?>
 </div> <div id="x-main-pic" class='textcenter'> <?php 
    if ($this->_vars['goods']['image_default']) {
        ?>
 <script>
              (function(){
                try{
                <?php 
        if ($this->_vars['goods']['small_pic']) {
            ?>
                  goodsEditor.pic.setDefault('<?php 
            echo $this->_vars['goods']['image_default'];
            ?>
','<?php 
            echo tpl_modifier_storager($this->_vars['goods']['small_pic']);
            ?>
');
                <?php 
        } else {
            ?>
                 goodsEditor.pic.setDefault('<?php 
            echo $this->_vars['goods']['image_default'];
            ?>
','index.php?ctl=goods/product&act=view_src_img&p[0]=<?php 
            echo $this->_vars['goods']['image_default'];
            ?>
');
                <?php 
        }
        ?>
}
?>
<div class="BrandWrap clearfix"> <div class='clearfix'> <?php 
echo tpl_function_pager(array('data' => $this->_vars['pager']), $this);
?>
 </div> <?php 
foreach ((array) $this->_vars['data'] as $this->_vars['data']) {
    ?>
 <div class="span-5 items"> <dl> <dt class="img" style="text-align:center"><a href="<?php 
    echo tpl_function_link(array('ctl' => brand, 'act' => index, 'arg0' => $this->_vars['data']['brand_id']), $this);
    ?>
" title="了解 <?php 
    echo $this->_vars['data']['brand_name'];
    ?>
"><img src="<?php 
    echo tpl_modifier_storager(isset($this->_vars['data']['brand_logo']) && '' !== $this->_vars['data']['brand_logo'] ? $this->_vars['data']['brand_logo'] : 'statics/transparent.gif');
    ?>
"></a></dt> <dd class="intro textcenter"> <a href="<?php 
    echo tpl_function_link(array('ctl' => brand, 'act' => index, 'arg0' => $this->_vars['data']['brand_id']), $this);
    ?>
" title="了解 <?php 
    echo $this->_vars['data']['brand_name'];
    ?>
"><?php 
    echo $this->_vars['data']['brand_name'];
    ?>
</a> <a href="<?php 
    echo $this->_vars['data']['link'];
    ?>
" title="全部<?php 
    echo $this->_vars['data']['brand_name'];
<?php

if (!function_exists('tpl_modifier_storager')) {
    require CORE_DIR . '/include_v5/smartyplugins/modifier.storager.php';
}
?>
<a href="./"><img src="<?php 
echo tpl_modifier_storager($this->system->getConf('site.logo'));
?>
" border="0"/></a>
コード例 #11
0
    ?>
','<?php 
    if ($this->_vars['gimage']['small']) {
        echo tpl_modifier_storager($this->_vars['gimage']['small']);
    } else {
        ?>
index.php?ctl=goods/product&act=view_src_img&p[0]=<?php 
        echo $this->_vars['gimage']['gimage_id'];
    }
    ?>
')"> <img sn="_img_<?php 
    echo $this->_vars['gimage']['gimage_id'];
    ?>
" src='images/loading.gif' lsrc='<?php 
    if ($this->_vars['gimage']['thumbnail']) {
        echo tpl_modifier_storager($this->_vars['gimage']['thumbnail']);
    } else {
        ?>
index.php?ctl=goods/product&act=view_src_img&p[0]=<?php 
        echo $this->_vars['gimage']['gimage_id'];
    }
    ?>
' onload='chainImgLoader(this);'> </span> <input name="goods[image_file][]" value="<?php 
    echo $this->_vars['gimage']['gimage_id'];
    ?>
" soucre="<?php 
    echo $this->_vars['gimage']['source'];
    ?>
" bigPic="<?php 
    echo $this->_vars['gimage']['big'];
    ?>