Current File : /home/users/barii/public_html/finansenl.com.pl/wodki/application/views/admin/advertisement.php |
<div id="page">
<!-- start message-blue -->
<?php if (isset($message_ok)):?>
<div class="n_ok"><p><?php echo $message_ok;?></div>
<?php endif;?>
<!-- start message-red -->
<?php if (isset($message)):?>
<div class="n_error"><p><?php echo $message;?></div>
<?php endif;?>
<div id="content">
<div class="main">
<div class="full_w">
<div class="h_title">Zarządzaj</div>
<h2>Reklama</h2>
<div class="entry">
<div class="sep"></div>
</div>
<table>
<thead>
<tr>
<th scope="col">Tytuł</th>
<th scope="col" style="width: 65px;">Zmień</th>
</tr>
</thead>
<tbody>
<?php foreach( $adverts as $advert ) : ?>
<tr>
<td class="title" ><?php echo $advert->title; ?> (<?php echo $advert->link; ?>) - <?php echo $advert->label; ?></td>
<td>
<?php if( $advert->status == 0 ) : ?><a href="/admin/advertisement/accept/<?php echo $advert->id; ?>"><img src="./static/images/accept.gif" alt="Akceptuj" title="Akceptuj"/></a><?php endif; ?>
<?php if( $advert->status == 1 ) : ?><a href="/admin/advertisement/ban/<?php echo $advert->id; ?>"><img src="./static/images/ban.png" alt="Wyłącz" title="Wyłącz"/></a><?php endif; ?>
<a href="/admin/advertisement/delete/<?php echo $advert->id; ?>"><img src="./static/images/medialni_402.jpg" alt="Usuń" title="Usuń"/></a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div class="entry"><a href="/admin/advertisement/edit" class="button add">Dodaj nową</a></div>
</div>
</div>
</div>
</div>