<%@ 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/			                                                                 
'###################################################################
--><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../css/css.css" rel="stylesheet" type="text/css">
<title>商品批量编辑</title>
</head>
<!--#include file=../include2.asp-->
<script language='javascript'>
 function Loadlogininfo(str1)
{	
	var result,url;
	var j;
	url = "Pro_Moreproduct.asp?catid="+str1
	var xmlDoc=new ActiveXObject("Microsoft.XMLDOM") 
	xmlDoc.async=false;
	xmlDoc.load(url);
	document.getElementById("productlist").innerHTML=xmlDoc.childNodes(1).childNodes(0).childNodes(0).text;
	
	}
	
</script>
<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 class="background" onLoad="LoadFinish()">
<!-- #include file="../loading2.asp" -->
<center>
<!--#include file="web_mall_include.asp"-->
<div class="div-top">
<span class="left-span">&nbsp;&nbsp;<strong>管理中心</strong>  - 商品批量编辑 </span>
</div>
<div class="tab-div">
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
          <form action="pro_Moreedit_alledit.asp" method="post" name="myform">
		  
          <tr>
            <td width="20%" height="30" align="right" bgcolor="#FFFFFF"><label>商品分类：</label></td>
            <td height="30" colspan="3" align="left" bgcolor="#FFFFFF"> 



			<select name="pclass" id="pclass"  onchange=changecat(this)>
          		<option value="0" selected>-----显示所有商品-----</option>
		  	<%#@~^7gEAAA==@#@&d7,PidmKx	[4@#@&7d,d7~,Nks~m^l/km./|W(LSYh2|W8LBO:a{KCM+xO(9@#@&di~iPdY,mVm/kmDk{G4N'/G	xRa+1EYcE/VmOPM~6DG:,	+({K.KZVCdkPAt.PWbN{!P,WM[+MP8X,\mGMN+M~lkmJ*@#@&diP,d[W~A4ks+,UWDP^sm//m.k{G4N WW,@#@&ddidMn/aWU/R	.bY+,E@!KwYbGUP7l^En'EEr[^Vmd/|DdmK4LcEbNE#LErJ@*r[1Vlk/|./|W8LvJHCs+J*'J@!zWaOrW	@*r@#@&d77iDn/aGxk+ 	MkYn~T+O{a.KSrkYvmVm/kmDk{G4N`Er9J#BEJBY:amKlM+	Y(NSEq+8{h.W;VCdkJ#@#@&id~Pi^^ldk{M/{K4N :K\nx6O@#@&dd,~VKWw@#@&7d,P1VC/dmM/mW(%R1VGd)/nO,mslkd|Dd|W(L'	WD4k	o@#@&id~~rJUAAA==^#~@%>
        </select></td>
          </tr>
          <tr>
            <td width="20%" height="30" align="right" bgcolor="#FFFFFF">商品选择：</td>
            <td width="25%" height="30" align="left" bgcolor="#FFFFFF">待选商品列表
			  <div id="productlist" name="productlist"></div>
	   <script>Loadlogininfo("0");</script>  </td><td width="10%" align="center" bgcolor="#FFFFFF">
	     <INPUT name="button" type=button onclick=add(this.form.source,this.form.targetgoods) value=" &gt;&gt; ">
	     <BR>
              <INPUT name="button2" type=button onclick=del(this.form.targetgoods,this.form.source) value=" &lt;&lt; "></td>
            <td width="34%" align="left" bgcolor="#FFFFFF">选定商品列表<br>
              <SELECT name="targetgoods" size=8 multiple id="targetgoods" style="BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; WIDTH: 250px; BORDER-BOTTOM: #cccccc 1px solid">
                  </SELECT>            </td>
          </tr>
          <tr>
            <td width="20%" height="30" align="right" bgcolor="#FFFFFF">需要编辑的属性：</td>
            <td height="30" colspan="3" align="left" bgcolor="#FFFFFF">
	<SELECT style="BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; WIDTH: 250px; BORDER-BOTTOM: #cccccc 1px solid" multiple size=8 name=fieldlist>
              <option value="pname">商品名称</option>
             <option value="psname">商品短名称</option>
             <option value="pvolumn">单位</option>
              <option value="pscore">商品积分</option>
              <option value="prank">商品排序</option>
	      <option value="sysclass">商品分类</option>
	      <option value="pbrand">商品品牌</option>
              <option value="pweight">重量</option>
	      <option value="pmyproperty">自定义属性</option>
              <option value="pprice">自定义价格</option>
	      <option value="markprice">市场价格</option>
  	      <option value="memberprice">商城价格</option> 
              <option value="precommend">是否推荐</option>
              <option value="pnewflag">是否新品</option>
              <option value="pfee">是否特价</option>
              <option value="phot">是否热卖</option>
              <option value="pifalarm">是否库存警告</option>
              <option value="ppublicate">产品发布</option>
              <option value="ptruegood">是否实体商品</option>
              <!--<option value="pindextj">首页推荐</option>-->
	     <!--<option value="ptemplate">商品模版</option>-->
              <option value="ppicture">商品图片</option>
              <option value="pmorepic">商品多图</option>
          
              <!--<option value="pserver">供应商</option>-->
              <option value="pkeyword">商品关键字</option>
              <option value="pdescription">描述</option>
              <option value="pshortcontent">商品简述</option>
              <option value="pcontent">商品介绍</option>
            </SELECT></td>
          </tr>
          <tr>
            <td width="20%" height="30" align="right" bgcolor="#FFFFFF">编辑方式：</td>
			<INPUT TYPE="hidden" name="goodsname_list" value="">
                  	<INPUT TYPE="hidden" name="goodsid_list" value="">
                    	<INPUT TYPE="hidden" name="field_list" value="">
            <td height="30" colspan="3" align="left" bgcolor="#FFFFFF">
