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

📄 companyinfo.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>
<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 show(obj){
if(obj.style.display=="none"){obj.style.display="block";}
else {obj.style.display="none";}
}
function del(){
if(confirm("确定要删除数据?"))
	window.location='project.company.page?cmd=del&key.company_id.int=<%=input.getParam("company_id")%>';
}
</script>

</head>

<BODY class=mainpage >
  <INPUT class=button onclick="javascript:window.location='project.company.page?cmd=update&query.company_id.equ.int=<%=input.getParam("company_id")%>'" type=button value=编辑> 
  <INPUT class=button onclick="del()" type=button value=删除>   
  <INPUT class=button onclick="javascript:window.location='project.company.page?cmd=addcontact&query.company_id.equ.int=<%=input.getParam("company_id")%>'" type=button value=新建联系人>  
  <INPUT class=button onclick="location.reload() ;" type="button" value="刷新">    
  <INPUT class=button onclick="window.top.fraMain.closewin();" type="button" value="关闭">    
  
  
       <TABLE class=std cellSpacing=0 cellPadding=4 width="100%" border=0>
        <TR>
          <TD vAlign=top width="50%"><STRONG>详细信息</STRONG> 
            <TABLE cellSpacing=1 cellPadding=2 width="100%">
              <TBODY>
              <TR>
                <TD noWrap align=right>公司:</TD>
                <TD class=hilite width="100%"><%=input.getParam("company_name")%></TD></TR>
              <TR>
                <TD noWrap align=right>Email:</TD>
                <TD class=hilite width="100%"><%=input.getParam("company_email")%></TD></TR>
              <TR>
                <TD noWrap align=right>电话:</TD>
                <TD class=hilite><%=input.getParam("company_phone1")%></TD></TR>
              <TR>
                <TD noWrap align=right>电话2:</TD>
                <TD class=hilite><%=input.getParam("company_phone2")%></TD></TR>
              <TR>
                <TD noWrap align=right>传真:</TD>
                <TD class=hilite><%=input.getParam("company_fax")%></TD></TR>
              <TR vAlign=top>
                <TD noWrap align=right>地址:</TD>
                <TD 
                  class=hilite><%=input.getParam("company_address1")%><BR><%=input.getParam("company_city")%>&nbsp;&nbsp;<%=input.getParam("company_state")%>&nbsp;&nbsp;<%=input.getParam("company_zip")%></TD></TR>
              <TR>
                <TD noWrap align=right>网址:</TD>
                <TD class=hilite><A href="<%=input.getParam("company_primary_url")%>" target=Company></A><%=input.getParam("company_name")%></TD></TR>
              <TR>
                <TD noWrap align=right>类型:</TD>
                <TD class=hilite><%=new Options(input.getParamObj("companytype"),input.getParam("company_type")).getSelectName()%></TD></TR></TBODY></TABLE></TD>
          <TD vAlign=top width="50%"><STRONG>概述</STRONG> 
            <TABLE cellSpacing=0 cellPadding=2 width="100%" border=0>
              <TBODY>
              <TR>
                <TD class=hilite>
                <%=input.getParam("company_description")%>
                &nbsp; 
                </TD></TR></TBODY></TABLE></TD></TR></TABLE>


<a href="javascript:show(tbcontact)">+联系人</a>   
          <TABLE id=tbcontact style="display:block" class=tbl cellSpacing=1 cellPadding=2 width="100%" 
              border=0>
              <TR>
                <TH width="33%">名字 
                <TH width="33%">email 
                <TH width="100%">部门 
                <TH > 
                </TR>
                
           		<%Table rscontacts=new com.web.component.Table(input.getParamObj("rscontacts"));
                      		while (rscontacts.next()){
                      		%>                   
              <TR>
                <TD><a href="project.company.page?cmd=updatecontact&query.contact_id.int=<%=rscontacts.getField("contact_id")%>"><%=rscontacts.getField("contact_first_name")%><%=rscontacts.getField("contact_last_name")%></a>
                <TD><%=rscontacts.getField("contact_email")%></TD>
                <TD><%=rscontacts.getField("contact_department")%></TD>
                <TD><A title="删除联系人" 
                        href="project.company.page?cmd=delcontact&key.contact_id.int=<%=rscontacts.getField("contact_id")%>&query.company_id.equ.int=<%=input.getParam("company_id")%>"><IMG height=16 alt="" 
                        src="<%=jsppath%>image/stock_delete-16.png" 
                        width=16 border=0> </A></TD>                
                </TR>
                
            <%}%>    
</TABLE>      
</BODY></HTML>

⌨️ 快捷键说明

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