<script type="text/javascript">
	$(document).ready(function(){
	    $(".detalhes").colorbox({iframe:true, width:"38%", height:"58%"});
	});
</script>

<?php 
	if($_SESSION['nivel'] == 1){
?>
	<table border="0" cellspacing="10" class="tabela-conteudo">
		<tbody>
			<tr class="linha-topo">
				<th>ID</th>
				<th>Nome</th>
				<th>Ver</th>
				<th>Editar</th>
				<th>Deletar</th>
			</tr>
			<?php
				$selectBusca = mysql_query("SELECT * FROM usuarios WHERE statusUser = 1 AND nivelUser = 3");
				$aux = 1;
				while ($linhaBusca = mysql_fetch_array($selectBusca)) {
				?>
				<tr <?php if($aux % 2 == 0){ echo"bgcolor='f2eaea'"; }else{ echo"bgcolor='edeaea'"; } ?>>
					<td class="idTabelaExibir"><?php echo($linhaBusca['id']); ?></td>
					<td class="nomeTabelaExibir"><? echo utf8_encode($linhaBusca['nomeUser']);?></td>
					<td class="icons-categorias"><a href='paineis/crm-departamentos/detalhes-user.php?id=<? echo $linhaBusca['id'];?>' class="detalhes"><img src="images/lupa2.png" width="20px" height="20px" alt="" border='0'></a></td>
					<td class="icons-categorias"><a href='miolo.php?miolo=usuarios&acao=alterar&id=<? echo $linhaBusca['id'];?>'><img src="images/editar.png" width="20px" height="20px" alt="" border='0'></a></td>
					<td class="icons-categorias"><a href='miolo.php?miolo=usuarios&acao=excluir&id=<? echo $linhaBusca['id'];?>'><img src="images/lixo.png" width="20px" height="20px" alt="" border='0'></a></td>
				</tr>
				<?
				}
				$aux += 1;
			?>	
		</tbody>
	</table>
<?php 
}
?>