﻿<%@ LANGUAGE = "VBScript.Encode" codepage="65001" %>
<!--
'##################################################################                                                                 
'★         web08.net - 威博购物系统                                              
'★  版权所有: web08.net                                                                                                       
'★  程序制作: 威博网络技术公司                                     
'★           email:web08net@hotmail.com                           
'★            Q Q :645095280,475980829
'★	       电话:021-55520018                                                                                                         
'★  相关网址: [产品介绍] http://www.021web.com.cn/gwxt.html
'★            [支持论坛] http://bbs.web08.net/                                                                                     
'★  主页地址: http://www.web08.net/  
'★		http://www.021web.com.cn/			                                                                 
'###################################################################
-->
<html>
<head>
<title>模板/标签系统-威博单用户商城后台管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../css/css.css" rel="stylesheet" type="text/css">
</head>
<!--#include file="../include2.asp"-->
<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 class="background" onLoad="LoadFinish()">
<!-- #include file="../loading2.asp" -->
<center>
<!--#include file="web_tmp_include.asp"-->
<div class="div-top">
<span class="left-span">&nbsp;&nbsp;<strong>管理中心</strong>  - 标签样式批量导入 </span>
</div>
<div class="tab-div">
<form name="myform" method="post" action="getmorestylable.asp">
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
<tr>
<td height="25" colspan="2" align="right" bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td width="20%" height="30" align="right" bgcolor="#FFFFFF">标签分类：</td>
<td width="80%" height="30" align="left" bgcolor="#FFFFFF"><select name="labclass" class="nowidth">
<option value="0">选择标签分类</option>
<%#@~^kAIAAA==@#@&mG	x94@#@&@#@&O:a{KlM+UO&N'^C4DXw@#@&@#@&/Y~msCk/mDkmW(Lx/Kxx nX+^EDnvJdVmY,k9SnmDnxDq9S:XwHls+Pw.G:,h4mSC8^+PXanP,h4nM+P~d4W2k9xE!v,l	NPhlMnxDq9'ZPG.9+D,8X,kN,[n/1J*@#@&NG~StrV~xKY~^^l/dmM/mW(%c+G6P@#@&k6PDhw|nCDxO(9P',^Vm//|.d{K4N`Ek[E*POtU@#@&DndaWxdnc.kDn,J@!KwDkW	P7CV!+xJrJ'^^l/kmDk{W(%cJbNr#'JEE,/nV^YN@*ELmVCdk{./|G(LcrKHw+glsnJ*[E@!JW2ObWx@*E@#@&+Vkn@#@&M+kwGxdnc.kDnPr@!G2DkWU~7lsExrJELm^l/k{Md{K4%`rk[E*[JrE@*r[m^Cd/|Dk{G4%crKzwHls+EbLJ@!&GaYrW	@*r@#@&x9Pk6@#@&.+kwGxk+ 	MkY~oY{14rV9Sb/O`^sm/d{Md{K4%crkNEbBJE~Dha{KmDxY&NBEh4mSm4sn:XwE#@#@&m^Cd/|Dk{G4% sW-+	n6D@#@&sKWw@#@&1VC/kmM/mK4NRm^Wkn)k+OP1VCdk{DkmW(L'	GOtbxT@#@&ztAAAA==^#~@%>
</select ></td>
</tr>
<tr>
<td height="30" align="right" bgcolor="#FFFFFF">样式分类：</td>
<td height="30" align="left" bgcolor="#FFFFFF"><select name="ParentID" id="ParentID">
<option value="0">请选择样式分类</option>
<%#@~^pQIAAA==@#@&mG	x94@#@&NbhP1VC/k{.d|W4NSYsw{K8%~D:a{Kl.n	Y(N@#@&@#@&@#@&dYP^sm/d{Md|W8N';Wx	Ra+1EO+vJdn^+mD~k9~nm.nxDqG~PX2nglh+,oDK:~A4{dOHVnKH2P~StD+,Pk4Wak['E!v~mxN,KlM+xD(9'ZPKD[+.~(X~k9~N/^E*@#@&[G,h4k^n,xGDP1Vlk/|./|W8Lc+GW,@#@&@#@&k6PYs2mnmDxOq[~{P^Vmd/|DdmK4LcEbNE#,O4+U@#@&M+/aW	d+c.kD+~E@!WwDrW	P\ms;+{JrJ'msCk/mDkmW(LcEbNJb'rJEPkn^+^D+9@*JLm^C/k{./|W8%vJKH2+gl:Eb[r@!JW2YrG	@*E@#@&nVk+@#@&M+/2G	/nRq.bYn,J@!WwDkKUP7lsE'EEr[m^C/k{DkmG4N`rk[Jb'rJE@*r'm^ldd|D/mG(LcJ:za+Hm:J#LJ@!&WaYrW	@*E@#@&+x9~k6@#@&MndwKxk+ .rD+~oO{1trs9SkdOvmslkd|Dd|W(L`rk9E#BJE~D:2mhlDUY&N~rAn4|/DXs+Pza+E#@#@&m^ldd|D/mG(L :K-xnXY@#@&VKWa@#@&1VC/k{.d|W4N m^W/ld+DP1VC/dmM/mW(%'	WO4bxo@#@&6tcAAA==^#~@%>
</select></td>
</tr>
<tr>
<td height="30" align="right" bgcolor="#FFFFFF">广告分类：</td>
<td height="30" align="left" bgcolor="#FFFFFF"><select name="adclass" id="adclass">
<option value="0">请选择广告分类</option>
<%#@~^ZAIAAA==@#@&/nDP1Vlk/|./|W8L{ZGU	R+Xnm!Y+vEd+^+1Y~k[Shl.+	OqG~Pza+1ChPoDKh,hn({zfKHw~PStnDP~d4Wwb['E!B,CUN,nmDnxO(G'TPK.ND~8HPk[~9+dmrb@#@&[KPStk^+,UWDP^Vm/dmM/{K8Lc+W6~@#@&@#@&b0~Yh2|nCDUY&N~x,mVCdk{./|G(Lcrk9J#,Y4nx@#@&.+kwGUk+Rq.kD+Pr@!GwDkKx~\Cs!+xJrE[1VCdk{DdmK4%`rr9JbLJrJPk+^nmD+[@*r[^sm//|./|W4NcEKHw1C:nE*[E@!JGwDkGU@*J@#@&n^/n@#@&./2Kxk+RqDbO+,J@!WaYrG	P\msE'JrE'm^lk/mDdmK4%`rrNr#'ErJ@*E'1VC/kmM/mK4N`J:Xan1m:nJ*[E@!JWwDrW	@*J@#@&nx9Pb0@#@&.nkwGxknRqDrOPonO|m4k^[dkdD`1Vlk/|./|W8LvJr[r#~rE~D:w|KCDxDq[~EA4mbGPXa+Eb@#@&msCk/mDkmK4%c:K\+	+XO@#@&VGWa@#@&^^l/kmDk{W(% m^Wk+l/nO,mslkd{M/mG(L'UGDtrxT@#@&asMAAA==^#~@%>
</select></td>
</tr>
<tr>
<td height="50" align="center" bgcolor="#FFFFFF">&nbsp;</td>
<td height="50" align="left" bgcolor="#FFFFFF"><input type="submit" name="Submit3" value="数据导入" onClick="Submit_Data_To_Refresh('SYS','<%=#@~^GgAAAA==.;;/DRmKW0r+k`E30l[hbxJ*mAkAAA==^#~@%>','uploaddate',this.form)">
  <input type="reset" name="Submit" value=" 取消导入 "></td>
</tr>
<tr>
  <td height="50" colspan="2" align="left" bgcolor="#FFFFFF" class="showtip">使用说明：<br>
    1.建好标签分类，建好样式分类，建好广告分类,有利于您对标签归档<br>
    2.请将数据库文件上传，<br>
    3.导入的标签和样式同属于一套模版 <br>
    4.请注意模版提供者对标签和模版的说明</td>
  </tr>
</table>
</form>

<!--显示结果窗口-->
<table width="60%" border="0" cellspacing="0" cellpadding="0" id="tdstyle" style="display:none" align=center>
<tr>
<td height="20" align="center"><div id="RefreshSchedule" style="display:none;" align=center></div></td>
</tr>
</table>
</div>
</center>
<%#@~^HAAAAA==Oswm"+6D+kt!.V{JA+({[OkRlk2JrQoAAA==^#~@%>
<script language="JavaScript" type="text/JavaScript">
var G_REFRESH_NUM_TIME=0;
countnum=1;
function Submit_Data_To_Refresh(Sys,Table,Type,FormObj)
{
	var Action='',Str='',Obj=null;
	if (typeof(FormObj)=="object"){
		for(var i=0;i<FormObj.length;i++)
		{
			Obj = FormObj[i];
			if ((Obj.tagName=='INPUT')&&(Obj.type=='text')) Str=Obj.name+':'+Obj.value;
			if (Obj.tagName=='SELECT') {Str=Obj.name+':'+GetSelectID(Obj);}
			if (Str!='')
			{
				if (Action=='') Action=Str;
				else Action=Action+';'+Str;
			}
			Str='';
		}
	}else{
		Action="";
	}
	Action=FormObj.fid.value;
	Action=Sys+'$'+Table+'$'+Type+'$'+Action;
	Action="Action="+Action;
	//alert(Action)
	$('RefreshMain').style.display="none";
	$('tdstyle').style.display="";
	$('RefreshSchedule').style.display="";
	$('RefreshSchedule').innerHTML="<div class=\"processline\" align=\"left\"><div class=\"xingmu\" id=\"RefreshLen\"></div></div>\
	<span id=\"result_str\" align=\"center\"></span><br><br>";
	$("RefreshLen").style.width ="0%";
	$("RefreshLen").innerHTML="&nbsp;<span class=\"xingmu\">0%</span>";
	$('result_str').innerHTML="正在准备...&nbsp;&nbsp;";
	Start_Refresh('<%=#@~^DgAAAA==Oswm"+6D+kt!.V0gUAAA==^#~@%>',Action);
}

