Current File : /home/users/barii/public_html/finansenl.com.pl/wodki/application/views/account/message.php |
<script>
$(window).ready( function() {
$('.delete_link').click( function() {
var c = confirm("Czy na pewno chcesz usunać?");
if( c ) {
location.href = $(this).attr('href');
}
return false;
});
});
</script>
<?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="wrapper">
<?php echo aurora::partial('frontend_sider'); ?>
<div id="content">
<h2>Zarządzanie <span>profilem</span></h2>
<?php echo aurora::partial('frontend_account_info'); ?>
<p>Witaj w strefie dostępnej dla użytkowników systemu.<br/>Zapraszamy do korzystania z dostępnych opcji.</p>
<br style="clear: both;"/><br style="clear: both;"/>
<a class="button_gray <?php if( Request::current()->controller() == 'Account' AND Request::current()->action() == 'message' AND Request::current()->param('act') == '' ) echo 'button_gray_active'; ?>" href="Account/message">Twoje reklamacje</a></li>
<a class="button_gray <?php if( Request::current()->controller() == 'Account' AND Request::current()->action() == 'message' AND !empty($_GET['action']) AND $_GET['action'] == 'edit') echo 'button_gray_active'; ?>" href="Account/message?action=edit">Utwórz reklamację</a></li>
<br style="clear: both;"/><br style="clear: both;"/><br style="clear: both;"/>
<h3>Sortowanie</h3><br style="clear: both;"/>
<form action="" method="get">
<fieldset>
<label for="f1"></label>
<select name="sort" onchange="this.form.submit();">
<option value="date" <?php if( !empty( $sort ) AND $sort == 'id') echo 'SELECTED="SELECTED"'; ?>>Sortuj wg ID</option>
<option value="date" <?php if( !empty( $sort ) AND $sort == 'date') echo 'SELECTED="SELECTED"'; ?>>Sortuj wg Daty</option>
</select>
<input type="submit" style="display: none;" value="Sortuj"/>
</fieldset>
</form>
<br style="clear: both;"/><br style="clear: both;"/>
<h3>Reklamacje <span>użytkownika</span></h3>
<table class="dataTable" id="listing">
<thead>
<tr>
<th width="20">ID</th>
<th width="80">Data</th>
<th width="600">Treść</th>
<th width="80">Nadawca</th>
<th>Akcja</th>
</tr>
</thead>
<tbody>
<?php $i=0; foreach( $user_messages as $row ) : $i++; ?>
<tr class="<?php echo $i%2==0 ? 'even' : ''; ?>">
<td><?php echo $row->id; ?></td>
<td><?php echo $row->date; ?></td>
<td><?php echo $row->content; ?></td>
<td><?php echo $row->sender->username; ?></td>
<td>
<a href="Account/message?action=edit&id=<?php echo $row->id; ?>"><img src="html/images/action_edit.gif" alt="Edytuj" title="Edytuj"/></a>
<a class="delete_link" href="Account/message?action=delete&id=<?php echo $row->id; ?>"><img src="html/images/action_delete.gif" alt="Usuń" title="Usuń"/></a>
</td>
</tr>
<?php endforeach; ?>
</table>
</div>
</div>
</div>