ACC SHELL
<div class="content-box" id="Item184">
<!-- nadpis panelu start -->
<div class="content-box-header">
<h3 style="cursor: s-resize;">Náhled</h3>
</div>
<!-- nadpis panelu end -->
<!-- obsah panelu start -->
<div class="content-box-content" <?php echo $close; ?>>
<br />
<form method="post" action="" name="form184" id="form184" class="hromada">
<table width="100%" class="stripe sample">
<thead>
<tr>
<th width="20px"><!--<input class="checkall" type="checkbox">--></th>
<th>Náhled obrázku</th>
<th>Titulek</th>
<th>Priorita</th>
<th>Akce</th>
</tr>
</thead>
<tbody>
<?php
/*
DibiRow(8) {
"id" => "2"
"nazev" => "index" (5)
"umisteni" => "Úvodní strana" (15)
"typ" => "Obrázková slideshow" (21)
"typ_id" => "1"
"obsah" => "Zx015Qp1015555.jpg;;}" (21)
"stav" => "1"
"id_zvolene_kat" => "1"
}
*/
$reklama = $Reklama->fetchDetail($_GET['id']);
// Pokud existuji slides
//if (isset($main_id)) {
foreach ($reklama as $r) {
//NDebugger::dump($r); //exit;
echo '<tr>';
//echo '<td><input type="checkbox" name="checkbox[]" value="' . $r->id . '" id="" ></td>';
echo '<td></td>';
echo '<td><a href="' . REKLAMA_CESTA . $r->nazev . ' "rel="galerie"><img style="width:100px; height:50px" src="' . REKLAMA_CESTA . $r->nazev . '" /></a></td>';
echo '<td>' . $r->title . '</td>';
/* Sloupec POZICE */
echo '<td>';
if (count($reklama) != 1) {
if ($r->priorita == 1) {
echo '<a href="?down=' . $r->id . '" title="Posun dolů"><img src="images/iko/down.png" alt="Posun dolů" /></a>';
} elseif ($r->priorita == (count($reklama))) {
echo '<a href="?up=' . $r->id . '" title="Posun nahoru"><img src="images/iko/up.png" alt="Posun nahoru" /></a>';
} else {
echo '<a href="?down=' . $r->id . '" title="Posun dolů"><img src="images/iko/down.png" alt="Posun dolů" /></a>';
echo '<a href="?up=' . $r->id . '" title="Posun nahoru"><img src="images/iko/up.png" alt="Posun nahoru" /></a>';
}
}
echo "</td>";
echo "<td>";
$id_reklamy = isset($_GET['id'])? $_GET['id']:false;
if ($id_reklamy) {
echo '<a href="reklama_banner_edit.php?id='.$id_reklamy.'&banner='. $r->id . '" title="Editovat">';
echo '<img src="images/iko/note_edit.png" alt="Editovat" />';
echo '</a>';
}
echo '<a href="?smazatobsah=' . $r->id . '" class="potvrzujiciLink" title="Smazat">';
echo '<img src="images/iko/remove.png" alt="Smazat" /></a>';
echo '</td>';
echo '</tr>';
}
//}
?>
</tbody>
</table><br /><br />
</form>
<div class="clear"></div>
</div>
</div>
ACC SHELL 2018