D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
shubmkcj
/
designpitara.com
/
admin
/
testimonials
/
Filename :
update-testimonials.php
back
Copy
<?php include("../include/config.php"); include("../include/sessionhandle.php"); include("../include/header.php"); $e_id = $_GET['id']; $sqlAssign1 = "SELECT * FROM `testimonials` WHERE `testimonials`.`id` ='$e_id';"; $resultAssign1 = mysqli_query($conn, $sqlAssign1); if (mysqli_num_rows($resultAssign1) > 0) { while($rows = mysqli_fetch_assoc($resultAssign1)) { $testi_id = $rows['id']; $testi_name = $rows['name']; $testi_photo = $rows['photo']; $testi_comment = $rows['feedback']; $testi_status = $rows['status']; } } ?> <style> #testimonials ul li:nth-child(1){ background-color: #eb6a4e; } #testimonials ul li:nth-child(1) a{ color: #fff; } #testimonials ul li:nth-child(1) a:hover{ background-color: #eb6a4e; } </style> <script> window.onload = function() { document.getElementById('testimonials').classList.add("active"); document.getElementById('testimonials1').classList.add("in"); }; </script> <div class="small-header"> <div class="hpanel"> <div class="panel-body"> <div id="hbreadcrumb" class="pull-right"> <ol class="hbreadcrumb breadcrumb"> <li><a href="<?php echo $admin_baseurl . 'dashboard.php';?>">Dashboard</a></li> <li class="active"> <span>Testimonials</span> </li> </ol> </div> <h2 class="font-light m-b-xs"> Update Testimonials </h2> </div> </div> </div> <div class="content"> <div class="hpanel"> <div class="hpanel"> <div class="panel-heading hbuilt"> <div class="panel-tools"> <a class="showhide"><i class="fa fa-chevron-up"></i></a> <a class="fullscreen"><i class="fa fa-expand"></i></a> </div> Update Testimonials </div> <div class="panel-body"> <form class="form-horizontal" action="execute.php" method="post" enctype="multipart/form-data"> <div class="form-group"> <div class="col-md-12"> <label class="control-label">Name</label> <input type="text" name="name" class="form-control" placeholder="Enter name" value="<?php echo $testi_name;?>" required> </div> <div class="col-md-5" style="display:none"> <label class="control-label">User Photo</label> <input class="form-control" type="file" id="file" name="Preview_photo" multiple="multiple" accept="image/*" /> </div> <div class="col-md-2" style="display:none"> <img src="<?php echo $admin_baseurl . 'testimonials/upload-files/'. $testi_photo ; ?>" style="width:110px; height:80px;"> </div> <div class="col-md-12"> <label class="control-label">Testimonials</label> <textarea class="form-control" rows="7" cols="50" name="comment" required><?php echo $testi_comment;?></textarea> </div> <div class="col-md-12"> <br> <div class=" text-right"> <input type="hidden" value="<?php echo $testi_id;?>" name="testi_id"> <input type="hidden" value="<?php echo $testi_photo;?>" name="testi_photo"> <button type="reset" class="btn btn-default">Cancel</button> <button type="submit" name="update_testimonials" class="btn btn-primary">Submit</button> </div> </div> </div> </form> </div> </div> </div> </div> <br> <?php include('../include/footer.php'); ?>