documentlist.php 743 B

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