<?php require_once '../../includes/initialize.php'; if (!$session->is_logged_in()) { redirect_to("login.php"); } include_layout_template('admin_header.php'); include_layout_template('sidebar.php'); $zbrojniNalozi = ZbrojniNalog::grouped(); ?> <div class="span12"> <?php echo output_message($message); ?> <table class="table"> <thead> <tr> <th>Naziv datoteke <a id="novaDatoteka" href="create.php"> +Nova datoteka</a></th> <th>Broj naloga unutar datoteke</th> <th>Ukupni iznos</th> <th></th> <th></th> <th></th> </tr> </thead> <tbody> <?php if ($zbrojniNalozi) { foreach ($zbrojniNalozi as $zbrojniNalog) { echo "<tr id={$zbrojniNalog->id}><td><a href=show.php?id={$zbrojniNalog->id}>{$zbrojniNalog->naziv}</a></td>"; echo "<td>{$zbrojniNalog->brojnaloga}</td>";