<!--#include file="pysjzx_conn.asp"-->
<!--#include file="webconfig.asp"-->
<%
		id=trim(request("id"))
		if IsNumeric(request.QueryString("id"))=False or request.QueryString("id")="" then
		response.write"<SCRIPT language=JavaScript>alert('参数错误');"
		response.end	
		end if
		
		girlid=trim(request("girlid"))
		if IsNumeric(request.QueryString("girlid"))=False  then
		response.write"<SCRIPT language=JavaScript>alert('参数错误');"
		response.end	
		end if

		sql="select * from pic where  id=" &id & ""
		Set rs= Server.CreateObject("ADODB.Recordset")
		rs.open sql,conn,1,3
		if rs.bof and rs.eof then
			response.write"<SCRIPT language=JavaScript>alert('参数错误');"
		response.write"javascript:history.go(-1)</SCRIPT>"
				response.end
		else
		rs("viewcount")=rs("viewcount")+1
		rs.update
		end if
		%>
<html>
<head>
<title><%=webname%>-图库-<%=rs("girlname")%></title>
<meta content="<%=keyword%>" name="keywords">
<meta content="<%=description%>" name="description">
<LINK href="css/style.css" rel=stylesheet type=text/css>
</head>
<!--#include file="webhead.asp"-->
<table cellSpacing="0" cellPadding="0" width="786" align="center" bgColor="#ffffff" border="0">
	<tr>
		<td>
		<table cellSpacing="0" cellPadding="0" width="100%" border="0">
			<tr>
				<td vAlign="top" width="195" style="border: 1px solid #C0C0C0">
				　</td>
				<td vAlign="top">
				<table cellSpacing="0" cellPadding="3" width="100%" border="0">
					<tr>
						<td align="center">
						　<%=rs("girlname")%></td>
					</tr>
					</table>
				<table border="0" width="100%">
					<tr>
						<td>
						<p align="center"><%	
						if girlid = "" then
						sql2="select * from pict where id="&id&""
						else
						sql2="select * from pict where id="&id&" and girlid="&girlid&""
						end if
		Set rs2= Server.CreateObject("ADODB.Recordset")
		rs2.open sql2,conn,1,1
%><img border="0" src="<%=rs2("girlpic")%>" width="500" ></td>
					</tr>
					<tr><td>&nbsp;&nbsp;<%
							Set rs3= Server.CreateObject("ADODB.Recordset")
	sql3="select * from pict where id="&id&""

		rs3.open sql3,conn,1,1
		do while not rs3.eof
%><a href=pic_list.asp?id=<%=id%>&girlid=<%=rs3("girlid")%>><img border="0" height=90 src="<%=rs3("girlpic")%>" width="65" ></a>
		<%rs3.movenext 
					loop
					%></td></tr>
				</table>
				</td>
			</tr>
		</table>
		</td>
		<td width="8" background="images/bian_right.jpg">
		</td>
	</tr>
</table>
<!--#include file="webfoot.asp"-->