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

企业管理

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312"%>
  2. <html>
  3. <%java.util.Date date=new java.util.Date();%>
  4. <%@ page import="com.domain.LxrxxForm"%>
  5. <%@ page import="java.sql.*"%>
  6. <%@ page import="java.util.List"%>
  7. <%List list=(List)request.getAttribute("list");%>
  8. <script language="JavaScript">
  9. function RgTest(){
  10. if(document.form.id.value==""){
  11. window.alert("请输入联系人编号");
  12. return false;
  13. }
  14. if(document.form.xm.value==""){
  15. window.alert("请输入联系人姓名");
  16. return false;
  17. }
  18. if(document.form.sex.value==""){
  19. window.alert("请输入联系人性别");
  20. return false;
  21. }
  22. if(document.form.age.value==""){
  23. window.alert("请输入联系人年龄");
  24. return false;
  25. }
  26. if(document.form.profession.value==""){
  27. window.alert("请输入联系人职业");
  28. return false;
  29. }
  30. if(document.form.tel.value==""){
  31. window.alert("请输入联系人办公电话");
  32. return false;
  33. }
  34. if(document.form.email.value==""){
  35. window.alert("请输入联系人电子邮件");
  36. return false;
  37. }
  38. if(document.form.sj.value==""){
  39. window.alert("请输入联系人手机");
  40. return false;
  41. }
  42. if(document.form.kh.value==""){
  43. window.alert("请输入是否客户联系人");
  44. return false;
  45. }
  46. if(document.form.bz.value==""){
  47. window.alert("请输入客户备注信息");
  48. return false;
  49. }
  50. if(document.form.grjj.value==""){
  51. window.alert("请输入个人简介");
  52. return false;
  53. }
  54. return true;
  55. }
  56. </script>
  57. <head>
  58. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  59. <title>修改联系人详细信息</title>
  60. <style type="text/css">
  61. <!--
  62. body {
  63. background-color: #000000;
  64. margin-left: 0px;
  65. margin-top: 0px;
  66. }
  67. td{
  68. font-size:9pt;
  69. }
  70. .style1 {font-size: 11pt}
  71. -->
  72. </style></head>
  73. <body>
  74. <table width="579"  border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> 
  75.   <tr> 
  76.     <td>&nbsp;</td> 
  77.   </tr> 
  78. </table> 
  79. <table width="579" border="0" cellpadding="0" cellspacing="0"> 
  80.   <tr> 
  81.     <td align="left" valign="top" bgcolor="#FFFFFF"> <table width="579" height="487"  border="0" cellpadding="0" cellspacing="0"> 
  82.         <tr> 
  83.           <td align="left" valign="top" bgcolor="#FFFFFF"><table width="579" border="0" cellpadding="0" cellspacing="0"> 
  84.               <tr> 
  85.                 <td width="2%" height="28">&nbsp;</td> 
  86.                 <td width="9%" background="images/circle.jpg">&nbsp;</td> 
  87.                 <td width="89%" bgcolor="#FFFFFF"><span class="style1">修改联系人详细信息</span></td> 
  88.               </tr> 
  89.               <tr style="line-height:2px"> 
  90.                 <td width="2%" height="5">&nbsp;</td> 
  91.                 <td height="5" colspan="2" bgcolor="#D4D0C8">&nbsp;</td> 
  92.               </tr> 
  93.               <tr align="center" valign="top" bgcolor="#FFFFFF"> 
  94.                 <td height="454" colspan="3">
  95.                   <table width="100%"  border="0" cellspacing="0" cellpadding="0">
  96.                     <tr>
  97.                       <td>&nbsp;</td>
  98.                     </tr>
  99.                   </table>
  100.                   <%for(int i=0;i<list.size();i++){
  101. LxrxxForm form=(LxrxxForm)list.get(i);    
  102. %>  <form name="form" method="post" action="lxrxxUpdate.do?number=<%=form.getId()%>&manager=<%=form.getLxrxx_xxdjr()%>" onSubmit="return RgTest()">
  103.                   <table width="95%"  border="1" cellspacing="0" cellpadding="0">
  104.                     <tr>
  105.                       <td width="16%" height="25" bgcolor="#FFCC00">联系人编号</td>
  106.                       <td width="33%"><div align="center"> <input type="hidden" name="id" value="<%=form.getLxrxx_id()%>"><%=form.getLxrxx_id()%>
  107.                       </div></td>
  108.                       <td width="17%"  bgcolor="#FFCC00">企业名称</td>
  109.                       <td width="34%"><div align="center"><input type="text" name="mc" value="<%=form.getLxrxx_qymc()%>"></div></td>
  110.                     </tr>
  111.                     <tr>
  112.                       <td height="22" width="16%"  bgcolor="#FFCC00">联系人姓名</td>
  113.                       <td width="33%" ><div align="center"><input type="text" name="xm" value="<%=form.getLxrxx_xm()%>"></div></td>
  114.                       <td width="17%"  bgcolor="#FFCC00">联系人性别</td>
  115.                       <td width="34%" ><div align="center"> 
  116.        <select name="sex">
  117. <%  if(form.getLxrxx_xb().equals("男")){%>
  118. <option value="男">男</option>
  119. <option value="女">女</option><%}else{%>
  120.                           <option value="女">女</option>
  121.    <option value="男">男</option>
  122.    <%}%>
  123.     </select>
  124.                       </div></td>
  125.                     </tr>
  126.                     <tr>
  127.                       <td height="22" width="16%"  bgcolor="#FFCC00">出生年月</td>
  128.                       <td width="41%" ><div align="center">
  129.                        <input type="hidden" name="csny" value="<%=form.getLxrxx_csny()%>"><%=form.getLxrxx_csny()%>
  130.                       
  131.                       </div></td>
  132.                       <td width="17%"  bgcolor="#FFCC00">联系人年龄</td>
  133.                       <td width="34%" ><div align="center"><input type="text" name="age" value="<%=form.getLxrxx_nl()%>"></div></td>
  134.                     </tr>
  135.                     <tr>
  136.                       <td height="22" width="16%"  bgcolor="#FFCC00">联系人职位</td>
  137.                       <td width="33%" ><div align="center"><input type="text" name="profession" value="<%=form.getLxrxx_zw()%>"></div></td>
  138.                       <td width="17%"  bgcolor="#FFCC00">联系人办公电话</td>
  139.                       <td width="34%" ><div align="center"><input type="text" name="tel" value="<%=form.getLxrxx_bgdh()%>"></div></td>
  140.                     </tr>
  141.                     <tr>
  142.                       <td height="22" width="16%"  bgcolor="#FFCC00">联系人电子邮件</td>
  143.                       <td width="33%" ><div align="center"><input type="text" name="email" value="<%=form.getLxrxx_Email()%>"></div></td>
  144.                       <td width="17%"  bgcolor="#FFCC00">联系人手机</td>
  145.                       <td width="34%" ><div align="center"><input type="text" name="sj" value="<%=form.getLxrxx_sj()%>"></div></td>
  146.                     </tr>
  147.                     <tr>
  148.                       <td height="22" width="16%"  bgcolor="#FFCC00">更新登记日期</td>
  149.                       <td width="33%" ><div align="center"><input type="hidden" name="djrq" value="<%=date.getYear()+1900%>年<%=date.getMonth()+1%>月<%=date.getDate()%>日"><%=date.getYear()+1900%>年<%=date.getMonth()+1%>月<%=date.getDate()%>日
  150.                         </div></td>
  151.                       <td width="17%"  bgcolor="#FFCC00">信息登记人</td>
  152.                       <td width="34%" ><div align="center"><input type="hidden" name="manager" value="<%=form.getLxrxx_xxdjr()%>"><%=form.getLxrxx_xxdjr()%></div></td>
  153.                     </tr>
  154.                     <tr>
  155.                       <td height="22" width="16%"  bgcolor="#FFCC00">是否客户联系人</td>
  156.                       <td width="33%" ><div align="center">
  157.     <select name="kh">
  158.                           <%  if(form.getLxrxx_bs().equals("是")){%>
  159. <option value="是">是</option>
  160. <option value="否">否</option><%}else{%>
  161.                           <option value="否">否</option>
  162.    <option value="是">是</option>
  163.    <%}%>
  164.                         </select>
  165.     </div></td>
  166.                       <td width="17%"  bgcolor="#FFCC00">备注</td>
  167.                       <td width="34%" ><div align="center"><input type="text" name="bz" value="<%=form.getLxrxx_bz()%> "></div></td>
  168.                     </tr>
  169.                   </table>                  
  170.                   <table width="95%"  border="1" cellspacing="0" cellpadding="0">
  171.                     <tr>
  172.                       <td height="31" bgcolor="#FFCC00">个人简介</td>
  173.                     </tr>
  174.                   </table>
  175.    <table width="94%" height="91"  border="1" cellpadding="0" cellspacing="0">
  176.                     <tr>
  177.                       <td height="89"><div  align="center"><textarea name="grjj" cols="75" rows="12" id="grjj"><%=form.getLxrxx_grjj()%></textarea></div></td>
  178.                     </tr>
  179.                   </table> 
  180.                   <%}%>
  181.      <p>
  182.                       <input type="submit" name="Submit2" value="提交">
  183.   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  184.                       <input type="reset" name="Submit" value="重置">
  185.                           </p>
  186.   </form> 
  187.   </td>
  188.               </tr> 
  189.       </table></td> 
  190.   </tr> 
  191. </table>
  192. </body>
  193. </html>      
  194.     
  195.     
  196.     
  197.     
  198.