系统标签无法建立热卖商品标签,7.X版,特共享SQL标签。
sql 语句:
select top 5 * from KS_Product where Popular=1 order by id desc
Ajax调用 否
循环体
<style type="text/css">
<!--
ul li{width:20%;float:left;list-style:none; text-align:center;
}
ul{padding:0px; /* 在火狐里默认距离左边有一段距离,去掉跟左侧的距离*/
margin:0px; /*在 IE 中,可以去掉 ul 跟外面容器的距离*/
}
.scj {color: #999999}
.hyj {
color: #CC0000;
font-weight: bold;
}
-->
</style>
<ul>
[loop=5]
<li>
<table width="190" border="0" cellpadding="0" cellspacing="0" style="border-left:#eeeeee 1px dashed;">
<tr>
<td colspan="2" align="center"><a href="{$Field(ProID,GetInfoUrl,5,1)}" target="_blank"><img src="{$Field(PhotoUrl,Text,0,...,0,)}" alt="" width="140" height="177" border="0"></a></td>
</tr>
<tr>
<td colspan="2" align="center"><a href="{$Field(ProID,GetInfoUrl,5,1)}" target="_blank">{$Field(Title,Text,0,...,0,)}</a></td>
</tr>
<tr>
<td width="50%" align="right"><span class="scj"><del>¥{$Field(Price_Market,Num,0,2)}</del></span></td>
<td width="50%"><span class="hyj">¥{$Field(Price_Member,Num,0,2)}</span></td>
</tr>
</table>
<li>
[/loop]
</ul>