Current File : /home/users/barii/public_html/finansenl.com.pl/wodki/application/views/infosite/bin/auction.php |
<script>
function remove(id) {
jConfirm('Czy na pewno chcesz usunać ?', 'Potwierdzenie', function(r) {
if( r == true ) {
$.ajax({
type:"GET",
url:"/account/auction/delete/"+id,
cache:false,
success:function(rsponse)
{
jAlert('Aukcja została usunięta!', 'Podsumowanie', function() {
location.href = '/auction';
});
}
});
}
});
}
</script>
<div id="page">
<div id="container">
<!-- 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="line" style="width: 98%"></div>
<div id="content">
<div class="main">
<img src="./static/images/medialni_600.jpg" class="ico_main" alt=""/><h1>Aukcje</h1>
<form action="/ogloszenia/szukaj" method="post">
<fieldset>
<input type="text" name="keyword" value="Poszukaj aukcji..." onclick="this.value=''"/>
<input type="submit" value="Znajdź" />
</fieldset>
</form>
<div class="main_content">
<?php if( !$no_result ) : ?>
<h2>Wszystkie aukcje</h2>
<?php $n=0; foreach( $articles as $article ) : $n++; ?>
<?php $title = "<strong>".$article->title."</strong>"; ?>
<table>
<tr <?php if( $article->highlight==1) echo "id='highlight'"; ?>>
<td class="title" width="520">
<?php if( Auth::instance()->logged_in() ) : ?>
<?php if( $article->user_id == $user->id ) : ?>
<a href="/account/auction/edit/<?php echo $article->id; ?>"><img src="./static/images/edit.png" alt=""/></a>
<a href="#" onclick="remove('<?php echo $article->id; ?>'); return false;" class="confirm_button"><img src="./static/images/medialni_402.jpg" alt=""/></a>
<?php endif; ?>
<?php endif; ?>
<a href="/auction/<?php echo $article->id; ?>" style="color: inherit;"><?php echo $title; ?></a>
<br clear="both"/>
<?php echo substr($article->description, 0, 120); ?>
</td>
<td width="200"><a href="/auction/<?php echo $article->id; ?>" class="button">Czytaj szczegóły »</a></td>
</tr>
</table>
<img src="./static/images/medialni_341.jpg" alt=""/>
<?php endforeach; ?>
<?php else: ?>
<p>Brak wyników wyszukiwania</p>
<?php endif; ?>
<a href="/account/auction/edit" class="add">Dodaj aukcję</a>
</div>
</div>
<?php echo aurora::partial('sider'); ?>
</div>
</div>
</div>