<?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'); $predlosci = Predlozak::nalozi(0, 'FALSE'); //$predlosci = Predlozak::nalozi($_SESSION['racun_id'],'FALSE'); ?> <div class="span12"> <?php ?> <?php// echo output_message($message); ?> <table class="table" id="predlosci"> <thead> <tr> <th hidden>Pid</th> <th>Naziv Predloška</th> <th>Račun odobrenja</th> <th>Račun zaduženja</th> <th hidden>Iznos</th> <th hidden>Namjena</th> <th hidden>Opis</th> <th><input type="text" class="search-query span2" placeholder="Pretraži" id="search"></th> </tr> </thead> <tbody id="pretrazi"> <?php if ($predlosci) {
<?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'); //$predlosci = Predlozak::nalozi($_SESSION['racun_id']); $predlosci = Predlozak::nalozi(0, 'TRUE'); ?> <div class="span12"> <?php echo output_message($message); ?> <table class="table"> <thead> <tr> <th>Račun odobrenja</th> <th>Račun zaduženja</th> <th>Iznos</th> <th>Namjena</th> <th><input type="text" class="search-query span2" placeholder="Pretraži" id="search"></th> </tr> </thead> <tbody> <?php if ($predlosci) { foreach ($predlosci as $predlozak) { echo "<tr id={$predlozak->pid}><td><a href=create.php?id={$predlozak->pid}>{$predlozak->platitelj} {$predlozak->iban}</a></td>"; echo "<td>{$predlozak->iban_primatelja}</td>";