<div class="page-header">
	<h2> Catálogo de Planta</h2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<small>mantenimiento de registros</small></h2>
</div>

<hr class="separator" />
<?= anchor('catalogos/cat_planta/create','Agregar',array('class' => 'btn btn-info')) ?>
<p></p>

<br />
<table class="table table-bordered table-hover table-condensed" id="dt_cat_planta">
	<thead>
		<tr>
			<th>Clave</th>
			<th>Código</th>
			<th>Nombre</th>
			<th>Status</th>
		</tr>
	</thead>

	<tbody>
		<?php foreach ($query as $registro): ?>
		<tr <?= ($registro->status == 'A') ? "class='table-success'" : "class='table-danger'" ?>>
			<td><?= anchor('catalogos/cat_planta/edit/'.$registro->pk_cat_planta,$registro->pk_cat_planta); ?></td>
			<td><?= $registro->codigo ?></td>
			<td><?= $registro->descripcion ?></td>
			<td><?= ($registro->status == 'A') ? 'ACTIVO' : 'INACTIVO' ?></td>
		</tr>
		<?php endforeach; ?>
	</tbody>
</table>
<script type="text/javascript">
	$(document).ready(function () {
        mostrarOpcionesTabla("dt_cat_planta",false,false,true);
    });
</script>