Example #1
0
		<a href="#">下一页</a><a href="#">尾页</a>			  </div>
		<!--页码end-->
		</div>
		<!--推荐专区-->
		<div id="recommend">
		<div class="activity">
			<div class="act_btn act_button_s1" id="act_button_1">为您推荐</div>
			<div class="act_btn act_button_s2" id="act_button_2" onclick="changeDiv('event','recommend','act_button_3','act_button_4');">活动专区</div>
			<div id="act_word">推荐产品 不容错过</div>
			<a href="shop-search.php" id="act_more"></a>
			<hr class="act_line" />
			<ul>
			<?php 
$pro = new Product();
echo "热销产品";
$rxPro = $pro->getFirstNum(3);
foreach ($rxPro as $itemrx) {
    $rximgs = new Images();
    $rximgdata = current($rximgs->query(array("status" => "Y", "ID" => $itemrx['defaultImg']), array()));
    $rximghref = $rximgdata['href'];
    ?>
		<li><a href="shop-info.php?id=<?php 
    echo $itemrx['ID'];
    ?>
"><img src="<?php 
    echo $virtualRootPath . $rximghref;
    ?>
" title="" alt="" /></a><div class="hot_word"><?php 
    echo $itemrx['name'];
    ?>
<br />已售出<span style="color:#FF0000;"><?php