<!--#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_Menpiao 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 Area(tid)
set key=conn.execute("select * from Dream_Area where ID="&tid)
if not(key.eof and key.bof) then
	response.Write (key("Dream_Names"))
end if
set key=nothing
end sub

sub Theme(tid)
set key=conn.execute("select * from Dream_Theme where ID="&tid)
if not(key.eof and key.bof) then
	response.Write (key("Dream_Names"))
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_Menpiao where Dream_UserID='"&session("Dream_UserName")&"'",conn,1,3
		if not rs.eof then
		do while not rs.eof			
		%>
		<ul>
			<li><h3>信息图片：</h3><span><img src="../<%=rs("Dream_DefaultPicUrl")%>" height="50"></span></li>
			<li><h3>标题：</h3><span><%=rs("Dream_Title")%></span></li>
			<li><h3>所属地区：</h3><span><%Area(rs("Dream_Area"))%></span></li>
			<li><h3>所属分类：</h3><span><%Theme(rs("Dream_Theme"))%></span></li>
			<li><h3>简要：</h3><span><%=rs("Dream_Titlecon")%></span></li>
			<li><h3>电话：</h3><span><%=rs("Dream_Phone")%></span></li>	
			<li><h3>QQ：</h3><span><%=rs("Dream_QQ")%></span></li>		
			<li><h3>地址：</h3><span><%=rs("Dream_Address")%></span></li>
			<li><h3>地图链接：</h3><span><%=rs("Dream_MapUrl")%></span></li>
			<li><h3>优惠信息：</h3><span><%=rs("Dream_Content4")%></span></li>
			<li><h3>温馨提示：</h3><span><%=rs("Dream_Content")%></span></li>
			<li><h3>商家介绍：</h3><span><%=rs("Dream_Content3")%></span></li>
			<li><h3>上传时间：</h3><span><%=rs("Dream_Updatetime")%></span></li>
			<li><h3>审核状态：</h3><span><%if rs("Dream_IsOK")=true then%><font color="#006600">通过审核</font><%else%>审核中…<%end if%></span></li>
			<li><h3>增值申请：</h3><span><%=rs("Dream_IsApply")%></span></li>
			<li><h3>信息状态：</h3><span><%if rs("Dream_Elite")=true then%>推荐&nbsp;&nbsp;<%end if%><%if rs("Dream_New")=true then%>最新&nbsp;&nbsp;<%end if%><%if rs("Dream_Hot")=true then%>热门&nbsp;&nbsp;<%end if%><%if rs("Dream_Choice")=true then%>精品&nbsp;&nbsp;<%end if%></span></li>
			<li><h3>外链情况：</h3><span>
			<%if rs("Dream_Url1")=true then%>
				<a href="<%=rs("Dream_Url1")%>" target="_blank">官网</a>&nbsp;&nbsp;
			<%end if%>
			<%if rs("Dream_Url2")=true then%>
				<a href="<%=rs("Dream_Url2")%>" target="_blank">微店</a>&nbsp;&nbsp;
			<%end if%>
			<%if rs("Dream_Url3")=true then%>
				<a href="<%=rs("Dream_Url3")%>" target="_blank">团购</a>&nbsp;&nbsp;
			<%end if%>
			<%if rs("Dream_Url4")=true then%>
				<a href="<%=rs("Dream_Url4")%>" target="_blank">关注</a>&nbsp;&nbsp;
			<%end if%>
				</span></li>
			<li><h3>竞价值：</h3><span><%=rs("Dream_OrderID")%>&nbsp;&nbsp;(结束日期 <%=rs("Dream_OrderEndTime")%>)</span></li>
			<div class="an"><a href="vatinfo.asp?id=<%=rs("id")%>" title="增值服务" style="background:#FF6600">增值服务</a><a href="editinfo.asp?id=<%=rs("id")%>" title="修改">修改</a><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>