<% userPageRights="{member}" %>
<!--#include file="check.asp"-->
<!--#include file="../Include/char.asp" -->
<%
'Define Variable 
dim i
dim rs,rst
dim mTypeName,mGrade,mSql,mFlag,mBgColor


'initialization 
mFlag=true'add


'提升排序
if request("action")="add" then
  f_ArticleID=request("ArticleID")
 if f_ArticleID="" or IsNumeric(f_ArticleID)=false then
 Call Msgbox("对不起，ID号错误！",1)
 Response.end
 end if
 
 mSql="update t_member_photo set f_index=f_index+1 where f_id="&f_ArticleID
  conn.execute mSql
  response.redirect "admin_memberphoto.asp"
end if

'降低排序
if request("action")="div" then
 f_ArticleID=request("ArticleID")
 if f_ArticleID="" or IsNumeric(f_ArticleID)=false then
 Call Msgbox("对不起，ID号错误！",1)
 Response.end
 end if
 
 mSql="update t_member_photo set f_index=f_index-1 where f_id="&f_ArticleID
  conn.execute mSql
  response.redirect "admin_memberphoto.asp"
end if





%>

<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="Images/Style.css" rel="stylesheet" type="text/css">
<SCRIPT language="JavaScript">
function jDelete(url)
{
  if((confirm(" 警告:请确定是否删除,删除后不能恢复! "))==true) 
	self.location=url+'&action=del';
}
</SCRIPT>
<script language=Javascript>
<!--
function formsub(i){
if (i==1){
if (confirm('确定将以上通过审核？')==1){
   Del.action="";
   Del.submit();
}
}
if (i==2){
	if (confirm('确定删除以上记录吗？')==1){
	Del.action="admin_saydel.asp?Action=del";
    Del.submit();
	}
}
}

//-->
</script>
</head>
<body text="#000000" >
<br>
<table class=tableBorder width="95%" border="0" align="center" cellpadding="2" cellspacing="1">
  <tr > 
    <th height="22" colspan="8"> 真情告白列表</span></th>
  </tr>
  <tr > 
    <td width="3%" align="center" class=forumHeaderBackgroundAlternate>&nbsp;</td>
    <td width="5%" align="center" class=forumHeaderBackgroundAlternate><b>ID</b></td>
    <td width="45%" class=forumHeaderBackgroundAlternate><b>内容</b></td>
    <td width="9%" align="center" class=forumHeaderBackgroundAlternate><b>用户</b></td>
    <td width="5%" align="center" class=forumHeaderBackgroundAlternate><b>年龄</b></td>
    <td width="5%" align="center" class=forumHeaderBackgroundAlternate><strong>性别</strong></td>
    <td width="17%" align="center" class=forumHeaderBackgroundAlternate><strong>所在地区</strong></td>
    <td width="11%" align="center" class=forumHeaderBackgroundAlternate><b>发布时间</b></td>
  </tr>
  <form name="Del" method="Post">
    <%  
	Set rs=Server.createobject("Adodb.RecordSet")
    pageno=request.querystring("pageno")
    pmcount=16  
    mSql="select * from T_say order by f_regtime desc"
	rs.open mSql,conn,1,1
	if rs.eof then
	   'response.write "<br><p  align='center'><font color=red><B> 对不起，数据已清空！</B></font></p>"
    else
    rs.pagesize=pmcount
    mpage=rs.pagecount
    if pageno="" then pageno=1
    if  cint(pageno)<1 or cint(pageno)>mpage then  pageno=1
    rs.absolutepage=pageno

 Dim rc,re
 rc=rs.pagesize
 re=1
 do while not rs.eof and rc>0
 mBgColor=Request.Querystring("BgColor")
 if Trim(rs("F_ID"))=Trim(mBgColor) then mColor= "D6DFFF" else mColor= "ffffff"
%>
    <tr  > 
      <td width="3%" align="center"  class=forumRow> <input name='ArticleID' type='checkbox' id="ArticleID" value="<%=rs("f_id")%>"> 
      </td>
      <td width="5%" align="center"  class=forumRow><%=rs("F_id")%></td>
      <td class=forumRow ><%=rs("F_content")%> </td>
      <td align="center" class=forumRow ><%=rs("F_username")%><% if rs("f_grade")=1 then %><img src="../Member/Images/nbcard.gif" title="VIP会员" width="23" height="10" hspace="2"><% end if %></td>
      <td class=forumRow width="5%" align="center"><%=rs("F_age")%></td>
      <td width="5%" align="center" class=forumRow><%=rs("F_sex")%></td>
      <td width="17%" align="center" class=forumRow><%=rs("F_area")%></td>
      <td class=forumRow width="11%" align="center"><%=rs("F_regtime")%></td>
    </tr>
    <%
 rs.movenext
 re=re+1
 rc=rc-1
 loop
 end if
%>
    <tr  > 
      <td colspan="8" align="center"  class=forumRow> <input type="button" name="Submit3" value="删除"  onclick="formsub(2)" > 
      </td>
    </tr>
  </form>
  <tr  > 
    <td class=forumRow align="center" colspan="10"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td width="38%" height="22"> &nbsp;共 <font color=red><strong> 
            <% = rs.recordcount%>
            </strong></font> 条记录 当前第 <font color=red><strong> 
            <% = Trim(pageno)%>
            </strong></font>页/共 <font color=red><strong> 
            <% = Trim(mpage)%>
            </strong></font>页 </td>
          <td width="62%" align="right"> <%
if pageno>1 then
   response.write "<a href='admin_Link.asp'> <img alt='首页' src='Images/boqb02.gif' border=0 width='15' height='14'></a>"
else
   response.write "<img alt='首页' src='Images/boqb02.gif' border=0 width='15' height='14'>"
end if

if pageno>1 then
   response.write "<a href='admin_Link.asp?pageno="&pageno-1&"'><img alt='上一页' src='Images/bob02.gif' border=0 width='15' height='14'></a>"
else
   response.write "<img alt='上一页' src='Images/bob02.gif' border=0 width='15' height='14'>"
end if

add=5'数字分页个数+1
if pageno-int(add/2)<=1 then m=1 else m=pageno-int(add/2)
if m+add>mpage then 
   n=mpage
   if mpage-add<=1 then m=1 else m=mpage-add
else
   n=m+add
end if

for pno=m to n
 if pno=cint(pageno) then
   response.write "&nbsp;<font color=red>"&pno&"</font>"
 else
   response.write "<b>&nbsp;<a href='admin_Link.asp?pageno="&pno&"'>"&pno&"</a></b>"
 end if
next
response.write "&nbsp"

if int(pageno) < int(rs.pagecount) then
  response.write "<a href='admin_Link.asp?pageno="&pageno+1&"'><img alt='下一页' src='Images/fbob02.gif' border=0 width='15' height='14'></a>"
else 
  response.write "<img alt='下一页' src='Images/fbob02.gif' border=0 width='15' height='14'>"
end if

if int(pageno) < int(rs.pagecount) then
   response.write "<a href='admin_Link.asp?pageno="&mpage&"'><img alt='末页' src='Images/fboqb02.gif' border=0 width='15' height='14'></a>"
else
   response.write "<img alt='末页' src='Images/fboqb02.gif' border=0 width='15' height='14'>"
end if
Response.write "&nbsp;&nbsp;"
%> </td>
        </tr>
      </table></td>
  </tr>
</table> 

      

</body>
</html>
<%
 rs.close
 set rs=nothing
 conn.close
 set conn=nothing
%>