Beispiel #1
0
            <table border="1" cellpadding="3" style="border-collapse: collapse">
            <tr><th>URL</th><th></th></tr>
            <?php 
            if ($handle = opendir('cache/')) {
                while (false !== ($entry = readdir($handle))) {
                    if ($entry != "." && $entry != "..") {
                        print "<TR>";
                        print "<TD><a href='import.php?url=" . $entry . "'</a>" . $entry . "</TD>";
                        print "<TD><a href='import.php?url=" . $entry . "&step=1'>Importeren</a> - <a href='import.php?url=" . $entry . "&aktie=delete'>Verwijderen</a></TD>";
                        print "</TR>";
                    }
                }
                closedir($handle);
            }
            ?>
            </table>
            <h1>Nieuw bestand</h1>
            <form method="post" enctype="multipart/form-data" action="import.php">
            *.XLSX <input type="file" name="file"  /><br/><input type="submit" value="Toevoegen" />
            </form>
            <?php 
        }
    }
}
$importer = new Importer();
$importer->show();
?>
</div>
</div>
</body>
</html>