<!--#include file="inc/conn.asp"-->
<!--#include file="inc/safe.asp"-->
<!--#include file="inc/config.asp"-->
<!--#include file="inc/const.asp"-->
<%
if MemberName="" then
  response.Redirect("userlogin.asp")
  response.end
end if







%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>红嫂视屏交友网</title>
<meta name="keywords" content="情感,在线,新新,照片,动感影片,诗歌,爱情,纯洁,心连心">
<meta name="description" content="红嫂视屏交友情缘 情感在线">
<link href="style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	background-image: url();
}
-->
</style>
<script language="JavaScript">
<!--
function verify(){
if (confirm("你确认要删除这些留言信息吗？")){
	document.frmly.submit();
	}
}

function SelectCheckBox()
{
	for(i=0;i<document.frmly.elements.length;i++)
	{
		if(document.all("selectCheck").checked == true)
		{
			document.frmly.elements[i].checked = true;					
		}
		else
		{
			document.frmly.elements[i].checked = false;
		}
	}
}
//-->
</script>
</head>
<body>
<%

dim logins,lastlogintime,artnum,lycount,photo,renqi
set rs=server.CreateObject("adodb.recordset")
sql="select jf,logins,lastlogin,aq,artnum,photo,renqi,endtime,grade,innum,outnum from user_info where userid="& UserId &""
rs.open sql,conn,1,3
if not rs.bof then
  logins=rs("logins")
  lastlogintime=rs("lastlogin")
  artnum=rs("artnum")
  photo=rs("photo")
  renqi=rs("renqi")
  innum=rs("innum")
  outnum=rs("outnum")
  aqb=rs("aq")
  jf=rs("jf")
  if isnull(rs("endtime")) or rs("endtime")<now() then
    rs("grade")=1
	rs.update
	Response.Cookies(Forum_sdjy)("userclass")="注册会员"
	memberclass=checkStr(request.cookies(Forum_sdjy)("Userclass"))
  end if
end if
rs.close
set rs=nothing
set rs=server.CreateObject("adodb.recordset") '新留言数
sql1="select count(*) from sd_ly where userid="& UserId &" and isread=0"
rs.open sql1,conn,1
lycount=rs(0)
rs.close
set rs=nothing





if request("dh")="jf" then

jf1=request("jf")


if jf>jf1-1 then


if jf1>49 then
sqla="update user_info set jf=jf-"&jf1&" , aq=aq+"&int(jf1/50)&" where userid= "&userid&" "
'response.Write(sqla)
conn.execute(sqla)
response.Write("<script language='javascript'>alert('兑换成功');window.location.reload('aq.asp')</script>")
response.End()


end if

end if

end if






%>
<table width="1002" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><!--#include file="top.asp"--></td>
  </tr>
