<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" %>

<!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 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: 350px;
        }
    </style>
    <script type="text/javascript">
    	window.onload = function () {
            document.getElementById("code").focus();
        }
    </script>
</head>
<body>
    <div id="main">
        <fieldset>
            <legend>输入注册码</legend>
            <% using (Html.BeginForm("InputAuthorizationCode","Admin"))
               {%>
            <div>
                <span style="width:80px;text-align:right;display:inline-block">注册码：</span><input type="text" name="code" id="code" value="<%=Setting.Context.AuthorizationCode%>" style="width:200px" />
				<div style="padding:5px 0 0 80px;">
					<input type="button" value="获取注册码" onclick="<%= TempData["GetRegCode"] %>" />
					<input type="submit" value=" 注 册 " />
				</div>
            </div>
            <% } %>
            <%=Html.ValidationSummary() %>
        </fieldset>
    </div>
</body>
</html>
