-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
65 lines (63 loc) · 2.42 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!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>Clínica Sorria</title>
</head>
<body>
<form action="valida_usuario.php" method="post" enctype="multipart/form-data" >
<table width="369" border="0" align="center" style="background-color:#e8eefa; margin-top:20%; border:groove; border:1px solid #C3D9FF; color: #000; font-family: Verdana, Geneva, sans-serif; font-size: 12px;">
<tr>
<td width="149" rowspan="2"><img src="img/keyboard.png" width="128" height="128" /></td>
<td height="102" colspan="2">
<table width="100%" border="0">
<tr>
<td align="right"><span>Usuário</span><br /></td>
<td><input name="ds_login" type="text" id="ds_login" size="20" /></td>
</tr>
<tr>
<td align="right">Senha</td>
<td><input name="ds_senha" type="password" id="ds_senha" size="20" /></td>
</tr> <tr> <td align="right">Empresa</td> <td> <!-- TODO - Tornar dinâmico.. --> <select name="empresa"> <option value="1">Santo Ângelo</option> <option value="2">Santiago</option> </select> </td> </tr>
</table></td>
</tr>
<tr>
<td colspan="2" align="right"><label>
<input type="submit" name="ok" id="ok" value="Entrar" />
</label></td>
</tr>
<?php
if (isset($_REQUEST['senha_errada']) && $_REQUEST['senha_errada'] == 1)
{
?>
<tr>
<td colspan="3" align="center"><br /><font style="color:#F00">Usuário ou Senha Incorretos!</font></td>
</tr>
<?php
}
?>
<?php
if (isset($_REQUEST['fora_periodo']) && $_REQUEST['fora_periodo'] == 1)
{
?>
<tr>
<td colspan="3" align="center"><br /><font style="color:#F00">Fora do período permitido para acesso!</font></td>
</tr>
<?php
}
?>
</table>
<br /><br /><br /><br />
<div style="font:Verdana, Geneva, sans-serif; font-size:12px" align="center">
<div>Desenvolvido para: Google Chrome 26 <img src="http://img.delta-search.com/site/images/delta/chrome_logo.png" width="32" height="32" align="middle" /></div><br />
<div>Testado com resoluções: 1280x800 e 1024x768</div>
<p><br />
</p>
<p><br />
</p>
<div>Implementado com: PHP 5.3.0 + MySql 5.1.36 + Apache 2.2.11</div>
<div>V 1.3.1</div>
</div>
</form>
</body>
</html>