<%@ Language=VBScript %>
<%if Session("weight")<>5 then 
Response.Redirect "error.asp?cause=4"
 end if
%>
<!--#include file="../db/adovbs.inc"-->

<object runat=server id=connpic progid="adodb.connection"></object>
<%application.Lock
connpic.Open Application("p_pic")
Application.UnLock
%>
<html>
<head>
<meta NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</head>
<body>
<LINK 
href="css/default.css" rel=stylesheet>
<br><br>
<style type="text/css">

.my_boder{"BORDER-BOTTOM: #ff6600 1px solid; BORDER-LEFT: #ff6600 1px solid; BORDER-RIGHT: #ff6600 1px solid; BORDER-TOP: #ff6600 1px solid;"}

</style>
<%





dim id(10)
for i=1 to 10
	id(i)=0
next
dim user_name(10)
for i=1 to 10
	user_name(i)=""
next

sex="女"
sex=Request("sex")

Set rs = Server.CreateObject("ADODB.Recordset")
'sql="select * from pic where sex='"&sex&"'"
sql="select a.* from pic a where a.checked=0 and sex='"&sex&"'"
rs.open sql,connpic,3,2
rs.PageSize=10
rows=1
if rs.RecordCount<>0 then

	if Request("move")=1 then
	session("cur_page")=1
	end if
	if Request("move")=2 then
	session("cur_page")=session("cur_page")-1
	end if
	if Request("move")=3 then
	session("cur_page")=session("cur_page")+1
	end if
	if Request("move")=4 then
	session("cur_page")=rs.PageCount
	end if
	if session("cur_page")="" then
	session("cur_page")=1
	end if
	if session("cur_page")<1 then
	session("cur_page")=1
	end if
	if session("cur_page")>rs.PageCount then
	session("cur_page")=rs.PageCount
	end if

	rs.AbsolutePage=session("cur_page")
	while not rs.EOF and rows<=rs.PageSize 
	id(rows)=rs("id")
	user_name(rows)=rs("user_name")
	rs.MoveNext
    rows=rows+1
  wend
end if
%>
	

<table WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" align="center">
	<tr>
		<td><a href="photo_manage.asp?sex=女&move=1"  ><img border="0" src="../love/images/ladies.gif" WIDTH="81" HEIGHT="19"></a><a href="photo_manage.asp?move=1 &sex=男"><img border="0" src="../love/images/men.gif" WIDTH="71" HEIGHT="19"></a></td>
	<td><font>未经审查的</font><font size=4 color=red><%=sex%></font><font>会员照片</font></td>
	</tr>
</table>

<br><br>
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
  <tbody>
  <tr>
   <%for i=1 to 5
	if id(i)<>0 then
   %>
    
    <td vAlign="top" align=center width="150">
      <table cellSpacing="0" cellPadding="0" width="112" border="0" class=my_boder>
        <tbody>
        <tr><td vAlign="bottom" align=center width="110" bgColor="#fdf1f5"><a href=javascript:openPict(<%=id(i)%>);><img height="118" src="displaypic.asp?id=<%=id(i)%>" width="86" border="1"></a></td>
          </tr>
		  <tr>
          <td align=center width="110" bgColor="#fdf1f5">MID:<%=user_name(i)%></td>
         </tr>
		 <tr>
          <td align=center width="110" bgColor="#fdf1f5"><a href="check_photo.asp?id=<%=id(i)%>&sex=<%=sex%>" >通 过</a></td>
         </tr><tr>
          <td align=center width="110" bgColor="#fdf1f5"><a href="del_photo.asp?id=<%=id(i)%>&sex=<%=sex%>&user_name=<%=user_name(i)%>" >删 除</a></td>
          </tr></tbody></table>
     </td>
    <%else%>
		<td vAlign="top" align=center width="150">
      <table cellSpacing="0" cellPadding="0" width="112" border="0" class=my_boder>
        <tbody>
          <tr>
           <td vAlign="bottom" align=center width="110" bgColor="#fdf1f5"><img height="118" src="../love/images/photo.gif" width="86" border="1"> </td>
        		</tr>
        <tr><td align="middle" width="110" bgColor="#fdf1f5">用户名</td></tr>
        <tr><td align="middle" width="110" bgColor="#fdf1f5">通 过</td> </tr>
         <tr><td align=center width="110" bgColor="#fdf1f5">删 除</td></tr>
        </tbody></table>
     </td>
    <%end if
    next%>
    
    
   </tr></tbody></table><br><br>
  <br><br>
<table cellSpacing="0" cellPadding="0" width="100%" border="0" >
  <tbody>
  <tr>
   <%for i=6 to 10
	if id(i)<>0 then
   %>
    
    <td vAlign="top" align="middle" width="150">
      <table cellSpacing="0" cellPadding="0" width="112" border="0" class=my_boder>
        <tbody>
        <tr><td vAlign="bottom" align="middle" width="110" bgColor="#fdf1f5"><a href=javascript:openPict(<%=id(i)%>);><img height="118" src="displaypic.asp?id=<%=id(i)%>" width="86" border="1"></a></td>
        </tr><tr>
          <td align=center width="110" bgColor="#fdf1f5">MID:<%=user_name(i)%></td>
         </tr><tr><td align="middle" width="110" bgColor="#fdf1f5"><a href="check_photo.asp?id=<%=id(i)%>&sex=<%=sex%>" >通 过</a></td>
          </tr><tr>
          <td align=center width="110" bgColor="#fdf1f5"><a href="del_photo.asp?id=<%=id(i)%>&sex=<%=sex%>&user_name=<%=user_name(i)%>" >删 除</a></td>
         </tr></tbody></table>
     </td>
    <%else%>
		<td vAlign="top" align="middle" width="150">
   <table cellSpacing="0" cellPadding="0" width="112" border="0" class=my_boder>
        <tbody>
          <tr>
           <td vAlign="bottom" align=center width="110" bgColor="#fdf1f5"><img height="118" src="../love/images/photo.gif" width="86" border="1"> </td>
        		</tr>
        <tr><td align="middle" width="110" bgColor="#fdf1f5">用户名</td></tr>
        <tr><td align="middle" width="110" bgColor="#fdf1f5">通 过</td> </tr>
         <tr><td align=center width="110" bgColor="#fdf1f5">删 除</td></tr>
        </tbody></table>
     </td>
    <%end if
    
    next%>
    
    
   </tr></tbody></table><br><br>

<table border="0" cellPadding="5" cellSpacing="0" width="100%" align="center">
        <tbody>
        <tr align="middle">
          <td> 
          <% 'if session("cur_page")>1 then %>
		<a href="photo_manage.asp?move=1 &sex=<%=sex%>">首页</a>　
		<a href="photo_manage.asp?move=2 &sex=<%=sex%>">上一页</a>
		<% 'end if%>
		<% 'if session("cur_page")<rs.PageCount  then %>
		<a href="photo_manage.asp?move=3 &sex=<%=sex%>">下一页</a>　
		<a href="photo_manage.asp?move=4 &sex=<%=sex%>">末页</a>
		<% 'end if %></td></tr>
		<tr><td align=center>第<%=session("cur_page")%>页/共<%=rs.PageCount%>页</td></tr>
		</tbody></table>



</body>
</html>
<SCRIPT LANGUAGE=javascript>
<!--
function openPict(id)
		{
		
	
		srcIMG="displaypic1.asp?id="+id;
		var newWin=window.open(srcIMG,"myalbum","fullscreen=1,status=no,scrollbars=0,resizable=1,width=800,height=600");
		}
	 
//-->
</SCRIPT>
