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



<title><%=webname%>-最高权限-URL替换</title>


<DIV>
<%
call logquanxian("d1",1)
%>
<%
link="adminpicedit.asp?ct="
%>
<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>
<DIV class=right_titleadmin>&nbsp;&nbsp;URL查询</DIV>
<DIV class=main><br>

<table width="99%" border="0" cellpadding="0" cellspacing="0" class="table_style_a1">
    
       <tr>
        <th colspan="10" align="left" style="font-weight: bold; color: #FF6633">


<br>
<%
allhosturl="http://p.222.ik200.com/|http://p.80.ik200.com/|http://p.236.ik200.com/"
hoststr=split(allhosturl,"|")
For sum=0 To Ubound(hoststr) 
	
response.Write hoststr(sum)&"<br>"
response.Write "[<a style=color:#FF6633 href=?act=chakan&name=tongzhi&id="&hoststr(sum)&">查看通知</a>&nbsp;&nbsp; "
response.Write "<a style=color:#FF6633 href=?act=tihuan&name=tongzhi&id="&hoststr(sum)&">替换通知</a>]&nbsp;&nbsp;&nbsp;&nbsp; "
response.Write "[<a style=color:#FF6633 href=?act=chakan&name=gongdan&id="&hoststr(sum)&">查看工单</a>&nbsp;&nbsp; "
response.Write "<a style='color: #FF6633' href=?act=tihuan&name=gongdan&id="&hoststr(sum)&">替换工单</a>]&nbsp;&nbsp;&nbsp;&nbsp; "
response.Write "[<a style=color:#FF6633 href=?act=chakan&name=good&id="&hoststr(sum)&">查看商品</a>&nbsp;&nbsp; "
response.Write "<a style='color: #FF6633' href=?act=tihuan&name=good&id="&hoststr(sum)&">替换商品</a>]&nbsp;&nbsp;&nbsp;&nbsp; "
response.Write "[<a style='color: #FF6633' href=?act=chakan&name=jubao&id="&hoststr(sum)&">查看投诉</a>&nbsp;&nbsp; "
response.Write "<a style='color: #FF6633' href=?act=tihuan&name=jubao&id="&hoststr(sum)&">替换投诉</a>]&nbsp;&nbsp;&nbsp;&nbsp; "
'response.Write "[<a style='color: #FF6633' href=?act=chakan&name=daichong&id="&hoststr(sum)&">查看代充</a>&nbsp;&nbsp; "
'response.Write "<a style='color: #FF6633' href=?act=tihuan&name=daichong&id="&hoststr(sum)&">替换代充URL</a>]&nbsp;&nbsp;&nbsp;&nbsp; "
'response.Write "[<a style='color: #FF6633' href=?act=chakan&name=daishou&id="&hoststr(sum)&">查看平台代售</a>&nbsp;&nbsp; "
'response.Write "<a style='color: #FF6633' href=?act=tihuan&name=daishou&id="&hoststr(sum)&">替换平台代售URL</a>]&nbsp;&nbsp;&nbsp;&nbsp; "
response.Write "[<a style='color: #FF6633' href=?act=chakan&name=shangpinrz&id="&hoststr(sum)&">查看商品认证</a>&nbsp;&nbsp; "
response.Write "<a style='color: #FF6633' href=?act=tihuan&name=shangpinrz&id="&hoststr(sum)&">替换商品认证</a>]&nbsp;&nbsp;&nbsp;&nbsp; "
response.Write "[<a style='color: #FF6633' href=?act=chakan&name=shiming&id="&hoststr(sum)&">查看实名认证</a>&nbsp;&nbsp; "
response.Write "<a style='color: #FF6633' href=?act=tihuan&name=shiming&id="&hoststr(sum)&">替换实名认证</a>]&nbsp;&nbsp;&nbsp;&nbsp; "
response.Write "[<a style='color: #FF6633' href=?act=chakan&name=weixin&id="&hoststr(sum)&">查看微信</a>&nbsp;&nbsp; "
response.Write "<a style='color: #FF6633' href=?act=tihuan&name=weixin&id="&hoststr(sum)&">替换微信URL</a>]&nbsp;&nbsp;&nbsp;&nbsp;"

response.Write "[<a style='color: #FF6633' href=?act=chakan&name=ayjpic&id="&hoststr(sum)&">查看收款码</a>&nbsp;&nbsp; "
response.Write "<a style='color: #FF6633' href=?act=tihuan&name=ayjpic&id="&hoststr(sum)&">替换收款码</a>]&nbsp;&nbsp;&nbsp;&nbsp;"
	
