123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- {Template header}
- <style type="text/css">
- .setting li .checkbox span, .setting li .checkboxfbt span {height:36px;}.download {padding-top:20px;}
- </style>
- <body>
- <div class="warp">
- <div class="download">
- <span class="ckrows"><label><input name="category" type="checkbox" value="126"><font>Hair Weaving</font></label></span>
- <span class="ckrows"><label><input name="category" type="checkbox" value="127"><font>Closure</font></label></span>
- <span class="ckrows"><label><input name="category" type="checkbox" value="128"><font>Wigs</font></label></span>
- <span class="hd"><label><input name="hd" type="checkbox" value="1"><font>区分HD</font></label></span>
- </div>
- <ul class="search" style="text-align: center;">
- <li>
- 选择店铺:<select name="shop" class="select">
- <option value="">请选择</option>
- {loop usershop() as $val}
- {if $val['id'] != '9'}
- <option value="{$val['id']}">{$val['shopname']}</option>
- {/if}
- {/loop}</select>
- </li>
- <li>
- 颜色:<select name="color" class="select">
- <option value="">请选择</option>
- <option value="57">Natural Black</option>
- {loop typeclassyc(8) as $val}
- {if $val['id'] != 57}
- <option value="{$val['id']}">{$val['title']}</option>
- {/if}
- {/loop}
- </select>
- </li>
- <li>
- 等级:<select name="grade" class="select">
- <option value="">请选择</option>
- {loop typeclass(13) as $val}
- <option value="{$val['id']}">{$val['title']}</option>
- {/loop}
- </select>
- </li>
- <li>
- 长度:<select name="size" class="select">
- <option value="">请选择</option>
- {loop typeclassyc(14) as $val} <!-- 这个是不显示部分曲度 -->
- <option value="{$val['id']}">{$val['title']}</option>
- {/loop}
- </select>
- </li>
- <li><select name="time" class="select">
- <option value="dtime">订单时间</option>
- <option value="librarytime">出库时间</option>
- </select> :<input id="outk" value="{date('Y-m-d',time()-29*24*3600)} 0:00" name="timetk" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})" readonly>
- 至 <input id="outj" value="{date('Y-m-d',time()+24*3600)} 0:00" name="timetj" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})" readonly></li>
- </ul>
- <ul class="setting">
- <div class="datalist">
- <li class="length" style="padding-bottom:18px;">
- <em>曲度:</em>
- <div class="checkbox">
- <!-- <span><label><input name="checkboxrows" type="checkbox" value=""><font>全选</font></label></span> -->
- {loop typeclass(15) as $val}
- <span class="ckrows off"><label><input name="lowe" type="checkbox" value="{$val['id']}"><font>{$val['title']}</font></label></span>
- {/loop}
- </div>
- </li>
- <li class="length" style="padding-bottom:18px;">
- <em>密度:</em>
- <div class="checkbox">
- {loop typeclass(10) as $val}
- <span class="ckrows off"><label><input name="density" type="checkbox" value="{$val['id']}"><font>{$val['title']}</font></label></span>
- {/loop}
- </div>
- </li>
- <li class="length">
- <em>头套种类:</em>
- <div class="checkbox">
- {loop typeclass(18) as $val}
- {if $val['id']==146}
- <span class="ckrows off"><label><input name="lacetype" type="checkbox" value="{$val['id']}"><font>{$val['title']}</font></label></span>
- {/if}
- {/loop}
- {loop typeclass(18) as $val}
- {if $val['id']!=146}
- <span class="ckrows off"><label><input name="lacetype" type="checkbox" value="{$val['id']}"><font>{$val['title']}</font></label></span>
- {/if}
- {/loop}
- </div>
- </li>
- <li class="length">
- <em>发帽大小:</em>
- <div class="checkbox">
- {loop typeclass(6) as $val}
- <span class="ckrows off"><label><input name="haircap" type="checkbox" value="{$val['id']}"><font>{$val['title']}</font></label></span>
- {/loop}
- </div>
- </li>
- <li style="width:100%;margin:30px 0;text-align: center;">
- <font class="cona downloadexcel">下载Excel</font>
- </li>
- </div>
- </ul>
- <script type="text/javascript" src="{$theme}js/laydate.js"></script>
- <script>
- $(".downloadexcel").click(function() {
- var f = "";
- var cb = "";var hd = "";
- $(".download .ckrows input:checked").each(function(){
- cb = cb + $(this).val() + "|";
- });
- $(".download .hd input:checked").each(function(){
- hd = 1;
- });
- if(cb == "")
- {
- $(".ts p").text("请选择产品类型!");
- $(".ts").show();
- setTimeout('$(".ts").fadeOut()', 800);
- return false;
- }
- f = "category=" + cb + "&";
- $(".select").each(function() {
- f = f + $(this).attr("name") + "=" + $(this).children("option:selected").val() + "&";
- });
- $("input:text").each(function() {
- f = f + $(this).attr("name") + "=" + $(this).val() + "&";
- });
- $("input:hidden").each(function() {
- f = f + $(this).attr("name") + "=" + $(this).val() + "&";
- });
- for(j=0;j<$(".datalist .checkbox").length;j++)
- {
- var pcheckid = ""; var pcheckname = "";
- $(".checkbox:eq("+j+") .ckrows input:checked").each(function(){
- pcheckname = $(this).attr("name");
- pcheckid = pcheckid + $(this).val()+",";
- });
-
- f = f + pcheckname + "=" + pcheckid + "&";
- }
- if(hd == 1)
- {
- window.location.href = "/systemdownload/hd?fexcel=1&" + f;
- $("select[name=fexcel] option:eq(0)").prop('selected', 'selected');
- }
- else
- {
- window.location.href = "/systemdownload/data?fexcel=1&" + f;
- $("select[name=fexcel] option:eq(0)").prop('selected', 'selected');
- }
- });
- </script>
- {Template footer}
|