当前位置: 首页>>代码示例>>PHP>>正文


PHP product::getAllKhuyenmai方法代码示例

本文整理汇总了PHP中product::getAllKhuyenmai方法的典型用法代码示例。如果您正苦于以下问题:PHP product::getAllKhuyenmai方法的具体用法?PHP product::getAllKhuyenmai怎么用?PHP product::getAllKhuyenmai使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在product的用法示例。


在下文中一共展示了product::getAllKhuyenmai方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: product



<?php 
require_once "models/class-product.php";
require_once "models/class-cat-product.php";
require_once 'models/class-phan-trang.php';
$pro_obj = new product();
$config = array('current_page' => isset($_GET['page']) ? $_GET['page'] : 1, 'total_record' => $pro_obj->countTable('product'), 'limit' => 6, 'link_full' => 'index.php?view=product&page={page}', 'link_first' => 'index.php?view=product', 'range' => 9);
$start = ($config['current_page'] - 1) * $config['limit'];
$product = $pro_obj->getAllKhuyenmai("", array($start, $config["limit"]));
?>

<div style="height:auto; margin-top:10px; float:left" class="cat-proall">
            	
		<div class="sp-moi">
        		<div style="height:50px; font-size:2em;margin-bottom:20px; color:#090" class="banchay">
                <marquee behavior="scroll" direction="left" scrollamount="10" style="z-index:9999">
                Hot - Hot - Hot &hearts; Hàng mới về
                </marquee>
                </div>
			
                <div class="list-spm">
                     <?php 
foreach ($product as $value) {
    ?>
                    <div class="spm-details">
                        <a href="index.php?view=product-detail&p_id=<?php 
    echo $value['pro_id'];
    ?>
"><img src="uploads/<?php 
    echo $value['image'];
开发者ID:vudinhkien,项目名称:APTECH,代码行数:29,代码来源:pro-all-menu.php

示例2: product

<style>
.spkm-details:last-child
{
	border-bottom:none;
}
</style>

<?php 
require_once "models/class-product.php";
require_once 'models/class-phan-trang.php';
$pro_obj = new product();
$config = array('current_page' => isset($_GET['page']) ? $_GET['page'] : 1, 'total_record' => $pro_obj->countTable('product'), 'limit' => 4, 'link_full' => 'index.php?view=danhmuc-product-detail&page={page}', 'link_first' => 'index.php?view=danhmuc-product-detail', 'range' => 9);
$start = ($config['current_page'] - 1) * $config['limit'];
$kien = $pro_obj->getAllKhuyenmai("pro_id", array($start, $config["limit"]));
?>
	<div style="width:700px;" id="spkm">
			<div class="km">
				<img src="images/icon-arrow.jpg"><p style="margin-left:40px; color:#777777; margin-top:-19px; font-size:1.5em">Tin khuyến mại</p>
			</div>
            <?php 
foreach ($kien as $a) {
    ?>
			<div style="margin-top:20px; padding-bottom:20px;padding-top:10px;padding-right:10px; border-bottom:#CCC solid 1px;" class="spkm-details">
					<a href="index.php?view=tintucsp-detail&n_id=<?php 
    echo $a['pro_id'];
    ?>
"><img src="uploads/<?php 
    echo $a['image'];
    ?>
" width="240" height="180"/></a>
                    <div style="width:440px; float:right" class="noidung">
开发者ID:vudinhkien,项目名称:APTECH,代码行数:31,代码来源:danhmuc-product-detail.php


注:本文中的product::getAllKhuyenmai方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。