OXIESEC PANEL
- Current Dir:
/
/
home
/
u432548786
/
domains
/
it-tas.com
/
public_html
Server IP: 191.96.63.230
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
07/14/2019 08:26:14 AM
rwxr-xr-x
📄
.htaccess
297 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📁
PHPMailer
-
01/20/2024 07:32:19 AM
rwxr-xr-x
📄
about-us.php
1.9 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
add-sell-product.php
18.32 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📁
admin
-
01/20/2024 07:32:19 AM
rwxr-xr-x
📄
ajax_city.php
3.33 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
ajax_get_subsub_cat.php
1.35 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
ajax_prd_get_price.php
438 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
ajax_prd_price.php
411 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
android-invoice.php
15.16 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
autosearch.php
1.7 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
book_payment.php
2.41 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
brands.php
2.07 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
cart.php
19.61 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
carts.php
17.97 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
change-password.php
5.66 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
check-login.php
5.66 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
checkout.php
29.95 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
cod_email_send.php
8.62 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
config.php
534 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
constant.php
120 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
contact-insert.php
1.96 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
contact-us.php
9.07 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
create.php
1 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📁
css
-
01/20/2024 07:32:19 AM
rwxr-xr-x
📄
db_config.php
215 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
dddd.php
19.43 KB
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-
📄
delete_carts.php
302 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
delete_chcart.php
302 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
delete_wishlist.php
305 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📁
document
-
01/20/2024 07:32:19 AM
rwxr-xr-x
📄
edit-address.php
10.29 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
edit-profile.php
7.99 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📁
fonts
-
01/20/2024 07:32:19 AM
rwxr-xr-x
📄
forgot-password.php
6.87 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📁
fpdf
-
01/20/2024 07:32:19 AM
rwxr-xr-x
📄
free_product.php
7.19 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
google559cbc7861e1a83d.html
53 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
googleapi
135 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
googlebdc637812fd99722.html
53 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
handler.php
5.07 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
hw.php
1.64 KB
08/13/2025 03:36:42 PM
rw-r--r--
📁
images
-
01/20/2024 07:32:19 AM
rwxr-xr-x
📁
img
-
01/20/2024 07:32:19 AM
rwxr-xr-x
📁
includes
-
01/20/2024 07:32:19 AM
rwxr-xr-x
📄
index.php
3.66 KB
05/19/2025 03:00:38 AM
rw-r--r--
📄
insert_tocart.php
1.19 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
insert_towishlist.php
1.13 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
invoice-pdf.php
3.72 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
invoice.php
14.41 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
item-search.php
20.74 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
item.php
5.15 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📁
js
-
01/20/2024 07:32:19 AM
rwxr-xr-x
📄
login-check.php
2.02 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
login.php
9.44 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
logout.php
162 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
mad.php
5.96 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
manage-address.php
7.16 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
menu.min.css
431.11 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
my-coins.php
5.49 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
my-order-details.php
8.64 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
my-order.php
7.96 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
my-profile.php
6.79 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📁
neeee
-
07/14/2025 01:18:55 PM
rwxr-xr-x
📄
new-address.php
5.94 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
offline-payment.php
10.52 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
opayment.php
14.07 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
pay
12.41 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
paymail_android.php
5.65 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
payment.php
11.42 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
payment_offline.php
5.75 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📁
pdf-invoice
-
01/20/2024 07:32:19 AM
rwxr-xr-x
📄
preowned_product.php
7.17 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
privacy-policy.php
1.95 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
product-brand.php
17.65 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
product-detail.php
20.05 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
product-detail2.php
20.75 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
product-search.php
17.98 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
product.php
21.18 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📁
products
-
01/20/2024 07:32:19 AM
rwxr-xr-x
📁
razorpay-php
-
01/20/2024 07:33:04 AM
rwxr-xr-x
📄
referral-code.php
4.1 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
reg_validation.php
971 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
return-order.php
7 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
return-refund-policy.php
1.88 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
robots.txt
72 bytes
04/18/2025 06:55:08 AM
rw-r--r--
📄
sell-product.php
6.9 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
shipping-policy.php
1.87 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
shop-item.php
7.44 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
signup-insert.php
5.85 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
signup.php
14.25 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
stripe-payment.php
8.13 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
style.css
49.03 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
terms-conditions.php
1.88 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
thank-you.php
1.57 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
upd_cart.php
258 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
update_qty.php
319 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
update_qtys.php
627 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📁
uploads
-
01/20/2024 07:33:04 AM
rwxr-xr-x
📄
verify-strip.php
4.41 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
verify.php
9.39 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
web.config
221 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
wish_tocart.php
1.49 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
wishlist.php
8.96 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
Editing: product.php
Close
<?php session_start(); include("db_config.php"); use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; require '../../../PHPMailer/Exception.php'; require '../../../PHPMailer/PHPMailer.php'; require '../../../PHPMailer/SMTP.php'; if(isset($_POST['prd_enqs'])){ extract($_POST); $logo = "https://www.it-tas.com/img/logo.png"; // Body $body_title = "TAS Vision"; $width_of_mail_body = "80%"; // Please write in % percentage for better view... $padding_of_mail_body = "20px"; $body_background_color = ""; $body_text_color = ""; $sqlss="INSERT into user_faq(name,email_id,topic,msg) values ('$name','$email_id','$topic','$message')"; $results = mysqli_query($conn, $sqlss); if($results){ $from_team = "TAS Vision"; $from_website = "https://www.it-tas.com/index.php"; $to = "sales@it-tas.com"; $message = " <html> <head> <title>$body_title</title> </head> <body style='border: 4px solid #57b018;background-color:#f7f7f7; color:#000;'> <center> <div style='width: $width_of_mail_body; padding: $padding_of_mail_body;' > <table style='width:99%;text-align:left; padding-left:10px;padding-right:10px;background-color:#f7f7f7;border-bottom:1px solid #ccc;'> <tr> <td style='font-size:20px;font-weight:bold;height:40px;'>Question About This Product from $name </td> </tr> </table> <table style='width:99%;background-color:#f7f7f7;padding-left:10px;padding-right:10px;'> <tr> <td style='height:40px;'><strong>Your Email-Id :</strong></td> <td style='height:40px;'> <font style='color:#84c225'>$email</font></td> </tr> <tr> <td style='height:40px;'><strong>Topic :</strong></td> <td style='height:40px;'> <font style='color:#84c225'>$topic</font></td> </tr> <tr> <td style='height:40px;'><strong>Message :</strong></td> <td style='height:40px;'> <font style='color:#84c225'>$message</font></td> </tr> </table> <table style='width:99%;text-align:left;padding-left:10px;padding-right:10px; background-color:#f7f7f7;'> <tr> <tr> <td colspan='2' style='height:40px;'><a href='mailto:info@it-tas.com'>info@it-tas.com</a></td> </tr> </table> </div> </center> </body> </html>"; $email = new PHPMailer(); // $email->Body = ($message); $email->SetFrom('info@it-tas.com', 'TAS Vision'); //Name is optional $email->Subject = $name . " Asked Question About This Product"; $email->IsHTML(true); $email->Body = ($message); $email->AddAddress($to); if (! $email->Send()){ //echo "<script>alert('Problem in sending email!');</script>"; } else { } echo '<script>alert("Thank You! We Will Get Back To You.")</script>'; } } if(isset($_POST['bt_addto_cart'])){ extract($_POST); date_default_timezone_set('Asia/Kolkata'); $date = date('Y-m-d H:i:s'); $prod_id= $_POST['prd_id']; $prod_idd= $_POST['prod_idd']; $prd_name= $_POST['prd_name']; $sql_qrr="select * from product where id='".$prod_id."'"; $res_qrr = mysqli_query($conn, $sql_qrr); $data_qrr= mysqli_fetch_array($res_qrr); $sql1="select * from product_detail where prod_id='$prod_idd'"; $res1 = mysqli_query($conn, $sql1); $data= mysqli_fetch_array($res1); $price=$data['prod_price']; $prd_details=$data['id']; $quantity=$_POST['quantity']; $session=$_SESSION['prd_session_id']; if (isset($_SESSION['loggedin']) && $_SESSION['loggedin'] == true) { $user_id=$_SESSION['id']; }else{ $user_id =""; } $sql="INSERT into addto_cart(prod_details_id,prod_id,session_id,user_id,prod_name,quantity,price,created_date) values ('$prd_details','$prod_id','$session','$user_id','$prd_name','$quantity','$price','$date')"; if(mysqli_query($conn, $sql)){ header("location:https://www.it-tas.com/cart.php"); } } ?> <!DOCTYPE html> <html lang="en"> <meta http-equiv="content-type" content="text/html;charset=UTF-8" /> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="description" content=" "> <meta name="author" content=""> <title>TAS Vision</title> <?php include("css.php");?> <style> .price-range-field { width: 40%; min-width: 16%; background-color: #f9f9f9; border: 1px solid #6e6666; color: black; font-family: myFont; font: normal 14px Arial, Helvetica, sans-serif; border-radius: 5px; height: 26px; padding: 5px; } .adcrtbtn { border: 0px !important; background-color: #000 !important; color: #fff !important; padding: 0.5rem !important; font-size: 13px !important; border-radius: 4px; } .adcrtbtn:hover { background-color: #336699 !important; } .helpsbox { color: #000; line-height: 18px; text-align: center; padding-left: 15px; margin-top: 10px; } .product-name a { font-size: 16px; font-weight: 500; line-height: 21px; height: 18px; width: 93%; padding: 0; overflow: hidden; position: relative; display: inline-block; margin: 5px 5px 3px 5px; text-align: center; text-overflow: ellipsis; white-space: nowrap; color: #000; } @media (min-width: 320px) and (max-width: 640px) { .helpsbox { padding-left: 0px; margin-top: 3px; } } </style> </head> <body> <?php include("header.php");?> <?php $page_name = str_replace(".php", "", basename($_SERVER['PHP_SELF'])); $Current_URL = basename(dirname(__FILE__)); $current_url=$_SERVER['REQUEST_URI']; $csub_id= explode("/", $current_url); $csub= $csub_id[1]; $sqlct=mysqli_query($conn,"select * from category"); while ($resus=mysqli_fetch_array($sqlct)) { if(strtolower(str_replace(" ", "-", $resus["cat_name"])) == $csub){ $cid=$resus['id']; } } $cssub= $csub_id[2]; $sqlcts=mysqli_query($conn,"select * from sub_category where category_id='".$cid."'"); while ($ressst=mysqli_fetch_array($sqlcts)) { if(strtolower(str_replace(" ", "-", $ressst["sub_category_name"])) == $cssub){ $scid=$ressst['id']; } } $findid = (mysqli_query($conn, "SELECT * FROM sub_sub_category where category_id='".$cid."' and sub_category_id='".$scid."'")); while ($res2=mysqli_fetch_array($findid)) { if(strtolower(str_replace(" ", "-", $res2["sub_sub_cat_name"])) == $page_name){ $id = $res2["id"]; } } ?> <?php //$id=$_POST["id"]; $record_per_page = 10; $page = ' '; if(isset($_GET["page"])) { $page = $_GET["page"]; } else { $page = "1"; } $start_from = ($page-1)*$record_per_page; $sql_prdd="select sub_category.sub_category_name,sub_category.id as scid,category.cat_name,sub_sub_category.sub_sub_cat_banner,sub_sub_category.sub_sub_cat_name,sub_sub_category.id as ss_id,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.sub_sub_cat_id='$id'"; $result_prdd = mysqli_query($conn, $sql_prdd); $res_prdd= mysqli_fetch_array($result_prdd); $sscid=$res_prdd['sub_sub_cat_id'];?> <section class="page-info section-padding border-bottom topthumb"> <div class="container"> <div class="row"> <div class="col-md-12"> <a href="https://www.it-tas.com/index.php"> <span class="mdi mdi-home"></span> Home</a> <span class="mdi mdi-chevron-right"></span> <a href="#"><?php echo $res_prdd['sub_sub_cat_name']; ?></a> </div> </div> </div> </section> <section class="shop-list section-padding"> <div class="container"> <div class="row"> <div class="col-md-12 mb-3"> <img class="img-fluid" src="https://www.it-tas.com/admin/product/subsubcat/<?php echo $res_prdd['sub_sub_cat_banner'];?>" alt="<?php echo $res_prdd['sub_sub_cat_name']; ?>" title="<?php echo $res_prdd['sub_sub_cat_name']; ?>" style="height: 250px; width:100%;"> </div> <div class="col-md-3"> <div id="accordion" class="shop-filters "> <div class="card"> <div class="card-header"> <h5 class="mb-0"> <button class="btn btn-link collapsed"> <?php echo $res_prdd['sub_sub_cat_name']; ?> <span class="mdi mdi-chevron-down float-right"></span> </button> </h5> </div> <div class="card-body card-shop-filters"> <ul class="checkboxes_list"> <?php $ssc_id=$res_prdd['sub_category_id']; $sql_scat="select sub_sub_category.*,category.cat_name,sub_category.sub_category_name,sub_category.id as scat,sub_category.subcat_banner from sub_sub_category join category on sub_sub_category.category_id=category.id join sub_category on sub_sub_category.sub_category_id=sub_category.id where sub_category_id='".$ssc_id."'"; $result_scat = mysqli_query($conn, $sql_scat); while($res_scat = mysqli_fetch_array($result_scat)){ $cat_name=$res_scat['cat_name']; $scat_name=$res_scat['sub_category_name']; $sub_sub_cat_name=$res_scat['sub_sub_cat_name']; $categorys = strtolower(str_replace(" ", "-", $cat_name)); $sub_categorys = strtolower(str_replace(" ", "-", $scat_name)); $ssub_categorys = strtolower(str_replace(" ", "-", $sub_sub_cat_name)); ?> <li class="custom-control"> <label> <a href="https://www.it-tas.com/<?php echo "$categorys/$sub_categorys/$ssub_categorys/$ssub_categorys"; ?>"><?php echo $res_scat['sub_sub_cat_name']; ?></a> </label> </li> <?php } ?> </ul> </div> </div> </div> </div> <div class="col-md-9"> <div class="row"> <div class="col-md-12 shop-head mb-3"> <h5 class="mb-1"><?php echo $res_prdd['sub_sub_cat_name']; ?></h5> </div> <div class="col-md-12 anajgharproducts no-gutters"> <div class="row"> <?php $sid=$sscid; $sql_prd="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.sub_sub_cat_id='$sid' order by product.id DESC LIMIT " . $start_from . "," . $record_per_page; $result_prd = mysqli_query($conn, $sql_prd); while($res_prd= mysqli_fetch_array($result_prd)){ ?> <?php $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-4 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.php"; ?>"> <img class="img-fluid" src="https://www.it-tas.com/admin/product/<?php echo $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.php"; ?>"><?= substr($res_prd['product_name'], 0, 45); ?> </a> </div> <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 $res_pd['prod_price']; ?></span><span id="prod_price"></span></span> </div> </div> <div class="col-md-6 col-6"> <div class="quantity" style="margin-left:10px;float:left;padding:9px 0px;width:30px;font-size:20px; background-color:#d1cfce;color:#000;height:40px;text-align:center;border:1px solid #cdc9c9;line-height:18px;">-</div> <input type="text" name="quantity" data-qty="<?= $res_pd['total_no_prod_quantity']?>" value="1" maxlength="2" max="10" size="1" id="quantity" style="float:left;border:1px solid #ccc;font-size: 15px;width:42px;padding:13px 6px 14px 6px;height: 40px; float: left"> <div class="plus buttons" style="float:left;padding:9px 0px;width:30px;font-size:20px; background-color:#d1cfce;color:#000;height:40px;text-align:center;border:1px solid #cdc9c9;line-height:18px;">+</div> </div> <div class="col-md-6 col-5"> <button type="submit" name="bt_addto_cart" class="adcrtbtn"><i class="mdi mdi-cart-outline"></i> Add To Cart</button> </div> </div> </div> </form> </div> <?php } ?> </div> </div> <div class="col-md-12 text-center mt-10 mb-20 pb-10" align="center"> <div align="center" class="pagination"> <br /> <?php $ids=$sscid; $sql_pg="select * from sub_sub_category where id='$ids'"; $result_pg = mysqli_query($conn, $sql_pg); $resp= mysqli_fetch_array($result_pg); $subsub_category = strtolower(str_replace(" ", "-", $resp['sub_sub_cat_name'])); $page_query = "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.sub_sub_cat_id='$ids'"; $page_result = mysqli_query($conn, $page_query); $total_records = mysqli_num_rows($page_result); $total_pages = ceil($total_records/$record_per_page); $start_loop = $page; $difference = $total_pages - $page; if($difference <= 1) { $start_loop = $total_pages - 15; } $end_loop = $start_loop + 14; if($page > 1) { echo "<a class='textpage' href='". $subsub_category.".php?page=1&id=".$id."'>First</a>"; echo "<a class='textpage' href='". $subsub_category.".php?page=".($page - 0)."&id=".$id."'><<</a>"; } for($i=$start_loop; $i<=$end_loop; $i++) { if($i > 0){ echo "<a class='textpage' href='". $subsub_category.".php?page=".$i."&id=".$id."'>".$i."</a>"; } } if($page <= $end_loop) { echo "<a class='textpage' href='". $subsub_category.".php?page=".($page + 1)."&id=".$id."'>>></a>"; echo "<a class='textpage' href='". $subsub_category.".php?page=".$total_pages."&id=".$id."'>Last</a>"; } ?> </div> </div> </div> </div> </div> </div> </section> <?php include("footer.php");?> <?php //include("js.php");?> <script src="https://www.it-tas.com/js/bootstrap.min.js"></script> <script src="https://www.it-tas.com/js/jquery.min.js"></script> <link rel="stylesheet" href="https://www.it-tas.com/js/jqueryui/jquery-ui.css"> <script src="https://www.it-tas.com/js/jqueryui/jquery-1.10.2.js"></script> <script src="https://www.it-tas.com/js/jqueryui/jquery-ui.js"></script> <script src="https://www.it-tas.com/js/owl.carousel.js"></script> <script src="https://www.it-tas.com/js/select2.min.js"></script> <script src="https://www.it-tas.com/js/custom.min.js"></script> <script type="text/javascript"> $(function() { $(".plus").click(function(e) { e.preventDefault(); var $this = $(this); var $input = $this.siblings('input'); var value = parseInt($input.val()); var tqty = $input.data('qty'); if (value < tqty) { value = value + 1; } else { value = tqty; } $input.val(value); }); $(".minus").click(function(e) { e.preventDefault(); var $this = $(this); var $input = $this.siblings('input'); var value = parseInt($input.val()); if (value > 1) { value = value - 1; } else { value = 1; } $input.val(value); }); }); </script> </body> </html>