اینم کدایی که تو صفحه مورد نظر میخواستم استفاده کنم ولی خطا داد و نصف صفحه نیومد :*
کد HTML:
<?php include '../include/config.php'; include 'header.php'; ?> <div class="breadcrumb-box"> <div class="container"> <ul class="breadcrumb"> <li><a href="index.html">فروشگاه مجتمع تجاری نیما </a> <span class="divider">/</span></li> <!-- <li class="active">Category</li>--> </ul> </div> </div><!-- .breadcrumb-box --> <div class="carousel-box bottom-padding load"> <div class="clearfix"></div> <div class="row" style="background-color:#b1ff9f;"> <div class="carousel no-responsive gallery"> <div class="span3"> <a class="gallery-images" rel="fancybox" href="img/content/office-1.jpg"> <img src="../img/tabligh.png" width="270" height="135" alt=""> <span class="bg-images"><i class="fa fa-search"></i></span> </a> </div> <div class="span3"> <a class="gallery-images" rel="fancybox" href="img/content/office-2.jpg"> <img src="../img/tabligh.png" width="270" height="135" alt=""> <span class="bg-images"><i class="fa fa-search"></i></span> </a> </div> <div class="span3"> <a class="gallery-images" rel="fancybox" href="img/content/office-3.jpg"> <img src="../img/tabligh.png" width="270" height="135" alt=""> <span class="bg-images"><i class="fa fa-search"></i></span> </a> </div> <div class="span3"> <a class="gallery-images" rel="fancybox" href="img/content/office-4.jpg"> <img src="../img/tabligh.png" width="270" height="135" alt=""> <span class="bg-images"><i class="fa fa-search"></i></span> </a> </div> </div> </div> </div> <section id="main"> <header class="page-header"> <div class="container"> <hr> <h1 class="title">محصولات فروشگاه</h1><hr> </div> </header> <div class="container"> <div class="row"> <div class="products grid row" dir='rtl'> <?php $result = $db->getAll("SELECT * FROM aboutus"); foreach ($result as $row) { } ?> <div class="span3 product rotation" style="float:right;"> <div class="default"> <a href="product-view.html" class="product-image"> <img src="./img/" alt="" title="" width="270" height="270"> </a> <div class="product-description"> <div class="vertical"> <h3 class="product-name"> <a href="product-view.html"></a> </h3> <div class="price"> ریال</div> </div> </div> </div> <div class="product-hover" style="text-align: right;"> <h3 class="product-name"> <a href="product-view.html"></a> </h3> <div class="price">قیمت <del> ریال</del></div> <div class="price">قیمت جدید < ریال</div> <a href="product-view.html" class="product-image"> <img src="./img/" alt="" title="" width="60" height="60"> </a> <ul> </ul> <div class="actions"> <!-- <a href="product-view.html" class="add-cart"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="16px" height="16px" viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve"> <g> <path fill="#1e1e1e" d="M15.001,4h-0.57l-3.707-3.707c-0.391-0.391-1.023-0.391-1.414,0c-0.391,0.391-0.391,1.023,0,1.414L11.603,4 H4.43l2.293-2.293c0.391-0.391,0.391-1.023,0-1.414s-1.023-0.391-1.414,0L1.602,4H1C0.448,4,0,4.448,0,5s0.448,1,1,1 c0,2.69,0,7.23,0,8c0,1.104,0.896,2,2,2h10c1.104,0,2-0.896,2-2c0-0.77,0-5.31,0-8c0.553,0,1-0.448,1-1S15.554,4,15.001,4z M13.001,14H3V6h10V14z"/> <path fill="#1e1e1e" d="M11.001,13c0.553,0,1-0.447,1-1V8c0-0.553-0.447-1-1-1s-1,0.447-1,1v4C10.001,12.553,10.448,13,11.001,13z"/> <path fill="#1e1e1e" d="M8,13c0.553,0,1-0.447,1-1V8c0-0.553-0.448-1-1-1S7,7.447,7,8v4C7,12.553,7.448,13,8,13z"/> <path fill="#1e1e1e" d="M5,13c0.553,0,1-0.447,1-1V8c0-0.553-0.447-1-1-1S4,7.447,4,8v4C4,12.553,4.448,13,5,13z"/> </g> </svg> </a> <a href="#" class="add-wishlist"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="16px" height="16px" viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve"> <path fill="#1e1e1e" d="M11.335,0C10.026,0,8.848,0.541,8,1.407C7.153,0.541,5.975,0,4.667,0C2.088,0,0,2.09,0,4.667C0,12,8,16,8,16 s8-4,8-11.333C16.001,2.09,13.913,0,11.335,0z M8,13.684C6.134,12.49,2,9.321,2,4.667C2,3.196,3.197,2,4.667,2C6,2,8,4,8,4 s2-2,3.334-2c1.47,0,2.666,1.196,2.666,2.667C14.001,9.321,9.867,12.49,8,13.684z"/> </svg> </a>--> <a href="#" class="add-compare"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="16px" height="16px" viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve"> <path fill="#1e1e1e" d="M16,3.063L13,0v2H1C0.447,2,0,2.447,0,3s0.447,1,1,1h12v2L16,3.063z"/> <path fill="#1e1e1e" d="M16,13.063L13,10v2H1c-0.553,0-1,0.447-1,1s0.447,1,1,1h12v2L16,13.063z"/> <path fill="#1e1e1e" d="M15,7H3V5L0,7.938L3,11V9h12c0.553,0,1-0.447,1-1S15.553,7,15,7z"/> </svg> </a> </div><!-- .actions --> </div><!-- .product-hover --> </div><!-- .product --> </div><!-- .products --> <!-- <div class="pagination pagination-small margin-top" align='center'> <ul> <li class="disabled"><span><i class="fa fa-angle-left"></i></span></li> <li class="active"><span>1</span></li> <li><a href="#">2</a></li> <li><a href="#">3</a></li> <li><span>...</span></li> <li><a href="#">9</a></li> <li><a href="#"><i class="fa fa-angle-right"></i></a></li> </ul> </div> .pagination --> </div><!-- .content --> </div> </div><!-- .container --> </section><!-- #main --> </div><!-- .page-box --> </div><!-- .page-box-content -->
برچسب:
نویسنده: محمد رضا جوادیان