- <%@ page contentType="text/html; charset=gb2312"%>
- <html>
- <%@ page import="com.domain.LxrxxForm"%>
- <%@ page import="java.sql.*"%>
- <%@ page import="java.util.List"%>
- <%List list=(List)request.getAttribute("list");%>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <title>发送电子邮件</title>
- <style type="text/css">
- <!--
- body {
- background-color: #000000;
- margin-left: 0px;
- margin-top: 0px;
- }
- td{
- font-size:9pt;
- }
- .style1 {font-size: 11pt}
- -->
- </style></head>
- <body>
- <table width="579" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
- <tr>
- <td> </td>
- </tr>
- </table>
- <table width="579" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td align="left" valign="top" bgcolor="#FFFFFF"> <table width="579" height="487" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td align="left" valign="top" bgcolor="#FFFFFF"><table width="579" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="2%" height="28"> </td>
- <td width="9%" background="images/circle.jpg"> </td>
- <td width="89%" bgcolor="#FFFFFF"><span class="style1">发送电子邮件</span></td>
- </tr>
- <tr style="line-height:2px">
- <td width="2%" height="5"> </td>
- <td height="5" colspan="2" bgcolor="#D4D0C8"> </td>
- </tr>
- <tr align="center" valign="top" bgcolor="#FFFFFF">
- <td height="454" colspan="3">
- <script language="JavaScript">
- <!--
- function validate_form() {
- validity = true;
- if (!check_empty(document.form.NAME.value))
- { validity = false; alert('对不起!请你填入你的姓名。'); }
- if (!check_email(document.form.EMAIL.value))
- { validity = false; alert('对不起!请重新正确填入Email地址。'); }
- if (!check_empty(document.form.DESCRIPTION.value))
- { validity = false; alert('对不起!请你在"简要描述"留言填入留言。'); }
- if (validity)
- alert (" 谢谢你的来信. "
- + " 你所填的信息将以Email形式发送给我, "
- + " 假如你认为本站内容不错的话,请将本 "
- + " 介绍给你的朋友,希望大家经常光顾本站。");
- return validity;
- }
- function check_empty(text) {
- return (text.length > 0);
- }
- function check_email(address) {
- if ((address == "")
- || (address.indexOf ('@') == -1)
- || (address.indexOf ('.') == -1))
- return false;
- return true;
- }
- // -->
- </script>
- <%for(int i=0;i<list.size();i++){
- LxrxxForm form=(LxrxxForm)list.get(i);
- %>
- <form name="form" method="post" action="../<%=form.getLxrxx_Email()%>"
- enctype="text/plain" onSubmit="return validate_form()"> <%}%>
- <table width="90%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="77%">
- <div align="left">
- <table width="86%" border="1" align="center" cellpadding="5" cellspacing="0" bordercolorlight="#008000" bordercolordark="#FFFFFF">
- <tr>
- <td width="21%" align="right"><font size="3">姓
- 名:</font>
- </td>
- <td width="79%">
- <input type="text" size=25 name="NAME">
- </td>
- </tr>
- <tr>
- <td width="21%" align="right">邮箱地址<font size="3"> </font></td>
- <td width="79%"> <%for(int i=0;i<list.size();i++){
- LxrxxForm form=(LxrxxForm)list.get(i);
- %>
- <input type="hidden" size=33 name="EMAIL" value="<%=form.getLxrxx_Email()%>"><%=form.getLxrxx_Email()%> <%}%>
- </td>
- </tr>
- <tr>
- <td width="21%" align="right"><font size="3">留
- 言:</font></td>
- <td width="79%">
- <textarea name="DESCRIPTION" rows=8 cols=45 wrap=virtual></textarea>
- </td>
- </tr>
- <tr>
- <td width="21%" align="right"> </td>
- <td width="79%">
- <input type="submit" name="submit" value="发送"><input type="reset" value="清除" name="reset">
- </td>
- </tr>
- </table>
- </div>
- </td>
- </tr>
- </table>
- </form>
- </td>
- </tr>
- </table></td>
- </tr>
- </table>
- </body>
- </html>