tongxun_gongsi_edit.jsp

来自「oa办公系统」· JSP 代码 · 共 67 行

JSP
67
字号
<%@ page language="java" import="java.util.*,cn.jx.ecjtu.oa.ps.pojo.*" pageEncoding="GBK"%>
<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" />
<script language="javascript">
   function btnsave(){
   var a=document.form2.compname.value;
       if (a.length==0)
       {
           alert("公司名称不能为空,请输入公司名称!");
           document.form2.compname.focus(); 
           document.form2.compname.select();
        }else{
              document.form2.action="modifycompanycardServlet";
              document.form2.submit();
              }
   
  }
     function re(){
   document.form2.action="ListCompanyCardServlet";
   document.form2.submit();
  }

</script>
</head>
<body style="overflow-y:auto"  background="summer_relaxation_JD047.jpg">
<form name="form2" method="post" action="">
<input type="hidden" name="comp_id" value="${requestScope.session_companycard.company_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 width="120" height="22" align="right">公司名称:</td>
    <td><input name="compname" type="text" value="${requestScope.session_companycard.name}" onblur="che()"/></td>
  </tr>
   <tr>
    <td width="120" height="22" align="right">公司电话:</td>
    <td><input name="comptel" type="text" value="${requestScope.session_companycard.phone}"/></td>
  </tr>
  <tr>
    <td width="120" height="22" align="right">公司地址:</td>
    <td><input name="compaddress" type="text" value="${requestScope.session_companycard.address}"/></td>
  </tr>
  <tr>
    <td width="120" height="22" align="right">公司邮编:</td>
    <td><input name="comppost" type="text" value="${requestScope.session_companycard.post}"/></td>
  </tr>
</table>
<table border="0" align="center" cellpadding="0" cellspacing="0" class="tb_foot">
  <tr>
    <td align="center">	
	<input type="button" name="exit" value=" 返  回 " onClick="re()"/>
	<input type="submit" name="btn"  value=" 保  存 " onClick="btnsave()"/></td>
  </tr>
</table>
</form>
</body>
</html>

⌨️ 快捷键说明

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