<!--#include virtual="/show/adminhead.asp"-->
<!--#include file="adminleft.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

<title><%=webname%>-最高权限-新增会员</title>
<link rel="stylesheet" href="/kindeditor/themes/default/default.css" />
<script charset="utf-8" src="/kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="/kindeditor/lang/zh-CN.js"></script>

<%
call chkwurl()
call logquanxian("b2",1)
%>

<DIV>
<%
id=SafeRequest("id")
act=SafeRequestform("act")



if act="add" then

uid=SafeRequestform("uid")
biaoti1=SafeRequestform("biaoti1")
pic1=SafeRequestform("pic1")

if trim(uid)="" then call PopErr("缺少UID")
if trim(biaoti1)="" and trim(pic1)="" then call PopErr("只是填写一项内容")


sql="select * from aypicsite" 
rs.open sql,conn,1,3
rs.addnew
rs("aypuid")=uid
if trim(biaoti1)<>"" then rs("ayptit")=biaoti1
if trim(pic1)<>"" then rs("aypcon")=pic1
rs("aypzt")=1
rs.update
rs.close
 
call logadd(request.Cookies("aynameid"),"管理-商家扩展信息添加成功"&uid,0,0)
call PopErr2("商家扩展信息添加成功","adminuserpic.asp?id="&uid&"")

end if


if SafeRequest("act")="del" then
	id=SafeRequest("id")
	uid=SafeRequest("uid")
	
	sql="select * from aypicsite where aypid="&id&"" 
	rs.open sql,conn,1,3
	if not(rs.bof and rs.eof) then
	rs.delete
	rs.close
	end if
	call logadd(request.Cookies("aynameid"),"管理-商家扩展信息删除成功"&uid,0,0)
	call PopErr2("商家扩展信息删除成功","adminuserpic.asp?id="&uid&"")
end if




if SafeRequest("act")="took" then
kid=SafeRequest("kid")
uid=SafeRequest("uid")

if trim(kid)="" then call PopErr("缺少ID")
if trim(uid)="" then call PopErr("缺少UID")

sql="select * from aypicsite where aypid="&kid&"" 
rs.open sql,conn,1,3
rs("aypzt")=1
rs.update
rs.close
call PopErr2("操作成功","adminuserpic.asp?id="&uid&"")
end if

if SafeRequest("act")="tono" then
kid=SafeRequest("kid")
uid=SafeRequest("uid")
zt=SafeRequest("zt")

if trim(kid)="" then call PopErr("缺少ID")
if trim(uid)="" then call PopErr("缺少UID")

sql="select * from aypicsite where aypid="&kid&"" 
rs.open sql,conn,1,3
rs("aypzt")=2
rs("aypshibaizt")=zt
rs.update
rs.close
call PopErr2("操作成功","adminuserpic.asp?id="&uid&"")
end if
%>

<DIV id=main1200> 
<%call webleft()%>

<DIV id=main_right>
<DIV id=main_right_content>
<STYLE>.apply_style {
	POSITION: absolute
}
.right_title A {
	LINE-HEIGHT: 27px; WIDTH: 126px; DISPLAY: inline-block; BACKGROUND: url(<%=ossurl%>images/bg22.gif) no-repeat; HEIGHT: 27px
}
.right_title A.current {
	BACKGROUND: url(<%=ossurl%>images/main_right_title_bg.gif) no-repeat; COLOR: #fff; FONT-WEIGHT: bold
}
.table_style_1 TD {
	HEIGHT: 38px
}
.table_style_home_info TD {
	PADDING-BOTTOM: 0px; PADDING-LEFT: 10px; PADDING-RIGHT: 0px; HEIGHT: 30px; PADDING-TOP: 0px
}
</STYLE>

<%
sql="select aytrueuser,aynameid from ayname where aynameid="&clng(id)&"" 
rs.open sql,conn,1,3
aytrueuser=trim(rs("aytrueuser"))
rs.close
%>
<DIV class=right_titleadmin>&nbsp;&nbsp;<%=aytrueuser%>-<%=id%>-商户备注-扩展信息</DIV>
<DIV class=main><br>
					<script>
								KindEditor.ready(function(K) {
									var uploadbutton1 = K.uploadbutton({
										button : K('#uploadButton1')[0],
										fieldName : 'imgFile',
										url : '/kindeditor/asp/upload_kuozhan.asp?dir=image',
										afterUpload : function(data) { 
											if (data.error === 0) {
												var url = K.formatUrl(data.url, '');
												urlcon=url.replace("/kindeditor/asp/../../","/"); 
												K('#picurl1').val(urlcon);
												con1.innerHTML='<a href='+urlcon+' target=_blank><img src='+urlcon+' width=100 height=100/></a>';
											} else {
												alert(data.message);
											}
										},
										afterError : function(str) {
											alert('自定义错误信息: ' + str);
										}
									});
									uploadbutton1.fileBox.change(function(e) {
										uploadbutton1.submit();
									});
								});
							</script>
  <table width="99%" border="0" cellpadding="0" cellspacing="0" class="table_style_a1">
     <form action="" method="post" name="myform" id="myform"> 
      <tr>
        <th width="254" align="center" class="border_right border_bottom">扩展信息标题</th>
        <td width="1159" class="border_bottom">&nbsp;<input name="biaoti1" type="text" id="biaoti1" size="40"></td>
        </tr>
      <tr>
        <th width="254" align="center" class="border_right border_bottom">扩展信息图片</th>
        <td width="1159" class="border_bottom">&nbsp;<input name="pic1" type="hidden" class="ke-input-text" id="picurl1" value="" readonly="readonly" /> <input type="button" id="uploadButton1" value="上传截图1" />
        <span id="con1"></span>
        </td>
        </tr>
      <tr>
        <td colspan="2" align="center">
        <input name="act" type="hidden" value="add"/>
        <input name="uid" type="hidden" value="<%=id%>"/>
        <input type="submit" name="button" id="button" value="  添 加 商 品 信 息 或 扩 展 信 息  "></td>
        </tr>
      </form>
    </table>
    
