⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tongxun_geren_edit.jsp

📁 oa办公系统
💻 JSP
字号:
<%@ page language="java" import="java.sql.*,cn.jx.ecjtu.oa.ps.pojo.*,java.text.SimpleDateFormat" pageEncoding="GBK"%>
<jsp:directive.page import="java.sql.Date"/>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<title>修改联系人名片信息</title>
<link href="../common/defaultFa/css/all.css" rel="stylesheet" type="text/css" />
<link href="../common/defaultFa/css/css.css" rel="stylesheet" type="text/css" />
</head>
<script type="text/javascript">
  function fanhui(groupId){
  var url="listusercardServlet?id="+groupId;                                                                                              
  document.form1.action=url;
  document.form1.submit();
  }
  function comsave(){
  var a=document.form1.uscardname.value;
       if (a.length==0)
       {
           alert("姓名不能为空,请输入姓名!");
           document.form1.uscardname.focus(); 
           document.form1.uscardname.select();
        }else{
              document.form1.action="modifyusercardServlet";
              document.form1.submit();
             }
  }
  function date(groupId){
           var xx=event.clientX;
           var yy=event.clientY;
           document.form1.birthday.value=window.showModalDialog("tongxun_geren_add_SelectDate.jsp","12435","dialogWidth:350px;dialogHeight:180px;dialogLeft:"+xx+"px;dialogTop:"+yy+"px;status:0;");
           document.form1.company.select();
     }

</script>

<body style="overflow-y:auto"  background="summer_relaxation_JD047.jpg">
<form name="form1" method="post" action="">
<input type="hidden" name="cardId" value="${requestScope.session_usercard.card_id }"/>
<table border="0" align="center" cellpadding="0" cellspacing="0" class="tb_title">
  <tr>
    <th align="left" valign="middle">修改联系人名片信息</th>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tb_form">
  <tr>
    <td height="22" align="right">分&nbsp;&nbsp;&nbsp;组:</td>
    <td><select name="groupId" id="groupname">
<c:forEach items="${requestScope.session_group}" var="group">
<option value="${group.group_id}" ${group.group_id==requestScope.session_usercard.group_id? "selected":""}>${group.group_name}</option>
</c:forEach>
        </select></td>
  </tr>
  <tr>
    <td width="120" height="29" align="right">姓&nbsp;&nbsp;&nbsp;名:</td>
    <td><input name="uscardname" type="text"  value="${requestScope.session_usercard.name }" onblur="che()"/></td>
  </tr>
   <tr>
    <td width="120" height="22" align="right">性&nbsp;&nbsp;&nbsp;别:</td>
    <td><select name="gender" id="gendername">
    
      <option value="true" ${requestScope.session_usercard.gender? "selected":"" }>男</option>
      <option value="false" ${requestScope.session_usercard.gender? "":"selected" }>女</option>
              
                </select></td>
  </tr>
   <tr>
     <td height="22" align="right">出生日期:</td>
     
      <td><input type="text" name="birthday" onfocus="date()"  value="${requestScope.session_usercard.birthday }" /></td>
   
   </tr>
   <tr>
     <td height="22" align="right">联系单位:</td>
     <td><input name="company" type="text"  value="${requestScope.session_usercard.company_name }"/></td>
   </tr>
   <tr>
     <td height="22" align="right">职&nbsp;&nbsp;&nbsp;务:</td>
     <td><input name="duty" type="text"  value="${requestScope.session_usercard.duty}"/></td>
   </tr>
  <tr>
    <td width="120" height="22" align="right">联系地址:</td>
    <td><input name="address" type="text"  value="${requestScope.session_usercard.home_address}"/></td>
  </tr>
  <tr>
    <td height="22" align="right">联系电话:</td>
    <td><input name="tel" type="text"  value="${requestScope.session_usercard.phone}"/></td>
  </tr>
  <tr>
    <td height="22" align="right">电子邮件:</td>
    <td><input name="email" type="text"  value="${requestScope.session_usercard.email}"/></td>
  </tr>
  <tr>
    <td height="22" align="right">Q&nbsp;&nbsp;Q:</td>
    <td><input name="qq" type="text" value="${requestScope.session_usercard.qq}"/></td>
  </tr>
  <tr>
    <td width="120" height="22" align="right"><p>M&nbsp;S&nbsp;N:</p>    </td>
    <td><input name="msn" type="text"  value="${requestScope.session_usercard.msn}"/></td>
  </tr>
</table>
<table border="0" align="center" cellpadding="0" cellspacing="0" class="tb_foot">
  <tr>
    <td height="40" align="center">	
	  <div align="left">
	        <input type="button" name="retbtn"   value=" 返  回 " onClick="fanhui(${requestScope.session_usercard.group_id })">
	        <input type="button" name="btnsave"   value=" 保    存 " onClick="comsave()">
    </div></td>
  </tr>
</table>
</form>
</body>

</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -