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

📄 propertymanage.asp

📁 政府网站集成OA办公考勤新闻发布网站信息管理会员管理
💻 ASP
字号:
<!--#INCLUDE FILE="../HXINCLUDE/HXINCLUDEHEAD.ASP"-->
<%if WS_S.MemberPriv("WS_PublicAffairsPropertyModify")<>1 then HX_GoBack "对不起,您的权限不够!",""
ColumnName="":Tablename="HX_Property":Orderby=" order by WS_PPID desc":action=request("action")
if action="del" then
 WS_PPID=request("WS_PPID")
 if WS_PPID="" or isnull(WS_PPID) or (WS_PPID<>"" and not isnumeric(WS_PPID)) then 	HX_GoBack "非法操作",""  
 conn.execute("delete from HX_Property where WS_PPID="&WS_PPID)
 WS_S.HX_Redirect "Propertymanage.asp"
end if
set rs=WS_S.HX_SetRSD(ColumnName,Tablename,Orderby)
response.Write "<head><meta http-equiv='Content-Type' content='text/html; charset=gb2312'><title></title><link rel=stylesheet type=text/css href='../HXinclude/HX_Style.css'><script src='../HXinclude/HX_Function.js'></script></head><body topmargin='20' leftmargin='0' bottommargin='0'><table width='800'  border='0' cellspacing='1' cellpadding='0' align=center bgcolor='#115F8F'><tr><td colspan='2' bgcolor=ffffff background='../hximages/titlelinebg.gif'><table width='550'  border='0' cellspacing='0' cellpadding='0'><tr><td height='25' background='../hximages/titleline.gif'><font class='fontmenu'>资产管理</font></td></tr></table><table width='100%'  border='0' cellspacing='1' cellpadding='3' bgcolor=f1f1f1><tr bgcolor='#A1BBE0' class='td4'><td height='23' width='5%'><div align='center'>序号</div></td><td height='23' width='12%'><div align='center'>资产编号</div></td><td height='23' width='20%'><div align='center'>资产名称</div></td><td height='23' width='10%'><div align='center'>原始价值</div></td><td height='23' width='14%'><div align='center'>购入时间</div></td><td height='23' width='8%'><div align='center'>折旧年限</div></td><td height='23' width='20%'><div align='center'>备注</div></td><td width='11%' height='23'><div align='center'>操作</div></td></tr>"
  if rs.recordcount<=0 then
      response.Write "<tr><td colspan=9 bgcolor=ffffff height=25 align=center>暂无记录!</td></tr>"
	else
    rs.PageSize =15 '每页记录条数
	iCount=rs.RecordCount '记录总数
	iPageSize=rs.PageSize
    	maxpage=rs.PageCount 
    	page=request("page")
    
    if Not IsNumeric(page) or page="" then
        page=1
    else
        page=cint(page)
    end if
    
    if page<1 then
        page=1
    elseif  page>maxpage then
        page=maxpage
    end if
    
    rs.AbsolutePage=Page

	if page=maxpage then
		x=iCount-(maxpage-1)*iPageSize
	else
		x=iPageSize
	end if
	ii=0
	do while not rs.EOF
	response.Write "<tr bgcolor='#FFFFFF' onmouseover=javascript:this.bgColor='#F9F8F2' onmouseout=javascript:this.bgColor='#ffffff'><td width='5%' height='23'><div align='center'>"&rs("WS_PPID")&"</div></td><td width='12%' height='23'><div align='center'>"&rs("WS_PropertyNUM")&"</div></td><td width='20%' height='23'><div align='center'>"&rs("WS_PropertyName")&"</div></td><td width='10%' height='23'><div align='center'>¥"&rs("WS_PropertyPrice")&"万元</div></td><td width='14%' height='23'><div align='center'>"&WS_S.Format_Time(rs("WS_PropertyBuyDate"),5)&"</div></td><td width='8%' height='23'><div align='center'>"&rs("WS_PropertyOldYear")&"年</div></td><td width='20%' height='23'><div align='left'>"&rs("WS_PropertyRemark")&"</div></td><td height='23' align='center'><div align='center'><a href='javascript:' onClick=""openwin(530,420,'propertymodify.asp?WS_PPID="&rs("WS_PPID")&"')"">修改</a> <a href='?action=del&WS_PPID="&rs("WS_PPID")&"'>删除</a>&nbsp;</div></td></tr>"
	  ii=ii+1
	  if ii>=rs.PageSize then Exit Do
	  rs.movenext
      loop
      call WS_S.PageControl(iCount,maxpage,page,"border=0 align=right","<p align=right>",9)
	 end if
	  call WS_S.HX_RSClose(rs) 
response.Write "</table></td></tr></table>"
%>

⌨️ 快捷键说明

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