function Start_Refresh(url,Action){
	var myAjax = new Ajax.Request(
		url,
		{method:'get',
		parameters:Action,
		onComplete:Refresh_Receive
		}
		);
}
function Refresh_Receive(OriginalRequest){
	var check,goback;
	var percent=0;
	goback="<a href=\"返回\" onclick=\"$('RefreshMain').style.display='';$('RefreshSchedule').style.display='none';return false;\">返回</a>";
	//alert(OriginalRequest.responseText);
	if (OriginalRequest.responseText.indexOf("$")>-1)
	{
		check=OriginalRequest.responseText.split("$");
		switch (check[0]) {
			case "Next" :
				percent=(parseInt(check[2])/parseInt(check[1]))*100;
				percent=Math.round(percent);
				$("RefreshLen").style.width =percent+"%";
				$("RefreshLen").innerHTML="&nbsp;<span class=\"xingmu\">"+percent+"%</span>";
				$('result_str').innerHTML="总共要导入" + check[1] + "条数据,已经导入" + check[2] + "条数据...";
				Start_Refresh("web_dts.asp","");
				countnum++;
				break;
			case "End" :
				$("RefreshLen").style.width ="100%";
				$("RefreshLen").innerHTML="&nbsp;<span class=\"xingmu\">100%</span>";
				$('result_str').innerHTML="总共要导入" + check[1] + "条数据,已经导入" + (check[2]-1) + "条数据...";
				$('result_str').innerHTML=$('result_str').innerHTML+"<br />导入结束&nbsp;&nbsp;"+goback;
				countnum=1;
				break;
			case "No" :
				$('result_str').innerHTML="没有要导入的数据&nbsp;&nbsp;"+goback;
				countnum=1;
				break;
			case "NoData" :
				$('result_str').innerHTML="数据文件不存在，请上传后再执行导入&nbsp;&nbsp;"+goback;
				countnum=1;
				break;
			default :
				alert(OriginalRequest.responseText);
				//$('result_str').innerHTML=OriginalRequest.responseText;
				//Start_Refresh("PublicSite/Public_Refresh.asp","");
				$('result_str').innerHTML="导入失败，请与管理员联系。&nbsp;&nbsp;"+goback+"<br>错误描述如下：<span class=\"tx\">"+check[1]+"</span><span class=\"tx\">"+decodeURI(check[2])+"</span>";
				//Start_Refresh("PublicSite/Public_Refresh.asp","");
		} 
	}
	else
	{
		$('result_str').innerHTML="导入失败，请与管理员联系。&nbsp;&nbsp;"+goback+"<br>错误描述如下："+OriginalRequest.responseText;
	}
}
function GetSelectID(Obj)
{
	var SelectObj=null,Str='';
	for(var i=0;i<Obj.options.length;i++)
	{
		SelectObj=Obj.options[i];
		if(SelectObj.selected)
		{
			if(Str=='') Str=SelectObj.value;
			else Str=Str+'*'+SelectObj.value;
		}
	}
	return Str;
}
</script>
<!-- #include file="../bottom2.asp" -->
</body>
</html>