/** * HTML do layout do Login ao painel Adm. * * @param objeto $cliente */ public function Login($cliente) { ?> <HTML> <HEAD> <TITLE> Administração - <?php echo $cliente->getNome(); ?> </TITLE> </HEAD> <body bgcolor="#EFEFEF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <table width="778" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td width="1" bgcolor="#CCCCCC"><img src="img/regua1x1.gif" height="1"></td> <td valign="top"> <!--##################################################################################--> <table width="778" height="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="45"> <script src="script/admin.js" charset="utf-8" language="JavaScript"/></script> <link rel="stylesheet" href="css/admin.css" type="text/css"> <TABLE cellspacing="0" cellpadding="0" width="100%" border="0"> <TBODY> <TR> <TD width="180" height="70" align="center" style="PADDING-BOTTOM: 10px; PADDING-TOP: 10px"> <img src="img/<?php echo $cliente->getLogo(); ?> " height="75"> </TD> <td> </td> <TD> <table cellspacing="0" cellpadding="0" width="100%" height="100%" border="0"> <tr> <td align="right" style="PADDING:10px;"><STRONG><FONT color="#666666"><?php echo $cliente->getNome() . " - " . $cliente->getVersao(); ?> <br></FONT><FONT color="#666" size="2">Sistema de Administração</FONT></STRONG><td> </tr> </table> </TD> </TR> </TBODY> </TABLE></td> </tr> <tr> <td height="1" bgcolor="#CCCCCC"><img src="img/regua1x1.gif" height="1"></td> </tr> <tr> <td width="100%" bgcolor="#FFFFFF" valign="top" style="padding:10px;" align="center"> <!--##################################################################################--> <p> </p> <p> </p> <table width="300" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC"> <tr> <td bgcolor="#FFFFFF"> <table width="100%" border="0" align="center"> <form method="POST" action="../otr/act/Autenticar.act.php" name="admin" onsubmit="return valida_login();"> <tr bgcolor="#EFEFEF" class="Linha2Tabela"> <td colspan="2" align="center"> <table border="0"> <tr> <td><i><b><font color="#CC0000"><img src="img/locked.gif" width="24" height="24"></font></b></i></td> <td><i><b><font size="2" color="#666">Área de acesso restrito.</font></b></i></td> </tr> </table> </td> </tr> <tr class="Linha3Tabela"> <td align="center" colspan="2"><p><br>Por gentileza identifique-se:</p></td> </tr> <tr class="Linha3Tabela"> <td align="right"><B>USUÁRIO:</B></td> <td><input type="TEXT" id="usuario" name="usuario" class="FORMbox"></td> </tr> <tr class="Linha3Tabela"> <td align="right"><B>SENHA:</B></td> <td><input type="PASSWORD" name="senha" class="FORMbox"></td> </tr> <tr class="Linha3Tabela"> <td align="center" colspan="2"><input type="checkbox" name="acao" value="esquecisenha">Esqueci a senha e desejo recebê-la<br> por e-mail.(Informe seu Usuário).<input type="HIDDEN" name="url_redirect" value=""></td> </tr> <? switch ($_GET["msg"]) { case 1: print ' <tr class="TituloTabela"> <td height="20" align="center" colspan="2"><font color="red">Dados Inválidos.</font></td> </tr>'; break; case 2: print ' <tr class="TituloTabela"> <td height="20" align="center" colspan="2"><font color="red">USUÁRIO NÃO CADASTRADO.</font></td> </tr>'; break; case 3: print ' <tr class="TituloTabela"> <td height="20" align="center" colspan="2"><font color="red">Dados de acesso enviados para o seu e-mail!</font></td> </tr>'; break; case 4: print ' <tr class="TituloTabela"> <td height="20" align="center" colspan="2"><font color="red">Usuário Bloqueado.</font></td> </tr>'; break; } ?> <tr class="Linha3Tabela"> <td height="35" colspan="2" align="center"><input type="SUBMIT" name="submit" value="Entrar" class="bttn1"></td> </tr> </form> </table> </td> </tr> </table> <!--##################################################################################--> </td> </tr> <tr> <td height="1" bgcolor="#CCCCCC"><img src="img/regua1x1.gif" height="1"></td> </tr> <tr> <td align="center" height="20" bgcolor="#F2F2F2"><?php echo $cliente->getNome() . " - " . $cliente->getVersao(); ?> </td> </tr> </table> <!--##################################################################################--> </td> <td width="1" bgcolor="#CCCCCC"><img src="img/regua1x1.gif" height="1"></td> </tr> </table> </BODY> </HTML> <script language="javascript"> document.getElementById('usuario').focus(); </script> <? }