<table class="table table-striped table-bordered table-hover">
<?php
for($i = 1; $i <= $niveles; $i++)
{
?>
	<tr>
		<?php
		for($j = 1; $j <= $posiciones; $j++){
		?>
		<td></td>
		<?php
		}
		?>
	</tr>
<?php
}	
?>
</table>