|
[.callcolumn id="2" row="17" lang="cn" type="td" name="callcolumn".]
<li class="top-item">
<em class="flag flag[.$callcolumn.i.]"></em>
<span class="txt"><a title="[.$callcolumn.title.]" target="_blank" class="txt" href="[.$callcolumn.url.]">[.$callcolumn.title.]</a></span>
<div class="sub">
<div class="title clearfix">
<h4 class="kafeise">[.$callcolumn.title.](品牌如下)<span class="darrow">>>></span></h4>
<div class="list clearfix">
[.assign var="name" value=$callcolumn.id.]
[.sql mysql="select id,OP_Uid,OP_Lang,OP_Img,OP_Columntitle from `ourphp_column` where `OP_Uid` LIKE '$name' limit 0,10" name="sql".]
<a title="[.$sql.OP_Columntitle.]" target="_blank" class="sub-item" href="/?cn-product-[.$sql.id.].html" style="">[.$sql.OP_Columntitle.]</a>
[./sql.]
</div>
[.sql mysql="select id,OP_Uid,OP_Lang,OP_Img,OP_Columntitle from `ourphp_column` where `OP_Uid` LIKE '$name' limit 0,10" name="sql".]
[.assign var="bname" value=$sql.id.]
[.ourphp form="product" row="4" lang="cn" id="0" type="0" sql="&&`OP_Class` = $bname" name="ourphp".]
<div class="ad[.$ourphp.i.]"> <a target="_blank" href="[.$ourphp.url.]" title="[.$ourphp.title.][.$sql.i.][.$ourphp.i.]"><img src="[.$ourphp.minimg.]" alt="[.$ourphp.title.]"/></a>
</div>
[./ourphp.]
[./sql.]
</div>
</div>
</li>
[./callcolumn.]
这部分的完整代码是这样的,因为有三级循环,中间一级只能用SQL万能的,要不然调不出来。 |
|