<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<MvcEnterprise.Models.DataSet1+ValidationAdmin>" %>
<!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">
	<script src="../../Scripts/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">if (top.location != self.location) top.location = self.location;</script>
    <title>管理登陆</title>
    <link href="../../Content/skin/admin.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        body {
            background: url(../../Content/Images/loginbg.gif) repeat-x;
        }
        #main {
            position: absolute;
            left: 35%;
            top: 25%;
            width: 300px;
        }
        div.input {
        	margin-top:5px;
        }
    </style>
    <script src="../../Scripts/MicrosoftAjax.js" type="text/javascript"></script>
    <script src="../../Scripts/MicrosoftMvcAjax.js" type="text/javascript"></script>
    <script src="../../Scripts/MicrosoftMvcValidation.js" type="text/javascript"></script>
    <script type="text/javascript">
        window.onload = function() {
            $get("AdminName").focus();
        }
    </script>
</head>
<body>
    <div id="main">
        <fieldset>
            <legend>管理登陆</legend>
            <%Html.EnableClientValidation(); %>
            <% using (Html.BeginForm())
               {%>
            <div class="input">
                <%= Html.LabelFor(model => model.AdminName) %>：
                <%= Html.TextBoxFor(model => model.AdminName, new { style = "width:150px" })%>
                <div><%= Html.ValidationMessageFor(model => model.AdminName)%></div>
            </div>
            <div class="input">
                <%= Html.LabelFor(model => model.Password) %>：
                <%= Html.PasswordFor(model => model.Password, new { style = "width:150px" })%>
                <div><%= Html.ValidationMessageFor(model => model.Password) %></div>
            </div>
            <div style="margin-left: 2em;" class="input">
                <%Html.RenderPartial("ValidateCode"); %>
            </div>
            <div style="margin-left: 6.4em;" class="input">
                <input type="submit" value=" 登 陆 " />
            </div>
            <% } %>
            <%=Html.ValidationSummary() %>
        </fieldset>
    </div>
</body>
</html>
