Example #1
0
    $hour_1 = $hour > 0 ? $hour . '小时' : "";
    $ago = $hour_1 . $minute . '分' . $second . '秒前';
    ?>
                    <li class="clearfix">
                      <div class="cover"> <a href="v1choujiang_view.php?id=<?php 
    echo $row_a["acid"];
    ?>
"><img src="<?php 
    echo $row_a["pic_url"];
    ?>
" width="80" height="80" /></a> </div>
                      <div class="title"> <a href="v1choujiang_view.php?id=<?php 
    echo $row_a["acid"];
    ?>
"><?php 
    echo CHsubstr($row_a["title"], 0, 130);
    ?>
</a> </div>
                      <span class="user"> <?php 
    echo $row_a["name"];
    ?>
 </span> <span class="time" style="width:110px; background:#FFF"><?php 
    echo $ago;
    ?>
</span> </li>
                    <?php 
}
?>
                  </ul>
                </dd>
              </dl>
Example #2
0
    echo $row['id'];
    ?>
" target="_blank">
                                <img class="lazy" src="images/grey.jpg" data-original="<?php 
    echo $row['pic_url'];
    ?>
">
                            </a>
                        </p>
                        <div class="left_info">
                            <p class="tit" style=" white-space:nowrap">
                                <a href="/v1list_view.php?id=<?php 
    echo $row['id'];
    ?>
" target="_blank"><?php 
    echo CHsubstr($row['title'], 0, 60) . "…";
    ?>
</a>
                            </p>
                            <p class="count clearfix">
                                <span class="price">
                                    原价 <em class="through"><?php 
    echo number_format($row['price'], 2);
    ?>
</em> <br />
                                    共<em><?php 
    echo $row['num'];
    ?>
</em>份, 剩<em><?php 
    echo $num_left;
    ?>