]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_gallery where gallery_id='$id' and status='1'"); $res=mysqli_fetch_array($fetch); } } ?> <div id="layoutSidenav_content"> <main> <div class="container-fluid"> <?php if(isset($_GET['id'])) { ?> <h1 class="mt-4">Update Gallery</h1> <?php }else{ echo '<h1 class="mt-4">Add Gallery</h1>'; } ?> <ol class="breadcrumb mb-4"> <li class="breadcrumb-item"><a href="index.php">Dashboard</a></li> <li class="breadcrumb-item active">Gallery</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 Gallery..!</p> </div> <?php } ?> <div class="card mb-4"> <div class="card-header"><i class="fas fa-table mr-1"></i>Add Gallery <a href="manage_gallery.php" class="btn btn-warning" style="float: right;"><i class="fa fa-table"></i> Gallery 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 Blog.. </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['gallery_id'];?>"> <div class="row"> <!--<div class="col-md-6">--> <!-- <div class="form-group">--> <!-- <label for="exampleInputEmail1">Name<span style="color: red;">*</span></label>--> <!-- <input type="text" class="form-control" placeholder="Enter Name..!" value="<?=$res['name']?>" required="" --> <!-- name="name">--> <!-- </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/testimonials/<?=$res['image'];?>" style="width:30px;"> <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">Description</label> <textarea cols="30" id="editor1" name="description" rows="10" data-sample-short><?=$res['description']?></textarea> </div> --> </div> <?php if(isset($_GET['id'])) { ?> <button type="submit" class="btn btn-primary" name="btn_update_gallery">Update</button> <?php } else { ?> <button type="submit" class="btn btn-primary" name="btn_add_gallery">Submit</button> <?php } ?> </form> </div> </div> </div> </main> <?php include_once('footer.php'); ?>