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

SCSI/ASPI

开发平台:

Others

  1. <%@ Page Language="c#" AutoEventWireup="true" CodeBehind="global_schedulesetting.aspx.cs" Inherits="Discuz.Web.Admin.global_schedulesetting" %>
  2. <%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  3. <%@ Register TagPrefix="uc1" TagName="TextareaResize" Src="../UserControls/TextareaResize.ascx" %>
  4. <%@ Register TagPrefix="uc2" TagName="PageInfo" Src="../UserControls/PageInfo.ascx" %>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  6. <html xmlns="http://www.w3.org/1999/xhtml" >
  7. <head runat="server">
  8. <title>计划任务设置</title>
  9. <link href="../styles/dntmanager.css" type="text/css" rel="stylesheet" />
  10. <script type="text/javascript" src="../js/common.js"></script>
  11. <script type="text/javascript">
  12. function changetimespan(thevalue)
  13. {
  14. if(thevalue == "type1")
  15. {
  16. document.getElementById("hour").disabled = false;
  17. document.getElementById("minute").disabled = false;
  18. document.getElementById("timeserval").disabled = true;
  19. }
  20. else
  21. {
  22. document.getElementById("hour").disabled = true;
  23. document.getElementById("minute").disabled = true;
  24. document.getElementById("timeserval").disabled = false;
  25. }
  26. }
  27. function validate(theform)
  28. {
  29. return true;
  30. }
  31. </script>
  32. <meta http-equiv="X-UA-Compatible" content="IE=7" />
  33. </head>
  34. <body>
  35. <form id="form1" runat="server">
  36. <div class="ManagerForm">
  37. <uc2:PageInfo id="PageInfo1" runat="server" Icon="warning" Text="请勿随意添加计划任务,此功能适用于开发人员。"></uc2:PageInfo>
  38. <fieldset>
  39. <legend style="background:url(../images/icons/legendimg.jpg) no-repeat 6px 50%;">计划任务名称</legend>
  40. <table width="100%">
  41. <tr><td class="item_title" colspan="2">用户名</td></tr>
  42. <tr>
  43. <td class="vtop rowform">
  44. <cc1:TextBox id="key" runat="server"  CanBeNull="必填" Width="250"></cc1:TextBox><input type="hidden" name="oldkey" id="oldkey" runat="server" />
  45. </td>
  46. <td class="vtop"></td>
  47. </tr>
  48. <tr><td class="item_title" colspan="2">计划任务类型</td></tr>
  49. <tr>
  50. <td class="vtop rowform">
  51.  <cc1:TextBox id="scheduletype" runat="server"  CanBeNull="必填" Width="400"></cc1:TextBox>
  52. </td>
  53. <td class="vtop">例如:Discuz.Forum.ScheduledEvents.TagsEvent, Discuz.Forum</td>
  54. </tr>
  55. <tr><td class="item_title" colspan="2">执行方式</td></tr>
  56. <tr>
  57. <td class="vtop rowform">
  58. <asp:RadioButton ID="type1" GroupName="type" runat="server" Checked="true" />&nbsp;定时执行&nbsp;&nbsp;
  59. <cc1:DropDownList ID="hour" runat="server"/>&nbsp;时&nbsp;<cc1:DropDownList ID="minute" runat="server" />&nbsp;分&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  60. <asp:RadioButton ID="type2" GroupName="type" runat="server" />&nbsp;周期执行&nbsp;&nbsp;
  61. <cc1:TextBox ID="timeserval" runat="server" Width="40" ></cc1:TextBox>&nbsp;分钟
  62. </td>
  63. <td class="vtop"></td>
  64. </tr>
  65. <tr><td class="item_title" colspan="2">启用</td></tr>
  66. <tr>
  67. <td class="vtop rowform">
  68. <cc1:RadioButtonList ID="eventenable" runat="server">
  69. <asp:ListItem Value="1">是</asp:ListItem>
  70. <asp:ListItem Value="0">否</asp:ListItem>
  71. </cc1:RadioButtonList>
  72. </td>
  73. <td class="vtop"></td>
  74. </tr>
  75. </table>
  76. <div class="Navbutton">
  77. <input type="hidden" id="apikeyhidd" runat="server" />
  78. <cc1:Button id="savepassportinfo" runat="server" Text=" 提 交 " OnClick="savepassportinfo_Click" ValidateForm="true"></cc1:Button>&nbsp;&nbsp;
  79. <button type="button" class="ManagerButton" id="Button3" onclick="window.location='global_schedulemanage.aspx';"><img src="../images/arrow_undo.gif"/> 返 回 </button>
  80. </div>
  81. </fieldset>
  82. <cc1:Hint ID="hint1" runat="server" HintImageUrl="../images"></cc1:Hint>
  83. </div>
  84. </form>
  85. <%=footer%>
  86. </body>
  87. </html>