1$(document).ready(function(){ 2 //dotoprogram 3 $('.parentsTrRemove').live('click',function(){ 4 $(this).parents('tr').remove(); 5 }); 6 //ë매í í¼ì ë©ì¸ ëí¹í 7 8 $("ul.doto-rank-tabs li").click(function () { 9 $(this).prevAll("li").removeClass('active'); 10 $(this).nextAll("li").removeClass('active'); 11 $(this).addClass('active'); 12 let tab_content = $(this).parents().next().children(".tab_content"); 13 $(tab_content).hide(); 14 15 let activeTabId = $(this).attr("rel"); 16 let activeTab = $(tab_content).filter("#" + activeTabId); 17 $(activeTab).fadeIn(); 18 /*ê°ë° í´ëì¼ë©´ ëí¨ ì¡´ë ë ê±°ìì½ëë§ ëê³ ê°ì§ì¦ë¨-_- 19 $.ajax({ 20 type: "get", 21 dataType: 'json', 22 url: "../statistic/get_ajax_mainRanking", 23 data: {"group":group, "sort":sort}, 24 beforeSend: function() {}, 25 success: function(result){ 26 let contents = '<dl>'; 27 let goods = result.list; 28 $.each(goods[group].list,function(index,value){ 29 contents += '<dd>'; 30 contents += '<span class="r_number'+(index+1)+'"></span>'; 31 contents += '<p onclick="location.href=\'../goods/view?no='+value.goods_seq+'\'">'+value.order_goods_name+'</p>'; 32 contents += '<a href="#"><i class="fas fa-cart-arrow-down"></i></a>'; 33 contents += '</dd>'; 34 }); 35 contents += '</dl>'; 36 contents += '<button type="button"><a href="../statistic/goods?group='+group+'&sort='+sort+'">모ë ë³´ë¬ê°ê¸°</a></button>'; 37 $(activeTab).html(contents); 38 }, 39 complete:function(){} 40 }); 41 */ 42 }); 43 44 45}); 46 47function set_goods_list(displayId,inputGoods,ptype) 48{ 49 window.open("/goods/user_select?ptype="+ptype+"&dotoEdit=1&page=1&inputGoods="+inputGoods+"&displayId="+displayId, "dotoEdit", "height=820, width=1100, menubar=no, scrollbars=yes, resizable=yes, toolbar=no, status=no, left=50, top=50"); 50 /* 51 $.ajax({ 52 type: "get", 53 url: "/goods/user_select", 54 data: "ptype="+ptype+"&dotoEdit=1&page=1&inputGoods="+inputGoods+"&displayId="+displayId, 55 success: function(result){ 56 $("div#"+displayId).html(result); 57 } 58 }); 59 openDialog("ìí ê²ì", displayId, {"width":"1100","height":"820","show" : "fade","hide" : "fade"}); 60 */ 61} 62 63function programGoodsListReturn(obj,ptype){ 64 var str = ''; 65 if(ptype == 'promotion'){ 66 var readOnly = ''; 67 }else if(ptype =='detail'){ 68 var readOnly = 'readonly'; 69 } 70 str += '<tr class="goods">'; 71 str += ' <input type="hidden" name="goods_seq[]" value="'+obj.goodsSeq+'" />'; 72 str += ' <td class="scode">'+obj.scode+'</td>'; 73 //str += ' <td class="code">'+obj.code+'</td>'; 74 str += ' <td class="image">'+obj.img+'</td>'; 75 str += ' <td class="upimg"><input type="file" style = "width:150px;" name="upimg[]" /></td>'; 76 str += ' <td class="subject"><textarea name="goodsName[]" '+readOnly+' >'+obj.goodsName+'</textarea>'; 77 str += ' <td class="price"><input type="text" class="onlynumber" name="ori_goodsPrice[]" '+readOnly+' onkeyup="" size="20" value="'+obj.ori_goodsPrice+'"><div></div><input type="text" class="onlynumber" name="goodsPrice[]" '+readOnly+' onkeyup="" size="20" data-regprice="'+obj.regPrice+'" value="'+obj.goodsPrice+'"></td>'; 78 str += ' <td class="description"> <textarea id="content_'+obj.goodsSeq+'" name="description[]" '+readOnly+'>'+obj.description+'</textarea></td>'; 79 str += ' <td class="detail"><label>'; 80 if(obj.goodInfoVal){ 81 str += ' <input type="checkbox" name="goodInfoVal[]" value="'+obj.goodsSeq+'" checked>'; 82 }else{ 83 str += ' <input type="checkbox" name="goodInfoVal[]" value="'+obj.goodsSeq+'">'; 84 } 85 str += ' ì¬ì©í¨</label></td>'; 86 str += ' <td class="delete"><button type="button" class="parentsTrRemove"></button></td>'; 87 str += '</tr>'; 88 89 return str; 90} 91 92function getExcelGoodsList(list,ptype) 93{ 94 $("table#goods_seq .voidTr").remove(); 95 var cnt = 0; 96 $.each(list,function(){ 97 if(!this.ori_price) this.ori_price = 0; 98 let goodObj = { 99 'img': '<a href="javascript:popup(\'promotion_pop_img?goods_seq='+this.goods_seq+'&cnt='+cnt+'\',500,500)"><input class = "imgsrc'+cnt+'" type = "hidden" name = "image[]" value = "'+this.image+'"><img src="'+this.image+'" class="imgViewsrc'+cnt+'" width="60" height="60" alt=""></a>', 100 'goodsName' : this.goods_name, 101 'ori_goodsPrice' : this.ori_price, 102 'goodsPrice' : this.price, 103 'regPrice' : this.regPrice, 104 'goodsSeq' : this.goods_seq, 105 'code' : this.goods_scode, 106 'scode' : this.goods_code, 107 'description' : this.contents, 108 'goodInfoVal' : this.goods_seq, 109 }; 110 let tr = programGoodsListReturn(goodObj,ptype); 111 cnt = cnt + 1; 112 $("table#goods_seq").append(tr); 113 }); 114} 115 116function programSampleView(type,key) 117{ 118 openDialog("미리보기", "example_"+type+key, {"width":"930","height":"820","show" : "fade","hide" : "fade"}); 119}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.