<div class="page-header">
	<h2> Tipos de Plazo requeridos para pago</h2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<small>mantenimiento de registros</small></h2>
</div>

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

<br />
<table class="table table-bordered table-hover table-condensed" id='dt_plazo_pago'>
	<thead>
		<tr>
			<th>Clave</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/plazo_pago/edit/'.$registro->pk_cat_plazo_pago,$registro->pk_cat_plazo_pago); ?></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_plazo_pago",false,false,true);
    });
</script>