lxrxxSelectSendEmail.jsp
上传用户:quasar007
上传日期:2022-08-11
资源大小:4067k
文件大小:5k
源码类别:

企业管理

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312"%>
  2. <html>
  3. <%@ page import="com.domain.LxrxxForm"%>
  4. <%@ page import="java.sql.*"%>
  5. <%@ page import="java.util.List"%>
  6. <%List list=(List)request.getAttribute("list");%>
  7. <head>
  8. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  9. <title>发送电子邮件</title>
  10. <style type="text/css">
  11. <!--
  12. body {
  13. background-color: #000000;
  14. margin-left: 0px;
  15. margin-top: 0px;
  16. }
  17. td{
  18. font-size:9pt;
  19. }
  20. .style1 {font-size: 11pt}
  21. -->
  22. </style></head>
  23. <body>
  24. <table width="579"  border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> 
  25.   <tr> 
  26.     <td>&nbsp;</td> 
  27.   </tr> 
  28. </table> 
  29. <table width="579" border="0" cellpadding="0" cellspacing="0"> 
  30.   <tr> 
  31.     <td align="left" valign="top" bgcolor="#FFFFFF"> <table width="579" height="487"  border="0" cellpadding="0" cellspacing="0"> 
  32.         <tr> 
  33.           <td align="left" valign="top" bgcolor="#FFFFFF"><table width="579" border="0" cellpadding="0" cellspacing="0"> 
  34.               <tr> 
  35.                 <td width="2%" height="28">&nbsp;</td> 
  36.                 <td width="9%" background="images/circle.jpg">&nbsp;</td> 
  37.                 <td width="89%" bgcolor="#FFFFFF"><span class="style1">发送电子邮件</span></td> 
  38.   
  39.           </tr> 
  40.               <tr style="line-height:2px"> 
  41.                 <td width="2%" height="5">&nbsp;</td> 
  42.                 <td height="5" colspan="2" bgcolor="#D4D0C8">&nbsp;</td> 
  43.               </tr> 
  44.               <tr align="center" valign="top" bgcolor="#FFFFFF"> 
  45.                 <td height="454" colspan="3">&nbsp;  
  46. <script language="JavaScript">
  47. <!--
  48. function validate_form() {
  49.   validity = true;
  50.   if (!check_empty(document.form.NAME.value))
  51.         { validity = false; alert('对不起!请你填入你的姓名。'); }
  52.   if (!check_email(document.form.EMAIL.value))
  53.         { validity = false; alert('对不起!请重新正确填入Email地址。'); }
  54.   if (!check_empty(document.form.DESCRIPTION.value))
  55.         { validity = false; alert('对不起!请你在"简要描述"留言填入留言。'); }
  56.   if (validity)
  57.         alert ("                      谢谢你的来信.                                  "
  58.                 + "              你所填的信息将以Email形式发送给我,                      "
  59.                 + "              假如你认为本站内容不错的话,请将本                       "
  60.                 + "              介绍给你的朋友,希望大家经常光顾本站。");
  61.   return validity; 
  62. }
  63. function check_empty(text) {
  64.   return (text.length > 0); 
  65. }
  66. function check_email(address) {
  67.   if ((address == "")
  68.     || (address.indexOf ('@') == -1)
  69.     || (address.indexOf ('.') == -1))
  70.       return false;
  71.   return true;
  72. }
  73. // -->
  74. </script>
  75. <%for(int i=0;i<list.size();i++){
  76. LxrxxForm form=(LxrxxForm)list.get(i);    
  77. %> 
  78. <form name="form" method="post" action="../<%=form.getLxrxx_Email()%>" 
  79. enctype="text/plain" onSubmit="return validate_form()"> <%}%>
  80.               <table width="90%" border="0" cellspacing="0" cellpadding="0">
  81.                 <tr> 
  82.                   <td width="77%"> 
  83.                     <div align="left">
  84.                       <table width="86%" border="1" align="center" cellpadding="5" cellspacing="0" bordercolorlight="#008000" bordercolordark="#FFFFFF">
  85.                         <tr>
  86.                           <td width="21%" align="right"><font size="3">姓&nbsp;   
  87.                             名:</font> 
  88.                           </td>
  89.                           <td width="79%"> 
  90.                       <input type="text" size=25 name="NAME">
  91.                           </td>
  92.                         </tr>
  93.                         <tr>
  94.                           <td width="21%" align="right">邮箱地址<font size="3">&nbsp; </font></td>
  95.                           <td width="79%"> <%for(int i=0;i<list.size();i++){
  96. LxrxxForm form=(LxrxxForm)list.get(i);    
  97. %> 
  98.                       <input type="hidden" size=33 name="EMAIL" value="<%=form.getLxrxx_Email()%>"><%=form.getLxrxx_Email()%> <%}%>
  99.                           </td>
  100.                         </tr>
  101.                      
  102.                         <tr>
  103.                           <td width="21%" align="right"><font size="3">留&nbsp;   
  104.                             言:</font></td>
  105.                           <td width="79%">
  106.                       <textarea name="DESCRIPTION" rows=8 cols=45 wrap=virtual></textarea>
  107.                           </td>
  108.                         </tr>
  109.                         <tr>
  110.                           <td width="21%" align="right"> </td>
  111.                           <td width="79%">
  112.                       <input type="submit" name="submit" value="发送"><input type="reset" value="清除" name="reset">
  113.                           </td>
  114.                         </tr>
  115.                       </table>
  116.                     </div>
  117.                   </td>
  118.                 </tr>
  119.               </table>
  120.               </form>
  121.               </td>
  122.               </tr> 
  123.       </table></td> 
  124.   </tr> 
  125. </table>
  126. </body>
  127. </html>      
  128.     
  129.     
  130.     
  131.     
  132.