Codeigniter - Indonesia Community |
Salam Kenal Semuanya,
Kepada suhu2 minta tolong untuk script berikut ada yang salah letak bagian mana ya <!-- Table with stripped rows --> <div class="row"> <?php foreach ($galleries as $gallery) : ?> <div class="col-lg-4"> <div> <div class="card card-gallery"> <a href="<?= base_url('/assets/img/gallery/' . $gallery['image']) ?>" target="_blink"> <?php $getMimeTypeFile = mime_content_type('assets/img/gallery/' . $gallery['image']); $checkMimeTypeFile = strtok($getMimeTypeFile, '/'); ?> <?php if ($checkMimeTypeFile == 'application') : ?> <img src="<?= base_url('/assets/img/gallery/document.png') ?>" alt="ini gambar" class="center-cropped"> <?php elseif ($checkMimeTypeFile == 'video') : ?> <img src="<?= base_url('/assets/img/gallery/videos.jpg') ?>" alt="ini gambar" class="center-cropped"> <?php elseif ($checkMimeTypeFile == 'image') : ?> <img src="<?= base_url('/assets/img/gallery/' . $gallery['image']) ?>" alt="ini gambar" class="center-cropped"> <?php endif ?> </a> </div> <div class="text-center pb-5"> <a href="<?= base_url('/admin/gallery/' . $gallery['id'] . '/edit') ?>" class="btn btn-secondary d-block d-lg-inline my-1"><i class="bi bi-pencil-square"></i></a> <a href="#" data-href="<?= base_url('/admin/gallery/' . $gallery['id'] . '/delete') ?>" onclick="confirmToDelete(this)" class="btn btn-danger d-block d-lg-inline my-1"><i class="bi bi-trash"></i></a> </div> </div> </div> <?php endforeach ?> Maklum suhu masih newbie mohon bimbingannya ya |
Welcome Guest, Not a member yet? Register Sign In |