<!--#include file="head.asp"-->
<style>body{background-color: #fff;}</style>

<% 
if SafeRequestform("act")="edit" then
isptbuy=SafeRequestform("isptbuy")

if isptbuy="" then isptbuy=0

sql="select * from ayname where aynameid="&clng(request.Cookies("aynameid"))&"" 
rs.open sql,conn,1,3

	if cint(rs("iswappay"))=0 then
	rs("isptbuy")=0
	rs.update
	call PopErr2("开启平台代售功能，需先开启WAP端支付","pingtaibuy")
	response.End()
	end if

rs("isptbuy")=isptbuy
rs.update

rs.close
call logadd(request.Cookies("aynameid"),"平台代售权限修改成功",0,0)
call PopErr2("设置成功","pingtaibuy")
end if
%>



<main>
<div  class="container">
<div class="ui-lrctnei">
<%call userleft()%>
<div class="r"> 
<div class="ui-content">
                        
					
                            
<div class="neiye">

                   
                                                     
            <!-------------------------------------- 开始 -------------------------------------->
            <div class="neibiaoti"></div>
            <div class="neibiaoti2">平台代售</div>
           	<div class="gexian20"></div>
			<%
                    sql="select aynameid,isptbuy from ayname where aynameid="&clng(request.Cookies("aynameid"))&"" 
                    rs.open sql,conn,1,1
                    %>
                    <form action="" method="post">
    				<table width="513">
                        
           		  		<tr style="font-size:14px;" height="30">
                          <td width="254" align="left"><input name="isptbuy" type="checkbox" id="isptbuy" value="1" <%if cint(rs("isptbuy"))=1 then response.Write("checked")%>/>允许平台获取我的商品，并加入平台代售</td>
                        </tr>
                        
                 		<tr>
                            <td><input name="act" type="hidden" id="act" value="edit" /><input class="logindlreg" type="submit" name="Submit" id="tijiao" value=" 设   置 " /></td>
                        </tr>
                 		<tr>
                            <td>&nbsp;</td>
                        </tr>
                    </table>
                    </form>
                    <%rs.close%>
					
            <!-------------------------------------- 结束 -------------------------------------->
            
            <div class="gexian20"></div>
            
            <!-------------------------------------- 开始 -------------------------------------->
            <div class="neibiaoti"></div>
            <div class="neibiaoti2">已加入平台代售商品列表</div>
           	<div class="gexian20"></div>
                	<div class="neitable">
					<table>
                        <tr class="hd">
                            <td width="33%">商品名称</td>
                            <td width="33%">商品状态</td>
                            <td>商品价格</td>
                        </tr>
						<%
						sql="select * from aygood where isptdx=1 and aygoodsuoyouid="&request.Cookies("aynameid")&" order by aygoodid desc" 
						rs.open sql,conn,1,1
						if not(rs.bof and rs.eof) then
						do while not rs.eof
						%>
                  		<tr onmouseover=this.bgColor='#FAFAFA' onmouseout=this.bgColor='#ffffff'>
                            <td><%=rs("aygoodname")%></td>
                            <td style="color:#090">平台代售</td>
                            <td><%=Formatnumber(rs("ayjiage"),2,true,-1,0)%>元</td>
                        </tr>
						<%
						rs.movenext
						loop
						else
						%>
                  		<tr onmouseover=this.bgColor='#FAFAFA' onmouseout=this.bgColor='#ffffff'>
                            <td colspan="3">还没有代售商品还没有代售商品</td>
                        </tr>
                        <%
						end if
                        rs.close
						%>
                        
               		  </table>
            		</div>
					
            <!-------------------------------------- 结束 -------------------------------------->
            
            
            <div class="gexian20"></div>
            <div class="mzsmbox2">
			提示：开启平台代售功能后，平台将有权限获取商品信息。<br>
            平台会参考商品日均销量，商品质量与商品售后情况，优质商品会加入到平台代售列表，将在平台首页展示。<br>
            加入平台代售列表的商品，客服将统一使用平台客服，相关售后与支持我们会及时与您取得联系。
            </div>
           
            
           

        <div class="clearfix"></div>



</div>








</div>
</div>
</div>
</div>
</main>


<footer>
<div class="container">
</div>
</footer>

</body>
</html>