Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/purvgwtw/public_html/tutorials/common.php on line 7
JSP Login Form
Sponsered Links
Categories
Sponsered Links

JSP Login Form

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%
// Check session, this page should be visible if user does not exists in session.
if(session.getAttribute("username")!=null){
    response.sendRedirect("index.jsp");       
}
%>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <title>Inventory Management System: Inventory Report</title>
        <link href="css/main.css" rel="stylesheet" type="text/css" />
        <link href="css/style.css" rel="stylesheet" type="text/css" />
        <link href="css/front.css" media="screen, projection" rel="stylesheet" type="text/css">
    </head>
    <body>
        <center>
        <!-- it  is main container !-->
        <div id="wrapper">

            <!-- header start !-->
            <div class="header"><%@include file="header.jsp" %></div>
            <!-- header closed !-->
            <div id="middle-part" style="padding-left:90px;">
                <form action="loginAction" method="post">        
                      <div id="container">
                            <div id="topnav" class="topnav">
                            <%                                   
                            if(request.getParameter("loginstatus")!=null){
                                String loginstatus = (String)request.getParameter("loginstatus");
                                if(loginstatus.equals("fail")){
                            %>
                            <font color="#ff0000"><b>Login Failure.</b></font>
                            <%   
                                }
                               
                            }                                       
                            %>

    <a href="#" class="signin"><span>Sign in</span></a>    </div>   
   
    <fieldset style="display: none;" id="signin_menu" >
   
      <form method="post" id="signin" action="">
          <label for="username">Username</label>
          <input id="username" name="username" title="username" tabindex="4" type="text">
       
        <p>
          <label for="password">Password</label>
          <input id="password" name="password" value="" title="password" tabindex="5" type="password">
        </p>
        <p class="remember">
            <input id="signin_submit" value="Sign in" tabindex="6" type="submit">
        </p>
      
      </form>
    </fieldset>
   
    <div style="clear: both;"></div>
   
  </div>
<script src="jquery/jquery_002.js" type="text/javascript"></script>
  <script type="text/javascript">
        $(document).ready(function() {

            $(".signin").click(function() {
                $("fieldset#signin_menu").toggle();
                $(".signin").toggleClass("menu-open");
            });
           
            $("fieldset#signin_menu").mouseup(function() {
                return false
            });
            $(document).mouseup(function(e) {
                if($(e.target).parent("a.signin").length==0) {
                    $(".signin").removeClass("menu-open");
                    $("fieldset#signin_menu").hide();
                }
            });           
           
        });
  </script>
  <script src="jquery/jquery.js" type="text/javascript"></script> 
  <script type="text/javascript">
    $(function() {
      $('#forgot_username_link').tipsy({gravity: 'w'});  
    });
  </script>
<!-- Site Meter -->
</div>


            </div>
  
        <!-- main container closed !-->
        </center>
    </body>
</html>

Sponsered Links
Latest Updates
 
All Content of this site is for learning only. We do not warrant the correctness of its content. The risk from using it lies entirely with the user. While using this site, you agree to have read and accepted our terms of use and privacy policy.
Copyright © 2014 PURVACOMPUTERS.COM All Right Reserved