Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php foreach($portfolio_kategorie as $kategorie): ?>
- <table class="table table-hover mb-5 pb-5">
- <div class="row">
- <div class="col-md-6"><h4><?php echo $kategorie->tytul; ?></h4></div>
- </div>
- <thead>
- <th class="wd-10p">Lp.</th>
- <th class="wd-20p">Zdjęcie</th>
- <th class="wd-60p">Kategoria</th>
- </thead>
- <tbody>
- <?php
- $tytul_no_spaces = str_replace(" ", "_", $kategorie->tytul);
- $tytul_t = strtolower($tytul_no_spaces);
- $i = 0;
- foreach($portfolio as $key) { if($tytul_t == $key->typ) {
- $kolejnosc_wyswietlania = $key->kolejnosc_wyswietlania;
- asort($kolejnosc_wyswietlania, $portfolio);
- ?>
- <tr>
- <td class="align-middle"><?php echo $key->kolejnosc_wyswietlania; ?></td>
- <td class="align-middle"><img src="<?php echo base_url(); ?>upload/<?php echo $key->zdjecie; ?>" style="max-height:200px;"></td>
- <td class="align-middle"><?php echo $key->typ; ?></td>
- <td class="align-middle">
- <a href="<?php echo base_url(); ?>panel_admin/portfolio/delete/<?php echo $key->id; ?>" style="cursor: pointer;" class="ad_button"> Usuń</a>
- </td>
- </tr>
- <?php } $i++; } ?>
- </tbody>
- </table>
- <?php endforeach; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement