Current File : /home/users/barii/public_html/finansenl.com.pl/wodki/application/views/admin/language.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/language/delete/"+id,
cache:false,
success:function(rsponse)
{
jAlert('Język został usunięty!', 'Podsumowanie', function() {
location.href = '/admin/language';
});
}
});
}
});
}
</script>
<div id="page">
<!-- start message-blue -->
<?php if (isset($message_ok)):?>
<div class="n_ok"><p><?php echo $message_ok;?></div>
<?php endif;?>
<!-- start message-red -->
<?php if (isset($message)):?>
<div class="n_error"><p><?php echo $message;?></div>
<?php endif;?>
<div id="content">
<div class="main">
<div class="full_w">
<div class="h_title">Zarządzaj</div>
<h2>Języki</h2>
<div class="entry">
<div class="sep"></div>
</div>
<table>
<thead>
<tr>
<th scope="col" width="400">Tytuł</th>
<th scope="col" style="width: 65px;">Zmień</th>
</tr>
</thead>
<tbody>
<?php $n=0; foreach( $language as $lang ) : $n++; ?>
<tr>
<td class="title"><a href="admin/word/<?php echo $lang->id; ?>" style="color: inherit;"><?php echo $lang->name; ?></a></td>
<td>
<a href="/admin/word/edit"><img src="./static/images/add.jpg" alt=""/></a>
<a href="/admin/language/edit/<?php echo $lang->id; ?>"><img src="./static/images/edit.png" alt=""/></a>
<a href="/admin/language/delete/<?php echo $lang->id;?>"><img src="./static/images/medialni_402.jpg" alt=""/></a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div class="entry">
<a href="/admin/language/edit" class="button add">Dodaj</a>
</div>
</div>
</div>
</div>