]nbmbmbnmbnmbytutytyutyutyutyumbnmjhkhjkhjkhjkhjkhjknnnnnnnn
bnmbnmbnmnbbtyutyutyutyutyutyu,nm,nmmnmm,bbbbbn
/
home
/
aaharway
/
domains
/
awards.aaharways.com
/
public_html
/
adm
/
Upload FileeE
HOME
<?php error_reporting(0); include_once('header.php'); if(isset($_GET['edit_blog'])) { $edit_blog=base64_decode($_GET['edit_blog']); if(is_numeric($edit_blog)) { $fetch_blog=mysqli_query($con,"select * from tbl_about where about_id=$edit_blog and status=1"); $res_blog=mysqli_fetch_array($fetch_blog); } } ?> <div id="layoutSidenav_content"> <main> <div class="container-fluid"> <?php if(isset($_GET['edit_blog'])) { ?> <h1 class="mt-4">Edit About Us</h1> <?php } else { ?> <h1 class="mt-4">Add About Us</h1> <?php } ?> <ol class="breadcrumb mb-4"> <li class="breadcrumb-item"><a href="index.php">Dashboard</a></li> <li class="breadcrumb-item active">About Us</li> </ol> <div class="card mb-4"> <div class="card-header"><i class="fas fa-table mr-1"></i>Manage About Us <a href="manage_aboutus.php" class="btn btn-warning" style="float: right;"><i class="fa fa-table"></i> Manage About Us List</a></div> <div class="card-body"> <form action="controller.php" method="post" enctype="multipart/form-data"> <input type="hidden" name="about_id" value="<?=$res_blog['about_id'];?>"> <?php if(isset($_GET['succcess'])=='succcess') { ?> <div class="alert alert-success"> <strong>Success!</strong>Successfully Added Blog.. </div> <?php } if(isset($_GET['wrongadd_blog'])=='wrongadd_blog') { ?> <div class="alert alert-danger"> <strong>Warning!</strong>Something Went Wrong..! </div> <?php } ?> <div class="row"> <!-- <div class="col-md-3"> <div class="form-group"> <label>Title<span style="color: red;">*</span></label> <input type="text" class="form-control" placeholder="Title" value="<?=$res_blog['blog_name'];?>" required="" name="title"> </div> </div> --> <!-- <div class="col-md-3"> <div class="form-group"> <label for="exampleInputEmail1">Date</label> <input type="date" class="form-control" value="<?=$res_blog['date'];?>" id="datepicker" name="date"> </div> </div> --> <!-- <div class="col-md-3"> <div class="form-group"> <label for="exampleInputEmail1">Author </label> <input type="text" class="form-control" placeholder="Author" value="<?=$res_blog['author'];?>" name="author"> </div> </div> --> <!-- <div class="col-md-3"> <div class="form-group"> <label for="exampleInputEmail1">Image </label> <?php if(isset($_GET['edit_blog'])) { ?> <img style="width:80px;" src="uploads/<?=$res_blog['image'];?>"> <input type="hidden" name="old_image" value="<?=$res_blog['image'];?>"> <?php } ?> <input type="file" class="form-control" name="image"> </div> </div> --> <div class="form-group"> <label for="exampleInputEmail1">Description</label> <textarea cols="32" id="editor1" name="about_description" rows="10" data-sample-short><?=$res_blog['about_description'];?></textarea> </div> </div> <?php if(isset($_GET['edit_blog'])) { ?> <button type="submit" class="btn btn-primary" name="btn_update_about">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'); ?> <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css" /> <script src="http://code.jquery.com/jquery-1.8.2.js"></script> <script src="http://code.jquery.com/ui/1.9.1/jquery-ui.js"></script> <script type="text/javascript"> $(function() { var date = new Date(); var currentMonth = date.getMonth(); var currentDate = date.getDate(); var currentYear = date.getFullYear(); $('#datepicker').datepicker({ maxDate: new Date(currentYear, currentMonth, currentDate) }); }); </script>