<?php
$tipo="select * from cargo";
$resultado2=mysql_query($tipo);
$tipo1="select * from departamento";
$resultado3=mysql_query($tipo1);
?>
<form id=frmDatos action="validar.php" method="post" onSubmit="return ValidaMiForm()">
<table cellSpacing=0 cellPadding=0 BORDER=0 ALIGN=CENTER width=60%>
<tr>
<td colspan=3 valign=top align=center>
<h3><strong>ACCESO AL SISTEMA</strong></h3>
<br>
</td>
<tr align="left" valign="center">
<TD ><img src="modulo.png" width="55" height="40" border="0"> </TD>
<td align=left width=80 ><b>Modulo:</b> </td>
<td width="100" align=left >
<select name="cargo" >
<option value="">--Seleccione--</option>
<?php while($filas=mysql_fetch_array($resultado2)){?>
<option value="<?php echo $filas['id_cargo']?>"><?php echo $filas['cargo']
?>
</option>
<?php
}
?>
</select>
</td>
</tr>
<tr align="left" valign="center">
<TD ><img src="sede.png" width="55" height="40" border="0"> </TD>
<td align=left width=80 ><b>Sede:</b>
</td>
<td width="100" align=left >
<select name="depa" >
<option value="">--Seleccione--</option>
<?php while($filas=mysql_fetch_array($resultado3)){?>
<option value="<?php echo $filas['id_dep']?>"><?php echo $filas['departamento']
?>
</option>
<?php
}
?>
</select>
</td>
</tr>
<tr align="left" valign="center">
<TD ><img src="usu.png" width="55" height="60" border="0"> </TD>
<td align=left width=80 >
<br>
<b>Usuario:</b>
</td>
<td width="100" align=left >
<input class="cajatextode" name="usuario" size=27 type="text"/>
</td>
</tr>
<tr>
<TD ><img src="candado.png" width="55" height="60" border="0"> </TD>
<td align=left width=80>
<br>
<b>Paswoord:</b>
</td>
<td align=left >
<input class="cajatextode" name="clave" size=27 type="password" />
</td>
</tr>
<tr>
<td width="100" > </td>
<td colspan=2 align=center >
<input class="usuario" type="submit" value="Ingresar" />
</td>
</tr>
</table>
</form>