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

📄 updatecompany.jsp

📁 网站开发模板框架 网站开发模板 网站开发模板 网站开发模板框架
💻 JSP
字号:
<%@ page contentType="text/html;charset=gb2312" %>
<%@ page import="com.web.component.*" %>
<%com.web.action.ActionContent input =(com.web.action.ActionContent) request.getAttribute("input");%>
<%
if(input==null)input=new com.web.action.ActionContent();
String jsppath=input.getParam("jsppath");%>
<html>
<head>
<script src="jsp/common/checkform.js"></script>
<link rel="stylesheet" type="text/css" href="jsp/project/css/main.css" media="all" />
<style>
A{
	behavior:url(jsp/mdi/Link.htc);
}
</style>

<script>
function save(){
     document.frm.cmd.value="doupdate";
       if(checkform(document.frm))     
     document.frm.submit();
}

function saveback(){
     document.frm.cmd.value="doupdateback";
     if(checkform(document.frm))
     document.frm.submit();
}
</script>
</head>

<BODY class=mainpage >
  <form  name=frm action="project.company.page" method="post" onSubmit="return checkform(this)">
  <input type=hidden name=cmd value="doupdate">
   <INPUT class=button  type=button onclick="save()" value=保存>  
   <INPUT class=button  type=button onclick="saveback()" value=保存并返回>
   <input type=button class=button value="返回" onclick="history.back(-1)"> 
       <TABLE class=std cellSpacing=1 cellPadding=1 width="100%" border=0>
        <TR>
        <input type=hidden name="key.company_id" value="<%=input.getParam("company_id")%>">
        <input type=hidden name="query.company_id.equ.int" value="<%=input.getParam("company_id")%>">
          <TD align=right width="83">公司名称:</TD>
          <TD width="233"><INPUT class=text maxLength=255 size=50 value="<%=input.getParam("company_name")%>" 
            name=modle.company_name style="width: 224; height: 20" dataType="Require" msg="公司名称不能为空">  &nbsp; </TD> 
          <TD width="1"> </TD>
          <TD align=right width="63">地址1:</TD>
          <TD width="467"><INPUT class=text maxLength=255 size=50 value="<%=input.getParam("company_address1")%>" 
            name=modle.company_address1 style="width: 219; height: 20"> </TD></TR> 
        <TR>
          <TD align=right width="83">Email:</TD>
          <TD width="233"><INPUT class=text maxLength=255 size=30 name=modle.company_email value="<%=input.getParam("company_email")%>"> 
        </TD>
          <TD width="1"> 
        </TD>
          <TD align=right width="63">地址2:</TD>
          <TD width="467"><INPUT class=text maxLength=255 size=50 
        name=modle.company_address2 value="<%=input.getParam("company_address2")%>"   style="width: 219; height: 20"> 
        </TD></TR>
        <TR>
          <TD align=right width="83">电话:</TD>
          <TD width="233"><INPUT class=text maxLength=30 value="<%=input.getParam("company_phone1")%>" 
            name=modle.company_phone1> </TD>
          <TD width="1"> </TD>
          <TD align=right width="63">城市:</TD>
          <TD width="467"><INPUT class=text maxLength=50 size=50 value="<%=input.getParam("company_city")%>" 
            name=modle.company_city style="width: 128; height: 20"> </TD></TR>
        <TR>
          <TD align=right width="83">电话2:</TD>
          <TD width="233"><INPUT class=text maxLength=50 name=modle.company_phone2 value="<%=input.getParam("company_phone2")%>"> </TD>
          <TD width="1"> </TD>
          <TD align=right width="63">省/直辖市/自治区:</TD>
          <TD width="467"><INPUT class=text maxLength=50 value="<%=input.getParam("company_state")%>"
        name=modle.company_state size="20"> </TD></TR>
        <TR>
          <TD align=right width="83">传真:</TD>
          <TD width="233"><INPUT class=text maxLength=30 value="<%=input.getParam("company_fax")%>" 
            name=modle.company_fax> </TD>
          <TD width="1"> </TD>
          <TD align=right width="63">邮政编码:</TD>
          <TD width="467"><INPUT class=text maxLength=15 value="<%=input.getParam("company_zip")%>"
        name=modle.company_zip size="20"> </TD></TR>
        <TR>
          <TD align=right width="83"></TD>
          <TD colspan="4" width="814"></TD></TR>
        <TR>
          <TD align=right width="83">URL http://<A name=x></A></TD>   
          <TD colspan="4" width="814"><INPUT class=text maxLength=255 size=50 
            name=modle.company_primary_url value="<%=input.getParam("company_primary_url")%>"> 
          </TD></TR>
        <TR>
          <TD align=right width="83">公司法人:</TD>
          <TD colspan="4" width="814"><SELECT class=text size=1 name=modle.company_owner> 
           <%=new Options(input.getParamObj("user"),input.getParam("company_owner"))%>
          </SELECT> </TD></TR>
        <TR>
          <TD align=right width="83">类型:</TD>
          <TD colspan="4" width="814"><SELECT class=text size=1 name=modle.company_type> <%=new Options(input.getParamObj("companytype"),input.getParam("company_type"))%></SELECT> </TD></TR>
        <TR>
          <TD vAlign=top align=right width="83">概述:</TD>
          <TD align=left colspan="4" width="814"><TEXTAREA class=textarea name=modle.company_description rows=10 cols=89>
          <%=input.getParam("company_description")%>          
          </TEXTAREA> 
          </TD></TR>
        <TR>
          <TD align=middle width="83"></TD></TR>
          
          
          </TABLE>
</form>

       
</BODY></HTML>

⌨️ 快捷键说明

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