<?php 
	require_once("../include/ContenidoMod.php");
	$obj_mod=new ContenidoMod();
	$val=$obj_mod->listarContenido();
?>
<style>
	.fila_0{background-color:#E2E2F3;}
	.fila_1{background-color:#FFFFFF;}
</style>
<?php 
	for($i=0;$i<count($val);$i++){
?>
<div style="float:left;" class="fila_<?php echo($i%2); ?>">
    <span class="niveli" style="color:#2946AD"><?php echo($val[$i]->getPrograma()); ?></span>
    <span class="fcta"></span>
    <span class="niveli"><?php echo($val[$i]->getUso()); ?></span>
    <span class="fcta"></span>
    <span class="niveli" <?php if($val[$i]->getDivision()=='Filas'){ ?>style="color:#B4600C;" <?php } else{ ?> style="color:#EF1CB3;" <?php }?>>
	<?php echo($val[$i]->getDivision()); ?></span>
    <span class="fcta"></span>
    <span class="niveli"><?php echo($val[$i]->getGrupo()); ?></span>
    <span class="fcta"></span>
    <span class="niveli"><?php echo(utf8_encode($val[$i]->getFila())); ?></span>
    <?php if($val[$i]->getContenido()!=NULL){ ?>
    <span class="fcta"></span>
     <?php }?>
    <span class="niveli hint--top hint--small" data-hint="<?php echo($val[$i]->getCod1()." ".$val[$i]->getContenido()); ?>">
    	<span class="ultidet">
		<?php echo($val[$i]->getCod1()); ?>  <?php echo(utf8_encode(substr($val[$i]->getContenido(),0,18))); ?>
    	</span>
    </span>
</div><br>
<?php 
	}
	//substr($cadena, 0, 4);
?>
