示例#1
0
      <?php 
    foreach ($new_arrival as $n) {
        ?>
        <li>
          <img height="150" width="150" src="<?php 
        echo $this->uploads_small($n['image']);
        ?>
" alt="" />
          <span><a title="<?php 
        echo $n['name'];
        ?>
" href="<?php 
        echo $this->url('/products/' . $n['cname'] . '/' . $n['id']);
        ?>
"><?php 
        echo \Helpers\Util::safe_truncate($n['name'], 30);
        ?>
</a><br>
          <?php 
        echo \Helpers\Util::get_price_homepage($n['price'], $n['sale_price']);
        ?>
</span>
          <span class="new">New</span>
            <ul>
              <li><a href="<?php 
        echo $this->url('/products/' . $n['cname'] . '/' . $n['id']);
        ?>
" class="link tip" title="View Details">View Details</a></li>
              <?php 
        if ($n['cname'] == 'kits') {
            ?>
示例#2
0
          <tr>
            <td class="image"><a href="<?php 
        echo $this->url('/products/' . $_row['cname'] . '/' . $_row['id']);
        ?>
"><img width="60" height="60" src="<?php 
        echo $this->uploads_thumb($_row['image']);
        ?>
" alt="product" title="product"></a></td>
            <td class="name"><a title="<?php 
        echo $_row['name'];
        ?>
" href="<?php 
        echo $this->url('/products/' . $_row['cname'] . '/' . $_row['id']);
        ?>
"><?php 
        echo \Helpers\Util::safe_truncate($this->out($_row['name']), 25);
        ?>
</a></td>
            <td class="quantity">x&nbsp;<?php 
        echo $_row['quantity'];
        ?>
</td>
            <td class="total">$<?php 
        echo number_format($_row['quantity'] * \Helpers\Util::get_just_price($_row['price'], $_row['sale_price']), 2);
        ?>
</td>
            <td class="remove"><i class="icon-remove"></i></td>
          </tr>
        <?php 
    }
    ?>
示例#3
0
        </div>
        <section class="center">
          <h3><?php 
    echo $row['name'];
    ?>
</h3>
          <em>Category: <a href="#"><?php 
    echo ucfirst($row['cname']);
    ?>
</a></em><br />
          <span><?php 
    echo \Helpers\Util::get_stock_status($row['stock']);
    ?>
</span><br />
          <span><?php 
    echo \Helpers\Util::safe_truncate($row['description'], 200);
    ?>
</span>
        </section>
        <section class="right">
          <?php 
    echo \Helpers\Util::get_price($row['price'], $row['sale_price']);
    ?>
          <ul class="menu-button">
            <?php 
    if ($row['cname'] == 'kits') {
        ?>
              <li><a href="<?php 
        echo $this->url('/shop/cart?action=add&id=' . $row['id'] . '&attributes=1');
        ?>
" class="cart tip" title="Add to Cart"></a></li>