edit_mail_old.asp
资源名称:imail.rar [点击查看]
上传用户:lwb168
上传日期:2021-10-31
资源大小:722k
文件大小:5k
源码类别:
Email服务器
开发平台:
ASP/ASPX
- <!--#include file = admin_conn.asp -->
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <title>新增--群发邮件</title>
- <base target="_self">
- <STYLE type="text/css"> <!-- a:link { text-decoration: none; font-family: AdobeSm; color: #000000 }
- a:visited { text-decoration: none; color: #000000 }
- A:hover {COLOR: green; FONT-FAMILY: "宋体"; TEXT-DECORATION: underline;}
- body { font-size: 9pt; font-family: 宋体, Arial;color: #000000}
- TD {FONT-SIZE: 9pt; FONT-FAMILY: "宋体", "Arial";color: #000000}
- p {FONT-SIZE: 9pt; FONT-FAMILY: "宋体", "Arial";color: #000000}
- input {FONT-SIZE: 9pt; FONT-FAMILY: "宋体", "Arial";color: #000000}
- body { margin-top: 0; margin-bottom: 0; color: #000000 }
- --></STYLE>
- </head>
- <body>
- <%
- if request("id")<>"" then
- id=request("id")
- sql = "select * from mail where id="&id
- Set rs = Server.CreateObject("ADODB.RecordSet")
- rs.Open sql,conn,1,1
- name1=rs("name")
- email=rs("email")
- email_pop=rs("email_pop")
- email_pass=rs("email_pass")
- title=rs("title")
- add=rs("add")
- content=rs("info")
- rs.close
- set rs=nothing
- end if
- %>
- <form method="POST" action="admin_news_add_save.asp<%if request("id")<>"" then response.write "?edit=1&id="&request("id")%>" onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript" name="FrontPage_Form1">
- <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#0000FF">
- <tr>
- <td width="14%" height="25" bgcolor="#FFFFFF"><font size="2">发件人名称:</font></td>
- <td width="67%" bgcolor="#FFFFFF"> <input name="name" type="text" id="name" value="<%=name1%>">
- </td>
- <td width="19%" rowspan="6" bgcolor="#FFFFFF">邮件列表:
- <textarea name="add" rows="40" id="add"><%=add%></textarea></td>
- </tr>
- <tr>
- <td height="25" bgcolor="#FFFFFF"><font size="2">发件人邮箱:</font></td>
- <td height="10" bgcolor="#FFFFFF"> <input name="email" type="text" id="email" value="<%=email%>"></td>
- </tr>
- <tr>
- <td height="25" bgcolor="#FFFFFF">发件人POP3邮箱<font size="2">:</font></td>
- <td height="4" bgcolor="#FFFFFF"><input name="email_pop" type="text" id="email_pop" value="<%=email_pop%>">
- </td>
- </tr>
- <tr>
- <td height="25" bgcolor="#FFFFFF"><font size="2">发件人邮箱密码:</font></td>
- <td height="5" bgcolor="#FFFFFF"><input name="email_pass" type="password" id="email_pass" value="<%=email_pass%>"></td>
- </tr>
- <tr>
- <td height="25" bgcolor="#FFFFFF"><font size="2">发件主题:</font></td>
- <td height="10" bgcolor="#FFFFFF"> <input name="title" type="text" id="title" value="<%=title%>" size="70"></td>
- </tr>
- <tr>
- <td height="500" colspan="2" bgcolor="#FFFFFF">
- <table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0">
- <tr>
- <td>
- <!--webbot BOT="GeneratedScript" PREVIEW=" " startspan -->
- <script Language="JavaScript" Type="text/javascript"><!--
- function FrontPage_Form1_Validator(theForm)
- {
- if (theForm.title.value == "")
- {
- alert("请在 新闻信息标题 域中输入值。");
- theForm.title.focus();
- return (false);
- }
- if (theForm.title.value.length < 5)
- {
- alert("在 新闻信息标题 域中,请至少输入 5 个字符。");
- theForm.title.focus();
- return (false);
- }
- if (theForm.title.value.length > 100)
- {
- alert("在 新闻信息标题 域中,请最多输入 100 个字符。");
- theForm.title.focus();
- return (false);
- }
- return (true);
- }
- //--></script><!--webbot BOT="GeneratedScript" endspan -->
- <table border="1" width="100%" id="table2" cellspacing="0" cellpadding="5" style="border-collapse: collapse" bordercolor="#80ABF4">
- <tr style="DISPLAY: none">
- <td width="10%" align="center">新闻信息标题</td>
- <td width="47%">
- <!--webbot bot="Validation" s-display-name="新闻信息标题" b-value-required="TRUE" i-minimum-length="5" i-maximum-length="100" -->
- </td style="DISPLAY: none">
- <td width="40%">填写新闻信息标题(不能超过100字)</td>
- </tr>
- <tr style="DISPLAY: none">
- <td width="10%" align="center">栏目选择</td>
- <td width="47%"> <select size="1" name="lm">
- </select><textarea name="content" style="display:none" cols="1" rows="1"><%if content<>"" then response.write content%></textarea></td>
- <td width="40%"> </td>
- </tr>
- <tr>
- <td colspan="3">
- <IFRAME ID="eWebEditor1" SRC="edit/ewebeditor.asp?id=content&style=news" FRAMEBORDER="0" SCROLLING="no" WIDTH="100%" HEIGHT="400" marginwidth="1" marginheight="1" name="wfasdg"></IFRAME></td>
- </tr>
- <tr>
- <td width="10%"> </td>
- <td width="47%"> </td>
- <td width="40%"> </td>
- </tr>
- </table>
- <p align="center"><input type="submit" value=" 保 存 " name="B1"> <input type="reset" value=" 重 置 " name="B2"></p>
- <p> </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </form>
- </body>
- </html>
- <%
- conn.close
- set conn=nothing
- %>