<!--#include file="inc/Conn.asp"-->
<!--#include file="inc/Function_PC.asp"-->
<!--#include file="loginisok.asp"-->
<%
unav=4
bclassname="会员中心"
action=request("action")
id=request("id")
if action="vatinfo" and request.form("id")<>"" then
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select top 1 * from Dream_Menpiao where Dream_UserID='"&session("Dream_UserName")&"' and id="&request.form("id")
rs.open sql,conn,1,3

if request.form("p_iselite")="yes" then
rs("Dream_IsElite")=true
else
rs("Dream_IsElite")=false
end if

if request.form("p_ishot")="yes" then
rs("Dream_IsHot")=true
else
rs("Dream_IsHot")=false
end if

if request.form("p_isnew")="yes" then
rs("Dream_IsNew")=true
else
rs("Dream_IsNew")=false
end if

if request.form("p_ischoice")="yes" then
rs("Dream_IsChoice")=true
else
rs("Dream_IsChoice")=false
end if

if request.form("p_isurl1")="yes" then
rs("Dream_IsUrl1")=true
else
rs("Dream_IsUrl1")=false
end if

if request.form("p_isurl2")="yes" then
rs("Dream_IsUrl2")=true
else
rs("Dream_IsUrl2")=false
end if

if request.form("p_isurl3")="yes" then
rs("Dream_IsUrl3")=true
else
rs("Dream_IsUrl3")=false
end if

if request.form("p_isurl4")="yes" then
rs("Dream_IsUrl4")=true
else
rs("Dream_IsUrl4")=false
end if

if request.form("p_isorderid")="yes" then
rs("Dream_IsOrderID")=true
else
rs("Dream_IsOrderID")=false
end if

rs("Dream_OrderCon")=request.form("p_ordercon")
rs("Dream_UrlCon")=request.form("p_urlcon")

rs("Dream_IsApply")="已申请"

rs.update
rs.close
set rs=nothing
Response.Write("<script language=""JavaScript"">alert(""提示：增值服务申请成功！！"");this.location.href='listinfo.asp';</script>")
response.end
end if

%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>增值服务 - <%=Dream_SiteTitle%></title>
<meta name="keywords" content="<%=Dream_SiteKeywords%>" />
<meta name="description" content="<%=Dream_SiteDescription%>" />
<!--#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">
			<%			
			Set rs=Server.CreateObject("Adodb.RecordSet")
			rs.open "Select * From Dream_Menpiao where Dream_UserID='"&session("Dream_UserName")&"' and id="&id,conn,1,3
			if not rs.eof then
			p_title=rs("Dream_Title")
			p_iselite=rs("Dream_IsElite")
			p_ishot=rs("Dream_IsHot")
			p_isnew=rs("Dream_IsNew")
			p_ischoice=rs("Dream_IsChoice")
			p_isurl1=rs("Dream_IsUrl1")
			p_isurl2=rs("Dream_IsUrl2")
			p_isurl3=rs("Dream_IsUrl3")
			p_isurl4=rs("Dream_IsUrl4")
			p_isorderid=rs("Dream_IsOrderID")
			p_ordercon=rs("Dream_OrderCon")
			p_urlcon=rs("Dream_UrlCon")
			else
			response.Redirect "listinfo.asp"
			end if
			rs.close
			set rs=nothing
			%>
			<div class="reg">
			<ul>
				<form name="form1" method="post" action="vatinfo.asp?action=vatinfo">
				<input name="id" type="hidden" value="<%=id%>">
				<li class="h3"><span>对应信息：</span><cite><%=p_title%></cite></li>
				<li class="line"><span>信息设置：</span>
				<cite>推荐</cite><input name="p_iselite" type="checkbox" class="check" id="p_iselite" value="yes" <%if p_iselite=true then%>checked<%end if%>>
				<cite>最新</cite><input name="p_isnew" type="checkbox" id="p_isnew" value="yes" class="check" <%if p_isnew=true then%>checked<%end if%>>
				<cite>热门</cite><input name="p_ishot" type="checkbox" id="p_ishot" value="yes" class="check" <%if p_ishot=true then%>checked<%end if%>>
				<cite>精品</cite><input name="p_ischoice" type="checkbox" id="p_ischoice" value="yes" class="check" <%if p_ischoice=true then%>checked<%end if%>></li>
				<li class="line"><span>外链设置：</span><cite>官网</cite><input name="p_isurl1" type="checkbox" id="p_isurl1" value="yes" class="check" <%if p_isurl1=true then%>checked<%end if%>><cite>微店</cite><input name="p_isurl2" type="checkbox" id="p_isurl2" value="yes" class="check" <%if p_isurl2=true then%>checked<%end if%>><cite>团购</cite><input name="p_isurl3" type="checkbox" id="p_isurl3" value="yes" class="check" <%if p_isurl3=true then%>checked<%end if%>><cite>关注</cite><input name="p_isurl4" type="checkbox" id="p_isurl4" value="yes" class="check" <%if p_isurl4=true then%>checked<%end if%>></li>
				<li class="nop"><span>外链说明：</span><textarea name="p_urlcon" rows="4" id="p_urlcon" placeholder="请您输入需要连接的地址、网址等"><%=p_urlcon%></textarea></li>				
				<li class="line"><span>申请竞价：</span><input name="p_isorderid" type="checkbox" id="p_isorderid" value="yes" class="check" <%if p_isorderid=true then%>checked<%end if%>></li>
				<li class="nop"><span>竞价说明：</span><textarea name="p_ordercon" rows="4" id="p_ordercon" placeholder="请您输入期望信息排名的位置以及展示起始和终止时间!"><%=p_orderidcon%></textarea></li>
				<li class="an">
			   <input type="submit"  id="button" value="提交申请" class="input_an" >
			 </li>
			</form>
			</ul>
			</div>
		</div>
	</div>
</div>
<!--#include file="footer.asp"-->
</section>
</body>
</html>
