<%@ page language="C#" autoeventwireup="true" inherits="ims.web.adminHome, ims.web" enableviewstatemac="false" enableEventValidation="false" %>

<!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" id="adminHome">
<head runat="server">
    <title>系统管理</title>
</head>
<body onbeforeunload="exiting();">
    <form id="form1" runat="server">
        <asp:ScriptManager ID="s1" runat="server" EnablePageMethods="true">
            <Scripts>
                <asp:ScriptReference Name="MicrosoftAjax.js" ScriptMode="Auto" Path="~/js/MsAjax.js" />
                <asp:ScriptReference Name="MicrosoftAjaxWebForms.js" ScriptMode="Auto" Path="~/js/MsAjax.js" />
            </Scripts>
        </asp:ScriptManager>

        <div id="tabs" class="ui-tabs">
            <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"><img src="images/setting.png" /></a><br />
                    <a href="admin.aspx" class="dark">系统设置</a>
                </div>
                <div class="inlineBlock">
                    <a href="maint.aspx"><img src="images/maint.png" /></a><br />
                    <a href="maint.aspx" class="dark">系统维护</a>
                </div>
                <div class="inlineBlock">
                    <a href="users.aspx"><img src="images/users.png" /></a><br />
                    <a href="users.aspx" class="dark">用户管理</a>
                </div>
                <div class="inlineBlock">
                    <a href="roles.aspx"><img src="images/roles.png" /></a><br />
                    <a href="roles.aspx" class="dark">角色管理</a>
                </div>
                <div class="inlineBlock" runat="server" id="smsadmin">
                    <a href="smsadmin.aspx"><img src="images/sms.png" /></a><br />
                    <a href="smsadmin.aspx" class="dark">短信设置</a>
                </div>
                <div class="inlineBlock">
                    <a href="guide.aspx"><img src="images/guide.png" /></a><br />
                    <a href="guide.aspx" class="dark">向 导</a>
                </div>
            </div>
            <asp:UpdatePanel ID="about" RenderMode="Block" UpdateMode="conditional" ChildrenAsTriggers="false" runat="server">
                <ContentTemplate>
                    <br />
                    <b class="larger">系统信息：</b>
                    <div class="hrline"></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><b>内网访问地址：</b><asp:PlaceHolder ID="phUrls" runat="server"></asp:PlaceHolder>
                        </li>
                    </ul>
                    <div runat="server" id="regArea">
                        <table cellspacing="0" class="maxlimit">
                            <tr>
                                <td><strong runat="server" class="larger" id="regTitle">软件注册：</strong></td>
                                <td align="right"><a runat="server" id="aReg" class="u" href="http://landian.cc/ims/support.htm#reg" target="_blank">如何购买？</a></td>
                            </tr>
                        </table>
                        <div class="hrline"></div>
                        <div style="padding-left:2em; margin-bottom: 2em">
                            机器码：<asp:TextBox ID="tbMachineCode" Width="240" Height="18" runat="server"></asp:TextBox>
                            <input type="button" value="复制" id="btnCopy" class="btn" />
                            <div class="mtop_s">
                                注册码：<asp:TextBox ID="tbRegCode" Width="240" Height="18" runat="server"></asp:TextBox>
                                <asp:Button ID="btnReg" runat="server" OnClick="Reg" CssClass="btn" Text="注册" />
                            </div>
                        </div>
                    </div>
                    <div id="upgrade">
                        <table cellspacing="0" class="maxlimit">
                            <tr>
                                <td><b class="larger">软件更新：</b></td>
                                <td class="right gray"><img src="images/info.gif" align="absMiddle" /> 仅适用于公开发行的标准版本的更新！</td>
                            </tr>
                        </table>
                        <div class="hrline"></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();' class="u">检查更新</a></span><span runat="server"
                                        id="spanVers" visible="false">从V<%= ims.Comm.Vars.Version %>更新到：<asp:DropDownList runat="server" ID="ddlVers" OnSelectedIndexChanged="VersionChanged" AutoPostBack="true"></asp:DropDownList>
                                        <asp:Button runat="server" ID="btnUpgrade" OnClick="toGetPackage" OnClientClick="return preOnlineUpdate();" CssClass="update" Text="更新" /><span class="progress" id="prog_online"></span></span>
                                    <fieldset runat="server" id="verInfo" visible="false">
                                        <legend><a href="#" runat="server" id="urlPackage"></a> 主要更新[<span runat="server" id="releaseAt"></span>]：</legend>
                                        <ul runat="server" id="changeList"></ul>
                                        <div class="red" runat="server" id="prompt" visible="false"></div>
                                    </fieldset>
                                    <asp:Button runat="server" ID="btnTrigger" OnClick="getUpdateInfo" CssClass="hide" />
                                </ContentTemplate>
                            </asp:UpdatePanel>
                            </li>
                            <li><b>离线更新：</b>上传更新包：<input id="toUpload" type="file" name="toUpload" /> <input type="button" class="update" id="upload" onclick="return preOfflineUpdate();" runat="server" value="更新" /><span class="progress" id="prog_offline"></span>　<a href="http://landian.cc/download/update.zip" class="u" id="lastPackage" target="_blank">下载最新累积更新包</a></li>
                        </ul>
                        </tr></table>
                    </div>
                    <div runat="server" id="support">
                        <b class="larger">技术支持：</b>
                        <div class="hrline"></div>
                        <div style="padding-left: 2em">
                            <a href="http://landian.cc" target="_blank" class="u">蓝点软件(http://landian.cc)</a> －<a href="http://landian.cc/ims/support.htm" target="_blank" class="u">支持专题</a>
                        </div>
                    </div>
                    <br />
                </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="btnReg" EventName="Click" />
                </Triggers>
            </asp:UpdatePanel>
            <div runat="server" id="feedback">
                <p class="indent gray">为了让本系统能更好地为您服务，我们热切期待您提出宝贵的意见、建议和错误报告。由于各种原因，我们可能不会回复您，但这些信息将作为我们软件升级的重要参考。提交错误报告时，请尽可能描述清楚错误发生时所执行的操作，以及其它必要的上下文信息。也请尽可能留下您的联系方式，以便在需要时我们可以与您取得联系。谢谢支持！</p>
                <asp:TextBox runat="server" ID="ckFeedBack" CssClass="ck" TextMode="MultiLine"></asp:TextBox>
                <div class="padcenter">
                    <asp:UpdatePanel ID="upFeedBack" UpdateMode="conditional" runat="server">
                        <ContentTemplate>
                            <asp:Button ID="btnSubmit" runat="server" OnClientClick="UpdateEditorElement()" OnClick="FeedBack" CssClass="btn" Text="提交反馈" Width="66" />
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
            </div>
        </div>

        <div class="footBtnArea"><a href="guide.aspx" target="_self" class="dark">从这里开始…</a></div>
        <script src="js/comm.js"></script><script src="js/adminHome.js"></script>
    </form>
</body>
</html>

