ClovisFilho

Untitled

Aug 27th, 2012
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.53 KB | None | 0 0
  1.         <script type="text/javascript">
  2.             $(document).ready(function()
  3.             {
  4.                 $('.close').click(function()
  5.                 {
  6.                     $('#formErrors').hide();
  7.                 });
  8.                
  9.                 $('.ajaxSubmit').submit(function(e)
  10.                 {
  11.                     e.preventDefault();
  12.                     $.ajax
  13.                     ({
  14.                         url:        $(this).attr('action'),
  15.                         type:       'post',
  16.                         data:       $(this).serialize(),
  17.                         dataType:   'html',
  18.                         success:    function(data)
  19.                         {
  20.                             $('.mostra_erros').html(data);
  21.                             $('#formErrors').show();
  22.                         }
  23.                     });
  24.                 });
  25.             });
  26.         </script>
  27.             <form action="<?php echo site_url('login/entrar/'); ?>" id="formLogin" class="ajaxSubmit" method="post">
  28.                 <label class="control-label" for="inputUsuario">Nome de usuário:</label>
  29.                 <input type="text" name="inputUsuario" id="inputUsuario" maxlength="16">
  30.                
  31.                 <label class="control-label" for="inputSenha">Senha de acesso:</label>
  32.                 <input type="password" name="inputSenha" id="inputSenha" maxlength="16">
  33.                
  34.                 <div class="alert alert-error" id="formErrors" style="text-align: center; font-size: 9pt; display: none;">
  35.                     <button type="button" class="close">×</button>
  36.                     <span class="mostra_erros"></span>
  37.                 </div>
  38.                
  39.                 <input type="submit" value="Entrar" class="btn btn-primary">
  40.                 <a href="#" class="btn pull-right">Recuperar senha</a>
  41.             </form>
  42.             <p style="text-align: center; font-size: 8pt; margin-top: 5px;">
  43.                 InfoNexus - Sistema de Gestão Administrativa <br />
  44.                 <a href="#">Grupo Tupi de Tecnologia e Inovação LTDA</a> <br />
  45.             </p>
  46.         </div>
  47.     </body>
  48. </html>
Advertisement
Add Comment
Please, Sign In to add comment