OXIESEC PANEL
- Current Dir:
/
/
home
/
u432548786
/
domains
/
it-tas.com
/
public_html
/
includes
Server IP: 191.96.63.230
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/13/2025 03:36:42 PM
rwxr-xr-x
📄
best-product.php
13.53 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
brands.php
726 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
css.php
1.63 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
db_config.php
215 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
delete_cart.php
298 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
feature-product.php
2.03 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
footer.php
4.6 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
header.php
17.88 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
js.php
1.23 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
orderwhatsapp.php
448 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
slider.php
483 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
Editing: best-product.php
Close
<section id="tabs" class="project-tab section-padding ffproduct"> <div class="container"> <div class="row section-header"> <div class="col-md-12 col-12"> <h5 class="heading-design-h5 text-center" style="color:#000;">Featured Products </h5> </div> </div> <div class="row"> <div class="col-md-12"> <nav> <div class="nav nav-tabs nav-fill" id="nav-tab" role="tablist"> <a class="nav-item nav-link active" id="nav-bestseller-tab" data-toggle="tab" href="#nav-bestseller" role="tab" aria-controls="nav-bestseller" aria-selected="true">Best Sellers</a> <a class="nav-item nav-link" id="nav-featured-tab" data-toggle="tab" href="#nav-featured" role="tab" aria-controls="nav-featured" aria-selected="false">Featured</a> <a class="nav-item nav-link" id="nav-toprated-tab" data-toggle="tab" href="#nav-toprated" role="tab" aria-controls="nav-toprated" aria-selected="false">Top Rated</a> </div> </nav> <div class="tab-content" id="nav-tabContent"> <div class="tab-pane fade show active" id="nav-bestseller" role="tabpanel" aria-labelledby="nav-bestseller-tab"> <div class="row"> <?php $best_product='1'; $sql_prd=mysqli_query($conn,"select sub_category.sub_category_name,category.cat_name,sub_sub_category.sub_sub_cat_name,product.* from product join category on product.category_id=category.id join sub_category on product.sub_category_id=sub_category.id join sub_sub_category on product.sub_sub_cat_id=sub_sub_category.id where product.best_product='".$best_product."' order by product.id Limit 8"); while($res_prd= mysqli_fetch_array($sql_prd)){ $prd_id=$res_prd['id']; $sql_pd="SELECT * from product_detail where prod_id='$prd_id'"; $exe_pd=mysqli_query($conn,$sql_pd); $res_pd=mysqli_fetch_array($exe_pd); $cat_name=$res_prd['cat_name']; $scat_name=$res_prd['sub_category_name']; $sub_sub_cat_name=$res_prd['sub_sub_cat_name']; $prod_name=$res_prd['prod_name']; $category = strtolower(str_replace(" ", "-", $cat_name)); $sub_category = strtolower(str_replace(" ", "-", $scat_name)); $ssub_category = strtolower(str_replace(" ", "-", $sub_sub_cat_name)); $product_name = strtolower(str_replace(" ", "-", $prod_name)); ?> <div class="col-md-3 col-12"> <form method="post" action=""> <div class="srvprds"> <div class="row"> <input name="prd_id" id="prod_id" value="<?= $res_prd['id'];?>" class="prd_id" type="hidden"> <input name="prod_idd" id="prod_idd" value="<?= $res_pd['id'];?>" class="prd_id" type="hidden"> <input name="prd_name" id="name" class="name" value="<?= $res_prd['prod_name'];?>" type="hidden"> <div class="col-md-12 col-12 product-image"> <a href="https://www.it-tas.com/<?= "$category/$sub_category/$ssub_category/$product_name"; ?>"> <img class="img-fluid" src="https://www.it-tas.com/admin/product/<?= $res_prd['prod_img1'];?>" alt=""></a> </div> <div class="col-md-12 col-12 product-name"> <a href="https://www.it-tas.com/<?= "$category/$sub_category/$ssub_category/$product_name"; ?>"><?= $res_prd['prod_name'];?></a> </div> <?php if($res_pd['prod_price'] !=""){ ?> <div class="col-md-12 col-12 text-center"> <div class="product-add-to-cart-btn"> <span class="discounted-prize"> SAR <span id="divShowHide1"><?= $res_pd['prod_price'];?></span><span id="prod_price"></span></span> </div> </div> <?php } ?> </div> </div> </form> </div> <?php } ?> </div> </div> <div class="tab-pane fade" id="nav-featured" role="tabpanel" aria-labelledby="nav-featured-tab"> <div class="row"> <?php $feacture_product='1'; $sql_prdf=mysqli_query($conn,"select sub_category.sub_category_name,category.cat_name,sub_sub_category.sub_sub_cat_name,product.* from product join category on product.category_id=category.id join sub_category on product.sub_category_id=sub_category.id join sub_sub_category on product.sub_sub_cat_id=sub_sub_category.id where product.feacture_product='".$feacture_product."' order by product.id Limit 8"); while($res_prdf= mysqli_fetch_array($sql_prdf)){ $prd_id=$res_prdf['id']; $sql_fd=mysqli_fetch_array(mysqli_query($conn,"SELECT * from product_detail where prod_id='$prd_id'")); $cat_name=$res_prdf['cat_name']; $scat_name=$res_prdf['sub_category_name']; $sub_sub_cat_name=$res_prdf['sub_sub_cat_name']; $prod_name=$res_prdf['prod_name']; $category = strtolower(str_replace(" ", "-", $cat_name)); $sub_category = strtolower(str_replace(" ", "-", $scat_name)); $ssub_category = strtolower(str_replace(" ", "-", $sub_sub_cat_name)); $product_name = strtolower(str_replace(" ", "-", $prod_name)); ?> <div class="col-md-3 col-12"> <form method="post" action=""> <div class="srvprds"> <div class="row"> <input name="prd_id" id="prod_id" value="<?= $res_prd['id'];?>" class="prd_id" type="hidden"> <input name="prod_idd" id="prod_idd" value="<?= $sql_fd['id'];?>" class="prd_id" type="hidden"> <input name="prd_name" id="name" class="name" value="<?= $res_prd['prod_name'];?>" type="hidden"> <div class="col-md-12 col-12 product-image"> <a href="https://www.it-tas.com/<?= "$category/$sub_category/$ssub_category/$product_name"; ?>"> <img class="img-fluid" src="https://www.it-tas.com/admin/product/<?= $res_prd['prod_img1'];?>" alt=""></a> </div> <div class="col-md-12 col-12 product-name"> <a href="https://www.it-tas.com/<?= "$category/$sub_category/$ssub_category/$product_name"; ?>"><?= $res_prd['prod_name'];?></a> </div> <?php if($sql_fd['prod_price'] !=""){ ?> <div class="col-md-12 col-12 text-center"> <div class="product-add-to-cart-btn"> <span class="discounted-prize"> SAR <span id="divShowHide1"><?php echo $sql_fd['prod_price']; ?></span><span id="prod_price"></span></span> </div> </div> <?php } ?> </div> </div> </form> </div> <?php } ?> </div> </div> <div class="tab-pane fade" id="nav-toprated" role="tabpanel" aria-labelledby="nav-toprated-tab"> <div class="row"> <?php $most_popular='1'; $sql_prdm=mysqli_query($conn,"select sub_category.sub_category_name,category.cat_name,sub_sub_category.sub_sub_cat_name,product.* from product join category on product.category_id=category.id join sub_category on product.sub_category_id=sub_category.id join sub_sub_category on product.sub_sub_cat_id=sub_sub_category.id where product.most_popular='".$most_popular."' order by product.id Limit 8"); while($res_prdm= mysqli_fetch_array($sql_prdm)){ $prd_id=$res_prdm['id']; $sql_fm=mysqli_fetch_array(mysqli_query($conn,"SELECT * from product_detail where prod_id='$prd_id'")); $cat_name=$res_prdm['cat_name']; $scat_name=$res_prdm['sub_category_name']; $sub_sub_cat_name=$res_prdm['sub_sub_cat_name']; $prod_name=$res_prdm['prod_name']; $catg = strtolower(str_replace(" ", "-", $cat_name)); $sub_categ = strtolower(str_replace(" ", "-", $scat_name)); $ssub_categ = strtolower(str_replace(" ", "-", $sub_sub_cat_name)); $prods_name = strtolower(str_replace(" ", "-", $prod_name)); ?> <div class="col-md-3 col-12"> <form method="post" action=""> <div class="srvprds"> <div class="row"> <input name="prd_id" id="prod_id" value="<?= $res_prdm['id'];?>" class="prd_id" type="hidden"> <input name="prod_idd" id="prod_idd" value="<?= $sql_fm['id'];?>" class="prd_id" type="hidden"> <input name="prd_name" id="name" class="name" value="<?= $res_prdm['prod_name'];?>" type="hidden"> <div class="col-md-12 col-12 product-image"> <a href="https://www.it-tas.com/<?= "$catg/$sub_categ/$ssub_categ/$prod_name"; ?>"> <img class="img-fluid" src="https://www.it-tas.com/admin/product/<?= $res_prdm['prod_img1'];?>" alt=""></a> </div> <div class="col-md-12 col-12 product-name"> <a href="https://www.it-tas.com/<?= "$catg/$sub_categ/$ssub_categ/$prod_name"; ?>"><?= $res_prdm['prod_name'];?></a> </div> <?php if($sql_fm['prod_price'] !=""){ ?> <div class="col-md-12 col-12 text-center"> <div class="product-add-to-cart-btn"> <span class="discounted-prize"> SAR <span id="divShowHide1"><?php echo $sql_fm['prod_price']; ?></span><span id="prod_price"></span></span> </div> </div> <?php } ?> </div> </div> </form> </div> <?php } ?> </div> </div> </div> </div> </div> </div> </section>