OXIESEC PANEL
- Current Dir:
/
/
home
/
u432548786
/
domains
/
it-tas.com
/
public_html
/
admin
Server IP: 191.96.63.230
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/13/2025 03:36:42 PM
rwxr-xr-x
📄
aboutuscms.php
2.94 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
add-ads.php
7.64 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
add-brand.php
7.64 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
add-delivery-employee.php
18.07 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
add-employee.php
18.24 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
add-product.php
28.28 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
add-testimonial.php
4.3 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
add-vendor.php
14.38 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
ajax_get_subcat.php
1.35 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-
📄
all_product_delete.php
271 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
ask-price-enquiry.php
3.29 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📁
assest
-
04/18/2025 03:26:50 AM
rwxr-xr-x
📄
assign-page.php
3.78 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
balance-sheet.php
6.54 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📁
banner
-
08/13/2025 03:35:46 PM
rwxr-xr-x
📄
banner.php
7.62 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
categories-link.php
5.58 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
category.php
17.96 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
checkout-ads.php
3.81 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
checkout.php
23.81 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📁
ckeditor
-
01/20/2024 07:32:19 AM
rwxr-xr-x
📄
customer-details.php
11.87 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
customer-products.php
8.85 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
customer.php
4.3 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
dashboard.php
3.55 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
delete_ads.php
298 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
delete_banner.php
296 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
delete_brand.php
298 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
delete_categories_link.php
277 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
delete_category.php
1.86 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
delete_customer.php
306 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
delete_enquiry.php
302 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
delete_manufacturer.php
273 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
delete_ordprd.php
563 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
delete_prd.php
306 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
delete_product.php
1.51 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
delete_promo.php
304 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
delete_subcategory.php
2.08 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
delete_subsubcategory.php
2.7 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
delete_testimonial.php
306 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
delete_vendor.php
261 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
department.php
3.82 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
designation.php
4.95 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
edit-assign-page.php
3.83 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
edit-product-details.php
36.37 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
edit-sscategory.php
15.45 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
edit-vendor.php
15.47 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
edit_adstop.php
309 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
edit_banner.php
310 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
edit_brand.php
305 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
edit_categories_link.php
296 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
edit_category.php
312 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
edit_manufacturer.php
293 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
edit_subcat.php
517 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
edit_subsubcat.php
583 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
enquiry-now.php
2.85 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
error_log
97.85 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
footer_content.php
2.91 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
get_prod_details.php
318 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
home-ads.php
3.82 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📁
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.08 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
invoice.php
17.56 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
manufacturer.php
7.21 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
privacy.php
3.03 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📁
product
-
01/20/2024 07:32:19 AM
rwxr-xr-x
📄
product-details.php
2.79 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
product-order-details.php
5.61 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
products.php
8.71 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
promo-code.php
5.81 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
return_policy.php
2.9 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
shipping_policy.php
2.86 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
status_update.php
355 bytes
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
sub-category.php
20.63 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
sub-sub-category.php
23.65 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
term_condition.php
2.9 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
update_order.php
7.47 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
vendor-products.php
8.69 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
vendor.php
3.56 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
view-product-details.php
23.13 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
view-product-order-detail.php
10.71 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
view-vendor-product-details.php
15.61 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
view-vendor-profile.php
13.87 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
view_pages.php
3.68 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
📄
whatsapp-ads.php
3.82 KB
01/20/2024 07:32:19 AM
rw-rw-rw-
Editing: add-product.php
Close
<?php session_start();?> <style> .cdy div{ width:31%; float:left; margin:10px; } hr{ border:1px #e96125 solid!important; } </style> <?php include("includes/db_config.php"); // error_reporting(E_ALL); // ini_set('display_error', '1'); if (isset($_POST['submit'])) { extract($_POST); date_default_timezone_set('Asia/Kolkata'); $datetime = date('Y-m-d H:i:s'); $tmp_file = $_FILES['prod_img1']['tmp_name']; $ext = pathinfo($_FILES["prod_img1"]["name"], PATHINFO_EXTENSION); $rand = md5(uniqid().rand()); $prod_image = $rand.".".$ext; move_uploaded_file($tmp_file,"product/".$prod_image); $tmp_file = $_FILES['prod_img2']['tmp_name']; $ext = pathinfo($_FILES["prod_img2"]["name"], PATHINFO_EXTENSION); $rand = md5(uniqid().rand()); $prod_image1 = $rand.".".$ext; move_uploaded_file($tmp_file,"product/".$prod_image1); $tmp_file = $_FILES['prod_img3']['tmp_name']; $ext = pathinfo($_FILES["prod_img3"]["name"], PATHINFO_EXTENSION); $rand = md5(uniqid().rand()); $prod_image2 = $rand.".".$ext; move_uploaded_file($tmp_file,"product/".$prod_image2); $tmp_file = $_FILES['prod_img4']['tmp_name']; $ext = pathinfo($_FILES["prod_img4"]["name"], PATHINFO_EXTENSION); $rand = md5(uniqid().rand()); $prod_image3 = $rand.".".$ext; move_uploaded_file($tmp_file,"product/".$prod_image3); $sql_cat="SELECT * from category where id='$category_id'"; $exe_cat=mysqli_query($conn,$sql_cat); $res_cat=mysqli_fetch_array($exe_cat); $sql_scat="SELECT * from sub_category where id='$sub_category_id'"; $exe_scat=mysqli_query($conn,$sql_scat); $res_scat=mysqli_fetch_array($exe_scat); $sql_sscat="SELECT * from sub_sub_category where id='$sub_sub_category_id'"; $exe_sscat=mysqli_query($conn,$sql_sscat); $res_sscat=mysqli_fetch_array($exe_sscat); $tmp_file = $_FILES['prod_img5']['tmp_name']; $ext = pathinfo($_FILES["prod_img5"]["name"], PATHINFO_EXTENSION); $rand = md5(uniqid().rand()); $prod_image4 = $rand.".".$ext; $category = strtolower(str_replace(" ", "-", $res_cat['cat_name'])); $sub_category = strtolower(str_replace(" ", "-", $res_scat['sub_category_name'])); $sub_sub_category = strtolower(str_replace(" ", "-", $res_sscat['sub_sub_cat_name'])); $pname = mysqli_real_escape_string($conn,$_POST['pname']); $prod_name = strtolower(str_replace(" ", "-", $product_name)); if(file_exists('../'.$category.'/'.$sub_category)){ if(!file_exists('../'.$category.'/'.$sub_category .'/'.$sub_sub_category .'/'.$prod_name)){ if(copy('../product-detail.php', '../'.$category.'/'.$sub_category.'/'.$sub_sub_category.'/'.$prod_name.'.php')) { move_uploaded_file($tmp_file,"product/".$prod_image4); $added_by="admin"; $sql="INSERT into product(most_popular,feacture_product,best_product,category_id,sub_category_id,sub_sub_cat_id,prod_code,prod_name,product_name,prod_brand,prod_desp,features,prod_img1,prod_img2,prod_img3,prod_img4,prod_img5,model_no,warranty,sku,mpn,xsin,conditions,length,width,height,length_class,weight,weight_class,manufacturer,prod_gst,shipping_estimate,categories,title,meta_keyword,added_by,created_date) values ('$most_popular','$featured_product','$best_products','$category_id','$sub_category_id','$sub_sub_category_id','$prod_code','$product_name','$pname','$prod_brand','$prod_desp','$howto_use','$prod_image','$prod_image1','$prod_image2','$prod_image3','$prod_image4','$model_no','$warranty','$sku','$mpn','$xsin','$conditions','$length','$width','$height','$length_class','$weight','$weight_class','$manufacturer','$prod_gst','$shipping_estimate','$categories_link','$title','$meta_keyword','$added_by','$datetime')"; if (mysqli_query($conn, $sql)) { $last_id= mysqli_insert_id($conn); if(count($_POST["total_prod_qunt"]) > 0) { for($i = 0; $i < count($_POST["total_prod_qunt"]); $i++){ $tprod_qunt = mysqli_real_escape_string($conn,$_POST['total_prod_qunt'][$i]); // $prod_quant = mysqli_real_escape_string($conn,$_POST['prod_quant'][$i]); $prod_quant_type = mysqli_real_escape_string($conn,$_POST['prod_quant_type'][$i]); $prod_discount = mysqli_real_escape_string($conn,$_POST['prod_discount'][$i]); $prod_price = mysqli_real_escape_string($conn,$_POST['prod_price'][$i]); $prod_cross_price = mysqli_real_escape_string($conn,$_POST['prod_cross_price'][$i]); $sql_prd="INSERT into product_detail(prod_id,total_no_prod_quantity,prod_quantity_type,prod_discount,prod_price,prod_cross_price) values ('$last_id','$tprod_qunt','$prod_quant_type','$prod_discount','$prod_price','$prod_cross_price')"; $prd_res=mysqli_query($conn, $sql_prd) or die(mysqli_error()); } } } if($prd_res) { echo "<script> alert('Your products have added successfully!!!'); location.replace('products.php'); </script>"; } else { exit(); echo " <script> alert('There are some problem please try again!!'); location.replace('products.php'); </script>"; } } else { exit(); echo " <script> alert('There are some problem please try again!!!'); location.replace('products.php'); </script>"; } } else{ echo " <script> alert('products Name aleady exists, please change the and try again!!!'); location.replace('products.php'); </script>"; } } else{ echo " <script> alert('products not exists, please check and try again!!!'); location.replace('products.php'); </script>"; } } ?> <!DOCTYPE html> <html lang="en-IN"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>TAS Vision</title> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> <?php include("includes/css.php");?> <script type="text/javascript" src='ckeditor/ckeditor.js'></script> </head> <body class="hold-transition skin-blue sidebar-mini"> <div class="wrapper"> <?php include("includes/header.php")?> <?php include("includes/sidebar.php")?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-md-12"> <div class="box box-danger"> <div class="box-header"> <h3 class="box-title">Add New Product</h3> </div> <div class="box-body"> <form method="post" action="" enctype="multipart/form-data"> <div class="form-group"> <div class="col-md-12"><h2 class="text-left">General Details</h2></div> <!-- <div class="col-md-4"> <div class="checkbox"> <label class=""> <input name="new_arrivals" value="1" type="checkbox"> New Arrival </label> </div> </div> --> <div class="col-md-4"> <div class="checkbox"> <label class=""> <input name="best_product" value="1" type="checkbox"> Best Seller </label> </div> </div> <div class="col-md-4"> <div class="checkbox"> <label class=""> <input name="most_popular" value="1" type="checkbox"> Top rated </label> </div> </div> <div class="col-md-4"> <div class="checkbox"> <label class=""> <input name="feacture_product" value="1" type="checkbox"> Feature </label> </div> </div> <div class="col-md-4"> <label>Category:</label> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-suitcase"></i> </div> <select name="category_id" id="cat_id" class="form-control" required> <option>Select</option> <?php $sql2="SELECT * from category"; $exe2=mysqli_query($conn,$sql2); while ($res2=mysqli_fetch_array($exe2)) { ?> <option value="<?php echo $res2['id']; ?>"><?php echo $res2['cat_name'];?></option> <?php } ?> </select> </div> </div> <div class="col-md-4"> <label>Sub-Category:</label> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-suitcase"></i> </div> <select name="sub_category_id" id="sub_cat" class="form-control" required> <option>Select</option> </select> </div> </div> <div class="col-md-4"> <label>Sub-Sub-Category:</label> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-suitcase"></i> </div> <select name="sub_sub_category_id" id="subsub_cat" class="form-control" > <option>Select</option> </select> </div> </div> <div class="col-md-4"> <label> Product Code:</label> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-suitcase"></i> </div> <input type="text" name="prod_code" class="form-control" placeholder="Enter Product Code "> </div> </div> <div class="col-md-4"> <label>Product Page URL:</label> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-suitcase"></i> </div> <input type="text" name="pname" class="form-control" placeholder="Enter Product name with special character"> </div> </div> <div class="col-md-4"> <label> Product Name <font style="color:red">*</font></label> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-suitcase"></i> </div> <input type="text" name="product_name" class="form-control" placeholder="Enter Product Name" required> </div> </div> <div class="col-md-4"> <label>Brand <font style="color:red">*</font></label> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-suitcase"></i> </div> <select name="manufacturer" class="form-control" required> <option value="">Select</option> <?php $sql2=mysqli_query($conn,"SELECT * from manufacturer"); while ($res2=mysqli_fetch_array($sql2)){ ?> <option value="<?= $res2['id']; ?>"><?= $res2['mname']; ?></option> <?php } ?> </select> </div> </div> <div class="clearfix"></div> <div class="col-md-12"> </hr></div> <div class="col-md-12"><h2 class="text-left">Data Details</h2></div> <div class="col-md-4"> <label> Model No.</label> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-suitcase"></i> </div> <input type="text" name="model_no" class="form-control" placeholder="Enter Model No"> </div> </div> <div class="col-md-4"> <label> Conditions </label> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-suitcase"></i> </div> <select name="conditions" class="form-control"> <option value="">Select</option> <option value="New">New</option> <option value="Old">Old</option> <option value="Used">Used</option> <option value="Refurbished">Refurbished</option> </select> </div> </div> <div class="col-md-4"> <label> Warranty: </label> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-suitcase"></i> </div> <select name="warranty" class="form-control"> <option value="">Select</option> <option value="13 day">13 Day</option> <option value="60 day">60 Day</option> <option value="90 day">90 Day</option> <option value="6 month">6 Month</option> <option value="1 year">1 Year</option> </select> </div> </div> <div class="col-md-4"> <label> SKU:</label> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-suitcase"></i> </div> <input type="text" name="sku" class="form-control" placeholder="Enter SKU"> </div> </div> <div class="col-md-4"> <label> UPC:</label> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-suitcase"></i> </div> <input type="text" name="upc" class="form-control" placeholder="Enter UPC"> </div> </div> <div class="col-md-4"> <label> EAN:</label> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-suitcase"></i> </div> <input type="text" name="ean" class="form-control" placeholder="Enter MPN"> </div> </div> <div class="col-md-4"> <label> MPN:</label> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-suitcase"></i> </div> <input type="text" name="mpn" class="form-control" placeholder="Enter MPN"> </div> </div> <div class="col-md-4"> <label> Dispatch </label> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-suitcase"></i> </div> <input type="text" name="dispatch" class="form-control" placeholder="Enter Dispatch"> </div> </div> <div class="col-md-4"> <label> XSIN:</label> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-suitcase"></i> </div> <input type="text" name="xsin" class="form-control" placeholder="Enter XSIN"> </div> </div> <div class="col-md-4"> <label> Length:</label> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-suitcase"></i> </div> <input type="text" name="length" class="form-control" placeholder="Enter Length"> </div> </div> <div class="col-md-4"> <label> Width:</label> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-suitcase"></i> </div> <input type="text" name="width" class="form-control" placeholder="Enter width"> </div> </div> <div class="col-md-4"> <label> Height:</label> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-suitcase"></i> </div> <input type="text" name="height" class="form-control" placeholder="Enter Height"> </div> </div> <div class="col-md-4"> <label> Length Class:</label> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-suitcase"></i> </div> <select name="lenght_class" class="form-control"> <option value="">Select</option> <option value="Centimeter">Centimeter</option> <option value="Millimeter">Millimeter</option> <option value="Inch">Inch</option> </select> </div> </div> <div class="col-md-4"> <label> Weight:</label> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-suitcase"></i> </div> <input type="text" name="height" class="form-control" placeholder="Enter Height"> </div> </div> <div class="col-md-4"> <label> Weight class:</label> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-suitcase"></i> </div> <select name="lenght_class" class="form-control"> <option value="">Select</option> <option value="Kilogram">Kilogram</option> <option value="Gram">Gram</option> <option value="Pound">Pound</option> <option value="Ounce">Ounce</option> </select> </div> </div> <div class="col-md-4"> <label> Incl. GST:</label> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-suitcase"></i> </div> <input type="text" name="prd_gst" class="form-control" placeholder="Enter GST"> </div> </div> <div class="col-md-4"> <label> Shipping Estimate:</label> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-suitcase"></i> </div> <input type="text" name="shipping_estimate" class="form-control" placeholder="Enter Shipping and Dispatch"> </div> </div> <div class="clearfix"></div> <div class="col-md-12"> </hr></div> <div class="col-md-12"><h2 class="text-left">Link Details</h2></div> <div class="col-md-12"> <label>Categories </label> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-suitcase"></i> </div> <select name="categories_link" class="form-control"> <option value="">Select</option> <?php $sqls=mysqli_query($conn,"SELECT * from categories_link"); while($ress=mysqli_fetch_array($sqls)){ ?> <option value="<?= $ress['id']; ?>"><?= $ress['cname']; ?></option> <?php } ?> </select> </div> </div> <div class="clearfix"></div> <div class="col-md-12"> </hr></div> <div class="col-md-12"><h2 class="text-left"> Details</h2></div> <div class="col-md-12"> <label>Meta Tag Title </label> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-suitcase"></i> </div> <input type="text" name="title" class="form-control" placeholder="Enter Title"> </div> </div> <div class="col-md-12"> <label>Meta Tag Keyword:</label> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-suitcase"></i> </div> <textarea class="form-control" rows="5" name="meta_keyword" placeholder="Meta Keyword "></textarea> </div> </div> <div class="col-md-12"> <label> Product Description:</label> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-suitcase"></i> </div> <textarea class="form-control" id="editor1" name="prod_desp" rows="5" placeholder="Enter Product Description"></textarea> </div> </div> <div class="col-md-12"> <label>Product Specification:</label> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-suitcase"></i> </div> <textarea class="form-control" id="editor" name="howto_use" rows="5" placeholder="Specification"></textarea> </div> </div> <div class="col-md-4"> <label> Product Images 1:<span class="text-red">(Size : 500 px X 545 px)</span></label> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-suitcase"></i> </div> <input type="File" name="prod_img1" class="form-control"> </div> </div> <div class="col-md-4"> <label> Product Images 2:<span class="text-red">(Size : 500 px X 545 px)</span></label> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-suitcase"></i> </div> <input type="File" name="prod_img2" class="form-control"> </div> </div> <div class="col-md-4"> <label> Product Images 3:<span class="text-red">(Size : 500 px X 545 px)</span></label> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-suitcase"></i> </div> <input type="File" name="prod_img3" class="form-control"> </div> </div> <div class="col-md-4"> <label> Product Images 4:<span class="text-red">(Size : 500 px X 545 px)</span></label> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-suitcase"></i> </div> <input type="File" name="prod_img4" class="form-control"> </div> </div> <div class="col-md-4"> <label> Product Images 5:<span class="text-red">(Size : 500 px X 545 px)</span></label> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-suitcase"></i> </div> <input type="File" name="prod_img5" class="form-control"> </div> </div> </div> <div class="clearfix"></div> <h4>Add Product Details</h4> <div class="table-responsive " id="dynamic_field"> <table class="table table-bordered"> <thead></thead> <tbody> <tr> <td> <strong>Total No. Of Product Quantity:</strong><br /> <input type="text" name="total_prod_qunt[]" class="form-control" placeholder="Enter Product Size "> </td> <td> <strong>Product Quantity Type:</strong><br /> <select name="prod_quant_type[]" class="form-control"> <option value="">Select</option> <option>Numbers</option> <option>Piece</option> </select> </td> </tr> <tr> <td> <strong>Product MPR: </strong><br /> <input type="text" name="prod_cross_price[]" class="form-control" placeholder="Enter Product MRP"> </td> <td> <strong>Product Discount:</strong><br /> <input name="prod_discount[]" type="text" class="form-control" placeholder="Enter Product Discount"> </td> <td> <strong>Our Price: </strong><br /> <input type="text" name="prod_price[]" class="form-control" placeholder="Enter OR Prices"> </td> </tr> </tbody> </table> <hr/> </div> <div class="clearfix"></div> <div class="col-sm-12"> <div class="optionBox mt-20"> <div class="block"> <button type="button" name="add" id="add" class="btn btn-success">Add More +</button> </div> </div> </div> <div class="clearfix"></div> <div class="col-md-4 mt-20"> <div class="form-group"> <input type="submit" name="submit" class="btn btn-success btn-md" value="Submit"> </div> </div> </form> </div> <!-- /.box-body --> </div> </div> </div> </section> </div> <?php include("includes/footer.php")?> </div> <?php include("includes/js.php")?> <script> $('.add').click(function() { $('.block:last').before('<div class="block" style="margin-bottom:10px;font-size:16px;" ><b><u>Add Another Product Details(No. Of Quantity, No. Of Items, Price,..) ....</u></b><span class="remove btn btn-sm btn-danger"><i class="fa fa-trash"></i></span></div>'); }); $('.optionBox').on('click', '.remove', function() { $(this).parent().remove(); }); $(document).ready(function(){ $('#cat_id').on('change', function(){ var cat_id = $(this).val(); // alert(cat_id); if(cat_id){ $.ajax({ type:'POST', url:'ajax_get_subsub_cat.php', data:'cat_id='+cat_id, success:function(html){ $('#sub_cat').html(html); // console.log(html); // $('#city').html('<option value="">Select Division</option>'); } }); } }); $('#sub_cat').on('change', function(){ var scat_id = $(this).val(); // alert(scat_id); if(scat_id){ $.ajax({ type:'POST', url:'ajax_get_subsub_cat.php', data:'scat_id='+scat_id, success:function(html){ $('#subsub_cat').html(html); } }); } }); }); $(document).ready(function() { var i = 1; $('#add').click(function() { i++; $('#dynamic_field').append('<div id="row'+i+'" class="cdy"><div><strong>Total No. Of Product Quantity:</strong><br /><input type="text" name="total_prod_qunt[]" placeholder="Enter Total No. Of Product Quantity" class="form-control name_list" /></div><div><strong>Product Quantity Type:</strong><br /><select type="text" name="prod_quant_type[]" class="form-control"><option>GM</option><option>ML</option><option>L</option><option >KG</option><option >Pieces</option></select></div><div><strong>Product MRP:</strong><br /><input type="text" name="prod_cross_price[]" placeholder="Enter Product MRP" class="form-control name_list"/></div><div><strong>Product Discount: </strong><br /><input type="text" name="prod_discount[]" placeholder="Enter Product Discount" class="form-control name_list" /></div><div><strong>Our Prices:</strong><br /><input type="text" name="prod_price[]" placeholder="Enter Our Price" class="form-control name_list" /></div><div style="width:10%; margin-top:30px"><button type="button" name="remove" id="'+i+'" class="btn btn-danger btn_remove">X</button></div></div><div class="clearfix"></div><hr/>'); }); $(document).on('click', '.btn_remove', function() { var button_id = $(this).attr("id"); $('#row' + button_id + '').remove(); }); $('#submit').click(function() { $.ajax({ url: "add-product.php", method: "POST", data: $('#add_name').serialize(), success: function(data) { alert(data); $('#add_name')[0].reset(); } }); }); }); </script> </body> </html>