response.Write "[<a style='color: #FF6633' href=?act=chakan&name=shoukuanma_pingtai&id="&hoststr(sum)&">查看平台代收</a>&nbsp;&nbsp; "
response.Write "<a style='color: #FF6633' href=?act=tihuan&name=shoukuanma_pingtai&id="&hoststr(sum)&">替换平台代收</a>]<br><br>"


next

%>
<br>

<!--
<br>
[<a style="color: #FF6633" href="?act=chakan&name=jmmai">查看寄卖</a>] [<a style="color: #FF6633" href="?act=tihuan&name=jmmai">替换OSS URL</a>] 
-->
<br><br>
</tr>
       
    </table>
<br>

<%
if SafeRequest("act")="chakan" then

	'查看商品
	if SafeRequest("name")="good" then
	
		id=SafeRequest("id")
		sql="select top 10 aygoodid,goodxx,goodbuyxx,aygoodsuoyouid from aygood where goodxx like '%"&id&"%' or goodbuyxx like '%"&id&"%' order by aygoodid desc" 
		rs.open sql,conn,1,1
		if not(rs.bof and rs.eof) then
		do while not rs.eof%>
		<a href="picedit.asp?id=<%=rs("aygoodid")%>" target="_blank"><%=rs("aygoodid")%></a> <a href="adminuseredit.asp?id=<%=rs("aygoodsuoyouid")%>" target="_blank"><%=rs("aygoodsuoyouid")%></a><br>
		<%
		if trim(rs("goodxx"))<>"" then	response.Write server.HTMLEncode(rs("goodxx"))&"<br>"
		if trim(rs("goodbuyxx"))<>"" then	response.Write server.HTMLEncode(rs("goodbuyxx"))&"<br>"
		rs.movenext 
		loop
		end if
		rs.close
	
	end if
	
	'查看商品
	if SafeRequest("name")="daishou" then
	
		id=SafeRequest("id")
		sql="select top 10 aygoodid,ptdxpic,aygoodsuoyouid,isptdx from aygood where isptdx=1 and ptdxpic like '%"&id&"%' order by aygoodid desc" 
		rs.open sql,conn,1,1
		if not(rs.bof and rs.eof) then
		do while not rs.eof%>
		<a href="picedit.asp?id=<%=rs("aygoodid")%>" target="_blank"><%=rs("aygoodid")%></a> <a href="adminuseredit.asp?id=<%=rs("aygoodsuoyouid")%>" target="_blank"><%=rs("aygoodsuoyouid")%></a><br>
		<%
		response.Write server.HTMLEncode(rs("ptdxpic"))&"<br>"
		rs.movenext 
		loop
		end if
		rs.close
	
	end if
	
	'查看工单
	if SafeRequest("name")="gongdan" then
	
		id=SafeRequest("id")
		sql="select * from aygongdan" 
		rs.open sql,conn,1,1
		if not(rs.bof and rs.eof) then
		do while not rs.eof
		
		if trim(rs("aygdpic1"))<>"" then
		if instr(1,trim(rs("aygdpic1")),id)>0 then response.Write server.HTMLEncode(rs("aygdpic1"))&"<br>"
		end if
		if trim(rs("aygdpic2"))<>"" then
		if instr(1,trim(rs("aygdpic2")),id)>0 then response.Write server.HTMLEncode(rs("aygdpic2"))&"<br>"
		end if
		if trim(rs("aygdpic3"))<>"" then
		if instr(1,trim(rs("aygdpic3")),id)>0 then response.Write server.HTMLEncode(rs("aygdpic3"))&"<br>"
		end if
		if trim(rs("aygdpic4"))<>"" then
		if instr(1,trim(rs("aygdpic4")),id)>0 then response.Write server.HTMLEncode(rs("aygdpic4"))&"<br>"
		end if
		if trim(rs("aygdpic5"))<>"" then
		if instr(1,trim(rs("aygdpic5")),id)>0 then response.Write server.HTMLEncode(rs("aygdpic5"))&"<br>"
		end if

		rs.movenext 
		loop
		end if
		rs.close
	
	end if
	
	

	
	
	'查看投诉
	if SafeRequest("name")="jubao" then
	
		id=SafeRequest("id")
		sql="select * from ayjubao where ayjudown like '%"&id&"%' order by ayjubaoid desc" 
		rs.open sql,conn,1,1
		if not(rs.bof and rs.eof) then
		do while not rs.eof%>
		<%
		if trim(rs("ayjudown"))<>"" then	response.Write server.HTMLEncode(rs("ayjudown"))&"<br>"
		rs.movenext 
		loop
		end if
		rs.close
				
	end if
	
		
	'查看收款码
	if SafeRequest("name")="ayjpic" then
	
		id=SafeRequest("id")
		sql="select * from ayjiesuanid where ayjpic like '%"&id&"%' order by ayjid desc" 
		rs.open sql,conn,1,1
		if not(rs.bof and rs.eof) then
		do while not rs.eof%>
		<%
		if trim(rs("ayjpic"))<>"" then	response.Write server.HTMLEncode(rs("ayjpic"))&"<br>"
		rs.movenext 
		loop
		end if
		rs.close
				
	end if	

	
	
	'查看通知
	if SafeRequest("name")="tongzhi" then
	
		id=SafeRequest("id")
		
		sql="select * from aytongzhi where aytongzhicon like '%"&id&"%' or aytongzhipic like '%"&id&"%'" 
		rs.open sql,conn,1,1
		if not(rs.bof and rs.eof) then
		do while not rs.eof
		if trim(rs("aytongzhicon"))<>"" then response.Write server.HTMLEncode(rs("aytongzhicon"))&"<br>"
		if trim(rs("aytongzhipic"))<>"" then response.Write server.HTMLEncode(rs("aytongzhipic"))&"<br>"
		rs.movenext 
		loop
		end if
		rs.close
				
	end if
	
	
	'查看微信
	if SafeRequest("name")="weixin" then
	
		id=SafeRequest("id")
		sql="select ayweixinpic from ayname where ayweixinpic like '%"&id&"%'" 
		rs.open sql,conn,1,1
		if not(rs.bof and rs.eof) then
		do while not rs.eof
		if trim(rs("ayweixinpic"))<>"" then	response.Write server.HTMLEncode(rs("ayweixinpic"))&"<br>"
		rs.movenext 
		loop
		end if
		rs.close
	
	end if
	

	
	
	'查看平台代收 收款码
	if SafeRequest("name")="shoukuanma_pingtai" then
		id=SafeRequest("id")
		sql="select * from ayshoukuan where pic like '%"&id&"%'" 
		rs.open sql,conn,1,1
		if not(rs.bof and rs.eof) then
		do while not rs.eof
		response.Write server.HTMLEncode(rs("pic"))&"<br>"
		rs.movenext 
		loop
		end if
		rs.close
	end if
	
	'商品认证信息
	if SafeRequest("name")="shangpinrz" then

		id=SafeRequest("id")
		sql="select top 50 * from aypicsite where aypcon like '%"&id&"%' order by aypid desc" 
		rs.open sql,conn,1,1
		if not(rs.bof and rs.eof) then
		do while not rs.eof%>
		<%
		response.Write server.HTMLEncode(rs("aypcon"))&"<br>"
		rs.movenext 
		loop
		end if
		rs.close

	end if
	
	'实名认证信息
	if SafeRequest("name")="shiming" then

		id=SafeRequest("id")
		sql="select top 50 * from ayname where sfz1 like '%"&id&"%' or sfz2 like '%"&id&"%' order by aynameid desc" 
		rs.open sql,conn,1,1
		if not(rs.bof and rs.eof) then
		do while not rs.eof%>
		<%
		response.Write server.HTMLEncode(rs("sfz1"))&"------"&server.HTMLEncode(rs("sfz2"))&"<br>"
		rs.movenext 
		loop
		end if
		rs.close

	end if
	
	
	
