]nbmbmbnmbnmbytutytyutyutyutyumbnmjhkhjkhjkhjkhjkhjknnnnnnnn
bnmbnmbnmnbbtyutyutyutyutyutyu,nm,nmmnmm,bbbbbn
/
home
/
aaharway
/
domains
/
awards.aaharways.com
/
public_html
/
adm
/
Upload FileeE
HOME
<?php include_once('header.php'); if(isset($_GET['product_edit'])) { $product_edit=base64_decode($_GET['product_edit']); if(is_numeric($product_edit)) { $fetch_product=mysqli_query($con,"select * from tbl_product where product_id='$product_edit' and status=1"); $res_product=mysqli_fetch_array($fetch_product); } } $sql_category_id=mysqli_fetch_array(mysqli_query($con,"select * from tbl_category where status=1")); // print_r($sql_category_id); $category_id=$sql_category_id['category_id']; ?> <div id="layoutSidenav_content"> <main> <div class="container-fluid"> <h1 class="mt-4">Add Testimonial</h1> <ol class="breadcrumb mb-4"> <li class="breadcrumb-item"><a href="index.php">Dashboard</a></li> <li class="breadcrumb-item active">Testimonial</li> </ol> <div class="card mb-4"> <div class="card-header"><i class="fas fa-table mr-1"></i>Add Testimonial <a href="product-list.php" class="btn btn-warning" style="float: right;"><i class="fa fa-table"></i> Testimonial List</a></div> <div class="card-body"> <form action="controller.php" method="post" enctype="multipart/form-data"> <?php if(isset($_GET['add_product'])=='success') { ?> <div class="alert alert-success"> <strong>Success!</strong>Successfully Added Testimonial.. </div> <?php } if(isset($_GET['wrongadd_product'])=='wrong') { ?> <div class="alert alert-danger"> <strong>Warning!</strong>Something Went Wrong..! </div> <?php } ?> <input type="hidden" name="update_id" value="<?=$res_product['product_id'];?>"> <div class="row"> <div class="col-md-3"> <div class="form-group"> <label for="exampleInputEmail1">Customer Name<span style="color: red;">*</span></label> <input type="text" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Customer Name" required="" value="<?=@$res_product['product_name'];?>" name="product_name"> </div> </div> <div class="col-md-3"> <div class="form-group"> <label for="exampleInputEmail1">Designation<span style="color: red;">*</span></label> <input type="text" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Designation" value="<?=@$res_product['Designation'];?>" name="Designation"> </div> </div> <div class="col-md-3"> <div class="form-group"> <label for="exampleInputEmail1">Company Name<span style="color: red;">*</span></label> <input type="text" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Company Name" value="<?=@$res_product['company_name'];?>" name="company_name"> </div> </div> <div class="col-md-3"> <div class="form-group"> <label for="exampleInputEmail1">Customer Image<span style="color: red;">*</span></label> <?php if(isset($_GET['product_edit'])) { ?> <img src="uploads/<?=$res_product['featured_image'];?>" style="width:30px;"> <input type="hidden" name="old_product_img" value="<?=$res_product['featured_image'];?>"> <input type="file" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter Supplier Address" name="featured_image"> <?php } else { ?> <input type="file" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter Supplier Address" required="" name="featured_image"> <?php } ?> </div> </div> <div class="col-md-12"> <div class="form-group"> <label for="exampleInputEmail1">Description</label> <textarea class="form-control" name="description" rows="10" data-sample-short><?=@$res_product['description'];?></textarea> </div> </div> </div> <?php if(isset($_GET['product_edit'])) { ?> <button type="submit" class="btn btn-primary" name="btn_update_product">Update</button> <?php } else { ?> <button type="submit" class="btn btn-primary" name="btn_add_product">Submit</button> <?php } ?> </form> </div> </div> </div> </main> <?php include_once('footer.php'); ?> <script type="text/javascript"> $(document).ready(function(){ $('#type').on("change",function () { var categoryId = $(this).find('option:selected').val(); $.ajax({ url: "ajax/ajaxData.php", type: "POST", data: "categoryId="+categoryId, success: function (response) { $("#type1").html(response); }, }); }); }); </script>