<!--#include file="../inc/Conn.asp"-->
<!--#include file="../inc/base64.asp"-->
<!--#include file="../inc/Function.asp"-->
<!--#include file="../inc/md5.asp"-->
<!--#include file="loginisok.asp"-->
<%
action=request("action")
if action="del" then
	id=request("id")
	sqlDel="select * from Dream_Review where Dream_UserID='"&Session("Dream_UserName")&"' and id=" & CLng(ID)
	Set rsDel= Server.CreateObject("ADODB.Recordset")
	rsDel.open sqlDel,conn,1,3
	rsDel.delete
	rsDel.update
	set rsDel=nothing
end if

sub line(tid)
set key=conn.execute("select * from Dream_Menpiao where ID="&tid)
if not(key.eof and key.bof) then
	response.Write ("<a href=""view.asp?cid="&key("Dream_Theme")&"&id="&tid&""" target=""_blank"">"&key("Dream_Title")&"</a>")
end if
set key=nothing
end sub

%>
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>我的点评-<%=Dream_SiteName%></title>
<meta name=Keywords content="<%=DreamKeys%>">
<meta name=Description content="<%=DreamDes%>">
<meta name="viewport" content="initial-scale=1, width=device-width, maximum-scale=1, user-scalable=no">
<meta name="viewport" content="initial-scale=1.0,user-scalable=no,maximum-scale=1" media="(device-height: 568px)">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-touch-fullscreen" content="yes">
<meta name="full-screen" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<meta name="format-detection" content="address=no">
<link rel="stylesheet" href="../css/style_guolv.css" />
<script type="text/javascript" src="../js/zepto.min.js"></script>
</head>
<body>
<section>
<header id="hd" bk="tuan_m_detail_top">
    <!-- 文本title -->
    <h1 class="txt-title">我的评论</h1>
    <div class="left_an"><a href="#" class="btn1 ret-btn" bk="tuan_m_detail_back">返回</a> <a href="index.asp" class="btn2">首页</a></div><div class="right_an"><%if session("Dream_UserName")<>"" then%><a href="user.asp" class="btn3">会员中心</a><%else%><a href="reg.asp" class="btn1">注册</a> <a href="login.asp" class="btn2">登录</a><%end if%></div></header>
  <script type="text/javascript">
    
    // History, by lww, 2013/09/02
    ;(function($){
        if(!$) { return; }
        if( history.length > 1){
            $("#hd .ret-btn").show();
        }
        else {
            $("#hd .ret-btn").hide();
        }

        $("#hd .ret-btn").click(function(e){
            e.preventDefault();
            if( history.length > 1 ) {
                history.back();
            }
        });
    })(Zepto);
    
</script>
<div id="content">
	<div class="visa_t"><h3>我的评论</h3><span>注意：删除后将不能再恢复！</span></div>	
	<div class="userreview">
		<%
		Set rs=Server.CreateObject("Adodb.RecordSet")
		rs.open "Select * From Dream_Review where Dream_UserID='"&session("Dream_UserName")&"'",conn,1,3
		if not rs.eof then
		do while not rs.eof			
		%>
		<ul>
			<li><h3>对应信息：</h3><span><%line rs("Dream_ViewID")%></span></li>
			<li><h3>评论内容：</h3><span><%=rs("Dream_Content")%></span></li>
			<li><h3>评论分数：</h3><span><%=rs("Dream_Grade")%></span></li>
			<li><h3>评论时间：</h3><span><%=rs("Dream_Updatetime")%></span></li>
			<li><h3>审核状态：</h3><span><%if rs("Dream_Look")=true  then%><font color="#006600">通过审核</font><%else%>审核中<%end if%></span></li>
			<div class="del"><a href="?action=del&id=<%=rs("id")%>" title="删除" onClick="return confirm('是否要删除此条留言?')">Ⅹ</a></div>			
		</ul>
		<%
		rs.movenext
		loop
		else
		%>
		<div class="nopage">没有你的点评！</div>
		<%
		end if
		rs.update	 
		rs.close
		set rs=nothing
		%>
	</div>
	<div class="jg"></div>  
</div>
<!--#include file="footer.asp"-->
<!--#include file="navb.asp"--> 
</section>
</body>
</html>