<!--#include file="inc/Conn.asp"-->
<!--#include file="inc/Function_PC.asp"-->
<!--#include file="inc/md5.asp"-->
<!--#include file="loginisok.asp"-->
<%
unav=4
bclassname="会员中心"
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="description" content="<%=Dream_SiteDescription%>">
<meta name="keywords" content="<%=Dream_SiteKeywords%>">
<!--#include file="jscss.asp"-->
<!--#include file="inc/zdsbphone.asp"-->
</head>
<body>
<!--#include file="nheader.asp"-->
<div class="conment">
	<div class="local">当前位置：<a href="index.asp">首页</a> > <a href="user.asp">会员中心</a> > 信息管理</div>
	<div class="about_nav">
		<h3>会员中心</h3>
		<ul>		
		<!--#include file="usernav.asp"-->
		</ul>		
	</div>
	<div class="about_right">
		<div class="about_right_title"><h3>信息管理</h3><span>注：删除后将不能再恢复！</span></div>
		<div class="about_right_con">
			<div class="userinfo">
			<%
			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>
				<div class="img"><img src="<%=rs("Dream_DefaultPicUrl")%>"></div>
				<div class="canshu">
				<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>
				<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="noinfo">没有你的信息！</div>
			<%
			end if
			rs.update	 
			rs.close
			set rs=nothing
			%>	
		</div>
		</div>
	</div>	
</div>
<!--#include file="footer.asp"-->
</body>
</html>