Your IP : 216.73.216.91


Current Path : /var/www/html/nadineandmiabeauty/admin/
Upload File :
Current File : //var/www/html/nadineandmiabeauty/admin/viewwelcomeimages.php

<?php
ob_start();
require_once('header.php');
?>     
<style type="text/css">
    .fixed-img-thumbnail {
    height: 350px !important;
}
</style>
        <div class="content " id="main-cont">
            <div class="container-fluid">
    <div class="row">
        <div class="row">
            <?php
            $path = '../img/mid-page-2-images/';
            if ($handle = opendir($path)) {
                while (false !== ($entry = readdir($handle))) {
                if ($entry != "." && $entry != "..") {
                    $entry = $path.$entry;
            ?>
            <form method="post">
            <input type="hidden" name="imgremove" value="<?=$entry?>">    
            <div class="col-lg-3 col-md-4 col-xs-6 thumb">
                <input type="submit" name="remove" value="Remove">
                <a class="thumbnail" href="#" data-image-id="" data-toggle="modal" data-title="" data-image="<?=$entry?>" 
                   data-target="#image-gallery">
                    <img class="img-thumbnai fixed-img-thumbnail" src="<?=$entry?>" alt="Another alt text">
                </a>
            </div>
            </form>
            <?php 
            }
            }
            closedir($handle);
            }
            ?>
            
        </div>
        




<?php

require_once('footer.php');
if(isset($_POST['remove'])){
    //print_r($_POST);
    if(unlink($_POST['imgremove'])){
        //echo "File Deleted.";
        //echo "";
        header("Location:viewwelcomeimages.php");
    }
}
ob_flush();
?>