</table>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="204" height="328" valign="top"><!--#include file="memberleft.asp"--></td>
    <td width="583" valign="top"><table width="565" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td><TABLE width="100%" border=0 
            cellPadding=0 cellSpacing=0 bgColor=white class="STYLE4" >
              <TBODY>
                <TR>
                  <TD width="2%" align=center background="image/tiao_4.gif"><img src="image/tiao_3.gif" width="10" height="31"></TD>
                  <TD width="24%" align=center background="image/tiao_4.gif"><table width="100" height="25" border="0" cellpadding="0" cellspacing="0">
                      <tr>
                        <td width="100" align="center" class="pgd"><div align="left">挣取AQ币</div></td>
                      </tr>
                  </table></TD>
                  <TD width="40%" height="20" align="center" background="image/tiao_4.gif">&nbsp;</TD>
                  <TD width="32%" align="center" background="image/tiao_4.gif">&nbsp;</TD>
                  <TD width="2%" align="center"><img src="image/tiao_2.gif" width="10" height="31"></TD>
                </TR>
              </TBODY>
          </TABLE></td>
        </tr>
        <tr>
          <td height="436" valign="top" style="border-left:#C7C8CC 1px solid;border-right:#C7C8CC 1px solid;border-bottom:#C7C8CC 1px solid"><br>
            <table width="540" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#9DCCF6" bordercolordark="#ffffff" class="STYLE8889">
           <tr class="style30">
             <td height="30" align="center" class="STYLE4">你共有积分：<font color="#FF0000"><%=jf%></font>&nbsp;&nbsp;&nbsp;&nbsp;积分兑换AQ币比例为：（50：1）&nbsp;&nbsp;&nbsp;&nbsp;你可以兑换：<font color="#FF0000"><%=int(jf/50)%></font> AQ币</td>
           </tr>
        <form name="form1" method="post" action="">   <tr class="style30">
                  <td height="30" class="STYLE4"><div align="center" class="STYLE1">兑换：
                        <input name="jf" type="text" class="st" value="<%=int(jf/50)*50%>" size="5"> 
                        积分
                        <input name="dh" type="hidden" id="dh" value="jf">
                    
                      <label>
                      <input name="Submit" type="submit" class="STYLE6" value="兑换">
                      </label>
                  </div>                    </td>
                </tr></form>
          </table>
          <br>
          <table width="540" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#9DCCF6" bordercolordark="#ffffff" class="STYLE8889">
            <tr class="style30">
              <td height="30" colspan="3" align="center" class="STYLE4"><strong>相关积分规则如下</strong></td>
              </tr>
            
              <tr class="style30">
                <td width="241" class="STYLE4"><div align="center">操作</div></td>
                <td width="90" class="STYLE4"><div align="center">加分情况</div></td>
                <td width="201" height="30" class="STYLE4"><div align="center">上限</div></td>
              </tr>
              <tr class="style30">
                <td class="STYLE4">登陆并在线时间超过半小时</td>
                <td class="STYLE4">+5</td>
                <td height="30" class="STYLE4">每天计算2次</td>
              </tr>
              <tr class="style30">
                <td class="STYLE4">发布一篇日记</td>
                <td class="STYLE4">+5</td>
                <td height="30" class="STYLE4">每天最多3篇</td>
              </tr>
              <tr class="style30">
                <td class="STYLE4">上传一张照片</td>
                <td class="STYLE4">+1</td>
                <td height="30" class="STYLE4">每天最多累计5张</td>
              </tr>
              <tr class="style30">
                <td class="STYLE4">添加一首歌曲</td>
                <td class="STYLE4">+1</td>
                <td height="30" class="STYLE4">每天最多累计5首</td>
              </tr>
              <tr class="style30">
                <td class="STYLE4">给好友发送留言</td>
                <td class="STYLE4">+1</td>
                <td height="30" class="STYLE4">每天最多计算10条</td>
              </tr>
              <tr class="style30">
                <td class="STYLE4">填写手机，QQ并验证</td>
                <td class="STYLE4">+10</td>
                <td height="30" class="STYLE4">仅计算一次</td>
              </tr>
              <tr class="style30">
                <td class="STYLE4">首次激活创建空间</td>
                <td class="STYLE4">+10</td>
                <td height="30" class="STYLE4">仅计算一次</td>
              </tr>
              <tr class="style30">
                <td class="STYLE4">完善资料90%以上</td>
                <td class="STYLE4">+50</td>
                <td height="30" class="STYLE4">仅计算一次</td>
              </tr>
              <tr class="style30">
                <td class="STYLE4">上传一种证件</td>
                <td class="STYLE4">+20</td>
                <td height="30" class="STYLE4">仅计算一次</td>
              </tr>
              <tr class="style30">
                <td class="STYLE4">通过视频认证</td>
                <td class="STYLE4">+100</td>
                <td height="30" class="STYLE4">仅计算一次</td>
              </tr>
              <tr class="style30">
                <td class="STYLE4">通过活动现场认证</td>
                <td class="STYLE4">+200</td>
                <td height="30" class="STYLE4">仅计算一次</td>
              </tr>
              <tr class="style30">
                <td class="STYLE4">一篇日记被管理员删除</td>
                <td class="STYLE4">-100</td>
                <td height="30" class="STYLE4">不限</td>
              </tr>
              <tr class="style30">
                <td class="STYLE4">一张相册照片被管理员删除</td>
                <td class="STYLE4">-200</td>
                <td height="30" class="STYLE4">不限</td>
              </tr>
              <tr class="style30">
                <td class="STYLE4">形象照片被管理员删除</td>
                <td class="STYLE4">-300</td>
                <td height="30" class="STYLE4">不限</td>
              </tr>
  
          </table></td>
        </tr>
    </table></td>
    <td width="163" valign="top"><!--#include file="fenlei.asp"--></td>
  </tr>
</table>
<table width="1002" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><!--#include file="root.asp"--></td>
  </tr>
</table>
</body>
</html>
