@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>超博CRM授权中心</title>
    <style type="text/css">
        body
        {
            line-height: 40px;
        }

        .style1
        {
            width: 100%;
        }

        .style2
        {
            width: 150px;
        }

        .style3
        {
            width: 152px;
            height: 20px;
        }

        .style4
        {
            height: 20px;
        }

        h2
        {
            color: #ffffff;
        }

        #message
        {
            background: #eee;
            border: 1px solid #808080;
            text-indent: 5px;
        }
    </style>
</head>
<body>
    <div>
        <h1>超博CRM授权中心  </h1>
        @if (ViewBag.Ok)
        {
            <div id="message">
                您已获得了超博CRM系统许可授权，不允许重复授权。<a href="/Account/Login">马上登录</a>
            </div>
        }
        else
        {
            if (!string.IsNullOrEmpty(ViewBag.Message))
            {
            <div id="message">
                @ViewBag.Message
            </div>
            }
            using (Html.BeginForm("Check", "License"))
            {
                Html.AntiForgeryToken();
            <table class="style1">
                <tbody>
                    <tr>
                        <td class="style2" colspan="2" style="background-color: Gray;">
                            <h2>请输入授权码点击导出本机指纹后将会生成指纹文件并提示下载<br />
                                将本机指纹文件下载并发送给超博CRM客服人员后将超博CRM客服人员为您生成的软件许可授权证书进行导入即可。</h2>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">授权码：</td>
                        <td>
                            <input name="sn" type="text" id="sn" style="height: 30px; width: 500px;" value="@ViewBag.SN" />
                        </td>
                    </tr>
                    @if (!ViewBag.Ok)
                    {
                        <tr>
                            <td class="style2" colspan="2" style="padding-top: 20px;">&nbsp;
                                <input style="width: 150px; height: 50px;" type="submit" value="导出本机指纹" />
                            </td>
                        </tr>
                    }

                </tbody>
            </table>
            }
            using (Html.BeginForm("Import", "License"))
            {
                Html.AntiForgeryToken();
            <table class="style1">
                <tbody>
                    <tr>
                        <td class="style2">软件许可证书：</td>
                        <td>
                            <input name="updateInfo" type="file" id="updateInfo" />
                        </td>
                    </tr>
                    @if (!ViewBag.Ok)
                    {
                        <tr>
                            <td class="style2" colspan="2" style="padding-top: 20px;">&nbsp;
                                <input style="width: 150px; height: 50px;" type="submit" value="导入软件许可证书" />
                            </td>
                        </tr>
                    }
                </tbody>
            </table>
            }
        }
    </div>
</body>
</html>
