<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="edu.jhu.Cas.Web.Login" %>
<%@ Register TagPrefix="uc1" TagName="Trailer" Src="Trailer.ascx" %>
<%@ Register TagPrefix="uc2" TagName="Header" Src="top.ascx" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Web" %>
<%@ Import Namespace="edu.jhu.Cas.Users" %>
<%@ Import Namespace="edu.jhu.Cas.Util" %>

<!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 runat="server">
    <title>Login</title>
    <link href="cjobs.css" rel="stylesheet" />
</head>
<body>
    <uc2:Header ID="Header" runat="server" />
    <div style="margin:5 0 5 0;padding:0 5 0 5;" class="message"><%=lmessage %></div>
        <form name="login" action="login.aspx" method="post" style="padding:0 0 0 0;margin:0 0 0 0;">
            <table class="uform" style="padding:0 0 0 0;margin:0 0 0 0;">
                <tr>
                    <th class="bx">
                        User ID</th>
                    <td>
                        <input style="width: 100" type="text" name="userid" value="<%=userid %>" /></td>
                </tr>
                <tr>
                    <th class="bx">
                        Password</th>
                    <td>
                        <input style="width: 100" type="password" name="password" /></td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <input type="submit" value="Login" /></td>
                </tr>
            </table>
            <input type="hidden" value="<%=nexturl %>" name="nexturl" />
        </form>


    <form id="form1" runat="server">

    <div style="margin:10px 10px 10px 10px;padding:10px 10px 10px 10px;">

        <table>
            <tr>
                <td>
                    <% if (ConfigurationManager.AppSettings["OpenID"] == ("true")) 
                       { %>
                    <asp:ImageButton ID="LoginGoogle" ImageUrl="img/google_32.png" OnClick="LoginButton_Click" CommandName="LoginGoogle" runat="server"></asp:ImageButton>
                    <asp:ImageButton ID="LoginYahoo" ImageUrl="img/yahoo_32.png" OnClick="LoginButton_Click" CommandName="LoginYahoo" runat="server"></asp:ImageButton>
                    <asp:ImageButton ID="LoginVAO" ImageUrl="img/VAO_logo_100.png" OnClick="LoginButton_Click" CommandName="LoginVAO" runat="server"></asp:ImageButton>
                    <% } %>
                    
                    <% if (ConfigurationManager.AppSettings["Keystone"] == ("true"))
                       { %>
                    <asp:ImageButton ID="KeystoneLogin" ImageUrl="img/idies.png" OnClick="KeystoneLogin_Click" width="60" height="23" runat="server"></asp:ImageButton>
                    <% } %>
                </td>
            </tr>
        </table>

    </div>


    </form>

            <p>
            If you do not have a login please <a href="CreateAccount.aspx">create an account.</a></p>
    <uc1:Trailer ID="Trailer1" runat="server" cvsTag="$Name$" cvsRev="$Revision: 145898 $">
    </uc1:Trailer>
</body>
</html>
