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

SCSI/ASPI

开发平台:

Others

  1. <%@ Page Language="c#" Inherits="Discuz.Web.Admin.usergroupsendemail" Codebehind="global_usergroupsendemail.aspx.cs" %>
  2. <%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  3. <%@ Register TagPrefix="uc1" TagName="TextareaResize" Src="../UserControls/TextareaResize.ascx" %>
  4. <%@ Register TagPrefix="cc3" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  5. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  6. <html>
  7. <head>
  8. <title>用户组邮件群发</title>
  9. <link href="../styles/tab.css" type="text/css" rel="stylesheet" />
  10. <link href="../styles/dntmanager.css" type="text/css" rel="stylesheet" />
  11. <link href="../styles/modelpopup.css" type="text/css" rel="stylesheet" />
  12. <script type="text/javascript" src="../js/common.js"></script>
  13. <script type="text/javascript" src="../js/modalpopup.js"></script>
  14. <script type="text/javascript">
  15. function nodeCheckChanged(node)
  16. {
  17. var status = "未选取"; 
  18. if (node.Checked) status = "选取"; 
  19. }  
  20. </script>
  21. <script type="text/javascript">
  22. function changelayer(objectname)
  23. {
  24. if(objectname == "user")
  25. {
  26. document.getElementById("user").style.display = 'block';
  27. document.getElementById("usernamelist").focus();
  28. document.getElementById("chkall").checked = false;
  29. CheckByName(document.getElementById("Form1"),'Usergroups','null');
  30. document.getElementById("usergroup").style.display = 'none';
  31. }
  32. else
  33. {
  34. document.getElementById("usergroup").style.display = 'block';
  35. document.getElementById("usernamelist").value = "";
  36. document.getElementById("user").style.display = 'none';
  37. }
  38. }
  39. </script>
  40. <meta http-equiv="X-UA-Compatible" content="IE=7" />
  41. </head>
  42. <body>
  43. <form id="Form1" method="post" runat="server">
  44. <cc1:Hint ID="Hint1" runat="server" HintImageUrl="../images"></cc1:Hint>
  45. <div class="ManagerForm">
  46. <fieldset>
  47. <legend style="background: url(../images/icons/icon41.jpg) no-repeat 6px 50%;">批量邮件发送</legend>
  48. <table width="100%">
  49. <tr><td class="item_title" colspan="2">要邮件发送给谁?</td></tr>
  50. <tr>
  51. <td class="vtop rowform">
  52. <input type="radio" name="sendobject" onclick="changelayer('user');" checked="checked" />&nbsp;用户&nbsp;&nbsp;&nbsp;&nbsp;
  53.             <input type="radio" name="sendobject" onclick="changelayer('usergroup');" />&nbsp;用户组
  54. </td>
  55. <td class="vtop"></td>
  56. </tr>
  57. <tbody id="user">
  58. <tr><td class="item_title" colspan="2">接收邮件用户名称</td></tr>
  59. <tr>
  60. <td class="vtop rowform">
  61.  <cc1:TextBox ID="usernamelist" runat="server" CanBeNull="可为空" RequiredFieldType="暂无校验" Width="400" Height="40" TextMode="MultiLine"></cc1:TextBox>
  62. </td>
  63. <td class="vtop">要发送的用户名列表,以","进行分割</td>
  64. </tr>
  65. </tbody>
  66. <tbody id="usergroup" style="display:none">
  67. <tr><td class="item_title" colspan="2">接收邮件的用户组</td></tr>
  68. <tr>
  69. <td class="vtop rowform">
  70. <input type="checkbox" id="chkall" name="chkall" onclick="CheckAll(this.form);" />选择全部/取消
  71. <br />
  72. <cc1:CheckBoxList ID="Usergroups" runat="server" RepeatColumns="4"></cc1:CheckBoxList>
  73. <input type="hidden" name="flag" id="flag" />
  74. </td>
  75. <td class="vtop"><a href = "#" onclick="document.getElementById('flag').value=1;Form1.submit()">导出所有选中用户组用户的Email</a></td>
  76. </tr>
  77. </tbody>
  78. <tr><td class="item_title" colspan="2">邮件标题</td></tr>
  79. <tr>
  80. <td class="vtop rowform">
  81. <cc1:TextBox ID="subject" runat="server" CanBeNull="必填" RequiredFieldType="暂无校验" Width="400"></cc1:TextBox>
  82. </td>
  83. <td class="vtop"></td>
  84. </tr>
  85. <tr><td class="item_title" colspan="2">邮件内容</td></tr>
  86. <tr>
  87. <td class="vtop rowform">
  88. <uc1:TextareaResize ID="body" runat="server" controlname="TabControl1:tabPage51:body" rows="18" cols="80"></uc1:TextareaResize>
  89. </td>
  90. <td class="vtop"></td>
  91. </tr>
  92. </table>
  93. <div class="Navbutton">
  94. <cc1:Button ID="BatchSendEmail" runat="server" Text=" 提 交 "></cc1:Button>
  95. </div>
  96. <asp:Label ID="lblClientSideCheck" runat="server" CssClass="hint">&nbsp;</asp:Label>
  97. <asp:Label ID="lblCheckedNodes" runat="server" CssClass="hint">&nbsp;</asp:Label>
  98. <asp:Label ID="lblServerSideCheck" runat="server" CssClass="hint">&nbsp;</asp:Label>
  99. <script type="text/javascript">
  100. document.getElementById("lblClientSideCheck").innerText = document.getElementById("lblServerSideCheck").innerText;
  101. </script>
  102. </fieldset>
  103. </div>
  104. </form>
  105. <%=footer%>
  106. </body>
  107. </html>