<table class="table table-hover table-condensed table-striped" cellspacing="0" cellpadding="0">
					<thead>
					<tr>
						<!--<th style="width:10%;"><?php echo lang('pcat_id'); ?></th>-->
						<th style="width:70%;"><?php echo lang('pcat_title'); ?></th>
						<th style="width:10%;"><?php echo lang('pcat_status'); ?></th>
						<?php //if ($this->User->check_access(array('Admin'))): ?>
						<th style="width:10%;" class="text-right"><?php echo lang('common_actions'); ?></th>
						<?php //endif; ?>
					</tr>

					</thead>
					<tbody>

					<?php

					function list_categories_tree($cats, $sub = '') {

					$CI = & get_instance();
					$statuses = $CI->config->item('product_category_statuses');

					foreach ($cats as $cat):
					?>
			<li>
				<?php echo $sub; ?>
				<?php if (sizeof($cat['children'])==0): ?>
					<input type="checkbox" name="categories[]" value="<?php echo $cat['category']->pcat_id;?>" />
					<?php echo $cat['category']->pcat_title; ?>
				<?php else: ?>
					<label  class="tree-toggle nav-header" label-default=""><?php echo $cat['category']->pcat_title; ?></label>
				<?php endif; ?>


				<?php
				//$CI = & get_instance();
				?>
				<?php //endif;   ?>
				<?php if (sizeof($cat['children']) > 0) : ?>
				<ul class="nav tree">
					<?php endif; ?>
					<?php
					if (sizeof($cat['children']) > 0) {
						$sub2 = str_replace('&nbsp;&nbsp;', '&nbsp;&nbsp;', $sub);
						$sub2 .= '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
						list_categories_tree($cat['children'], $sub2);
					}
					?>
					<?php if (sizeof($cat['children']) > 0) : ?>
				</ul>
			<?php endif; ?>
			</li>
			<?php
			endforeach;
			}

			list_categories_tree($categories,'');
			?>

			</tbody>
				</table>