📄 email_send.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file=DataBase/conn.asp-->
<!--#include file=config.asp-->
<!--#include file=purview.asp-->
<%
call email
set rs=server.CreateObject("adodb.recordset")
sql="select * from tb_Addresser order by id desc"
rs.open sql,conn,1,1
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
<!--
body {
background-color: #DFEEFF;
}
body,td,th {
font-size: 12px;
}
-->
</style>
<link href="css/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {font-weight: bold}
-->
</style>
</head>
<script language="javascript">
function checks()
{
if(form1.ClientName.value=="")
{
alert("请选择收件人");
return false;
}
else if(form1.title.value=="")
{
alert("标题不能为空");
return false;
}
else if(form1.content.value=="")
{
alert("内容不能为空");
return false;
}
}
</script>
<body >
<form name="form1" method="post" action="email_sendsave.asp">
<fieldset class="fiedset">
<legend>发送邮件</legend>
<table width="970" height="248" border="0" align="center" cellspacing="0" bgcolor="#FFFFFF" class="table">
<tr>
<td width="18%" height="30" align="right">收件人地址:</td>
<td colspan="3" ><input name="ClientName" type="text" class="in" id="ClientName" value="<%=request("email")%>" size="30" readonly="true">
<input name="post" type="hidden" id="post" value="true"></td>
<td width="8%" align="right">发件人:</td>
<td width="33%" colspan="3">
<% if not rs.eof then %>
<select name="SendName" id="SendName">
<%
for i=1 to rs.recordcount
%>
<option value="<%=rs("id")%>"><%=rs("EmailName")%></option>
<%
rs.movenext
next
else
response.Write("没有发件人,请<a href=Email_Addresser_add.asp>添加</a>")
%>
</select>
<% end if %>
</td>
</tr>
<tr>
<td height="30" align="right">邮件标题:</td>
<td colspan="3"><input name="title" type="text" class="in" id="title" size="30"></td>
<td align="right"> </td>
<td colspan="3"> </td>
</tr>
<tr>
<td height="30" align="right"> </td>
<td colspan="7" rowspan="5"><textarea name="content" cols="90" rows="9" class="table" id="content"></textarea></td>
</tr>
<tr>
<td height="30" align="right"> </td>
</tr>
<tr>
<td height="30" align="right"> </td>
</tr>
<tr>
<td height="30" align="right"> </td>
</tr>
<tr>
<td height="30" align="right"> </td>
</tr>
<tr align="center">
<td height="30" colspan="8"><input name="Submit" type="submit" class="input" value=" 发 送 " onClick="return checks()"></td>
</tr>
</table>
<table width="90%" height="5" border="0" align="center">
<tr>
<td></td>
</tr>
</table>
</fieldset>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -