Current File : /home/users/barii/public_html/finansenl.com.pl/wodki/application/views/admin/group.php |
<script type="text/javascript">
function remove(id) {
jConfirm('Czy na pewno chcesz usunać ?', 'Potwierdzenie', function(r) {
if( r == true ) {
$.ajax({
type:"GET",
url:"/admin/group/delete/"+id,
cache:false,
success:function(rsponse)
{
jAlert('Grupa została usunięta!', 'Podsumowanie', function() {
location.href = '/admin/group';
});
}
});
}
});
}
</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;?>
<div id="content">
<div class="main">
<div class="full_w">
<div class="h_title">Zarządzaj</div>
<h2>Grupy</h2>
<div class="entry">
<div class="sep"></div>
</div>
<table>
<thead>
<tr>
<th scope="col">Tytuł</th>
<th scope="col" >Zmień</th>
</tr>
</thead>
<tbody>
<?php $n=1; foreach( $groups as $group ) : $n++; ?>
<tr>
<td class="title" ><em><a href="/profile/group_post/<?php echo $group->user_id; ?>/<?php echo $group->id; ?>"><?php echo $group->title;?></a> </em> [<?php echo Model_User_Group::getCountUser($group->id); ?>] osób </td>
<td>
<a href="/admin/group/edit/<?php echo $group->id; ?>"><img src="./static/images/edit.png" alt=""/></a>
<a href="#" onclick="remove('<?php echo $group->id; ?>'); return false;" class="confirm_button"><img src="./static/images/medialni_402.jpg" alt=""/></a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div class="entry">
<a href="/admin/group/edit" class="button add">Dodaj</a>
</div>
</div>
</div>
</div>
</div>