<?php //print_r($upSector->getSectores );
$sectores = $upSector->getSectores; 
 ?>
 <h3>SECTORES</h3> 
 <h4> Crear sector </h4>
<form id="upsectores" name="upsectores" action="index.php?option=com_prod&task=upSector" method="post">
<p>  
	<input type="text" name="nombre" value="" placeholder="nombre">
	<input type="text" name="nombre_eus" value="" placeholder="nombre_eus">
	<input type="hidden" name="createSector" value="createSector">
	<input style="width:80px" type="submit" name="submit" value="Crear">
	</p>
</form>
<hr>
<?php
foreach($sectores as $s){?>
	<div class="upSector">
	<form style="float:left" id="upsectores" name="upsectores" action="index.php?option=com_prod&task=upSector" method="post">
	  <span class="idsector"> <?php echo $s->id;?> </span>
	<input type="hidden" name="idsector" value="<?php echo $s->id;?>">
	<input type="text" name="nombre" value="<?php echo $s->nombre;?>">
	<input type="text" name="nombre_eus" value="<?php echo $s->nombre_eus;?>">
	<input type="hidden" name="hiddenupsector" value="hiddenupsector">
	<input style="width:80px" type="submit" name="submit" value="Actualizar">
 
	</form>
		<form id="delsector" name="delsector" action="index.php?option=com_prod&task=upSector" method="post">
		<input type="hidden" name="idsector" value="<?php echo $s->id;?>">
			<input type="hidden" name="deleteSector" value="deleteSector">
				<input title="NO SE PODRÁ RECUPERAR"style="width:70px;background:#ff0000;color:#fff;margin-left:10px;" type="submit" name="submit" value="Borrar">
		</form>
	</div>
<?php }
?>