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

企业管理

开发平台:

Java

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