Exemplo n.º 1
0
        <title>View</title>
        <!-- Latest compiled and minified CSS -->
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
        <!-- Optional theme -->
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
    </head>
    <body>
        
        <?php 
$util = new Util();
if ($util->isPostRequest()) {
    $folder = './pic_upload/';
    $delete_file = filter_input(INPUT_POST, 'delete_file');
    try {
        $filename = new Delete_file();
        $filename->f_Delete($delete_file);
    } catch (RuntimeException $e) {
    }
}
//DirSep
$folder = './pic_upload/';
$directory = scandir('./pic_upload/');
//var_dump($directory);
?>
 
         
        <table class="table "><thead><td>File Name </td> <td> File Size </td><td> File Type </td><td> Delete </td> </thead>
        <?php 
foreach ($directory as $file) {
    ?>