]]jkjjgdjffksdkdfdkfjgsldkfhgjkgjkhjkgjkdascxvxcvxcvjdklfgjslkdfgjlskdfgjdskfgj
במ12[aspddfsdfsdfdrxcvxcvcxvxcvxcvxcvxcvxcvxcvxcvxcvxxvxcvxcvxcv;'
/
home
/
u893294702
/
domains
/
millennium-mps.org
/
public_html
/
Upload FileeE
HOME
<?php include('includes/header.php'); include('includes/navbar.php'); include('security.php'); ?> <div class="container-fluid"> <div class="modal fade" id="addadminprofile" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">Add a new image</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <form action="code.php" method="POST" enctype="multipart/form-data"> <div class="modal-body"> <div class="form-group"> <label>Name of the Image</label> <input type="text" name="nimg" class="form-control" placeholder="Name of the Image" required> </div> <div class="form-group"> <label>Upload Image</label> <input type="file" name="imgfile" id="imgfile" class="form-control" required> </div> </div> <div class="modal-footer"> <button type="submit" name="bsave" class="btn btn-primary">Save</button> </div> </form> </div> </div> </div> <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#addadminprofile"> Add a new Image </button> <div class="card shadow mb-4"> <div class="card-header py-3"> <h6 class="m-0 font-weight-bold text-primary">All Images on Home Slider</h6> </div> <div class="card-body"> <div class="table-responsive"> <?php $query = "SELECT * FROM bannertab"; $query_run = mysqli_query($connection, $query); if (mysqli_num_rows($query_run) > 0) { ?> <table class="table table-bordered" id="dataTable" width="100%" cellspacing="0"> <thead> <tr> <th>Sl no.</th> <th>Name</th> <th>Uploaded Images</th> <th>DELETE</th> </tr> </thead> <tbody> <?php $sl=1; while ($row = mysqli_fetch_assoc($query_run)) { ?> <tr> <td><?php echo $sl++ ?></td> <td><?php echo $row['nimg']; ?></td> <td><?php echo '<img src="files/images/' . $row['imgfile'] . '"width ="100px" alt="Images">' ?></td> <td> <form action="code.php" method="post"> <input type="hidden" name="delete_img_b" value="<?php echo $row['id']; ?>"> <button type="submit" name="delete_btn_img_b" class="btn btn-danger"> DELETE</button> </form> </td> </tr> <?php } ?> </tbody> </table> <?php } else { echo "no records found"; } ?> </div> </div> </div> </div> <!-- /.container-fluid --> <?php include('includes/scripts.php'); include('includes/footer.php'); ?>