<%@ page language="C#" autoeventwireup="true" inherits="ims.adminHome, ims.web" enableviewstatemac="false" enableEventValidation="false" %>
<!DOCTYPE html>
<html id="adminHome">
<head runat="server">
    <title>系统管理</title><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width,initial-scale=1">
</head>
<body onbeforeunload="exiting();">
    <form id="form1" runat="server">
        <asp:ScriptManager ID="s1" runat="server" EnablePageMethods="true" OnAsyncPostBackError="AsyncError">
            <CompositeScript Path="js/msajax.js" ScriptMode="Release">
                <Scripts>
                    <asp:ScriptReference Name="WebForms.js" Assembly="System.Web" /><asp:ScriptReference Name="MicrosoftAjax.js" /><asp:ScriptReference Name="MicrosoftAjaxWebForms.js" />
                </Scripts>
            </CompositeScript>
        </asp:ScriptManager>
        <div id="tabs" class="ui-tabs nobg noborder">
            <ul>
                <li><a href="#tools">管理工具</a></li>
                <li><a href="#about">关于本系统</a></li>
                <li runat="server" id="liFeedback"><a href="#feedback">反馈</a></li>
            </ul>
            <div id="tools">
                <div class="inlineBlock">
                    <a href="admin.aspx" id="setsys"></a><br />
                    <a href="admin.aspx">系统设置</a>
                </div>
                <div class="inlineBlock">
                    <a href="to.htm?maint.aspx" id="maintsys"></a><br />
                    <a href="to.htm?maint.aspx">系统维护</a>
                </div>
                <div class="inlineBlock">
                    <a href="to.htm?users.aspx" id="useradmin"></a><br />
                    <a href="to.htm?users.aspx">用户管理</a>
                </div>
                <div class="inlineBlock">
                    <a href="roles.aspx" id="roleadmin"></a><br />
                    <a href="roles.aspx">角色管理</a>
                </div>
                <div class="inlineBlock">
                    <a href="guide.aspx" id="sysguide"></a><br />
                    <a href="guide.aspx">向导</a>
                </div>
                <div class="inlineBlock monly">
                    <a href="help.aspx" id="syshelp"></a><br />
                    <a href="help.aspx">帮助</a>
                </div>
            </div>
            <asp:UpdatePanel ID="about" RenderMode="Block" UpdateMode="conditional" ChildrenAsTriggers="false" runat="server">
                <ContentTemplate>
                <div class="bhead mtop_l"><span>系统信息</span></div>
                    <ul class="squ">
                        <li><b>版本：</b>V<asp:Literal ID="lVer" runat="server"></asp:Literal></li>
                        <li><b>授权状态：</b><asp:Literal ID="lLicenseType" runat="server"></asp:Literal></li>
                        <li><b>概要统计：</b><span id="statis">正在统计…</span></li>
                        <li runat="server" id="liPath"><b>安装目录：</b><asp:Literal ID="lPath" runat="server"></asp:Literal></li>
                        <li><b>占用空间：</b><span id="spaceUsage">正在统计…</span></li>
                        <li><b>Windows 进程帐户：</b><asp:Literal ID="lAspnetUser" runat="server"></asp:Literal></li>
                        <li><b>使用的数据库：</b><asp:Literal ID="lDbType" runat="server"></asp:Literal></li>
                        <li><b>最近启动时间：</b><asp:Literal ID="lStartAt" runat="server"></asp:Literal></li>
                        <li runat="server" id="urls" class="wrap"><b>内网访问地址：</b><asp:PlaceHolder ID="phUrls" runat="server"></asp:PlaceHolder></li>
                    </ul>
                    <div runat="server" id="regArea">
                        <div class="bhead mtop_l"><span runat="server" id="regTitle">软件注册</span><a href="https://landian.cc/content.aspx?p=price" runat="server" id="aReg" class="right gray pconly smaller" target="_blank">如何购买？</a></div>
                        <div id="codes" class="middle">
                            <span>机器码：</span><asp:TextBox ID="tbMachineCode" runat="server" ReadOnly="true"></asp:TextBox>
                            <input type="button" value="复制" id="btnCopy" onclick="toCopy('#tbMachineCode');" class="btn small sec" />
                            <div class="middle">
                                <span>注册码：</span><asp:TextBox ID="tbRegCode" runat="server"></asp:TextBox>
                                <asp:Button ID="btnReg" runat="server" OnClick="Reg" CssClass="btn small sec" Text="注册" />
                            </div>
                        </div>
                    </div>
                    <div id="upgrade">
                        <div class="bhead mtop_l"><span>软件更新</span><a href="https://landian.cc" runat="server" id="support" class="right gray pconly smaller" target="_blank">技术支持 https://landian.cc</a></div>
                        <ul class="squ">
                            <li><b>在线更新：</b><asp:UpdatePanel ID="upUpgrade" runat="server" OnPreRender="AddScript" RenderMode="Inline" UpdateMode="conditional">
                                <ContentTemplate><span id="checking" runat="server"><a href='###' onclick='reTry();'>检查更新</a></span><span runat="server"
                                        id="spanVers" visible="false">从V<%= ims.Sys.Version %>更新到：<asp:DropDownList runat="server" ID="ddlVers" OnSelectedIndexChanged="VersionChanged" AutoPostBack="true"></asp:DropDownList>
                                        <asp:Button runat="server" ID="btnUpgrade" CssClass="btn small sec" OnClick="toGetPackage" OnClientClick="return preOnlineUpdate();" Text="更新" /><span class="progress" id="prog_online"></span></span>
                                    <div runat="server" id="verInfo" visible="false" class="lightarea mtop_m mbottom_m">
                                        <div class="bold"><a href="#" runat="server" id="urlPackage"></a><label runat="server" id="updateTime"></label> 更新：</div>
                                        <ol runat="server" id="changeList" class="square"></ol>
                                        <div class="red" runat="server" id="prompt" visible="false"></div>
                                    </div>
                                    <asp:Button runat="server" ID="btnTrigger" OnClick="getUpdateInfo" CssClass="hide" />
                                </ContentTemplate>
                            </asp:UpdatePanel>
                            </li>
                            <li class="hide2"><b>离线更新：</b><span class="gray" runat="server" id="lastPackage"><a href="https://landian.cc/download/update.zip">下载累积更新包</a> &#10140; </span><label class="forFile" id="upload" title="指定更新包以更新系统">更新<input type="file" id="toUpload" name="toUpload" onchange="preOfflineUpdate();" /></label><span class="progress" id="prog_offline"></span></li>
                            <li><b>手工更新：</b><a href="#" onclick="return showHelp('manualUpdate');">方法</a></li>
                        </ul>
                        </tr></table>
                    </div>
                </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="btnReg" EventName="Click" />
                </Triggers>
            </asp:UpdatePanel>
            <div runat="server" id="feedback" class="sm">
                <p id="note">为了让本系统能更好地为您服务，我们热切期待您宝贵的意见、建议或错误报告。我们不一定会回复您，但这些信息将作为软件升级的重要参考。提交错误报告时，请尽可能描述清楚当时的操作和必要的上下文信息。也请留下您的联系方式，以便进一步沟通。谢谢支持！</p>
                <asp:TextBox runat="server" ID="ckFeedBack" CssClass="ck" TextMode="MultiLine"></asp:TextBox>
                <asp:UpdatePanel ID="upFeedBack" UpdateMode="conditional" runat="server" class="center mtop_l">
                    <ContentTemplate>
                        <asp:Button ID="btnSubmit" runat="server" OnClientClick="UpdateEditorElement()" OnClick="FeedBack" CssClass="btn" Text="提交反馈" />
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
        </div>
        <script src="js/comm.js"></script><script src="js/adminHome.js"></script>
    </form>
</body>
</html>

