]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_network where network_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 Network</h1> <ol class="breadcrumb mb-4"> <li class="breadcrumb-item"><a href="index.php">Dashboard</a></li> <li class="breadcrumb-item active">Network</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 Blog..!</p> </div> <?php } ?> <div class="card mb-6"> <div class="card-header"><i class="fas fa-table mr-1"></i>Add Network <a href="manage_network.php" class="btn btn-warning" style="float: right;"><i class="fa fa-table"></i> Network 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['network_id'];?>"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label for="exampleInputEmail1">Network Title<span style="color: red;">*</span></label> <input type="text" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Network Title" required="" value="<?=@$res['title'];?>" name="blog_title"> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="exampleInputEmail1">Category<span style="color: red;">*</span></label> <select class="form-select form-control" required name="category"> <option value="">Select Category</option> <?php $get=mysqli_query($con,"select * from tbl_category where status='1' order by category_name asc"); while($ress=mysqli_fetch_array($get)){ ?> <option value="<?=$ress['category_id']?>" <?php if($ress['category_id']==$res['category']){ echo "selected"; }?>><?=$ress['category_name']?></option> <?php } ?> </select> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="exampleInputEmail1">Featured Image<span style="color: red;">*</span></label> <?php if(isset($_GET['id'])) { ?> <img src="uploads/blog/<?=$res['image'];?>" style="width:80px;"> <input type="hidden" name="old_product_img" value="<?=$res['image'];?>"> <?php } ?> <input type="file" class="form-control" name="featured_image"> </div> </div> <div class="form-group"> <label for="exampleInputEmail1">Short Description</label> <textarea cols="30" id="editor2" name="short" rows="10" data-sample-short><?=@$res['short'];?></textarea> </div> <div class="form-group"> <label for="exampleInputEmail1">Description</label> <textarea cols="30" id="editor1" name="description" rows="10" data-sample-short><?=@$res['description'];?></textarea> </div> </div> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label for="exampleInputEmail1">SEO Title</label> <input type="text" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="SEO Title" value="<?=@$res['seo_title'];?>" name="seo_title"> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="exampleInputEmail1">SEO Description</label> <input type="text" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="SEO Description" value="<?=@$res['seo_description'];?>" name="seo_description"> </div> </div> </div> <?php if(isset($_GET['id'])) { ?> <button type="submit" class="btn btn-primary" name="btn_update_network">Update</button> <?php } else { ?> <button type="submit" class="btn btn-primary" name="btn_add_network">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>