documentlist.php 655 B

123456789101112131415161718192021222324252627
  1. <?php
  2. // TODO: Make this MVC-style
  3. $documents = getDocumentsByLabelId(2); // TODO: get documents via labelID
  4. //print_r($documents);
  5. ?>
  6. <table class="table table-striped">
  7. <thead>
  8. <tr>
  9. <th>Name</th>
  10. <th>Vorlage</th>
  11. <th>Erstellt am</th>
  12. <th>Letzte Änderung</th>
  13. </tr>
  14. </thead>
  15. <?php
  16. foreach($documents as $document) {
  17. echo '<tr>';
  18. echo '<td>' . $document->getFileName() . '</td>';
  19. echo '<td>' . $document->getDraft() . '</td>';
  20. echo '<td>' . $document->getCreated() . '</td>';
  21. echo '<td>' . $document->getLastChange() . '</td>';
  22. echo '</tr>';
  23. }
  24. ?>
  25. </table>