Current File : /home/karenpetzb/application/modules/backoffice/views/scripts/blogcategory/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->listallblogcategories as $row)  { ?>
		<tr>
			<?php for ($level=0 ; $level<3; $level++) { 
				$hasStyle="";
				$hasClass="col-md-2";
			if (!((!isset($show['title'.$level]) || $show['title'.$level] != $row['title'.$level]) && $row['title'.$level] != null)) {
				$hasClass = "col-md-1";
			} ?>
			<td style="<?php echo $hasStyle; ?>" class="<?php echo $hasClass; ?>">
				<?php 
				if ((!isset($show['title'.$level]) || $show['title'.$level] != $row['title'.$level]) && $row['title'.$level] != null) {
				?>
				<div class="no-space text-left">
					<a href="<?php echo $this->baseUrl; ?>/backoffice/blogcategory/edit/id/<?php echo $row['id'.$level]; ?>" <?php if ($row['is_close'.$level] == 1 || $row['is_publish'.$level] == 0 ) { ?> style="color: red"<?php }?>>
						<?php echo $row['title'.$level]; ?>
					</a>
					<?php if ($row['id_parent'.$level] != 0) { ?>
					<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/blogcategory/del/id/<?php echo $row['id'.$level]; ?>" ><span class="glyphicon glyphicon-trash"></span></button>
					<?php } ?>
				<?php $show['title'.$level] = $row['title'.$level]; } ?>
				</div>
			</td>
			<?php } ?>
		</tr>
		<?php } ?>
	</tbody>
</table>
</div>