<?php include "HtmlClass.php";?>
<?php
    $head = new HtmlClass();
    echo $head->htmlHead();
?>
<?php
    $body = new HtmlClass();
    echo $body->htmlBody();
?>
                <?php
                function klasor_gor($path) {

                $dir = @opendir($path) or die("$path klasörü açılamıyor.");
                    echo "<div >
                         ";

                while ($file = readdir($dir))
                {
                if (is_dir($path."/".$file) AND ($file != "..") AND ($file != ".")) {

                    echo "
                        <div class='col-md-3'>
                        <table style='margin-top: 5%;' class='table table-bordered table-responsive table-striped'>
                            <tr>
                                <thead>
                                   <td><i class='glyphicon glyphicon-folder-open'></i> <a href=\"$path/$file\">$file</a><button type='button' class='btn btn-primary btn-xs pull-right'>Deploy</button></td>
                                </thead>
                              </tr>
                              </table>  
                           </div>";
                }

                }
                closedir($dir);
                }
                klasor_gor("/Users/ugurerken/Sites");
                ?>

<?php
$footer = new HtmlClass();
echo $footer->htmlFooter();
?>