Current File : /home/karenpetzb/application/modules/backoffice/views/scripts/category/list.phtml
<div class="table-box">
<div class="col-md-12 text-center"><?php echo $this->render("alert.phtml"); ?></div>
<table class="display table" id="productTable" width="100%">
	<thead>
		<tr>
			<th class="col-md-4" colspan="11"><?php echo $this->titlePage; ?></th>
		</tr>
	</thead>
	<tbody>
		<?php foreach($this->listallcategories as $row)  { ?>
		<tr>
			<?php for ($level=0 ; $level<11; $level++) { 
				$hasStyle="";
				$hasClass="col-md-2";
			if (!((!isset($show['NOM'.$level]) || $show['NOM'.$level] != $row['NOM'.$level]) && $row['NOM'.$level] != null)) {
				$hasClass = "col-md-1";
			} ?>
			<td style="<?php echo $hasStyle; ?>" class="<?php echo $hasClass; ?>">
				<?php 
				if ((!isset($show['NOM'.$level]) || $show['NOM'.$level] != $row['NOM'.$level]) && $row['NOM'.$level] != null) {
				?>
				<div class="no-space ">
					<a href="<?php echo $this->baseUrl; ?>/backoffice/category/edit/id/<?php echo $row['ID'.$level]; ?>" <?php if ($row['isACTIVE'.$level] == false) { ?> style="color: red"<?php }?>>
						<?php echo $row['NOM'.$level]; ?>
					</a>
				</div>
				<div class="no-space text-right"> 
					<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/category/del/id/<?php echo $row['ID'.$level]; ?>" ><span class="glyphicon glyphicon-trash"></span></button>
					<?php $show['NOM'.$level] = $row['NOM'.$level]; } ?>
				</div>
			</td>
			<?php } ?>
		</tr>
		<?php } ?>
	</tbody>
</table>
</div>