📄 disp.asp
字号:
<%response.expires=0%>
<%Response.Buffer=true%>
<!-- #include file="../conn_lr.asp"-->
<!-- #include file="../css.asp"-->
<%
oabusyname=request.cookies("oabusyname")
oabusyusername=request.cookies("oabusyusername")
oabusyuserdept=request.cookies("oabusyuserdept")
oabusyuserlevel=request.cookies("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 -->
<style>
.css0{border:none;}
</style>
<script language=JavaScript>
function ds(sstr)
{
var dstr="";
for (i=0;i<sstr.length;i++)
{
if (sstr.charAt(i)!=' ') dstr+=sstr.charAt(i);
}
return dstr;
}
</script>
<%
dim Number,title,image,opFlag,rs1
Number=cint(request("Number"))
SET rs=Server.CreateObject("ADODB.RecordSet")
rs.open Session("SQL"),Session("conn"),1,1
rs.move Number
'根据当前的记录打开carfy表
SET rs1=Server.CreateObject("ADODB.RecordSet")
rs1.open "select * from carfy where Cnumber='"& rs("Cbianhao")&" '" ,Session("conn"),1,1
title="车辆详细信息"
image="../images/car.gif"
%>
</head>
<body id=all>
<!-- #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="98" align="right" nowrap height="25">汽车编号:</td>
<td bgcolor=<%=Session("vcolcolor")%> height="25" align="left" valign="middle"><%=rs("Cbianhao")%></td>
</tr>
<tr>
<td bgcolor=<%=Session("vtabletitlebackcolor")%> width="98" align="right" nowrap height="25">车型:</td>
<td bgcolor=<%=Session("vcolcolor")%> height="25" align="left" valign="middle"><%=rs("Cchexin")%></td>
</tr>
<tr>
<td bgcolor=<%=Session("vtabletitlebackcolor")%> width="98" align="right" nowrap height="25">车牌:</td>
<td bgcolor=<%=Session("vcolcolor")%> height="25" align="left" valign="middle"><%=rs("Cchepai")%></td>
</tr>
<tr>
<td bgcolor=<%=Session("vtabletitlebackcolor")%> width="98" align="right" nowrap height="25">司机:</td>
<td bgcolor=<%=Session("vcolcolor")%> height="25" align="left" valign="middle"><%=rs("Csiji")%></td>
</tr>
<tr>
<td bgcolor=<%=Session("vtabletitlebackcolor")%> width="98" align="right" nowrap height="25">现状:</td>
<td bgcolor=<%=Session("vcolcolor")%> height="25" align="left" valign="middle"><%=rs("Cxianzhuang")%></td>
</tr>
<tr>
<td bgcolor=<%=Session("vtabletitlebackcolor")%> width="98" align="right" nowrap height="25">购车日期:</td>
<td bgcolor=<%=Session("vcolcolor")%> height="25" align="left" valign="middle"><%=rs("Cgcriqi")%></td>
</tr>
<tr>
<td bgcolor=<%=Session("vtabletitlebackcolor")%> width="98" align="right" nowrap height="25">购车者:</td>
<td bgcolor=<%=Session("vcolcolor")%> height="25" align="left" valign="middle"><%=rs("Cgcren")%></td>
</tr>
<tr>
<td bgcolor=<%=Session("vtabletitlebackcolor")%> width="98" align="right" nowrap height="25">购车费用(元):</td>
<td bgcolor=<%=Session("vcolcolor")%> height="25" align="left" valign="middle"><%=rs("Cgcfeiyong")%></td>
</tr>
<tr>
<td bgcolor=<%=Session("vtabletitlebackcolor")%> width="98" align="right" nowrap height="25">备注:</td>
<td bgcolor=<%=Session("vcolcolor")%> width="854" >
<textarea name=Cbeizhu rows=6 cols=55 style="width:100%;" class=css0 readonly><%=rs("Cbeizhu")%></textarea>
</td>
</tr>
<tr>
<td bgcolor=<%=Session("vtabletitlebackcolor")%> width="98" align="right" nowrap height="25">历史记录:</td>
<td bgcolor=<%=Session("vcolcolor")%> width="854" >
<textarea name=Chistory rows=6 cols=55 style="width:100%;" class=css0 readonly><%=rs("Chistory")%></textarea>
</td>
</tr>
<tr>
<td bgcolor=<%=Session("vtabletitlebackcolor")%> width="98" align="right" nowrap height="25">费用记录: </td>
<td bgcolor=<%=Session("vcolcolor")%> width="854" >
<table width="100%" border="0" cellspacing="1" cellpadding="1" class=vtext bgcolor="<%=Session("vtablebordercolor")%>" >
<tr align="center" bgcolor="<%=Session("vtabletitlebackcolor")%>" >
<td>日期</td>
<td>收支</td>
<td>费用(元)</td>
<td>经办人</td>
<td>简述</td>
</tr>
<%
'显示相应字段的值
while not rs1.eof
response.write("<tr bgcolor='ffffff'><td>" & rs1("Criqi") & " </td>")
response.write("<td>" & rs1("Cshouzhi") & " </td>")
response.write("<td>" & rs1("Cfeiyong") & " </td>")
response.write("<td>" & rs1("Cpeople") & " </td>")
response.write("<td>" & rs1("Cjianshu") & " </td></tr>")
rs1.movenext
wend
%>
</table>
</td>
</tr>
</table>
<table cellspacing=0 cellpadding=0 width=90% border=0 align="center">
<tr>
<td>
<p align=center>
<br>
<button class=vinputbutton style="height=24" onClick="window.location.href='print.asp?Number=<%=Number%>'"><img src="../images/print.gif" align="absmiddle"> 打印</button>
<button class=vinputbutton name="Submit6" style="height=24" onClick=javascript:history.go(-1);><img src="../images/back.gif" align="absmiddle"> 返回</button>
</p>
</td>
</tr>
</table>
<%
rs.close
set rs=nothing
rs1.close
set rs1=nothing
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -