<? 
include("conexion/class-sb-conexion.php");
?>  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin t&iacute;tulo</title>
</head>
<body>
<form action="seguridad/verificar_usuario.php"  method="post">
<table align="center" >
<tr><td  height="150"></td></tr>
<tr><td>
<fieldset >
<table s border="0" align="center" cellpadding="4" cellspacing="0">
  <tr>
    <th scope="row" align="right">Usuario</th>
    <td>&nbsp;<input name="user" type="text" size="10"  /></td>
  </tr>
  <tr>
    <th scope="row" align="right">Clave</th>
    <td>&nbsp;<input name="passw" type="password" size="11" /></td>
  </tr>
  <tr>
    <th scope="row" align="right">Empresa</th>
    <td>&nbsp;<select name="cod_empresa" >
    <?
	$db = new sb_mysql();   
	$consulta = $db->consulta_free("SELECT * FROM sb_empresas_lista");   
  	if($db->num_rows($consulta)>0){   
  	while($resultados = $db->sb_array($consulta)){   
  		//echo "ID: ".$resultados['id']."<br />";
		?><option value="<?=$resultados['Codigo_Empresa']?>" ><?=$resultados['Nombre_Empresa']?> </option><?   
  		}   
	}  
	 ?>
     </select>
    </td>
  </tr>
</table>
</fieldset>
</td></tr><tr><td align="center"><input name="enviar" value="INGRESAR" type="submit"  /></td></tr></table>
</form>
</body>
</html>
