📄 adminzichuangfhnghetyh.asp
字号:
' create the Form + URL string and remove the intial '&' from each of the strings
MM_keepBoth = MM_keepURL & MM_keepForm
If (MM_keepBoth <> "") Then
MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1)
End If
If (MM_keepURL <> "") Then
MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1)
End If
If (MM_keepForm <> "") Then
MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1)
End If
' a utility function used for adding additional parameters to these strings
Function MM_joinChar(firstItem)
If (firstItem <> "") Then
MM_joinChar = "&"
Else
MM_joinChar = ""
End If
End Function
%>
<%
' *** Move To Record: set the strings for the first, last, next, and previous links
Dim MM_keepMove
Dim MM_moveParam
Dim MM_moveFirst
Dim MM_moveLast
Dim MM_moveNext
Dim MM_movePrev
Dim MM_urlStr
Dim MM_paramList
Dim MM_paramIndex
Dim MM_nextParam
MM_keepMove = MM_keepBoth
MM_moveParam = "index"
' if the page has a repeated region, remove 'offset' from the maintained parameters
If (MM_size > 1) Then
MM_moveParam = "offset"
If (MM_keepMove <> "") Then
MM_paramList = Split(MM_keepMove, "&")
MM_keepMove = ""
For MM_paramIndex = 0 To UBound(MM_paramList)
MM_nextParam = Left(MM_paramList(MM_paramIndex), InStr(MM_paramList(MM_paramIndex),"=") - 1)
If (StrComp(MM_nextParam,MM_moveParam,1) <> 0) Then
MM_keepMove = MM_keepMove & "&" & MM_paramList(MM_paramIndex)
End If
Next
If (MM_keepMove <> "") Then
MM_keepMove = Right(MM_keepMove, Len(MM_keepMove) - 1)
End If
End If
End If
' set the strings for the move to links
If (MM_keepMove <> "") Then
MM_keepMove = Server.HTMLEncode(MM_keepMove) & "&"
End If
MM_urlStr = Request.ServerVariables("URL") & "?" & MM_keepMove & MM_moveParam & "="
MM_moveFirst = MM_urlStr & "0"
MM_moveLast = MM_urlStr & "-1"
MM_moveNext = MM_urlStr & CStr(MM_offset + MM_size)
If (MM_offset - MM_size < 0) Then
MM_movePrev = MM_urlStr & "0"
Else
MM_movePrev = MM_urlStr & CStr(MM_offset - MM_size)
End If
%>
<%
function HTMLEncode(fString)
fString = replace(fString, ">", ">")
fString = replace(fString, "<", "<")
fString = Replace(fString, CHR(13), "")
fString = replace(fString,chr(32)," ")
fString = Replace(fString, CHR(10) & CHR(10), "</P><P>")
fString = Replace(fString, CHR(10), "<BR>")
HTMLEncode = fString
end function
%>
<style type="text/css">
<!--
.style1 { color: #FFFFFF;
font-weight: bold;
}
-->
</style>
<link href="/css/link.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style2 {
color: #FF0000;
font-weight: bold;
}
-->
</style>
<% If Not Recordset1.EOF Or Not Recordset1.BOF Then %>
<div align="center">
<table width="760" height="21" border="0" cellpadding="0" cellspacing="0" background="../../img/bw/line.gif">
<tr>
<td><div align="center"><span class="style1">资 产 管 理 系 统</span></div></td>
</tr>
</table>
</div>
<div align="center">
<table width="760" border="0" cellpadding="0" cellspacing="1" bgcolor="#5AAE18">
<tr>
<td bgcolor="#FFFFFF"><table width="99%" border="0" cellpadding="3" cellspacing="0">
<%
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%>
<tr>
<td width="19%">资产名称: </td>
<td width="81%"><%=(Recordset1.Fields.Item("资产名称").Value)%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td>编号:</td>
<td><%=(Recordset1.Fields.Item("编号").Value)%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td>计量单位:</td>
<td><%=(Recordset1.Fields.Item("计量单位").Value)%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td>数量:</td>
<td><%=(Recordset1.Fields.Item("数量").Value)%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td>规格型号:</td>
<td><%=(Recordset1.Fields.Item("规格型号").Value)%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td>出厂编号:</td>
<td><%=(Recordset1.Fields.Item("出厂编号").Value)%> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td>技术证书号:</td>
<td><%=(Recordset1.Fields.Item("技术证书号").Value)%> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td>购买价格:</td>
<td><%=(Recordset1.Fields.Item("购买价格").Value)%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td>安装费:</td>
<td><%=(Recordset1.Fields.Item("安装费").Value)%> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td>折旧:</td>
<td><%=(Recordset1.Fields.Item("折旧").Value)%> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td>净值:</td>
<td><%=(Recordset1.Fields.Item("净值").Value)%> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td>生产单位:</td>
<td><%=(Recordset1.Fields.Item("生产单位").Value)%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td>生产年月:</td>
<td><%=(Recordset1.Fields.Item("生产年月").Value)%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td>交付使用日期:</td>
<td><%=(Recordset1.Fields.Item("交付使用日期").Value)%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td>预计使用年限:</td>
<td><%=(Recordset1.Fields.Item("预计使用年限").Value)%> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td>请购人或部门:</td>
<td><%=(Recordset1.Fields.Item("请购人或部门").Value)%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td>保管人或部门:</td>
<td><%=(Recordset1.Fields.Item("保管人或部门").Value)%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td>用途:</td>
<td><%=(Recordset1.Fields.Item("用途").Value)%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td>使用部门:</td>
<td><%=(Recordset1.Fields.Item("使用部门").Value)%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td>使用地点:</td>
<td><%=(Recordset1.Fields.Item("使用地点").Value)%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td>使用状态:</td>
<td><%=HTMLEncode(Recordset1.Fields.Item("使用状态").Value)%> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td>录入人:</td>
<td><%=(Recordset1.Fields.Item("录人员").Value)%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td>备注:</td>
<td><%=HTMLEncode(Recordset1.Fields.Item("备注").Value)%> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td>是否报废:</td>
<td><span class="style2"><%=(Recordset1.Fields.Item("是否报废").Value)%></span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><input name="帐号" type="hidden" id="帐号" value="<%= Session("userssdfgfhtrh") %>">
<input name="姓名" type="hidden" id="姓名" value="<%= Session("names") %>">
<input name="部门" type="hidden" id="部门" value="<%= Session("bumen") %>">
<input name="录入日期" type="hidden" id="录入日期" value="date()"></td>
<td><A HREF="updatwefdnghgfhj.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "ID=" & Recordset1.Fields.Item("ID").Value %>">修改</A> <A HREF="delzichanggggg.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "ID=" & Recordset1.Fields.Item("ID").Value %>"onClick="return confirm('您确定要删除吗?')">删除</A> </td>
</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>
</table></td>
</tr>
</table>
</div>
<div align="center">
<br>
</div>
<div align="center">记录<%=(Recordset1_first)%> 到 <%=(Recordset1_last)%> 共<%=(Recordset1_total)%> 条记录 <a href="javascript:history.go(-1)"><img src="../../toall/gw/img/gif/back.gif" width="37" height="45" border="0"></a><br>
<table border="0" width="50%" align="center">
<tr>
<td width="23%" align="center"><% If MM_offset <> 0 Then %>
<a href="<%=MM_moveFirst%>">第一页</a>
<% End If ' end MM_offset <> 0 %>
</td>
<td width="31%" align="center"><% If MM_offset <> 0 Then %>
<a href="<%=MM_movePrev%>">前一页</a>
<% End If ' end MM_offset <> 0 %>
</td>
<td width="23%" align="center"><% If Not MM_atTotal Then %>
<a href="<%=MM_moveNext%>">下一页</a>
<% End If ' end Not MM_atTotal %>
</td>
<td width="23%" align="center"><% If Not MM_atTotal Then %>
<a href="<%=MM_moveLast%>">最后页</a>
<% End If ' end Not MM_atTotal %>
</td>
</tr>
</table>
</div>
<% End If ' end Not Recordset1.EOF Or NOT Recordset1.BOF %>
<div align="center" style="font-size: 12px">
<% If Recordset1.EOF And Recordset1.BOF Then %>
很抱歉,本部门尚无资产记录..<a href="javascript:history.go(-1)"><img src="../../toall/gw/img/gif/back.gif" width="37" height="45" border="0"></a>
<% End If ' end Recordset1.EOF And Recordset1.BOF %>
<br>
</div>
<span style="font-size: 12px">
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>
</span>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -