shortcut.aspx
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:11k
源码类别:

SCSI/ASPI

开发平台:

Others

  1. <%@ Page language="c#" Inherits="Discuz.Web.Admin.shortcut" Codebehind="shortcut.aspx.cs"%>
  2. <%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  3. <%@ Import NameSpace="Discuz.Common"%>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5. <html>
  6. <head>
  7. <title>shortcut</title>
  8. <link href="../styles/dntmanager.css" type="text/css" rel="stylesheet" />
  9. <link href="../styles/modelpopup.css" type="text/css" rel="stylesheet" />
  10. <script type="text/javascript" src="../js/common.js"></script>
  11.         <script type="text/javascript" src="../js/modalpopup.js"></script>
  12. <script type="text/javascript">       
  13.             var currentid=0;
  14.             var bar=0;
  15.             var filenameliststr='<%=filenamelist%>';
  16.             var filenamelist=new Array();            
  17.             filenamelist= filenameliststr.split('|');
  18.             
  19.             function runstatic()
  20.             {  
  21.                  if(filenamelist[currentid]!="")
  22.                  {
  23.              document.getElementById('Layer5').innerHTML =  '<br /><table><tr><td valign=top><img border="0" src="../images/ajax_loading.gif"  /></td><td valign=middle style="font-size: 14px;" >正在更新'+filenamelist[currentid]+'.htm模板, 请稍等...<BR /></td></tr></table><BR />';
  24.                      document.getElementById('Layer5').style.witdh='350';
  25.                      document.getElementById('success').style.witdh='400';
  26.                      document.getElementById('success').style.display ="block";
  27.                      getReturn('createtemplate.aspx?type=single&path=' + document.getElementById('Templatepath').value + '&filename=' + filenamelist[currentid]);
  28.                      currentid++;
  29.                  }
  30.                  else
  31.                  {
  32.                     document.getElementById('Layer5').innerHTML="<br />模板更新成功, 请稍等...";
  33.                     document.getElementById('success').style.display = "block";
  34.             count(); 
  35.             document.getElementById('Form1').submit();
  36.                  }
  37.            }
  38.            
  39.            function count()
  40.            { 
  41.         bar=bar+2;
  42.         if (bar<99) {setTimeout("count()",100);} 
  43.         else { document.getElementById('success').style.display ="none"; } 
  44.            }
  45.            
  46.            function run()
  47.            {
  48.               bar=0;
  49.               document.getElementById('Layer5').innerHTML="<BR /><table><tr><td valign=top><img border="0" src="../images/ajax_loading.gif"  /></td><td valign=middle style="font-size: 14px;" >正在提交数据, 请稍等...<BR /></td></tr></table><BR />";
  50.               document.getElementById('success').style.display = "block";
  51.               setInterval('runstatic()',5000); //每次提交时间为6秒
  52.            }
  53.            
  54.            function validateform(theform)
  55.            {
  56.               document.getElementById('Form1').submit();
  57.             return true;
  58.            }
  59.            
  60.            function validate(theform)
  61.            {
  62.               if(document.getElementById('createtype').checked)
  63.               {
  64.                   run();
  65.                   return false;
  66.               }
  67.               else
  68.               {
  69.                 return true;
  70.           }
  71.            }
  72.            
  73.             function showInfo()
  74.             { 
  75.         BOX_show('upgradelayer'); 
  76.             }
  77.     
  78.    </script>
  79. <meta http-equiv="X-UA-Compatible" content="IE=7" />
  80. </head>
  81. <body>
  82. <form id="Form1" method="post" runat="server">
  83. <table cellspacing="0" cellpadding="4" width="100%" align="center">
  84.         <tr>
  85.                 <td class="panelbox">
  86.                     <table width="100%">
  87.                         <tr>
  88.                             <td style="width:120px">编辑用户:</td>
  89.                             <td style="width: 120px"><cc1:textbox ID="Username" runat="server" RequiredFieldType="暂无校验" width="200"></cc1:textbox></td>
  90.                             <td><cc1:Button ID="EditUser" runat="server" Text="提 交"></cc1:Button></td>
  91.                         </tr>                        
  92.                         <tr>
  93.                             <td>编辑论坛:</td>
  94.                             <td><cc1:dropdowntreelist ID="forumid" runat="server"></cc1:dropdowntreelist></td>
  95.                             <td><cc1:Button ID="EditForum" runat="server" Text="提 交"></cc1:Button></td>
  96.                         </tr>                        
  97.                         <tr>
  98.                             <td>编辑用户组:</td>
  99.                             <td><cc1:dropdownlist id="Usergroupid" runat="server"></cc1:dropdownlist></td>
  100.                             <td><cc1:Button id="EditUserGroup" runat="server" Text="提 交"></cc1:Button></td>
  101.                         </tr>
  102.                         <tr>
  103.                             <td>生成模板:</td>
  104.                             <td><cc1:dropdownlist id="Templatepath" runat="server"></cc1:dropdownlist> <input type="checkbox" id="createtype" name="createtype" >降低CPU占用</td>
  105.                             <td><cc1:Button id="CreateTemplate" runat="server" Text="提 交" ValidateForm="true"></cc1:Button></td>
  106.                         </tr>
  107.                     </table>
  108.                 </td>
  109.             </tr>
  110. <tr>
  111. <td colspan="3">
  112. <a class="ManagerButton" onclick="javascript:window.open('http://nt.discuz.net/doc/','','');"><strong>访问官方文档中心</strong></a>
  113. <a class="ManagerButton" onclick="javascript:window.open('http://nt.discuz.net/','','');" ><strong>访问官方论坛</strong></a>
  114. <asp:LinkButton id="UpdateCache" CssClass="ManagerButton" runat="server" Text="<span>更新缓存</span>"></asp:LinkButton>
  115. <asp:LinkButton id="UpdateForumStatistics" CssClass="ManagerButton" runat="server" Text="<span>更新论坛统计</span>"></asp:LinkButton>
  116. </td>
  117. </tr>
  118.         </table>
  119.     <fieldset id="info" style="overflow:hidden;zoom:1;margin-top:10px;background-color:#f5f7f8;">
  120.             <legend style="padding: 0pt 10px; margin-left: 25px;font-size:13px;color:#000;">官方消息</legend>
  121.         <iframe  width="100%" height="110px" id="checkveriframe" framespacing="0px" style="border-width: 0px;"  frameborder="0px"  noResize ></iframe>
  122.     </fieldset>
  123.     <fieldset style="overflow:hidden;zoom:1;margin-top:10px;background-color:#f5f7f8;padding:10px">
  124.     <legend style="padding: 0pt 10px; margin-left: 25px;font-size:13px;color:#000;">系统信息</legend>
  125.     <table width="100%">
  126.         <tr>
  127.             <td>服务器名称:</td><td align="left"><%=Server.MachineName%></td>
  128.             <td>服务器操作系统:</td><td align="left"><%=Environment.OSVersion.ToString()%></td>
  129.         </tr>
  130.         <tr>
  131.             <td>服务器IIS版本:</td><td align="left"><%=Request.ServerVariables["SERVER_SOFTWARE"] %></td>
  132.             <td>.NET解释引擎版本:</td><td align="left">.NET CLR  <%=Environment.Version.Major %>.<%=Environment.Version.Minor %>.<%=Environment.Version.Build %>.<%=Environment.Version.Revision %></td>
  133.         </tr>
  134.     </table>
  135.     </fieldset>
  136.     <fieldset style="overflow:hidden;zoom:1;margin-top:10px;background-color:#f5f7f8;padding:10px;">
  137.     <legend style="padding: 0pt 10px; margin-left: 25px;font-size:13px;color:#000;">开发团队</legend>
  138.     <table width="100%">
  139.         <tr>
  140.             <td>
  141.             <a href="http://nt.discuz.net/space/?uid=53152" target="_blank">doopcl</a>,
  142.             <a href="http://nt.discuz.net/space/?uid=2" target="_blank">daizhj</a>,
  143.             <a href="http://nt.discuz.net/space/?uid=9216" target="_blank">fanzjgw</a>,
  144.             <a href="http://nt.discuz.net/space/?uid=2692" target="_blank">like</a>,
  145.             <a href="http://nt.discuz.net/space/?uid=7899" target="_blank">sunshili</a>,
  146.             <a href="http://nt.discuz.net/space/?uid=5691" target="_blank">大川</a>,
  147.             <a href="http://nt.discuz.net/space/?uid=6233" target="_blank">戏水</a>,
  148.             <a href="http://nt.discuz.net/space/?uid=19841" target="_blank">旭雨</a>
  149.             </td>
  150.         </tr>
  151.     </table>
  152.     </fieldset>
  153.      <fieldset style="overflow:hidden;zoom:1;margin-top:10px;background-color:#f5f7f8;padding:10px;">
  154.     <legend style="padding: 0pt 10px; margin-left: 25px;font-size:13px;color:#000;">相关链接</legend>
  155.     <table width="100%">
  156.         <tr>
  157.             <td>
  158.             <a href="http://www.comsenz.com" target="_blank">公司网站</a>, 
  159.             <a href="http://www.comsenz.com/purchase/nt" target="_blank">购买授权</a>, 
  160.             <a href="http://www.comsenz.com/products/nt" target="_blank">Discuz!NT 产品</a>, 
  161.             <a href="http://nt.discuz.net/showforum-17.html" target="_blank">模板</a>, 
  162.             <a href="http://nt.discuz.net/showforum-22.html" target="_blank">插件</a>, 
  163.             <a href="http://nt.discuz.net/doc/" target="_blank">文档</a>, 
  164.             <a href="http://nt.discuz.net/" target="_blank">讨论区</a>
  165.             </td>
  166.         </tr>
  167.     </table>
  168.     </fieldset>
  169.     <div id="BOX_overlay" style="background: #000; position: absolute; z-index:100; filter:alpha(opacity=50);-moz-opacity: 0.6;opacity: 0.6;"></div>
  170.             <div id="upgradelayer" style="display:none;background :#fff; padding:10px; border:1px solid #999; width:500px;">
  171.             <div class="ManagerForm">
  172.     <fieldset>
  173.         <legend style="background:url(../images/icons/icon60.jpg) no-repeat 6px 50%;">在线更新</legend>
  174.         <span id="upgradeMessage" style="float:left;text-align:left;"><%= upgradeInfo%></span>
  175.         </fieldset>
  176.         <span style="float:left;text-align:right;width:400px;">
  177.         <button<%= isNew?"":" disabled="true"" %> id="update" class="ManagerButton" type="button" onclick="window.location='onlineupgrade.aspx'"><img src="../images/submit.gif" />版本升级</button>&nbsp;&nbsp;
  178.         <button<%= isHotFix?"":" disabled="true"" %> id="hotfix" class="ManagerButton" type="button" onclick="window.location='hotfix.aspx'"><img src="../images/submit.gif" />补丁升级</button>&nbsp;&nbsp;
  179.         <button type="button" class="ManagerButton" id="Button1" onclick="BOX_remove('upgradelayer');"><img src="../images/state1.gif"/> 取 消 </button>
  180.         </span>
  181.     </div>
  182.             </div>
  183.     <div id="setting" />
  184. </form>
  185. <script type="text/javascript">
  186.     document.getElementById("info").style.height = "130px";
  187. </script>
  188. <%=footer%>
  189. </body>
  190. </html>