Backup #17
| ID | 17 |
| Dateipfad | /var/www/dev.campus.systemische-tools.de/src/View/semantic-explorer/dokumente/index.php |
| Version | 1 |
| Typ |
modified |
| Größe | 2.8 KB |
| Hash | c0fe4e8bcdd6a61e9802ab85249540a8f23a071d3f508fdc91a69f3243d01cb0 |
| Datum | 2025-12-20 16:45:29 |
| Geändert von | claude-code-hook |
| Grund | Claude Code Pre-Hook Backup vor Write-Operation |
| Datei existiert |
Ja
|
Dateiinhalt
<?php ob_start(); ?>
<nav class="breadcrumb">
<a href="/">Home</a> » <a href="/explorer">Explorer</a> » <a href="/semantic-explorer">Semantic Explorer</a> » Dokumente
</nav>
<h1>Dokumente</h1>
<p>PDFs, DOCX, PPTX aus Nextcloud.</p>
<form method="get" class="filter-form">
<input type="text" name="search" value="<?= htmlspecialchars($currentSearch) ?>" placeholder="Suchen...">
<select name="status">
<option value="">Alle Status</option>
<option value="done" <?= $currentStatus === 'done' ? 'selected' : '' ?>>Verarbeitet</option>
<option value="processing" <?= $currentStatus === 'processing' ? 'selected' : '' ?>>In Bearbeitung</option>
<option value="pending" <?= $currentStatus === 'pending' ? 'selected' : '' ?>>Ausstehend</option>
<option value="error" <?= $currentStatus === 'error' ? 'selected' : '' ?>>Fehler</option>
</select>
<button type="submit" class="btn btn--primary">Filtern</button>
<?php if ($currentSearch || $currentStatus): ?>
<a href="/semantic-explorer/dokumente" class="btn">Reset</a>
<?php endif; ?>
</form>
<?php if (!empty($documents)): ?>
<p><?= count($documents) ?> Dokument(e) gefunden.</p>
<table data-sortable>
<thead>
<tr>
<th data-sort="filename">Datei</th>
<th data-sort="folder_path">Pfad</th>
<th data-sort="mime_type">Typ</th>
<th data-sort="file_size">Groesse</th>
<th data-sort="status">Status</th>
<th data-sort="chunk_count">Chunks</th>
<th data-sort="token_count">Tokens</th>
</tr>
</thead>
<tbody>
<?php foreach ($documents as $doc): ?>
<tr>
<td><a href="/semantic-explorer/dokumente/<?= $doc['id'] ?>"><?= htmlspecialchars($doc['filename']) ?></a></td>
<td><code><?= htmlspecialchars($doc['folder_path'] ?? '') ?></code></td>
<td><code><?= htmlspecialchars($doc['mime_type'] ?? '-') ?></code></td>
<td><?= number_format($doc['file_size'] / 1024, 0) ?> KB</td>
<td>
<span class="badge badge--<?= $doc['status'] ?>"><?= $doc['status'] ?></span>
<?php if ($doc['error_message']): ?>
<br><small class="text-danger"><?= htmlspecialchars(substr($doc['error_message'], 0, 50)) ?></small>
<?php endif; ?>
</td>
<td><?= $doc['chunk_count'] ?></td>
<td><?= number_format($doc['token_count']) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php else: ?>
<p>Keine Dokumente gefunden.</p>
<?php endif; ?>
<p class="links-bar">
<a href="/semantic-explorer">Zurueck zum Explorer</a>
</p>
<?php $content = ob_get_clean(); ?>
<?php require VIEW_PATH . '/layout.php'; ?>
Vollständig herunterladen
Aktionen
Andere Versionen dieser Datei
| ID |
Version |
Typ |
Größe |
Datum |
| 1625 |
2 |
modified |
2.9 KB |
2025-12-27 09:44 |
| 17 |
1 |
modified |
2.8 KB |
2025-12-20 16:45 |
← Zurück zur Übersicht