Backup #18

ID18
Dateipfad/var/www/dev.campus.systemische-tools.de/src/View/semantic-explorer/chunks/index.php
Version1
Typ modified
Größe2.8 KB
Hash654ea8dd6b7785ddf6502f7c2e071d1f8033a35c3c84cd974b66c1b01dd7fe31
Datum2025-12-20 16:45:29
Geändert vonclaude-code-hook
GrundClaude Code Pre-Hook Backup vor Write-Operation
Datei existiert Ja

Dateiinhalt

<?php ob_start(); ?>

<nav class="breadcrumb">
    <a href="/">Home</a> &raquo; <a href="/explorer">Explorer</a> &raquo; <a href="/semantic-explorer">Semantic Explorer</a> &raquo; Chunks
</nav>

<h1>Chunks</h1>
<p>Semantische Textabschnitte aus Dokumenten. Gesamt: <?= number_format($totalCount) ?> Chunks.</p>

<form method="get" class="filter-form">
    <input type="text" name="search" value="<?= htmlspecialchars($currentSearch) ?>" placeholder="Im Inhalt suchen...">
    <select name="embedded">
        <option value="">Alle</option>
        <option value="yes" <?= $currentEmbedded === 'yes' ? 'selected' : '' ?>>Mit Embedding</option>
        <option value="no" <?= $currentEmbedded === 'no' ? 'selected' : '' ?>>Ohne Embedding</option>
    </select>
    <button type="submit" class="btn btn--primary">Filtern</button>
    <?php if ($currentSearch || $currentEmbedded): ?>
    <a href="/semantic-explorer/chunks" class="btn">Reset</a>
    <?php endif; ?>
</form>

<table data-sortable>
    <thead>
        <tr>
            <th data-sort="id">ID</th>
            <th data-sort="filename">Dokument</th>
            <th data-sort="chunk_index">Index</th>
            <th data-sort="token_count">Tokens</th>
            <th data-sort="qdrant_id">Status</th>
            <th data-sort="content">Inhalt</th>
        </tr>
    </thead>
    <tbody>
        <?php foreach ($chunks as $c): ?>
        <tr>
            <td><a href="/semantic-explorer/chunks/<?= $c['id'] ?>">#<?= $c['id'] ?></a></td>
            <td><a href="/semantic-explorer/dokumente/<?= $c['document_id'] ?>"><?= htmlspecialchars($c['filename']) ?></a></td>
            <td><?= $c['chunk_index'] ?></td>
            <td><?= $c['token_count'] ?></td>
            <td>
                <?php if ($c['qdrant_id']): ?>
                <span class="badge badge--success">synced</span>
                <?php else: ?>
                <span class="badge">pending</span>
                <?php endif; ?>
            </td>
            <td><?= htmlspecialchars(substr($c['content'], 0, 80)) ?>...</td>
        </tr>
        <?php endforeach; ?>
    </tbody>
</table>

<?php if ($totalPages > 1): ?>
<div class="pagination">
    <?php if ($currentPage > 1): ?>
    <a href="?page=<?= $currentPage - 1 ?>&search=<?= urlencode($currentSearch) ?>&embedded=<?= urlencode($currentEmbedded) ?>" class="btn btn--small">&laquo; Zurueck</a>
    <?php endif; ?>

    <span>Seite <?= $currentPage ?> von <?= $totalPages ?></span>

    <?php if ($currentPage < $totalPages): ?>
    <a href="?page=<?= $currentPage + 1 ?>&search=<?= urlencode($currentSearch) ?>&embedded=<?= urlencode($currentEmbedded) ?>" class="btn btn--small">Weiter &raquo;</a>
    <?php endif; ?>
</div>
<?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

Herunterladen

Andere Versionen dieser Datei

ID Version Typ Größe Datum
1626 2 modified 2.5 KB 2025-12-27 09:44
18 1 modified 2.8 KB 2025-12-20 16:45

← Zurück zur Übersicht