<!--#INCLUDE FILE="../HXINCLUDE/HXINCLUDEHEAD.ASP"-->
<%if WS_S.MemberPriv("WS_PublicAffairsMeetingModify")<>1 then HX_GoBack "对不起,您的权限不够!",""
ColumnName="":Tablename="HX_MeetingApply":Orderby=" order by WS_MAID desc":action=request("action")
if action="return" then
  WS_MAID=request("WS_MAID")
  if WS_MAID="" or isnull(WS_MAID) or (WS_MAID<>"" and not isnumeric(WS_MAID)) then HX_GoBack "非法操作",""  
  conn.execute("update HX_MeetingMain set WS_MeetingState=0 where WS_MMID="&conn.execute("select WS_MMID from HX_MeetingApply where WS_MAID="&WS_MAID)(0))
  conn.execute("delete from HX_MeetingApply where WS_MAID="&WS_MAID)
  HX_GoBack "取消成功！","Meetingmanage.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='596'  border='0' cellspacing='1' cellpadding='0' align=center bgcolor='#613c25'><tr><td colspan='2' bgcolor=FFFBE8><table width='100%'  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=FFFBE8><tr bgcolor='#BF9B73' class='td4'><td width='15%' height='23'><div align='center'>申请者</div></td><td width='18%' height='23'><div align='center'>使用的会议室</div></td><td width='50%' height='23'><div align='center'>使用时间</div></td><td width='17%' height='23'><div align='center'>请审批</div></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 width='15%' height='23'><div align='center'>"
   Call WS_S.HX_OutUserInfo(rs("WS_MeetingApplyMan")):response.Write OutName&"</div></td><td width='18%' height='23'><div align='center'>"
   if rs("WS_MMID")=0 then response.Write "未指定会议室" else response.write conn.execute("select WS_MeetingName from HX_MeetingMain where WS_MMID="&rs("WS_MMID"))(0) end if
   response.Write "</div></td><td width='50%' height='23'><div align='center'><font color='008000'>"&formatdatetime(rs("WS_MeetingFirstDate"),vbshortdate)&"&nbsp;"&formatdatetime(rs("WS_MeetingFirstDate"),vbshorttime)&" ～ "&formatdatetime(rs("WS_MeetingLastDate"),vbshortdate)&"&nbsp;"&formatdatetime(rs("WS_MeetingLastDate"),vbshorttime)&"</font></div></td><td width='17%' height='23'><div align='center'>"
   if rs("WS_MeetingSpsign")=0 then
   response.Write "<a href='MeetingAudmit.asp?WS_MAID="&rs("WS_MAID")&"'>审批</a>"
   else
   response.Write "<a href='?action=return&WS_MAID="&rs("WS_MAID")&"'>取消</a>"
   end if
   response.Write "</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>"
%>