?? sbdisp.asp
字號:
<%response.expires=0%>
<%Response.Buffer=true%>
<!-- #include file="../conn_lr.asp"-->
<!-- #include file="../css.asp"-->
<%
oabusyname=session("oabusyname")
oabusyusername=session("oabusyusername")
oabusyuserdept=session("oabusyuserdept")
oabusyuserlevel=session("oabusyuserlevel")
if oabusyusername="" then
response.write("<script language=""javascript"">")
response.write("window.top.location.href='../../default.asp';")
response.write("</script>")
response.end
end if
%>
<html>
<head>
<title>詳細設備信息</title>
<meta http-equiv=Content-Type content="text/html; charset=gb2312">
<!-- #include file="../inc/css.asp" -->
<% '定義變量
dim Number,opFlag,title,image
on error resume next
Server.ScriptTimeOut =4
'獲取輸入參數:記錄號和操作標志
Number=cint(request("Number"))
opFlag=request("opFlag")
'創建記錄訪問對象
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open Session("SQL"),Session("conn"),1,3
rs.move number
title="詳細設備信息"
image="../images/sbinfo.gif"
%>
<style>
.css0{<%=vinputtext%>;border:none;}
</style>
</head>
<body>
<form name="submitinput" action="sbsave.asp?opFlag=<%=opFlag%>&Number=<%=Number%>" method="post" onSubmit="MM_validateForm('Sname','','R','Spin','','R','Scompany','','R','Padd','','R','Phone','','R','Web','','R','Mail','','R');return document.MM_returnValue" >
<!-- #include file="../inc/title.asp" -->
<table cellspacing=1 cellpadding=2 width=95% bgcolor=<%=Session("vtablebordercolor")%> border=0 class=vtext align="center">
<tr>
<td bgcolor=<%=Session("vtabletitlebackcolor")%> width="91" align="right" nowrap height="25">設備名稱:</td>
<td bgcolor=<%=Session("vcolcolor")%> height="25" colspan="3" >
<%=rs("Sname")%>
</td>
</tr>
<tr>
<td bgcolor=<%=Session("vtabletitlebackcolor")%> width="91" align="right" nowrap height="21">品牌:</td>
<td bgcolor=<%=Session("vcolcolor")%> height="21" colspan="3" >
<%=rs("Spin")%>
</td>
</tr>
<tr>
<td bgcolor=<%=Session("vtabletitlebackcolor")%> width="91" align="right" nowrap height="19">
<p align="right">生產廠商:</p>
</td>
<td bgcolor=<%=Session("vcolcolor")%> height="19" colspan="3" >
<%=rs("Scompany")%>
</td>
</tr>
<tr>
<td bgcolor=<%=Session("vtabletitlebackcolor")%> width="91" align="right" nowrap height="19">
<p align="right">公司地址:</p>
</td>
<td bgcolor=<%=Session("vcolcolor")%> height="19" colspan="3" >
<%=rs("Address")%>
</td>
</tr>
<tr>
<td bgcolor=<%=Session("vtabletitlebackcolor")%> width="91" align="right" nowrap>
<p align="right">原產地:</p>
</td>
<td bgcolor=<%=Session("vcolcolor")%> >
<%=rs("Sadd")%>
</td>
<td bgcolor=<%=Session("vtabletitlebackcolor")%> width="95" align="left" nowrap height="19">
聯系人:
</td>
<td bgcolor=<%=Session("vcolcolor")%> width="197" height="19" >
<%=rs("Chuman")%>
</td>
</tr>
<tr>
<td bgcolor=<%=Session("vtabletitlebackcolor")%> width="91" align="right" nowrap height="17">
<p align="right">聯系電話:</p>
</td>
<td bgcolor=<%=Session("vcolcolor")%> height="17" >
<%=rs("Phone")%>
</td>
<td bgcolor=<%=Session("vtabletitlebackcolor")%> width="95" align="left" nowrap height="19">
傳真:
</td>
<td bgcolor=<%=Session("vcolcolor")%> width="197" height="17" >
<%=rs("Fax")%>
</td>
</tr>
<%if rs("Web")<>"" then %>
<tr>
<td bgcolor=<%=Session("vtabletitlebackcolor")%> width="91" align="right" nowrap height="25">
<p align="right">公司主頁:</p>
</td>
<td bgcolor=<%=Session("vcolcolor")%> height="25" colspan="3" align="left" >
<font color="#008000"> </font><a href="<%=rs("Web")%>"><%=rs("Web")%><font color="#008000"> 查看</font>
</a>
</td>
</tr>
<%end if%>
<%if rs("Mail")<>"" then %>
<tr>
<td bgcolor=<%=Session("vtabletitlebackcolor")%> width="91" align="right" nowrap height="25">
<p align="right">
電子郵件:</p>
</td>
<td bgcolor=<%=Session("vcolcolor")%> height="25" nowrap height="25" colspan="3" align="left" >
<font color="#008000"></font><a href="mailto:<%=rs("Mail")%>"><%=rs("Mail")%><font color="#008000"> 寫信</font>
</a>
</TD>
</tr>
<%end if%>
<tr>
<td bgcolor=<%=Session("vtabletitlebackcolor")%> width="91" align="right" nowrap height="25">
<p align="right">備注:</p>
</td>
<td bgcolor=<%=Session("vcolcolor")%> height="25" colspan="3" >
<%=rs("Beizhu")%>
</td>
</tr>
</table>
<table cellspacing=0 cellpadding=0 width=577 border=0 align="center">
<tr>
<td width="575">
<p align=center>
<br>
<button class=vinputbutton style="height=24" onClick="window.location.href='sbprint.asp?Number=<%=Number%>'"><img src="../images/print.gif" align="absmiddle"> 打印</button>
<button class=vinputbutton style="height=24" onClick="javascript:history.go(-1);"><img src="../images/back.gif" align="absmiddle"> 返回</button>
</p>
</td>
</tr>
<tr>
</tr>
</table>
</form>
<% '關閉記錄源
rs.close
set rs=nothing
%>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -