Current File : /home/users/barii/public_html/finansenl.com.pl/wodki/application/views/account/favorite.php |
<?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/images/table/icon_close_red.gif');?></a></td>
</tr>
</table>
</div>
<?php endif;?>
<?php echo Message::render(); ?>
<div class="container">
<?php echo aurora::partial('frontend_sider'); ?>
<div id="content">
<h2><?php echo __t('Zarządzanie <span>profilem</span>'); ?>
</h2>
<p><?php echo __t('Witaj w strefie dostępnej dla użytkowników systemu'); ?></p>
<br style="clear: both;"/><br style="clear: both;"/>
<a href="#" rel="account_favorite" class="button_gray"><?php echo __t('Ulubione'); ?></a>
<br style="clear: both;"/><br style="clear: both;"/>
<div class="account_favorite layer_module">
<h2><?php echo __t('Favorite <span>products</span>'); ?></h2>
<table class="dataTable" id="listing">
<thead>
<tr>
<th width="700"><?php echo __t('Produkt'); ?></th>
<th><?php echo __t('Akcja'); ?></th>
</tr>
</thead>
<tbody>
<?php $i=0; foreach( $favorities as $row ) : $i++; ?>
<tr class="<?php echo $i%2==0 ? 'even' : ''; ?>">
<td><a href="product/<?php echo cms::seoLink($row->item->title); ?>/<?php echo $row->item->id; ?>"><?php echo $row->item->title; ?></a></td>
<td>
<a href="product/<?php echo cms::seoLink($row->item->title); ?>/<?php echo $row->item->id; ?>"><?php echo __t('Zobacz ONLINE'); ?></a>
<a href="account/delete_favorite/<?php echo $row->id; ?>"><img src="html/images/action_delete.gif" alt="<?php echo __t('Usuń'); ?>" title="<?php echo __t('Usuń'); ?>"/></a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
<tfoot>
<tr><th></th></tr>
</tfoot>
</table>
</div>
</div>
</div>
</div>
<script>
$(window).ready( function() {
$('.button_gray').click( function() {
$('.button_gray').removeClass('button_gray_active');
$(this).addClass('button_gray_active');
var r = $(this).attr('rel');
if( r != "account_level_layer" ) {
$('.your_acc').hide();
} else {
$('.your_acc').show();
}
$('.layer_module').hide();
$('.'+r).show();
return false;
});
});
</script>