end if



'*******************************************************************************************************************************************




if SafeRequest("act")="tihuan" then

	'替换商品
	if SafeRequest("name")="shangpinrz" then
		id=SafeRequest("id")
		sql="select top 50 * from aypicsite where aypcon like '%"&id&"%' order by aypid desc" 
		rs.open sql,conn,1,3
		if not(rs.bof and rs.eof) then
		do while not rs.eof
		new1=replace(rs("aypcon"),"/kindeditor/asp/../../updata/","/updata/")
		new1=replace(new1,id&"updata/",ossurl&"updata/") 
		rs("aypcon")=new1
		rs.update
		rs.movenext 
		loop
		end if
		rs.close
		response.Write "替换成功"
	end if
	
	'替换实名认证
	if SafeRequest("name")="shiming" then
		id=SafeRequest("id")
		sql="select top 50 * from ayname where sfz1 like '%"&id&"%' or sfz2 like '%"&id&"%' order by aynameid desc" 
		rs.open sql,conn,1,3
		if not(rs.bof and rs.eof) then
		do while not rs.eof
		new1=replace(rs("sfz1"),"/kindeditor/asp/../../updata/","/updata/")
		new1=replace(new1,id&"updata/",ossurl&"updata/") 
		new2=replace(rs("sfz2"),"/kindeditor/asp/../../updata/","/updata/")
		new2=replace(new2,id&"updata/",ossurl&"updata/") 
		rs("sfz1")=new1
		rs("sfz2")=new2
		rs.update
		rs.movenext 
		loop
		end if
		rs.close
		response.Write "替换成功"
	end if

	'替换商品
	if SafeRequest("name")="good" then
	
		id=SafeRequest("id")
		sql="select top 10 aygoodid,goodxx,goodbuyxx from aygood where goodxx like '%"&id&"%' or goodbuyxx like '%"&id&"%' order by aygoodid desc" 
		rs.open sql,conn,1,3
		if not(rs.bof and rs.eof) then
		do while not rs.eof
			if trim(rs("goodxx"))<>"" then                           
			new1=replace(rs("goodxx"),"/kindeditor/asp/../../updata/","/updata/")
			new1=replace(new1,id&"updata/",ossurl&"updata/") 
			rs("goodxx")=new1
			end if
			 
			if trim(rs("goodbuyxx"))<>"" then
			new2=replace(rs("goodbuyxx"),"/kindeditor/asp/../../updata/","/updata/")
			new2=replace(new2,id&"updata/",ossurl&"updata/")
			rs("goodbuyxx")=new2
			end if
		rs.update
		rs.movenext 
		loop
		end if
		rs.close
		response.Write "替换成功"
	
	end if
	
	'替换代售
	if SafeRequest("name")="daishou" then
	
		id=SafeRequest("id")
		sql="select top 10 aygoodid,ptdxpic,aygoodsuoyouid,isptdx from aygood where isptdx=1 and ptdxpic like '%"&id&"%' order by aygoodid desc" 
		rs.open sql,conn,1,3
		if not(rs.bof and rs.eof) then
		do while not rs.eof
		new1=replace(rs("ptdxpic"),"/kindeditor/asp/../../updata/","/updata/")
		new1=replace(new1,id&"updata/",ossurl&"updata/") 
		rs("ptdxpic")=new1
		rs.update
		rs.movenext 
		loop
		end if
		rs.close
		response.Write "替换成功"
	
	end if
	
	'查看工单
	if SafeRequest("name")="gongdan" then
	
		id=SafeRequest("id")
		sql="select * from aygongdan" 
		rs.open sql,conn,1,3
		if not(rs.bof and rs.eof) then
		do while not rs.eof
		
		if trim(rs("aygdpic1"))<>"" then
			if instr(1,trim(rs("aygdpic1")),id)>0 then 
			new1=replace(rs("aygdpic1"),"/kindeditor/asp/../../updata/","/updata/")
			new1=replace(new1,id&"updata/",ossurl&"updata/") 
			rs("aygdpic1")=new1
			end if
		end if
		if trim(rs("aygdpic2"))<>"" then
			if instr(1,trim(rs("aygdpic2")),id)>0 then 
			new1=replace(rs("aygdpic2"),"/kindeditor/asp/../../updata/","/updata/")
			new1=replace(new1,id&"updata/",ossurl&"updata/") 
			rs("aygdpic2")=new1
			end if
		end if
		if trim(rs("aygdpic3"))<>"" then
			if instr(1,trim(rs("aygdpic3")),id)>0 then 
			new1=replace(rs("aygdpic3"),"/kindeditor/asp/../../updata/","/updata/")
			new1=replace(new1,id&"updata/",ossurl&"updata/") 
			rs("aygdpic3")=new1
			end if
		end if
		if trim(rs("aygdpic4"))<>"" then
			if instr(1,trim(rs("aygdpic4")),id)>0 then 
			new1=replace(rs("aygdpic4"),"/kindeditor/asp/../../updata/","/updata/")
			new1=replace(new1,id&"updata/",ossurl&"updata/") 
			rs("aygdpic4")=new1
			end if
		end if
		if trim(rs("aygdpic5"))<>"" then
			if instr(1,trim(rs("aygdpic5")),id)>0 then 
			new1=replace(rs("aygdpic5"),"/kindeditor/asp/../../updata/","/updata/")
			new1=replace(new1,id&"updata/",ossurl&"updata/") 
			rs("aygdpic5")=new1
			end if
		end if
		
		rs.movenext 
		loop
		end if
		rs.close
	
	end if
	

	
	
	
	'替换投诉
	if SafeRequest("name")="jubao" then
	
		id=SafeRequest("id")
		sql="select * from ayjubao where ayjudown like '%"&id&"%' order by ayjubaoid desc" 
		rs.open sql,conn,1,3
		if not(rs.bof and rs.eof) then
		do while not rs.eof
			if trim(rs("ayjudown"))<>"" then                           
			new1=replace(rs("ayjudown"),"/kindeditor/asp/../../updata/","/updata/")
			new1=replace(new1,id&"updata/",ossurl&"updata/") 
			rs("ayjudown")=new1
			end if
		rs.update
		rs.movenext 
		loop
		end if
		rs.close
		response.Write "替换成功"
	
	end if
	
	
	'查看收款码
	if SafeRequest("name")="ayjpic" then
	
		id=SafeRequest("id")
		sql="select * from ayjiesuanid where ayjpic like '%"&id&"%' order by ayjid desc" 
		rs.open sql,conn,1,3
		if not(rs.bof and rs.eof) then
		do while not rs.eof
		
		if trim(rs("ayjpic"))<>"" then	
			new1=replace(rs("ayjpic"),"/kindeditor/asp/../../updata/","/updata/")
			new1=replace(new1,id&"updata/",ossurl&"updata/") 
			rs("ayjpic")=new1
		end if
		
		rs.movenext 
		loop
		end if
		rs.close
				
	end if	
	


	'替换通知
	if SafeRequest("name")="tongzhi" then
	
	
		id=SafeRequest("id")
		sql="select * from aytongzhi where aytongzhicon like '%"&id&"%' or aytongzhipic like '%"&id&"%'" 
		rs.open sql,conn,1,3
		if not(rs.bof and rs.eof) then
		do while not rs.eof
		
			if trim(rs("aytongzhicon"))<>"" then                           
			new1=replace(rs("aytongzhicon"),"/kindeditor/asp/../../updata/","/updata/")
			new1=replace(new1,id&"updata/",ossurl&"updata/") 
			rs("aytongzhicon")=new1
			end if
			
			if trim(rs("aytongzhipic"))<>"" then                           
			new2=replace(rs("aytongzhipic"),"/kindeditor/asp/../../updata/","/updata/")
			new2=replace(new2,id&"updata/",ossurl&"updata/") 
			rs("aytongzhipic")=new2
			end if
			
		rs.update
		rs.movenext 
		loop
		end if
		rs.close
		response.Write "替换成功"
	
	end if
	
	
	
	'替换微信
	if SafeRequest("name")="weixin" then
	
		id=SafeRequest("id")
		sql="select ayweixinpic from ayname where ayweixinpic like '%"&id&"%'" 
		rs.open sql,conn,1,3
		if not(rs.bof and rs.eof) then
		do while not rs.eof
		
			if trim(rs("ayweixinpic"))<>"" then                           
			new1=replace(rs("ayweixinpic"),"/kindeditor/asp/../../updata/","/updata/")
			new1=replace(new1,id&"updata/",ossurl&"updata/") 
			rs("ayweixinpic")=new1
			end if

		rs.movenext 
		loop
		end if
		rs.close
		response.Write "替换成功"
	end if
	

	
	'查看平台代收 收款码
	if SafeRequest("name")="shoukuanma_pingtai" then
		id=SafeRequest("id")
		sql="select * from ayshoukuan where pic like '%"&id&"%'" 
		rs.open sql,conn,1,3
		if not(rs.bof and rs.eof) then
		do while not rs.eof
                        
			new1=replace(rs("pic"),"/kindeditor/asp/../../updata/","/updata/")
			new1=replace(new1,id&"updata/",ossurl&"updata/") 
			rs("pic")=new1
			
		rs.movenext 
		loop
		end if
		rs.close
		response.Write "替换成功"
	end if

end if








'寄卖
'url="/e/uploadfile/"
'tourl="http://wwv.ikpay.cn/updata/jm/"
'sql="select * from jgood" 
'rs.open sql,conn,1,3
'if not(rs.bof and rs.eof) then
'do while not rs.eof
'response.Write "<a href=picedit.asp?id="&rs("aygoodid")&" target=_blank>"&rs("aygoodid")&"</a>"
'if trim(rs("goodxx"))<>"" then	response.Write server.HTMLEncode(rs("goodxx"))&"<br>"
'if trim(rs("goodbuyxx"))<>"" then	response.Write server.HTMLEncode(rs("goodbuyxx"))&"<br>"
'	if trim(rs("jgoodms"))<>"" then
'	new1=replace(rs("jgoodms"),url,tourl)
'	rs("jgoodms")=new1
'	end if
	 
'rs.update
'rs.movenext 
'loop
'end if
'rs.close


%>



<br>
</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"-->

