]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['id'])) { $id=base64_decode($_GET['id']); if(is_numeric($id)) { $fetch=mysqli_query($con,"select * from tbl_blog where blog_id='$id' and status=1"); $res=mysqli_fetch_array($fetch); } } $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 FAQ</h1> <ol class="breadcrumb mb-4"> <li class="breadcrumb-item"><a href="index.php">Dashboard</a></li> <li class="breadcrumb-item active">FAQ</li> </ol> <?php if(isset($_GET['success'])=='success') { ?> <div class="alert alert-success alert-dismissible"> <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a> <p>Successfully Added FAQ..!</p> </div> <?php } ?> <div class="card mb-6"> <div class="card-header"><i class="fas fa-table mr-1"></i>Add FAQ <a href="manage_blog.php" class="btn btn-warning" style="float: right;"><i class="fa fa-table"></i> FAQ List</a></div> <div class="card-body"> <form action="controller.php" method="post" enctype="multipart/form-data"> <input type="hidden" name="update_id" value="<?=$res['blog_id'];?>"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label for="exampleInputEmail1">FAQ Title<span style="color: red;">*</span></label> <input type="text" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="FAQ Title" required="" value="<?=@$res['title'];?>" name="blog_title"> </div> </div> </div> <div class="form-group"> <label for="exampleInputEmail1">Description</label> <textarea class="form-control" name="description" rows="10" data-sample-short="" aria-hidden="true"><?=@$res['description'];?></textarea> </div> <?php if(isset($_GET['id'])) { ?> <button type="submit" class="btn btn-primary" name="btn_update_blog">Update</button> <?php } else { ?> <button type="submit" class="btn btn-primary" name="btn_add_blog">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>