?? companyinfo.jsp
字號(hào):
<%@ 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("確定要?jiǎng)h除數(shù)據(jù)?"))
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=新建聯(lián)系人>
<INPUT class=button onclick="location.reload() ;" type="button" value="刷新">
<INPUT class=button onclick="window.top.fraMain.closewin();" type="button" value="關(guān)閉">
<TABLE class=std cellSpacing=0 cellPadding=4 width="100%" border=0>
<TR>
<TD vAlign=top width="50%"><STRONG>詳細(xì)信息</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")%> <%=input.getParam("company_state")%> <%=input.getParam("company_zip")%></TD></TR>
<TR>
<TD noWrap align=right>網(wǎng)址:</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")%>
</TD></TR></TBODY></TABLE></TD></TR></TABLE>
<a href="javascript:show(tbcontact)">+聯(lián)系人</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%">部門(mén)
<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="刪除聯(lián)系人"
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>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -