Current File : /home/users/barii/public_html/finansenl.com.pl/wodki/application/views/admin/language_word.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/word/delete/"+id,
cache:false,
success:function(rsponse)
{
jAlert('Wpis został usunięty!', 'Podsumowanie', function() {
location.href = '/admin/word/<?php echo $id; ?>';
});
}
});
}
});
}
</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>
<?php foreach( $language_definition as $lang ) : ?>
<table class="table-row">
<tr>
<td class="title" width="550"><a href="#" style="color: inherit;"><?php echo $lang->definition_key; ?></a></td>
<td>
<a href="/admin/word/edit/<?php echo $lang->id; ?>"><img src="./static/images/edit.png" alt=""/></a>
<a href="#" onclick="remove('<?php echo $lang->id; ?>'); return false;" class="confirm_button"><img src="./static/images/medialni_402.jpg" alt=""/></a>
</td>
</tr>
</table>
<?php endforeach; ?>
</div>
</div>
</div>
</div>