|
当前任务设置每次最多采集数量为15,因此其它的可采集的数据将在下次运行时采集
成功采集并更新数据到数据库:韩都衣舍 韩国2013夏装新款女装宽松纯色无袖雪纺衫EJ3073
成功采集并更新数据到数据库:韩都衣舍 韩版2013秋装新款女装圆领套头长袖连衣裙JW3007
成功采集并更新数据到数据库:韩都衣舍 韩国2013春夏装新款女装纯色翻领修身连衣裙OZ2076
成功采集并更新数据到数据库:韩都衣舍 韩都衣舍韩版2013夏装新款女装假两件圆领短袖连衣裙GW2673
成功采集并更新数据到数据库:韩都衣舍 韩国2012夏季新品纯色修身连衣裙LU1219
成功采集并更新数据到数据库:韩都衣舍 2013韩国夏季女新款条纹宽松蝙蝠袖圆领T恤DQ1372
成功采集并更新数据到数据库:韩都衣舍 韩国2013春装新款女纯色松紧中腰小脚长裤DL1475
成功采集并更新数据到数据库:韩都衣舍 韩国2013夏装新款女装圆领蝙蝠袖镂空纯色短袖T恤FP0168
成功采集并更新数据到数据库:韩都衣舍 韩国2012秋装新款女装纽扣蕾丝长袖修身T恤OR2065
成功采集并更新数据到数据库:韩都衣舍 韩国2013夏装新款修身显瘦雪纺短裤OU2131
成功采集并更新数据到数据库:韩都衣舍 韩国2013年夏装新款女装纯色V领无袖褶皱连衣裙AA2031
成功采集并更新数据到数据库:韩都衣舍 韩国2013夏装新款女装长款圆领豹纹T恤HX1432
成功采集并更新数据到数据库:韩都衣舍 韩国2013夏装新款女装纯色大码镂空防晒针织衫DM1182
成功采集并更新数据到数据库:韩都衣舍 韩国2013夏装新款纯色打底修身吊带DU1087
成功采集并更新数据到数据库:韩都衣舍 韩国2013夏季新品女装纯色哈伦裤七分裤JY2010
开始查找可发布的数据,如果您的数据比较多,可能需要一些时间,请稍等
共有15记录需要发布
发布成功未知 1111 - Id:53 - 韩都衣舍。具体原因请查看文件C:\Documents and Settings\Administrator\桌面\火车头\Data\LocoySpider\42\WebPostError.txt
发布成功未知 1111 - Id:63 - 韩都衣舍
发布成功未知 1111 - Id:64 - 韩都衣舍
发布成功未知 1111 - Id:54 - 韩都衣舍
发布成功未知 1111 - Id:65 - 韩都衣舍
发布成功未知 1111 - Id:55 - 韩都衣舍
发布成功未知 1111 - Id:66 - 韩都衣舍
发布成功未知 1111 - Id:56 - 韩都衣舍
发布成功未知 1111 - Id:67 - 韩都衣舍
发布成功未知 1111 - Id:57 - 韩都衣舍
发布成功未知 1111 - Id:58 - 韩都衣舍
发布成功未知 1111 - Id:59 - 韩都衣舍
发布成功未知 1111 - Id:60 - 韩都衣舍
发布成功未知 1111 - Id:61 - 韩都衣舍
发布成功未知 1111 - Id:62 - 韩都衣舍
任务运行完成
本次采内容成功15条,失败0条,发内容成功0条,失败15条,开始时间:2014-01-26 18:24:22,结束时间:2014-01-26 18:26:30
发表文字测试显示这样
发布失败,错误信息:
网页源代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=7" > <title>添加商品</title> <link rel="shortcut icon" href="../favicon.gif" type="image/gif" /> <link rel="stylesheet" href="css/adminsinglepage.css" type="text/css" media="screen, projection"/> <script type="text/javascript" src="js/package/tools.js"></script> <script type="text/javascript" src="js/package/component.js"></script> <script type="text/javascript" src="js/package/wysiwyg.js"></script> <script type="text/javascript" src="js/package/goodsedit.js"></script> <script hold="true">
var SHOPADMINDIR='http://www.hsnvzhuang.com/shopadmin/';
var SHOPBASE='http://www.hsnvzhuang.com/';
var DEBUG_JS=false;
var MODALPANEL={};
var Setting = {};
var Menus = "json from=$mlist";
var sess_id = 'f2d21ebb137295ff0bb5cc704a811b1f';
</script> <script type="text/javascript" src="js/fixie6.js"></script> </head> <body class="single-page single-page-col2"> <div id="single-page-tbar"> <h1><img src="images/transparent.gif" class="imgbundle" style="width:16px;height:16px;background-position:0 -2235px;" />新增商品</h1> <ul class="btn-bar"> <li><button onclick="if(confirm('确定退出?'))window.close()" type="button" class="btn btn-quit"><span><span>退出编辑</span></span></button></li> <li><span type="button" onclick='subGoodsForm(3,this)' id=x_btn_drop-save class="btn btn-save btn-drop-menu drop-active"><span><span>保 存<img dropfor="x_btn_drop-save" id="x_btn_drop-save-handel" dropmenu="drop-save" src="images/transparent.gif" class="drop-handle drop-handle-stand" /></span></span></span></li> </ul> <ul id="drop-save" class="x-drop-menu"> <li onclick='subGoodsForm(1,this)'><span class="info" title="设为默认"><img src="images/transparent.gif" alt="设为默认" class="imgbundle" style="width:16px;height:16px;background-position:0 -1993px;" /></span><span><img src="images/transparent.gif" class="imgbundle" style="width:16px;height:16px;background-position:0 -1961px;" />并添加相似商品</span></li> <li onclick='subGoodsForm(2,this)'><span class="info" title="设为默认"><img src="images/transparent.gif" alt="设为默认" class="imgbundle" style="width:16px;height:16px;background-position:0 -1993px;" /></span><span><img src="images/transparent.gif" class="imgbundle" style="width:16px;height:16px;background-position:0 -2009px;" />并返回列表</span></li> </ul> </div> <div class="spage-sidebar-wrap"> <div id="single-page-sidebar"> <div class="spage-side-nav"> <ul> <li class="l-handle all cur" ><span>商品总览</span></li> <li class="l-handle" ><span>配件</span></li> <li class="l-handle" ><span>详细介绍</span></li> <li class="l-handle" ><span>搜索引擎优化</span></li> <li class="l-handle" ><span>相关商品</span></li> </ul> </div> <div class="spage-side-box"> <div class="tp"><h3><span class="t-handler" title="折叠/展开">折叠/展开</span>商品标签</h3></div> <div class="bd"><div id="finder-tag" class="tag-editor" style="overflow:hidden"> <ul class="tag-editor-group"> </ul> <div class="tag-editor-btns"> <span class="sysiconBtnNoIcon btn-apply"><span>应用</span></span> <span class="sysiconBtnNoIcon btn-create-tag"><span>新建</span></span> </div> <div class="dialogTag" style="display:none"> <p>请输入一个新的标签名称:</p> <input type="text" maxlength="20" class="tag-editor-value"/> <div style="margin:20px 10px 0;float:right"><span class="sysiconBtnNoIcon btnSmt">确定</span> <span class="sysiconBtnNoIcon btnCancel">取消</span></div> </div> <ul class="theme_tag" style="display:none"> <li class="selected_none"><img src="images/transparent.gif" class="imgbundle" style="width:9px;height:9px;background-position:0 -2276px;" /></li> <li class="selected_part"><img src="images/transparent.gif" class="imgbundle" style="width:9px;height:9px;background-position:0 -2285px;" /></li> <li class="selected_all"><img src="images/transparent.gif" class="imgbundle" style="width:9px;height:9px;background-position:0 -2267px;" /></li> </ul> </div> </div> </div> </div> </div> <div id="main" class="mainwrap"> <script hold=true>
function chainImgLoader(call){
var el=$(call);
var _src=el.get('lsrc');
var _sn=el.get('sn');
var _span=el.getParent('span');
new Asset.image(_src,{
onload:function(img){
if(!img||!img.width)return;
var _img=img.zoomImg(50,50);
_span.empty().adopt(_img.set('sn',_sn));
_img.setStyles({
'margin-top':Math.abs((51-_img.height.toInt())/2)
});
},onerror:function(){
_span.empty();
}
});
};
</script> <form action="index.php?ctl=goods/product&act=toAdd" method="post" name="gEditor" id="gEditor"> <input type="hidden" name="goods[goods_id]" value="" id="gEditor-GId-input"/> <input type="hidden" name="goods[old_marketable]" value=""/> <div id="gEditor-Body"> <div class="spage-main-box"> <h3>基本信息</h3> <div id="x-g-basic" class="goods-detail"> <div class="division"> <table border="0" cellpadding="0" cellspacing="0"> <tr> <th>所属分类:</th> <td> <select name="goods[cat_id]" id="gEditor-GCat-input" class="x-input"> <option value="0" >请选择所属分类</option> <option class="optionlevels optionlevel_1 " value="1" depth="1" type_id="1" > 我的分类 </option> </select> </td> <td rowspan="10" style="width:300px;"><div class="goods-pic-area division" id="action-pic-bar"> <div class="action-bar clearfix"> <button type="button" id="fix_fl10upload_panel" style="float:left;" class="btn"><span><span><img src="images/transparent.gif" class="imgbundle icon" style="width:15px;height:16px;background-position:0 -133px;" />上传图片</span></span></button> <div class="span-4 last" style="*padding:5px 0;"><input type="checkbox" id="pic-up-btn" style="vertical-align:middle;" onclick="$('imageuparea').toggleDisplay();$('udfimg').value = ($('udfimg').value=='false')?'true':'false'" /> <label for="pic-up-btn" style="color:#000;"><span><span><img src="images/transparent.gif" class="imgbundle icon" style="width:15px;height:16px;background-position:0 -133px;" />商品列表页图片设置</span></span></label> </div> </div> <div class="pic-area"><input autocomplete="off" class="x-input " id="udfimg" name="goods[udfimg]" type="hidden" value="false" /><input autocomplete="off" class="x-input " name="goods[db_thumbnail_pic]" type="hidden" /><input autocomplete="off" class="x-input " name="goods[db_small_pic]" type="hidden" /><input autocomplete="off" class="x-input " name="goods[db_big_pic]" type="hidden" /> <div id="imageuparea" style="display:none" class="notice"> 注:<strong>列表页商品图片</strong>默认由系统自动生成.您也可以上传一张商品图片来覆盖默认的.<br /> <strong>单独上传:</strong> <input autocomplete="off" class="x-input " name="goods_thumbnail_pic" type="file" size="9" onmouseover="this.title=this.value" /><br/><hr/> 当前缩略图浏览:<input autocomplete="off" class="x-input " type="text" value="http://www.hsnvzhuang.com/images/default/default_thumbnail_pic.gif" vtype="viewIMG" /> </div> <div id="x-main-pic" class='textcenter'> <p align="center"><br /><br />此处显示商品页默认图片<br />[您还未上传商品图片!]</p> </div> <div id='all-pics'> </div> </div> </div> </td> </tr> <tr> <th>所属类型:</th> <td><select name="goods[type_id]" id="gEditor-GType-input"> <!--<option value='1'>通用商品类型</option>--> <option class="optionlevels" value='1' selected>通用商品类型 </option> <option class="optionlevels" value='' > </option> </select> <input type="hidden" name="oldTypeId" value="1"/> </td> </tr> <tr> <th>商品名称:</th> <td> <input autocomplete="off" class="x-input " type="text" id="id_gname" name="goods[name]" required="true" size="70" vtype="text" /> <em><font color="red">*</font></em> </td> </tr> <tr> <th>商品编号:</th> <td><input autocomplete="off" class="x-input " type="text" name="goods[bn]" vtype="text" /></td> </tr> <tr> <th>商品关键词:</th> <td><input autocomplete="off" class="x-input " type="text" name="keywords[keyword]" size="70" vtype="text" /> <span class="notice-inline "> 仅用于在前台、后台筛选商品,多个关键词用半角竖线"|"分开 </span> <a target="_blank" style="margin:0;padding:0" title="点击查看帮助"> <img src="images/tips_help_small.gif" style="cursor:pointer;" title="点击查看帮助" /> </a> </td> </tr> <tr> <th>品牌:</th> <td><select class="x-input-select inputstyle" name="goods[brand_id]" nulloption="1" valueColumn="brand_id" labelColumn="brand_name"><option value="">请选择</option></select></td> </tr> <tr> <th>计量单位:</th> <td><input autocomplete="off" class="x-input " type="text" name="goods[unit]" maxlength="25" vtype="text" /></td> </tr> <tr> <th>简介:</th> <td><textarea name="goods[brief]" cols="50" rows="2" maxth="255"></textarea><br /> <span class="info">简短的商品介绍,请不要超过255字节</span></td> </tr> <tr> <th>是否上架销售:</th> <td> <table><tr><td width="80px" style="border:none"> <input type="radio" name="goods[marketable]" checked="checked" value="true" >是 <input type="radio" name="goods[marketable]" value="false" >否 </td> <td style="border:none"> <span id="goods_task_area" style="paddin-right:5px"></span> <input id="goods_task_btn" type="button" class="sysiconBtnNoIcon" value="定时上下架" onclick="new Dialog('index.php?ctl=goods/product&act=taskman',{title:'定时上下架管理',width:450,height:300,ajaxoptions:{method:'post',data:_S('goods_task_area')},onClose:finish_gtask_edit})"> </td></tr></table> </td> </tr> </table> <div id="goods-spec"> <table border="0" cellpadding="0" cellspacing="0" id="nospec_body"> <tbody > <tr> <th>销售价:</th> <td> <input autocomplete="off" class="x-input " type="text" name="goods[price]" style="width:60px" maxlength="25" vtype="unsigned" /> <button type="button" onclick="goodsEditor.mprice.bind(goodsEditor)(this)" class="btn"><span><span><img src="images/transparent.gif" class="imgbundle icon" style="width:15px;height:16px;background-position:0 -133px;" />编辑会员价格</span></span></button> </td> </tr> <tr> <th>成本价:</th> <td><input autocomplete="off" class="x-input " type="text" name="goods[cost]" maxlength="30" style="width:60px" value="0" vtype="unsigned" /><span class="notice-inline">前台不会显示,仅供后台使用。</span></td> </tr> <tr> <th>市场价:</th> <td><input autocomplete="off" class="x-input " type="text" name="goods[mktprice]" maxlength="30" vtype="text" /></td> </tr> <tr> <th>货号:</th> <td><input type='hidden' name="old_bn" value=""/><input autocomplete="off" class="x-input " type="text" name="goods[product_bn]" maxlength="25" vtype="text" /></td> </tr> <tr> <th>重量:</th> <td><input autocomplete="off" class="x-input " type="text" name="goods[weight]" style="width:60px" maxlength="25" vtype="unsigned" />克(g)</td> </tr> <tr> <th>库存:</th> <td><input autocomplete="off" class="x-input " type="text" name="goods[store]" style="width:60px" maxlength="25" vtype="number" /></td> </tr> <tr> <th>货位:</th> <td><input autocomplete="off" class="x-input " type="text" name="goods[store_place]" maxlength="80" vtype="text" /></td> </tr> <tr class="advui"> <th>规格:</th> <td style="padding:4px 0"><span class="lnk sysiconBtn addorder" onclick="goodsEditor.spec.addCol.bind(goodsEditor)(false,$('gEditor-GType-input').value)">开启规格</span> <a target="_blank" style="margin:0;padding:0" title="点击查看帮助"> <img src="images/tips_help_small.gif" style="cursor:pointer;" title="点击查看帮助" /> </a> <span class="notice-inline">开启规格前先填写以上价格等信息,可自动复制信息到货品</span> </td> </tr> </tbody> </table> </div> </div> </div> </div> <div class="spage-main-box"> <h3>配件</h3> <div class="tableform"> <button type="button" onclick="goodsEditor.adj.addGrp.bind(goodsEditor)('goods-adj')" class="btn"><span><span><img src="images/transparent.gif" class="imgbundle icon" style="width:14px;height:14px;background-position:0 -88px;" />添加配件</span></span></button> <div class="adjs" id="goods-adj"> </div> </div> </div> <div class="spage-main-box"> <h3>详细介绍</h3> <div class="division"> <button class="lnk" style="background:none;border:none; width:180px;line-height:20px" type="button" >将商品相册图片插入编辑区</button> <div id="mce_handle_mce_a8939d" class="mce_style_1" style='opacity:0.4;FILTER:alpha(opacity=40);'> <ul> <li><img class="imgbundle x-align" src="images/transparent.gif" title="左对齐" onclick="mce_a8939d.set.bind(mce_a8939d)('justifyLeft')" style="width:16px;height:16px;background-position:0 -1367px;" /></li> <li><img class="imgbundle x-align" src="images/transparent.gif" title="居中" onclick="mce_a8939d.set.bind(mce_a8939d)('justifyCenter')" style="width:16px;height:16px;background-position:0 -1399px;" /></li> <li><img class="imgbundle x-align" src="images/transparent.gif" title="右对齐" onclick="mce_a8939d.set.bind(mce_a8939d)('justifyRight')" style="width:16px;height:16px;background-position:0 -1415px;" /></li> <li><img src="images/transparent.gif" title="添加链接" onclick="mce_a8939d.mklink.bind(mce_a8939d)()" class="imgbundle" style="width:16px;height:16px;background-position:0 -1447px;" /></li> <li><img src="images/transparent.gif" title="插入表格" onclick="mce_a8939d.dialog.bind(mce_a8939d)('table',{title:'插入表格'})" class="imgbundle" style="width:16px;height:16px;background-position:0 -1527px;" /></li> <li><img src="images/transparent.gif" title="插入图片" onclick="mce_a8939d.dialog.bind(mce_a8939d)('image',{title:'插入图片'})" class="imgbundle" style="width:16px;height:16px;background-position:0 -1495px;" /></li> <li><img src="images/transparent.gif" title="插入横线" onclick="mce_a8939d.set.bind(mce_a8939d)('insertHTML','<hr />')" class="imgbundle" style="width:16px;height:16px;background-position:0 -1543px;" /></li> <li><img class="imgbundle x-enable" value="Bold" title="加粗" src="images/transparent.gif" onclick="mce_a8939d.set.bind(mce_a8939d)('Bold')" style="width:16px;height:16px;background-position:0 -1191px;" /></li> <li><img class="imgbundle x-enable" value="Italic" title="斜体" src="images/transparent.gif" onclick="mce_a8939d.set.bind(mce_a8939d)('Italic')" style="width:16px;height:16px;background-position:0 -1223px;" /></li> <li><img class="imgbundle x-enable" value="Underline" title="下划线" src="images/transparent.gif" onclick="mce_a8939d.set.bind(mce_a8939d)('Underline')" style="width:16px;height:16px;background-position:0 -1239px;" /></li> <li><img class="imgbundle x-enable" value="strikeThrough" title="中划线" src="images/transparent.gif" onclick="mce_a8939d.set.bind(mce_a8939d)('strikeThrough')" style="width:16px;height:16px;background-position:0 -1255px;" /></li> <li><img class="imgbundle x-enable" value="subscript" title="脚注" src="images/transparent.gif" onclick="mce_a8939d.set.bind(mce_a8939d)('subscript')" style="width:16px;height:16px;background-position:0 -1271px;" /></li> <li><img class="imgbundle x-enable" value="superscript" title="标注" src="images/transparent.gif" onclick="mce_a8939d.set.bind(mce_a8939d)('superscript')" style="width:16px;height:16px;background-position:0 -1287px;" /></li> <li><img class="imgbundle x-enable" value="insertOrderedList" title="排序列表" src="images/transparent.gif" onclick="mce_a8939d.set.bind(mce_a8939d)('insertOrderedList')" style="width:16px;height:16px;background-position:0 -1303px;" /></li> <li><img class="imgbundle x-enable" value="insertUnorderedList" title="无序列表" src="images/transparent.gif" onclick="mce_a8939d.set.bind(mce_a8939d)('insertUnorderedList')" style="width:16px;height:16px;background-position:0 -1319px;" /></li> <li><img src="images/transparent.gif" title="减少缩进" onclick="mce_a8939d.set.bind(mce_a8939d)('outdent')" class="imgbundle" style="width:16px;height:16px;background-position:0 -1335px;" /></li> <li><img src="images/transparent.gif" title="增加缩进" onclick="mce_a8939d.set.bind(mce_a8939d)('indent')" class="imgbundle" style="width:16px;height:16px;background-position:0 -1351px;" /></li> <li><select class='ft_select'> <option>字体</option> <option value='仿宋_GB2312'>仿宋</option> <option value='宋体'>宋体</option> <option value='黑体'>黑体</option> <option value='楷体_GB2312'>楷体</option> <option value='新宋体'>新宋体</option> <option value='Microsoft Yahei'>雅黑</option> <option value='Tahoma'>Tahoma</option> <option value='Times New Roman'>Times</option> <option value='Arial'>Arial</option> <option value='IMPACT'>IMPACT</option> <option value='Verdana'>Verdana</option> </select></li> <li><select class='fs_select'> <option>字号</option> <option value='1'>1</option> <option value='2'>2</option> <option value='3'>3</option> <option value='4'>4</option> <option value='5'>5</option> <option value='6'>6</option> <option value='7'>7</option> </select></li> <li><img class="imgbundle fontColorPicker" title="文字颜色" src="images/transparent.gif" style="width:16px;height:16px;background-position:0 -1639px;" /></li> <li><img class="imgbundle fontBGColorPicker" title="背景颜色" src="images/transparent.gif" style="width:16px;height:16px;background-position:0 -1655px;" /></li> <li onclick="mce_a8939d.editHTML.call(mce_a8939d)" style='color:#660000'>HTML源码</li> </ul> <br style='clear:both;display:none'/> </div> <div id='mce_handle_htmledit_mce_a8939d' style='display:none' class='mce_style_1'> <span class='arrow-left'> </span> <span class='returnwyswyg' style='color:#000;cursor:pointer;'>返回可视化编辑</span> <span class='sysiconBtnNoIcon' title='粗体' htmltp='b'><strong>B</strong></span> <span class='sysiconBtnNoIcon' title='斜体' htmltp='i'><i>i</i></span> <span class='sysiconBtnNoIcon' title='下划线' htmltp='u'><u>U</u></span> <span class='sysiconBtnNoIcon' title='超链接' htmltp='link'>LINK</span> <span class='sysiconBtnNoIcon' title='DIV层' htmltp='div'>DIV</span> <span class='sysiconBtnNoIcon' title='段落' htmltp='p'>P</span> <span class='sysiconBtnNoIcon' title='LI' htmltp='li'>li</span> <span class='sysiconBtnNoIcon' title='BR' htmltp='br'>换行</span> <span class='sysiconBtnNoIcon' title='HR' htmltp='hr'>分割线</span> <span class='sysiconBtnNoIcon' title='图片' htmltp='img'>插入图片</span> </div> <div id="mce_body_mce_a8939d" class='wysiwyg_body' style="height:300px;;"> <textarea name="goods[intro]" style="display:none" style="height:300px;"></textarea> <div id='mce_body_mce_a8939d_frm_container' style="height:100%;"> </div> </div> <div align='left' style='font-size:14px;font-weight:bold;'> <input type='button' class='button-add' onclick="mce_body_mce_a8939d_Height(true);this.blur();" title='增大高度' /> <input type='button' class='button-cut' onclick="mce_body_mce_a8939d_Height(false);this.blur();" title='减小高度' /> </div> </div> </div> <div class="spage-main-box"> <h3>搜索引擎优化</h3> <div class="division"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <th>商品页面标题:</th> <td><input autocomplete="off" class="x-input " type="text" size="45" name="goods[seo][seo_title]" vtype="text" /><span class="info">(留空则默认显示商品名称)</span></td> </tr> <tr> <th>META_KEYWORDS:<br>(页面关键词)</th> <td><textarea cols="27" rows="3" name="goods[seo][meta_keywords]"></textarea><span class="info">(留空则默认继承分类或全局设置的KEYWORDS内容)</span></td> </tr> <tr> <th>META_DESCRIPTION:<br>(页面描述)</th> <td><textarea name="goods[seo][meta_description]" cols="27" rows="3"></textarea><span class="info">(留空则默认继承分类或全局设置的DESCRIPTION内容)</span></td> </tr> <!--tr> <th>上架日期:</th> <td><input type="text" name="goods[uptime]" value=""></td> <td class="note">介绍</td> </tr> <tr> <th>下架日期:</th> <td><input type="text" name="goods[downtime]" value=""></td> <td class="note">介绍</td> </tr--> </table> </div> </div> <div class="spage-main-box"> <h3>相关商品</h3> <div id="ipt_el-545b2-d7322" params="{"multiple":"true","rowselect":"true","value":null,"name":"linkid","view":"product\/detail\/rel_items.html","key":null,"object":"goods\/products","filter":null,"params":"N;","domid":"el-545b2-d7322","cols":"name"}" class='clearfix'> <div id="sel_el-545b2-d7322" multiple="multiple" class='object-select clearfix'>
<div class='label' onclick="new Dialog('index.php?ctl=editor&act=selectobj&type=object&id=sel_el-545b2-d7322&select=checkbox&object=goods%2Fproducts',{width:550,title:'选择...',callback:obj_finder_call_back.bind($('sel_el-545b2-d7322'))})">请选择...</div>
<div class='handle' onclick="new Dialog('index.php?ctl=editor&act=selectobj&type=object&id=sel_el-545b2-d7322&select=checkbox&object=goods%2Fproducts',{width:550,title:'选择...',callback:obj_finder_call_back.bind($('sel_el-545b2-d7322'))})"> </div>
<input type="hidden" name="" value="" />
</div> <div class="gridlist rows-body"> </div> </div> </div> </div> </form> </div> <div id='footBar' class='footBar'> <table cellspacing="5" cellpadding="0" style="margin:0 auto; height:50px; width:520px;" class="tableAction"> <tbody> <tr valign="middle"> <td> <b class="submitBtn"> <button onclick="subGoodsForm(2,this)"> <span class="iconbutton savetolist">保存并关闭窗口</span> </button> </b> <b class="submitBtn blue"> <button onclick="subGoodsForm(1,this)"> <span class="iconbutton saveaddsame">保存并添加相似商品</span> </button> </b> <b class="submitBtn blue"> <button onclick="subGoodsForm(3,this)"> <span class="iconbutton savebutton">保存当前</span> </button> </b> <b isclosedialogbtn="true" class="submitBtn blue"> <button onclick="if(confirm('确定退出?'))window.close()"><span>关闭</span></button> </b> </td> </tr> </tbody> </table> </div> <div class="clear"></div> <div id='tabernacle'></div> <div id='loadMask' class='loading' style='z-index:65535;display:none;'> <span class='loading_msg'>正在加载...</span> </div> <div style="display:none;"> <iframe name="download" src="about:blank"></iframe> <div id='elTempBox'></div> <div id="dialogProtoType" > <div class="dialog-box"> <div class="dialog-head"> <div class="dialog-title"></div> <img src="images/transparent.gif" class="imgbundle dialog-btn-close" style="width:17px;height:17px;background-position:0 -197px;" /> </div> <div class="dialog-content-head"></div> <div class="dialog-content-body" container='true'>正在加载...</div> <div class="dialog-content-foot"></div> <img class="dialog-btn-resize" src='images/resize-btn.gif'/> </div> </div> <div id="frameDialogProtoType"> <div class="dialog-box"> <div class="dialog-head"> <div class="dialog-title"></div> <img src="images/transparent.gif" class="imgbundle dialog-btn-close" style="width:17px;height:17px;background-position:0 -197px;" /> </div> <div class="dialog-content-head"></div> <iframe class="dialog-content-body dialog-frame-body" container='true' src='about:blank'></iframe> <div class="dialog-content-foot"></div> <img class="dialog-btn-resize" src='images/resize-btn.gif'/> </div> </div> </div> <script type="text/javascript" hold="true">
/*siglepage Js tools plus*/
void function(){
var b = new Hash();
try {
b.empty.periodical(60 * 1000, b)
}
catch (c) {
}
var a = new Class({
Extends: Ajax,
initialize: function(e, d){
b.set(e, "init");
this.addEvent("onCancel", function(){
b.set(e, "cancel")
});
this.parent(e, d)
},
send: function(g, f){
b.set(this.url, "request");
if (!this.check(arguments.callee, f)) {
return this
}
this.running = true;
var h = $type(f);
if (h == "string" || h == "element") {
f = {
data: f
}
}
var d = this.options;
f = $extend({
data: d.data,
url: g,
method: d.method
}, f);
var j = f.data, g = f.url, l = f.method;
switch ($type(j)) {
case "element":
j = $(j).toQueryString();
break;
case "object":
case "hash":
j = Hash.toQueryString(j)
}
if (this.options.urlEncoded && "post" == l.toLowerCase()) {
var i = (this.options.encoding) ? "; charset=" + this.options.encoding : "";
this.headers.set("Content-type", "application/x-www-form-urlencoded" + i)
}
if (j && "get" == l.toLowerCase()) {
g = g + (g.contains("?") ? "&" : "?") + j;
j = null
}
g += "&_ajax=true&_singlepage=true"; /*2009.10.23 新窗口不返回菜单栏*/
this.xhr.open(l.toUpperCase(), g, this.options.async);
this.xhr.onreadystatechange = this.onStateChange.bind(this);
this.headers.each(function(m, e){
if (!$try(function(){
this.xhr.setRequestHeader(e, m);
return true
}.bind(this))) {
this.fireEvent("exception", [e, m])
}
}, this);
this.loadMask("onrequest", $(this.options.update));
if (window.ie && this.options.update && $(this.options.update)) {
try {
$ES("iframe", this.options.update).each(function(m){
m.remove()
})
}
catch (k) {
}
}
this.fireEvent("request");
this.xhr.send(j);
if (!this.options.async) {
this.onStateChange()
}
return this
},
onFailure: function(){
if ($chk($("loadMask"))) {
this.loadMask("onfailure")
}
if (this.options.elMap) {
switch (this.transport.status) {
case 404:
MessageBox.error("页面未找到.");
break;
case 401:
new Dialog("401.html", {
ajaksable: false,
modal: true,
width: 300,
height: 150,
resizeable: false
});
break;
case 403:
MessageBox.error("您无此操作的权限.");
break
}
}
b.set(this.url, "failure");
this.fireEvent("onFailure", this.transport);
},
onException: function(e, d){
if ($chk($("loadMask"))) {
this.loadMask("onException")
}
MessageBox.error("出现错误:" + e + ":" + d)
},
success: function(j, g){
try {
var f = this.options;
var d = this.response;
var h = $(f.update);
d.html = j.stripScripts(function(e){
d.javascript = e
});
d.html = this.processHTML(d.html);
if (!h) {
MessageBox.show(d.html);
this.loadMask("oncomplete");
return this.onSuccess(d.html)
}
if (f.elMap) {
$each(f.elMap, function(k, e){
if (e == ".sideContent" || !k) {
return
}
$(k).empty()
});
d.html = d.html.replace(/<\!-{5}(.*?)-{5}([\s\S]*?)-{5}(.*?)-{5}>/g, function(){
if (f.elMap[arguments[1]]) {
if (arguments[1] == ".sideContent" && arguments[2]) {
f.elMap[arguments[1]].adopt(new Element("div").setHTML(arguments[2]).getFirst().setStyle("display", "none"))
}
else {
f.elMap[arguments[1]].set("html", arguments[2])
}
}
return ""
});
updateSize()
}
h.empty().setHTML(d.html);
if (f.evalScripts) {
$exec(d.javascript)
}
makeAjaksLink(h);
this.onSuccess(d.html, null, f, null, d.javascript);
this.loadMask("oncomplete")
}
catch (i) {
MessageBox.error("目标页面有错误!" + i)
}
},
loadMask: function(d, f){
f = $(f);
var e = f || window;
switch (d) {
case "onrequest":
return $("loadMask").amongTo(window).show();
default:
$("loadMask").hide();
if ($(this.options.update)) {
b.set(this.url, "success")
}
}
}
});
ShopEx_AdminXHR = new Class({
options: {
evalScripts: true,
autoCancel: true,
method: "get",
elMap: false,
data: null,
link: "cancel"
},
page: function(){
var h = Array.flatten(arguments).link({
url: String.type,
options: Object.type,
sponsor: Element.type
});
if (["request", "init"].indexOf(b.get(e)) > -1) {
return $("loadMask").amongTo(window).show()
}
var f = $merge(this.options, h.options);
var e = h.url;
var g = h.sponsor;
if (f.autoCancel && this.curAjax) {
this.curAjax.cancel()
}
if ($type(f.data) == "element") {
if (!$(f.data).bindValidator("x-input")) {
return $("loadMask").hide()
}
}
/*else {
if (!!g) {
var d = $(g).getContainer();
if (d) {
if (!d.bindValidator("x-input")) {
return $("loadMask").hide()
}
}
}
}*/
f.update = f.update || $($chk(g) ? $(g).getContainer() : false) || "main";
if (f.update == "main" || ($type(f.update) == "element" && f.update.id == "main")) {
if (!f.elMap) {
f.elMap = {
".mainHead": $("headBar"),
".mainFoot": $("footBar")
}
}
}
$extend(f.elMap, {
".sideContent": $("sidecontent")
});
this.curAjax = new a(e, f);
this.curAjax.request()
}
});
void function(){
var e = function(f){
if (f.getTag() != "a") {
f = f.getParent("a")
}
if (f&&(!$chk($(f).target) || f.target.test("{", "i")) && !f.href.match(/^javascript.+/i) && !f.onclick) {
return f
}
return false
};
var d = function(f){
if (f.getTag() != "form") {
return false
}
return $chk($(f).getProperty("action")) && (!$chk(f.target) || f.target.test("{", "i")) && !f.onsubmit
};
$(document.body).addEvents({
click: function(h){
var g = e($(h.target));
if (!g) {
return
}
h.stop();
var i;
try {
i = Json.evaluate(g.target)
}
catch (h) {
if ($chk(g.href)) {
return W.page(g.href, g)
}
return false
}
if ("fm" in i && $chk(i.fm)) {
var j = false;
if (i.update == "main") {
var j = new Element("div", {
"class": "navBar"
}).inject($("headBar").empty());
$("footBar").empty()
}
var f = new Element("iframe", {
name: i.fm,
styles: {
width: "100%",
height: "98%",
border: "none",
"overflow-y": "scroll"
}
}).inject($(i.update).empty());
f.setProperty("src", g.href)
}
else {
W.page(g.href, i, g)
}
},
submit: function(j){
var g = $(j.target);
console.log(g.getProperty("target"));
if (d(g)) {
j.stop();
new Element("input", {
type: "hidden",
value: 1,
name: "__"
}).inject(g);
if (!g.bindValidator("x-input")) {
return $("loadMask").hide()
}
$ES("textarea[ishtml=true]", g).getValue();
var i = g.getProperty("action");
var h = h || {};
if (g.target.test("{", "i")) {
try {
h = Json.evaluate(g.target)
}
catch (j) {
}
}
if(f_target_obj=g.retrieve('target')){
$extend(h,f_target_obj);
}
if (j.requestOptions) {
$extend(h, j.requestOptions)
}
var f = $ES('input[type="file"]', g);
if (f.length > 0 && f.some(function(k){
return k.value
})) {
MODALPANEL.show();
$("loadMask").amongTo(window).show();
if (!$("upload_iframe")) {
new Element("iframe", {
id: "upload_iframe",
name: "upload_iframe",
styles: {
display: "none"
}
}).inject(document.body)
}
//if(g.target)g.store('reset_target',g.target);
g.setProperty("target", "upload_iframe");
g.set({
enctype: "multipart/form-data",
encoding: "multipart/form-data"
});
g.setProperty("action", g.getProperty("action") + "&_upload=true");
window.upload_rs_el = h && h.ure ? h.ure : $(j.target).getContainer();
g.submit();
//g.retrieve('reset_target')?g.target=g.retrieve('reset_target'):g.target='';
return g;//.removeProperties('enctype', 'encoding');
}
if (h) {
g.removeProperties('enctype', 'encoding');
if ("fm" in h) {
g.setProperty("target", ftarget.fm);
return g.submit()
}
return W.page(i, $extend(h, {
method: g.getProperty("method"),
data: g.toQueryString()
}), g)
}
W.page(i, {
method: g.getProperty("method"),
data: g.toQueryString()
}, g)
}
}
})
}();
makeAjaksLink = function(d){
$(d|| document).getElements("form").addEvent("submit", function(g){
var f = g ? (g.stop ? g.stop : $empty) : $empty;
document.body.fireEvent("submit", $extend((g ||{}), {
target: this,
stop: f
}));
})
return arguments.callee;
}();
}();
var W;
var getW = function(){
return (W && $type(W) == "object") ? W : new ShopEx_AdminXHR()
};
var updateSize = $empty;
var mainResize = function(){
var sptH = $('single-page-tbar')?$('single-page-tbar').getSize().y:0;
var spsW = $E('.spage-sidebar-wrap')?150:0;
var ftbH = $('footBar')?$('footBar').getSize().y:0;
$("main").setStyle("height", (window.getSize().y - (sptH+ftbH)));
$("main").setStyle("width", (window.getSize().x - spsW));
};
window.addEvent("resize", mainResize);
window.addEvent("domready", function(){
W = getW();
mainResize();
setInterval("if($('elTempBox')&&$('elTempBox').getElements('*').length)$('elTempBox').empty()", 2 * 60000);
MODALPANEL = (function(){
var b = $pick($("MODALPANEL"), new Element("div", {
id: "MODALPANEL"
}).inject(document.body)).setStyle("display", "none");
var a = {
position: "absolute",
background: "#333333",
width: window.getSize().size.x,
height: window.getSize().size.y,
top: 0,
left: 0,
zIndex: 65500,
opacity: 0.4
};
b.setStyles(a);
b.addEvent("onshow", function(c){
c.setStyles({
width: window.getSize().size.x,
height: window.getSize().size.y
})
});
return b
})();
window.Xtip=new Tips($('shop_title_block'),{className:'x-tip'});
$exec($("__eval_scripts__").get("html"));
window.addEvent('unload',function(){
if(!window.opener||!window.opener.finderGroup)return;
for(var f in window.opener.finderGroup){
if(!!window.opener.finderGroup[f].isVisibile()){
window.opener.finderGroup[f].refresh();
}else{
delete (window.opener.finderGroup[f]);
}
}
});
});
var Splash = new Abstract({
go:function(to,timeout,options){
$$($('loadMaks'),MODALPANEL).hide();
(function(){
var splashPanels=$$($('successSplash'),$('noticeSplash'),$('failedSplash'));
//console.info(splashPanels);
var sp;
var hassp=splashPanels.some(function(_sp){
if($chk(_sp)){
sp=_sp;
return true;
}
});
if(sp)
location.reload();
}).delay(timeout.toInt());
}
});
/*siglepage Js */
//$$('.mainFoot').setStyle('display', 'none');
</script> <script type="text/plain" id="__eval_scripts__" >
new DropMenu("x_btn_drop-save-handel",{});
(function(){
var options={'finderTag':$('finder-tag')};
window.winTag=new Tags_opt(options,'');
window.winTag.finderTag.fireEvent('show');
})();
$E('.spage-side-box span.t-handler').addEvent('click',function(e){
$E('.spage-side-box div.bd').toggleDisplay();
});
new Swiff.Uploader({
allowDuplicates:true,
verbose: true,
url:'/shopadmin/index.php?ctl=goods/product&act=newPic&p[0]=&p[1]=add&sess_id='+sess_id,
path: 'images/uploader.swf',
typeFilter: {
'Images (*.jpg, *.jpeg, *.gif, *.png, *.bmp)': '*.jpg; *.jpeg; *.gif; *.png; *.bmp'
},
fileSizeMax:512000,
target:'fix_fl10upload_panel',
onSelectFail:function(rs){
rs.each(function(v){
if(v.validationError=='sizeLimitMax'){
alert(v.name+'\n\n文件超出大小');
};
});
},
onSelectSuccess:function(rs){
var PID='up_';
var _this=this;
rs.each(function(v,i){
new Element('div',{'class':'gpic-box','id':PID+v.id}).inject($('all-pics'));
});
this.start();
},
onFileOpen:function(e){
$('up_'+e.id).setHTML('<span><em style="font-size:13px;font-family:Georgia;">0%</em></span>',
'<div class="picdelete"><div class="progress-bar" style="width:45px"><i> </i></div></div>');
},
onFileProgress:function(e){
var pt=Number(e.progress.bytesLoaded*100/e.size).toFixed()+'%';
$('up_'+e.id).getElement('i').setStyle('width',pt);
$('up_'+e.id).getElement('em').set('text',pt);
},
onFileComplete: function(res){
if(res.response.error){
return new MessageBox('文件'+res.name+'上传失败',{type:'error',autohide:true});
}
$('up_'+res.id).setHTML(res.response.text);
if(!$('x-main-pic').retrieve('cururl')){
$E('#all-pics .gpic-box span').onclick();
}
}
});
$('gEditor').retrieve('setTabs',function(){
var gtabs=$ES('#single-page-sidebar .spage-side-nav li.l-handle');
var SpageItemAgg = new Class({
Extends: ItemAgg,
initialize: function(tabs, items, options){
this.setOptions(options);
this.items=$$(items);
this.tabs=$$(tabs);
var tempTabs = items.map(function(item,index){
if(index == 0) return this.tabs[index];
return this.tabs.filter(function(tab){
if(tab.getElement('span').get('text') == item.getElement('h3').get('text')) return tab;
})[0];
}, this);
this.tabs = tempTabs;
this.items.setStyle('display','none');
this.tempCurIndex=this.options.show||0;
if(this.options.firstShow){
this.show(this.tempCurIndex);
}
this.tabs.each(function(item,index){
if(!item) return;
item.addEvent(this.options.eventName,function(e){
e=new Event(e).stop();
this.tabs[index].blur();
if(this.tempCurIndex!=index){
this.show(index);
this.hide(this.tempCurIndex);
this.tempCurIndex=index;
}
}.bind(this));
},this);
}
});
new SpageItemAgg(gtabs,$ES('#gEditor .spage-main-box'),{
activeName:'cur',
onActive:function(tab,item){
var anotherItems=$$($A(this.items).remove(item));
if(tab.hasClass('all')){
anotherItems.show();
}else{
anotherItems.hide();
}
},
onBackground:function(tab){
tab.style.cssText='';
tab.removeClass('');
}
});
}());
function finish_gtask_edit(){
if($('g_taskman_box_end')){
$('goods_task_area').empty();
var ipts = $ES('input','g_taskman_box');
if(ipts.length>0){
ipts.inject($('goods_task_area'));
var a = $E('tr.row','g_taskman_box').getElements('td');
$('goods_task_area').innerHTML += '下次'+a[0].getText().trim() + a[1].getText().trim();
$('goods_task_btn').setText('定时器管理');
}else{
$('goods_task_btn').setText('定时上下架');
}
}
}
var mce_a8939d;
mceHandler.implement(editor_style_1);
mce_a8939d=new mceHandler($('mce_handle_mce_a8939d'),new mceInstance('mce_a8939d',{includeBase:1}));
void function(){
var textareaEditor_mce_a8939d=new Abstract({
element:$E('#mce_body_mce_a8939d textarea'),
getRange:function(){
if(!!document.selection){
return document.selection.createRange();
}
return false;
},
getSelection:function () {
if(!!document.selection){
if(this.range){
return this.range.text;
}
return document.selection.createRange().text;
}else if(!!this.element.setSelectionRange){
return this.element.value.substring(this.element.selectionStart,this.element.selectionEnd);
}else{return false};
},replaceSelection:function (text) {
var scrollTop=this.element.scrollTop;
if(!!document.selection) {
this.element.focus();
var old=document.selection.createRange().text;
var range=this.range||document.selection.createRange();
range.text=text;
range-=old.length-text.length;
}else if(!!this.element.setSelectionRange) {
var selection_start=this.element.selectionStart;
this.element.value=this.element.value.substring(0,selection_start)+text+this.element.value.substring(this.element.selectionEnd); this.element.setSelectionRange(selection_start+text.length,selection_start+text.length);
}
this.element.focus();
this.element.scrollTop=scrollTop;
},wrapSelection:function (before,after) {
this.replaceSelection(before+this.getSelection()+after);
this.range=null;
}
});
$E('#mce_body_mce_a8939d textarea').addEvent('mouseup',function(){
textareaEditor_mce_a8939d.range=textareaEditor_mce_a8939d.getRange();
});
$$('#mce_handle_htmledit_mce_a8939d span[htmltp]').addEvent('click',function(e){
var htmltp=this.get('htmltp');
var B="";
var A="";
if(htmltp=='img'){
return new Dialog('index.php?ctl=editor&act=image',{title:'插入<img>',onShow:function(){
var dialog=this;
this.dialog.store('callback',function(src,imgtag){
textareaEditor_mce_a8939d.wrapSelection(imgtag,A);
dialog.close();
});
}});
}
switch (htmltp){
case 'b':
B="<b>";A="</b>";break;
case 'i':
B="<i>";A="</i>";break;
case 'u':
B="<u>";A="</u>";break;
case 'img':
B="<img src='#'/>";break;
case 'link':
B="<a href='#'>";A="</a>";break;
case 'div':
B="<div>";A="</div>";break;
case 'p':
B="<p>";A="</p>";break;
case 'br':
B="<br/>";break;
case 'hr':
B="<hr/>";break;
case 'li':
B="<li>";A="</li>";break;
};
textareaEditor_mce_a8939d.wrapSelection(B,A);
});
}();
var mce_body_mce_a8939d_Height=function(v){
v=v?$('mce_body_mce_a8939d').getStyle('height').toInt()+100:$('mce_body_mce_a8939d').getStyle('height').toInt()-100;
if(v<100)return MessageBox.error("不能再小");
$('mce_body_mce_a8939d').setStyle('height',(v));
if($E('iframe','mce_body_mce_a8939d'))
$E('iframe','mce_body_mce_a8939d').setProperty('height',v);
if($E('textarea','mce_body_mce_a8939d'))
$E('textarea','mce_body_mce_a8939d').setStyle('height',v);
};
$E('#gEditor-Body .lnk[type=button]').addEvent('click',function(e){
if(!$ES('#all-pics .gpic-box').length){MessageBox.error("商品相册没有图片!!!");return;}
var mce=mce_a8939d;
if(!mce.inc){MessageBox.error("请先将光标移到编辑框内,激活编辑框!!!");return;}
if(mce.inc.editType=='textarea'){MessageBox.error("请在可视化编辑模式下操作此功能!!!");return;}
var path='home/upload/';
var html='';
$ES('#all-pics .gpic-box input[type=hidden]').each(function(el){
var url=el.get('bigPic')?el.get('bigPic').split('|')[0]:path+el.get('soucre');
var img=new Element('img',{src:url}).setStyle('marginTop','30px');
img.removeProperties('width','height');
var imgBox=new Element('div').adopt(img).get('html');
html+='<center>'+imgBox+'</center>';
});
mce.exec('insertHTML',html);
});
var goodsEditor = new ShopExGoodsEditor('gEditor',{imgtype:'*.gif; *.jpg; *.png',url:'/shopadmin',goods_id:''});
(function(){
var _form=$('gEditor');
var _formActionURL=_form.get('action');
_form.set('target',"{ure:'messagebox',update:'messagebox'}");
var _goodsIdHidden=_form.getElement('input[name^=goods[goods_id]');
var reloadPicAction=function(){
if( !$E('#action-pic-bar input[name^=goods[image_file]'))return;
new XHR({
/*data:$E('#action-pic-bar .pic-area').toQueryString(),,*/
onSuccess:function(picrs){
$E('#action-pic-bar .pic-area').set('html',picrs);
}
}).send('index.php?ctl=goods/product&act=clone_goods_img');
};
subGoodsForm = function (sign,submitBtn){
/*
* sign:{
1:保存并增加相似商品,
2:保存并返回,
3:保存当前不返回,
* }
*
*/
window.MessageBoxOnShow=function(box,success){
if(MODALPANEL)MODALPANEL.hide();
if(!success)return;
try{
var goodsid=box.getElement('input[type=hidden]').getValue();
_goodsIdHidden.set('value',goodsid);
switch (sign){
case 1:
_goodsIdHidden.set('value','');
$E('input[name^=goods[name]',_form).value='';
$E('input[name^=goods[bn]',_form).set('value','');
if(pbn=$E('input[name^=goods[product_bn]',_form)){
pbn.value='';
}
if(pbns=$$('input[name^=bn[]',_form)){
if(pbns.length){
pbns.set('value','');
}
}
reloadPicAction();
clearOldBn(false);
break;
case 2:
if($chk($('g_id'))&&window.winTag)window.winTag.finderTag.fireEvent('apply',$('g_id').value);
(function(){window.close();}).delay(500);
break;
case 3:
clearOldBn(true);
default:
break;
}
if($chk($('g_id'))&&window.winTag&&sign!=2)window.winTag.finderTag.fireEvent('apply',$('g_id').value);
}catch(e){console.info(e)}
};
_form.set('action',_formActionURL+'&but='+sign).fireEvent('submit');
};
/* 保存当前和添加相似商品时 修改或清除oldbn */
clearOldBn = function(bool){
if($E('input[name^=old_bn[]',_form)) { /* 多规格 */
$ES('input[name^=old_bn[]',_form).each(function(item){
if(bool) { /* 是否修改 */
$(item).set('value',$E('input[name^=bn[]',$(item).getParent('tr')).get('value'));
} else {
$(item).set('value','');
}
});
}else if($E('input[name^=old_bn]',_form)) {/* 单规格 */
if(bool) { /* 是否修改 */
$E('input[name^=old_bn]',_form).set('value',$E('input[name^=goods[product_bn]',_form).get('value'));
} else {
$E('input[name^=old_bn]',_form).set('value','');
}
}
}
})();
</script></body></html>
返回的Header:
HTTP/1.1 200 OK
Connection:close
Date:Sun, 26 Jan 2014 10:33:49 GMT
Server:Microsoft-IIS/6.0
X-Powered-By:ASP.NET,PHP/5.2.17
Cache-Control:no-store
Content-type:text/html
Content-Length:54766
|
|