include 'nav.php';
?>

    <div class="container">
    <h1>Documents</h1>

    <table class="table table-hover">
    <theader>
      <tr>
        <th width="5%"></th>
        <th width="95%">Téléchargements</th>
      </tr>
    </theader>
    <tbody>
      <?php 
echo makeRows(scandir('documents'));
?>
    </tbody>
    </table>

      <hr>

      <footer>
        <p>&copy; S<sup>t</sup> Joseph 2014</p>
      </footer>
    </div> <!-- /container -->


    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
function displayRows($in_array, $cols)
{
    $cell_array = makeCells($in_array);
    $table_rows = makeRows($cell_array, $cols);
    print $table_rows;
}
?>

    <div class="container">
    <h1>Documents</h1>

    <table class="table table-hover">
    <theader>
      <tr>
        <th width="5%"></th>
        <th width="95%">Téléchargements</th>
      </tr>
    </theader>
    <tbody>
      <?php 
echo makeRows(scandir('documents'));
echo makeRows('documents-loups');
?>
    </tbody>
    </table>
      <hr>

      <footer>
        <p>&copy; S<sup>t</sup> Joseph 2014</p>
      </footer>
    </div> <!-- /container -->


    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>