<!--#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%>" />
<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="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="reg2">
		<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"><%=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"><%=p_ordercon%></textarea></li>
			<li class="an">
		   <input type="submit"  id="button" value="提交申请" class="input_an" >
		 </li>
		</form>
		</ul>
		</div>
	</div>
</div>
<!--#include file="footer.asp"-->
<!--#include file="navb.asp"--> 
</section>
</body>
</html>