<INPUT type=radio CHECKED value=1 name=updatetype> 逐一编辑 
<input type=radio value=2 name=updatetype> 
统一编辑 </td>
          </tr>
          <tr>
            <td width="20%" height="30" align="center" bgcolor="#FFFFFF">&nbsp;</td>
            <td height="30" colspan="3" align="left" bgcolor="#FFFFFF"><label>
              <input type="submit" name="Submit" value=" 进入编辑 "  onclick="return chkout(document.myform)">
            </label></td>
          </tr>
          </form>
        </table>
</div>
</center>
<!-- #include file="../bottom2.asp" -->
 <script language="javascript">
	function chkout(frm)
	{
		var goodsidlist = "";
		var goodsnamelist = "";
		var first = true;
		for(var x=0; x<frm.targetgoods.options.length; x++){
			if(first)
			{
				goodsidlist = goodsidlist + frm.targetgoods.options[x].value;
				goodsnamelist = goodsnamelist + frm.targetgoods.options[x].text;
				first = false;
			}
			else{
				goodsidlist = goodsidlist + "," + frm.targetgoods.options[x].value;
				goodsnamelist = goodsnamelist + "###@@@" + frm.targetgoods.options[x].text;
			}
		}	
		frm.goodsid_list.value = goodsidlist;
		frm.goodsname_list.value = goodsnamelist;
		var fieldlistvar = "";
		first = true;
		for(x=0; x<frm.fieldlist.options.length; x++){
			if(frm.fieldlist.options[x].selected)
			{
				if(first)
				{
					fieldlistvar = fieldlistvar + frm.fieldlist.options[x].value;
					first = false;
				}
				else
					fieldlistvar = fieldlistvar + "," + frm.fieldlist.options[x].value;
			}
		}	
		frm.field_list.value = fieldlistvar;

		
		if(frm.field_list.value=="")
		{
			alert("请选择需要更新的字段！");
			return false;
		}

		
}

	function changecat(sel)
	{
		
			Loadlogininfo(sel.value);


	}
	function clearsource()
	{
		form1.source.options.length = 0;
		form1.fieldlist.options.length = 0;
	}
	function addsource(frmobj,tn,tv)
	{
		var no = new Option();
		no.value = tv;
		no.text = tn;
		var frmbox = eval("form1."+frmobj);
		frmbox.options[frmbox.options.length] = no;
	}
