| 12345678910111213141516171819202122232425262728 |
- <?php
- // TODO: Make this MVC-style
- $documents = Document::getDocumentsByLabelId($this->_['labelId']);
- ?>
- <table class="table table-striped">
- <thead>
- <tr>
- <th>Typ</th>
- <th>Name</th>
- <th>Vorlage</th>
- <th>Erstellt am</th>
- <th>Letzte Änderung</th>
- </tr>
- </thead>
- <?php
- foreach($documents as $document) {
- echo '<tr>';
- echo '<td>' . $document->getType() . '</td>'; // TODO: Icon instead of text
- echo '<td>' . $document->getFileName() . '</td>';
- echo '<td>' . $document->getDraft() . '</td>';
- echo '<td>' . $document->getCreated() . '</td>';
- echo '<td>' . $document->getLastChange() . '</td>';
- echo '</tr>';
- }
- ?>
- </table>
- <a id="new-document" href="ajax.php?action=getNewDocumentBox" type="button" class="btn btn-success fancybox.ajax">Neues Dokument</a>
|