Example #1
0
<?php

foreach ($this->rows as $row) {
    ?>
<li id="goods_<?php 
    echo $row->goods_id;
    ?>
">
	<a class="thumb" href="<?php 
    echo \Core\URI::a2p(array('main' => 'get', 'id' => $row->goods_id));
    ?>
">
		<div class="index_img">
			<img src="<?php 
    echo \Model\Common::get_upload_url($row->goods_pic, 450, 200);
    ?>
">
			<p>
			¥<em><?php 
    echo $row->goods_discount_price;
    ?>
</em>&nbsp;<del>&nbsp;原价:<?php 
    echo $row->goods_original_price;
    ?>
&nbsp;</del>
			</p>
		</div>
	</a>
	<div class="index_count">
		<div class="goods_count">
			<div class="count">
Example #2
0
<?php

foreach ($this->rows as $row) {
    ?>
<li id="goods_<?php 
    echo $row->goods_id;
    ?>
">
	<div class="goods">
		<a class="thumb" href="<?php 
    echo \Core\URI::a2p(array('main' => 'get', 'id' => $row->goods_id));
    ?>
">
			<img src="<?php 
    echo \Model\Common::get_upload_url($row->goods_pic, 180, 180);
    ?>
">
		</a>
		<div class="goods_detail">
			<a href="<?php 
    echo \Core\URI::a2p(array('main' => 'get', 'id' => $row->goods_id));
    ?>
">
				<h3>
					<?php 
    if ($row->is_recommend) {
        ?>
					<span></span>
					<?php 
    }
    ?>