function add(fbox,tbox) {
	var j=0 ;
	for(var i=0; i<fbox.options.length; i++) {
		if(fbox.options[i].selected && fbox.options[i].value != "") {
			var no = new Option();
			no.value = fbox.options[i].value;
			no.text = fbox.options[i].text;

			for(var x=0; x<tbox.options.length; x++){
				if(tbox.options[x].value == no.value){
					j = 1 ;
					break ;
   				}  
			}
			if(j == 0){
				tbox.options[tbox.options.length] = no;
			}
		}
	}
}

function del(fbox,tbox) {
	for(var i=0; i<fbox.options.length; i++) {
		if(fbox.options[i].selected && fbox.options[i].value != "") {
			fbox.options[i].value = "";
			fbox.options[i].text = "";
		}
	}
	BumpUp(fbox);
}
function BumpUp(box)  {
	for(var i=0; i<box.options.length; i++) {
		if(box.options[i].value == "")  {
			for(var j=i; j<box.options.length-1; j++)  {
				box.options[j].value = box.options[j+1].value;
				box.options[j].text = box.options[j+1].text;
			}
			var ln = i;
			break;
		}
	}
	if(ln < box.options.length)  {
	box.options.length -= 1;
	BumpUp(box);
	}
}


</script>

 <%#@~^xQMAAA==o!x^DkKxPT+DmwMWJkkYcPHw+&9~6{ZKh2lD?DDSYh2|nCDUY&NSOsw{OC(Vn#,~@#@&7GksP0|Z4rV91nhkIdS;tk^[KHw+drdYUYM~W{PnswjYMS0|kdiMV?O.BVUo|!Y/KE	Y@#@&dk5V{Jj+^+^O,kNBWk9~1mhnP6DK:~J'OswmYm8V[E~St+.n,0rN{E,[~:Xa+qGPL~J,W.ND~8HPk9~N/mr~@#@&iBM+dwGUk+ hMrYPd5^@#@&7jY~0|/4ks91h/"/,xP;WUxc2an1EYc/$V#@#@&70|K:2?O.,'W{;G:alOjDDP'~r┄J@#@&i[KPA4k^+PgWD~0|Z4k^NHnS/Ik 2K0@#@&77db0,YhwmKmDnxD(N,'~W|Ztrs91nhk]k`EbNr#PDtU@#@&d7dionO|wDKJkkYP{~L+D{aDGSrdDP'Pr@!WaYrG	P\Cs!+xJrELPW|Z4kV91A/"/cJbNEb,[JrEPk+V^O+9@*r@#@&d77Vd+@#@&did7LY{2.KSr/D~{PLY|wDKSbdY,[~J@!W2ObWx,-l^E+{EEJLP6{/trs91nhk]/vJr[r#P'ErJ@*J@#@&id7x9Pk6@#@&7dionY|w.Gdk/D~',o+Dm2DKSb/OP'~r├J~[,~0|Knha?Y.~LPW{;4bV[g+S/Ik`rHls+E#,@#@&7idoO{aDWdrdY,',onYm2MWJkkOPLPE@!JWwOrKx@*J,',Z4M`8&#,[,/tM`q!*@#@&7idoO{aDWdrdY,',onYm2MWJkkOPLonO|wDGJb/O`6m;tr^Ng+hkIkcJbNE#B0mP:wUODBY:amKlM+	Y(NSOswmYm8V#@#@&id0m/4ksNgnS/]kRtW\1aY@#@&7VKW2@#@&d0|/tbVNgnA/"/cZsWdn@#@&7?OP6{/4bVNHnS/]/,x,1GDtbxo@#@&AUN,s;x1YrG	aSYBAA==^#~@%>
 
</body>
</html>
 

 
 

