<!--#INCLUDE FILE="../HXINCLUDE/HXINCLUDEHEAD.ASP"-->
<%if WS_S.MemberPriv("WS_PublicAffairsCarApply")<>1 then HX_GoBack "对不起,您的权限不够!",""
ColumnName="":Tablename="HX_CarApply":Orderby=""
WS_MAID=request("WS_MAID")
if WS_MAID<>"" and  isnumeric(WS_MAID) then
  Orderby=" where WS_MAID="&WS_MAID
  msg="车牌号："&conn.execute("select WS_CarName from HX_CarMain where WS_MAID="&WS_MAID)(0)
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='700'  border='0' cellspacing='1' cellpadding='0' align=center bgcolor='#613c25'><tr><td colspan='2' bgcolor=FFFBE8 background='../hximages/titlelinebg.gif'><table width='550'  border='0' cellspacing='0' cellpadding='0'><tr><td height='25' background='../hximages/titleline.gif' class='td4'><font class='fontmenu'>预定情况</font>"&msg&"</td></tr></table><table width='100%'  border='0' cellspacing='1' cellpadding='3' bgcolor=FFFBE8><tr bgcolor='#BF9B73' class='td4'><td width='108' height='23' align='center'> 申请者</td><td width='106' height='23' align='center'> 申请开始时间</td><td width='125' height='23' align='center'> 申请结束时间</td><td height='23' align='center' width='137'> 申请原因</td><td width='116' height='23' align='center'> 审批情况</td><td height='23' align='center'> 反馈情况</td></tr>"
    if rs.recordcount<=0 then
      response.Write "<tr><td colspan=6 bgcolor=FFFBE8 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='#FFFBE8' onmouseover=javascript:this.bgColor='#F9F8F2' onmouseout=javascript:this.bgColor='#FFFBE8'><td align='center' height='23'>"
	Call WS_S.HX_OutUserInfo(rs("WS_CarApplyMan")):response.Write OutName&"</td><td align='center' height='23'>"&formatdatetime(rs("WS_CarFirstDate"),vbshortdate)&"&nbsp;"&formatdatetime(rs("WS_CarFirstDate"),vbshorttime)&"</td><td align='center' height='23'>"&formatdatetime(rs("WS_CarLastDate"),vbshortdate)&"&nbsp;"&formatdatetime(rs("WS_CarLastDate"),vbshorttime)&"</td><td align='center' height='23' width='137'><font title='申请原因："&rs("WS_CarExcuse")&"'>"&rs("WS_CarExcuse")&"&nbsp;</font></td><td align='center' height='23'>"
	if rs("WS_CarSpsign")=0 then response.Write "<font color='red'>未审批</font>" else response.Write "<font color='008000'>已审批</font>"
	 response.Write "</td><td width='63' height='23'><div align='center'>"
	 if rs("WS_CarSpsign")=1 then response.Write "<a href='javascript:' onClick=""openwin(450,300,'returnmodify.asp?WS_MAID="&rs("WS_MAID")&"');"">" else response.Write "<a title='没有指定车辆，不能反馈'>" end if
	  response.Write "反馈</a></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>",6)
	   end if
	  call WS_S.HX_RSClose(rs) 
response.Write "</table></td></tr></table>"%>