<!--#INCLUDE FILE="../HXINCLUDE/HXINCLUDEHEAD.ASP"-->
<%if WS_S.MemberPriv("WS_PublicAffairsBookView")<>1 then HX_GoBack "对不起,您的权限不够!",""
ColumnName="":Tablename="HX_BookMain":WS_BOID=request("WS_BOID")
if WS_BOID="" or isnull(WS_BOID) or (WS_BOID<>"" and not isnumeric(WS_BOID)) then response.write "<script>alert('非法操作');window.close();</script>":response.end  
action=request("action")
if action="apply" then
	 conn.execute("update HX_BookMain set WS_BookSign=1 where WS_BOID="&WS_BOID)
	 conn.execute("insert into HX_BookBorrow(WS_BOID,WS_BookBorrowMan) values("&WS_BOID&","&LOGINUID&")")
	 HX_GoBack "申请成功！","booksview.asp" 
end if
Orderby=" where WS_BOID="&WS_BOID
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'></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><form name='form1' method='post' action='?action=saveinfo' onSubmit='return modulecheck();'><tr bgcolor='#FFFBE8'><td width='27%' align='right'><table width='100%'  border='0' cellspacing='1' cellpadding='3' bgcolor=FFFBE8><tr bgcolor='#FFFBE8'><td width='17%'>编　　号：</td><td width='27%'>"&rs("WS_BOOKNUM")&"</td><td width='17%'>书　　名：</td><td width='39%'>"&rs("WS_BOOKName")&"</td></tr><tr bgcolor='#FFFBE8'><td width='17%'>作　　者：</td><td width='27%'>"&rs("WS_BOOKAuthor")&"</td><td width='17%'>单　　价：</td><td width='39%'>"&rs("WS_BOOKPrice")&rs("WS_BookPriceUnit")&"</td></tr><tr bgcolor='#FFFBE8'><td width='17%'>出 版 社：</td><td width='27%'>"&rs("WS_BOOKConcern")&"</td><td width='17%'>出版时间：</td><td width='39%'>"&year(rs("WS_BOOKPublishDate"))&"年"&month(rs("WS_BOOKPublishDate"))&"月"&"</td></tr><tr bgcolor='#FFFBE8'><td width='17%'>内容简介：</td><td colspan='3'>"&rs("WS_BOOKDetail")&"</td></tr><tr bgcolor='#FFFBE8'><td colspan='4' align=right><input name='close' type='button' value=' 申 请 ' onclick=""javascript:location.href='?action=apply&WS_BOID="&WS_BOID&"';""> <input name='close' type='button' value=' 返 回 ' onclick='javascript:history.go(-1);'> &nbsp;</td></tr></table></td></tr></form></table></td></tr></table>"%>