Пример #1
0
		<ul id="mainNav" class="ui_nav1">
			<?php ;$tmp=Alen::SetColList(471); ?>
			<?php ;$_iii=1;; ?>
			<?php $_i=0;if(is_array($tmp['zCls']))foreach($tmp['zCls'] AS $v){$_i++; ?>
			<li class="mainlevel fr_left">
				<a target="<?php ;echo $v['target']; ?>" href="<?php ;echo Html::url($v['staticurl']); ?>"><?php ;echo Html::txt($v['name'],8,0,''); ?></a>
				<?php if($v['zCls']){ ?>
				<ul>
				<?php ;$_ii=1;; ?>
				<?php $_i=0;if(is_array($v['zCls']))foreach($v['zCls'] AS $vv){$_i++; ?>
				<li><a target="<?php ;echo $vv['target']; ?>" href="<?php ;echo Html::url($vv['staticurl']); ?>"><?php ;echo Html::txt($vv['name'],8,0,''); ?></a></li>
				<?php ;if($_ii==2)break;$_ii++;; ?>
				<?php ;} ?>
				</ul>
				<?php ;} ?>
			</li>
			<?php ;if($_iii==10)break;$_iii++;; ?>
			<?php ;} ?>
		</ul>
	</div>
	<div class="TopNavBg_x">
		<div class="fr_width fr_center">
			<span>人民最喜爱的品牌:</span>
			<?php ;$tmp=Alen::setart(494); ?>
			<?php $_i=0;if(is_array($tmp))foreach($tmp AS $v){$_i++; ?><a target="_blank" href="<?php ;echo Html::url($v['staticurl']); ?>"><?php ;echo $v['name']; ?></a><?php ;} ?>
		</div>
	</div>
</div>

<div class="MainBg">
Пример #2
0
        if ($_iii == 10) {
            break;
        }
        $_iii++;
        ?>
			<?php 
    }
}
?>
		</ul>
	</div>
	<div class="TopNavBg_x">
		<div class="fr_width fr_center">
			<span>人民最喜爱的品牌:</span>
			<?php 
$tmp = Alen::setart(494);
?>
			<?php 
$_i = 0;
if (is_array($tmp)) {
    foreach ($tmp as $v) {
        $_i++;
        ?>
<a target="_blank" href="<?php 
        echo Html::url($v['staticurl']);
        ?>
"><?php 
        echo $v['name'];
        ?>
</a><?php 
    }