Example #1
0
?>
    </div>
    <!--/CUNG LOAI SAN PHAM-->

    <!--CUNG NHA SAN XUAT-->
    <div class="latest box clearfix">
        <div class="box-top">
            <p>Cùng nhà sản xuất</p>
        </div>
        <?php 
$p_Bra = new Product();
$c_Bra = new Category();
$c_Bra->setBrand($c->getBrand());
$p_Bra->setCatPro($c_Bra);
$ListPro_Bra = $p_Bra->loadLimit(6);
Product::printListProduct($ListPro_Bra);
?>
    </div>
    <!--/CUNG NHA SAN XUAT-->
    <script type="text/javascript">
        $(document).ready(function () {

            $('#product-detail button.btn-shopping-cart').on('click', function () {
                var proID = $(this).data('proid');
                $('#txtProID').val(proID);
                var orderQuantity = $('#txtOrderQuantity').val();
                $('#txtOrderQ').val(orderQuantity);
                $('#addToCart-form').submit();
            });
            $('button.btn-shopping-cart').on('click', function () {
                var proID = $(this).data('proid');
Example #2
0
            <?php 
Product::printListProduct($ListProBestSell);
?>
        </div>
    </div>

    <!--/SELLEST-->

    <!--MOST-VIEWED-->
    <div class="most-viewed box clearfix" id="proMostViewed">
        <div class="box-top">
            <p>Xem nhiều</p>
        </div>
        <div id="proMostViewed">
            <?php 
Product::printListProduct($ListProMostViewed);
?>
        </div>
    </div>
    <!--/MOST-VIEWED-->

    <script type="text/javascript">
        $().ready(function () {
            $('#slideshow').insertBefore('#content');
            $('button.btn-shopping-cart').on('click', function () {
                var proID = $(this).data('proid');
                $('#txtProID').val(proID);
                $('#addToCart-form').submit();
            });
            $('#proLatest .product-block').each(function(){
                var html = '<div class="new" ></div >';
Example #3
0
    </div>
<?php 
if ($flag) {
    ?>
    <div id="searchResult" class="box clearfix">
        <div class="box-top">
            Kết quả tìm kiếm
        </div>
        <div class="">
            <form id="addToCart-form" method="post" action=""><input type="hidden" id="txtProID"
                                                                     name="txtProID"/></form>
            <?php 
    if (empty($ListPro)) {
        echo "<div style='margin: 10px;'  class=\"alert alert-info\" role=\"alert\"><i class=\"fa fa-bullhorn\"></i>Không tìm thấy sản phẩm nào !</div>";
    } else {
        Product::printListProduct($ListPro);
        require_once './helper/Pagination.php';
        $self = $_SERVER['PHP_SELF'];
        // Lay dia chi truc tiep cua PHP dang mo
        $pagination = new Pagination($curPage, $rowsPerPage, $offset, $numberOfRows, $self);
        ?>
                <!--pagination-->
                <nav id="paging" class="text-center">
                    <?php 
        $pagination->printPaging();
        ?>
                </nav>
                <!--/pagination-->

            <?php 
    }