Current File : /home/users/barii/public_html/finansenl.com.pl/wodki/application/views/infosite/notice.php |
<script>
function remove(id) {
jConfirm('Czy na pewno chcesz usunać ?', 'Potwierdzenie', function(r) {
if( r == true ) {
$.ajax({
type:"GET",
url:"/account/notice/delete/"+id,
cache:false,
success:function(rsponse)
{
jAlert('Ogłoszenie zostało usunięte!', 'Podsumowanie', function() {
location.href = '/ogloszenia';
});
}
});
}
});
}
</script>
<div id="page">
<!-- start message-blue -->
<?php if (isset($message_ok)):?>
<div id="message-blue">
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="blue-left"><?php echo $message_ok; ?> </td>
<td class="blue-right"><a class="close-blue"><?php echo HTML::image('static/images/table/icon_close_blue.gif');?></a></td>
</tr>
</table>
</div>
<!-- end message-blue -->
<?php endif;?>
<!-- start message-red -->
<?php if (isset($message)):?>
<div id="message-red">
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="red-left">
<?php echo $message;?>
</td>
<td class="red-right"><a class="close-red"><?php echo HTML::image('static_back/images/table/icon_close_red.gif');?></a></td>
</tr>
</table>
</div>
<?php endif;?>
<?php echo Message::render(); ?>
<div class="box">
<div class="head"><h1>Ogłoszenia</h1></div>
<form action="/ogloszenia/szukaj" method="post">
<fieldset class="register">
<input style="width: 400px;" type="text" name="keyword" value="Poszukaj ogłoszenia..." onclick="this.value=''"/>
<input type="submit" value="Znajdź" />
</fieldset>
</form>
<h2>Wszystkie ogłoszenia</h2>
<div class="main_content">
<?php $n=0; foreach( $articles as $article ) : $n++; ?>
<?php $title = "<strong>".$article->title."</strong>"; ?>
<div class="table-row" <?php if( $article->highlight==1) echo "id='highlight'"; ?>>
<a href="/ogloszenia/<?php echo $article->id; ?>" style="color: inherit;"><?php echo $title; ?></a>
<br clear="both"/>
<?php echo substr($article->description, 0, 205); ?>
<br clear="both"/>
<a href="/ogloszenia/<?php echo $article->id; ?>" class="button">Czytaj szczegóły »</a>
</div>
<?php endforeach; ?>
<br clear="both"/><br clear="both"/>
<a href="/account/notice/edit" class="button">Dodaj ogłoszenie</a>
</div>
</div>
</div>
</div>
<?php echo aurora::partial('user_sider', $user); ?>