<br><br>
<a style="color:#F60" href="adminuseredit.asp?id=<%=id%>" target="_blank">【实名认证成功送50元加急提现免佣金流量】</a><br><br>
  <table width="99%" border="0" cellpadding="0" cellspacing="0" class="table_style_a1">
     <form action="" method="post" name="myform" id="myform">
     
<%
sql="select * from aypicsite where aypuid="&id&" order by aypid desc" 
rs.open sql,conn,1,3
if not(rs.bof and rs.eof) then 
do while not rs.eof
%>
      <tr>
        <th width="254" align="center" class="border_right border_bottom"><%=rs("aypdate")%>&nbsp;<a style="color:#F60" href="?act=del&id=<%=rs("aypid")%>&uid=<%=id%>">[删除]</a>
        <br>
							<%
							if cint(rs("aypfang"))=0 then response.Write "【平台提交】"
							if cint(rs("aypfang"))=1 then response.Write "【商家提交】"
							%>
                            &nbsp;
							<%
							if cint(rs("aypzt"))=0 then response.Write "【审核中】"
							if cint(rs("aypzt"))=1 then response.Write "【审核通过】"
							if cint(rs("aypzt"))=2 then response.Write "【审核失败】"
							
							
							if cint(rs("aypzt"))=2 then
								if cint(rs("aypshibaizt"))=1 then response.Write "<br>[ERR请至少提供三个使用场景截图]"
								if cint(rs("aypshibaizt"))=2 then response.Write " <br>[ERR上传场景无效或无法判定，请重新上传]"
								if cint(rs("aypshibaizt"))=3 then response.Write " <br>[ERR上传场景截图重复，请重新上传]"
								if cint(rs("aypshibaizt"))=4 then response.Write " <br>[ERR涉及非法违规内容]"
								if cint(rs("aypshibaizt"))=5 then response.Write " <br>[ERR需提供会员相关内容]"
							end if
							
							
							if cint(rs("aypfang"))=1 and cint(rs("aypzt"))=0 then%>
                            <br>
							<a style="color:#F60" href="?act=took&kid=<%=rs("aypid")%>&uid=<%=id%>">[审核通过]</a><br>
							<a style="color:#F60" href="?act=tono&kid=<%=rs("aypid")%>&uid=<%=id%>&zt=1">[审核失败-需提供三个场景]</a><br>
                            <a style="color:#F60" href="?act=tono&kid=<%=rs("aypid")%>&uid=<%=id%>&zt=2">[审核失败-场景无效或无法判定]</a><br>
                            <a style="color:#F60" href="?act=tono&kid=<%=rs("aypid")%>&uid=<%=id%>&zt=3">[审核失败-场景提交重复]</a><br>
                            <a style="color:#F60" href="?act=tono&kid=<%=rs("aypid")%>&uid=<%=id%>&zt=4">[审核失败-涉及非法违规内容]</a><br>
                            <a style="color:#F60" href="?act=tono&kid=<%=rs("aypid")%>&uid=<%=id%>&zt=5">[审核失败-需提供会员相关内容]</a><br>
							<%end if
							%>
                            
        </th>
        <td width="1159" class="border_bottom">
        <%
		if trim(rs("ayptit"))<>"" then response.Write "&nbsp;"&rs("ayptit")&"<br>"
		if trim(rs("aypcon"))<>"" then %>
		&nbsp;<a href=<%=rs("aypcon")%> target=_blank><img src=<%=rs("aypcon")%> width=100 height=100/></a>
		<%
		end if
		%>
        </td>
      </tr>
<%
rs.movenext
loop
end if
rs.close
%>

      </form>
    </table>
</DIV>


</DIV></DIV>
<DIV class=clear></DIV></DIV>
</DIV>
<SCRIPT>
$(function(){
$('.left_title').each(function(){
   $(this).click(function(){
	   var index=$('.left_title').index(this);
	   if($(this).next().hasClass('hide_m')){
		   $(this).next().removeClass('hide_m');
           $(this).next().show();		 
		   $(this).find('img').attr('src','<%=ossurl%>images/expansion.gif');
		   $.cookie('m_index_'+index,'',{expires:0});
	   } else {
	       $(this).next().hide();
		   $(this).next().addClass('hide_m');
		   $(this).find('img').attr('src','<%=ossurl%>images/shrank.gif');		   
		   $.cookie('m_index_'+index,'none',{expires:365});
	   }
   })
})

$('.left_title').each(function(){
	var index=$('.left_title').index(this);
    $(this).next().css('display',$.cookie('m_index_'+index) ? $.cookie('m_index_'+index) : '');
	if($.cookie('m_index_'+index)){
	    $(this).next().addClass('hide_m');
	}
	$(this).find('img').attr('src',$.cookie('m_index_'+index) ? '<%=ossurl%>images/shrank.gif' : '<%=ossurl%>images/expansion.gif');
})
})

</SCRIPT>

<!--#include virtual="/show/footadmin.asp"-->

