ecshop 鼠标移动到“全部商品分类”时,显示商品所有分类 15
2个回答
展开全部
<div class="nav_bg">
<div class="nav_box">
<!--主导航条-->
<div class="nav_box1">
<div class="nav">
<h2 class="menu_tit"><strong style="padding-left:17px;">商品分类</strong><i>∨</i>
<div class="left_menu" style="display:none">
<ul class="menu">
<!--{foreach from=get_categories_tree(0) item=cat name=cat0}-->
<li>
<h3><strong><a href="{$cat.url}">{$cat.name|escape:html}</a></strong></h3>
<p>
<!--{foreach from=$cat.cat_id item=child name=name11}-->
<!--{if $smarty.foreach.name11.iteration <4}-->
<a href="{$child.url}" title="{$child.name}">{$child.name}</a>
<!--{/if}-->
<!--{/foreach}-->
</p>
<ul class="menu_sub" id="yunma_0{$smarty.foreach.cat0.iteration}" >
<li >
<div class="menu_sub_div" >
<!--{foreach from=$cat.cat_id item=child}-->
{if $smarty.foreach.cat0.iteration < 8}
<h4><strong><a href="{$child.url}">{$child.name|escape:html}</a></strong></h4>
{/if}
<div>
<!--{foreach from=$child.cat_id item=childer name=name}-->
<a href="{$childer.url}">{$childer.name|escape:html}</a>
<!-- {if !$smarty.foreach.name.last} -->
<font style="color:#E4E4E4;">|</font>
<!--{/if}-->
<!--{/foreach}-->
</div>
<!--{/foreach}-->
</div>
<div class="menu_sub_tj" >
<h4><strong>推荐品牌</strong></h4>
<div class="tj_menu">
<!--{foreach from=get_brands1($GLOBALS['smarty']->_var['cat']['id']) item=bchilder name=name11}-->
<!--{if $smarty.foreach.name11.iteration <19}-->
<a href="{$bchilder.url}">{$bchilder.brand_name|escape:html}</a>
<!--{/if}-->
<!--{/foreach}-->
<div class="clear"></div>
</div>
<?php
$cat_info = get_cat_info_ex($GLOBALS['smarty']->_var['cat']['id']);
$GLOBALS['smarty']->assign('index_image',get_advlist('导航菜单ID-'.$cat_info['cat_id'].'-右侧促销专题', 1));
?>
<!-- {if $index_image} -->
<div class="tj_ad">
{foreach from=$index_image item=ad name=index_image}
{if $smarty.foreach.index_image.iteration < 2}
<a href="{$ad.url}">
<img src="{$ad.image}" width="190" height="223" /></a>
{/if}
{/foreach}
</div>
<!-- {/if} -->
</div>
</li>
</ul>
</li>
<!--{/foreach}-->
</ul>
</div>
</h2>
<ul class="nav_ul">
<li><a href="index.php" title="">{$lang.home}</a><b></b></li>
<!-- {foreach name=nav_middle_list from=$navigator_list.middle item=nav } -->
<li {if $nav.active eq 1} class="cur"{/if} ><a href="{$nav.url}" {if $nav.opennew eq 1} target="_blank" {/if}>{$nav.name}</a><b></b> </li>
<!-- {/foreach} -->
</ul>
<div class="qq_jiesuan cart Right" onmouseover="this.className='qq_jiesuan_on cart Right'" onmouseout="this.className='qq_jiesuan cart Right'" id="ECS_CARTINFO" > {insert name='cart_info'}</div>
</div>
</div>
</div>
</div>
<div class="nav_box">
<!--主导航条-->
<div class="nav_box1">
<div class="nav">
<h2 class="menu_tit"><strong style="padding-left:17px;">商品分类</strong><i>∨</i>
<div class="left_menu" style="display:none">
<ul class="menu">
<!--{foreach from=get_categories_tree(0) item=cat name=cat0}-->
<li>
<h3><strong><a href="{$cat.url}">{$cat.name|escape:html}</a></strong></h3>
<p>
<!--{foreach from=$cat.cat_id item=child name=name11}-->
<!--{if $smarty.foreach.name11.iteration <4}-->
<a href="{$child.url}" title="{$child.name}">{$child.name}</a>
<!--{/if}-->
<!--{/foreach}-->
</p>
<ul class="menu_sub" id="yunma_0{$smarty.foreach.cat0.iteration}" >
<li >
<div class="menu_sub_div" >
<!--{foreach from=$cat.cat_id item=child}-->
{if $smarty.foreach.cat0.iteration < 8}
<h4><strong><a href="{$child.url}">{$child.name|escape:html}</a></strong></h4>
{/if}
<div>
<!--{foreach from=$child.cat_id item=childer name=name}-->
<a href="{$childer.url}">{$childer.name|escape:html}</a>
<!-- {if !$smarty.foreach.name.last} -->
<font style="color:#E4E4E4;">|</font>
<!--{/if}-->
<!--{/foreach}-->
</div>
<!--{/foreach}-->
</div>
<div class="menu_sub_tj" >
<h4><strong>推荐品牌</strong></h4>
<div class="tj_menu">
<!--{foreach from=get_brands1($GLOBALS['smarty']->_var['cat']['id']) item=bchilder name=name11}-->
<!--{if $smarty.foreach.name11.iteration <19}-->
<a href="{$bchilder.url}">{$bchilder.brand_name|escape:html}</a>
<!--{/if}-->
<!--{/foreach}-->
<div class="clear"></div>
</div>
<?php
$cat_info = get_cat_info_ex($GLOBALS['smarty']->_var['cat']['id']);
$GLOBALS['smarty']->assign('index_image',get_advlist('导航菜单ID-'.$cat_info['cat_id'].'-右侧促销专题', 1));
?>
<!-- {if $index_image} -->
<div class="tj_ad">
{foreach from=$index_image item=ad name=index_image}
{if $smarty.foreach.index_image.iteration < 2}
<a href="{$ad.url}">
<img src="{$ad.image}" width="190" height="223" /></a>
{/if}
{/foreach}
</div>
<!-- {/if} -->
</div>
</li>
</ul>
</li>
<!--{/foreach}-->
</ul>
</div>
</h2>
<ul class="nav_ul">
<li><a href="index.php" title="">{$lang.home}</a><b></b></li>
<!-- {foreach name=nav_middle_list from=$navigator_list.middle item=nav } -->
<li {if $nav.active eq 1} class="cur"{/if} ><a href="{$nav.url}" {if $nav.opennew eq 1} target="_blank" {/if}>{$nav.name}</a><b></b> </li>
<!-- {/foreach} -->
</ul>
<div class="qq_jiesuan cart Right" onmouseover="this.className='qq_jiesuan_on cart Right'" onmouseout="this.className='qq_jiesuan cart Right'" id="ECS_CARTINFO" > {insert name='cart_info'}</div>
</div>
</div>
</div>
</div>
追问
这个我放上去,不能显示耶!请问是怎么回事的呢?
网易云信
2023-12-06 广告
2023-12-06 广告
很高兴能回答您的问题。以下是一段针对“一对一消息组件”的描述,字数在200字左右:该组件支持用户之间的私密交流,让沟通更加直接和高效。通过它,您可以向特定对象发送消息,并实时查看消息状态,包括对方是否已读或未读。同时,该组件还支持富文本消息...
点击进入详情页
本回答由网易云信提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询