systemdownload.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. {Template header}
  2. <style type="text/css">
  3. .setting li .checkbox span, .setting li .checkboxfbt span {height:36px;}.download {padding-top:20px;}
  4. </style>
  5. <body>
  6. <div class="warp">
  7. <div class="download">
  8. <span class="ckrows"><label><input name="category" type="checkbox" value="126"><font>Hair Weaving</font></label></span>
  9. <span class="ckrows"><label><input name="category" type="checkbox" value="127"><font>Closure</font></label></span>
  10. <span class="ckrows"><label><input name="category" type="checkbox" value="128"><font>Wigs</font></label></span>
  11. <span class="hd"><label><input name="hd" type="checkbox" value="1"><font>区分HD</font></label></span>
  12. </div>
  13. <ul class="search" style="text-align: center;">
  14. <li>
  15. 选择店铺:<select name="shop" class="select">
  16. <option value="">请选择</option>
  17. {loop usershop() as $val}
  18. {if $val['id'] != '9'}
  19. <option value="{$val['id']}">{$val['shopname']}</option>
  20. {/if}
  21. {/loop}</select>
  22. </li>
  23. <li>
  24. 颜色:<select name="color" class="select">
  25. <option value="">请选择</option>
  26. <option value="57">Natural Black</option>
  27. {loop typeclassyc(8) as $val}
  28. {if $val['id'] != 57}
  29. <option value="{$val['id']}">{$val['title']}</option>
  30. {/if}
  31. {/loop}
  32. </select>
  33. </li>
  34. <li>
  35. 等级:<select name="grade" class="select">
  36. <option value="">请选择</option>
  37. {loop typeclass(13) as $val}
  38. <option value="{$val['id']}">{$val['title']}</option>
  39. {/loop}
  40. </select>
  41. </li>
  42. <li>
  43. 长度:<select name="size" class="select">
  44. <option value="">请选择</option>
  45. {loop typeclassyc(14) as $val} <!-- 这个是不显示部分曲度 -->
  46. <option value="{$val['id']}">{$val['title']}</option>
  47. {/loop}
  48. </select>
  49. </li>
  50. <li><select name="time" class="select">
  51. <option value="dtime">订单时间</option>
  52. <option value="librarytime">出库时间</option>
  53. </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>
  54. 至&nbsp;&nbsp;&nbsp;&nbsp; <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>
  55. </ul>
  56. <ul class="setting">
  57. <div class="datalist">
  58. <li class="length" style="padding-bottom:18px;">
  59. <em>曲度:</em>
  60. <div class="checkbox">
  61. <!-- <span><label><input name="checkboxrows" type="checkbox" value=""><font>全选</font></label></span> -->
  62. {loop typeclass(15) as $val}
  63. <span class="ckrows off"><label><input name="lowe" type="checkbox" value="{$val['id']}"><font>{$val['title']}</font></label></span>
  64. {/loop}
  65. </div>
  66. </li>
  67. <li class="length" style="padding-bottom:18px;">
  68. <em>密度:</em>
  69. <div class="checkbox">
  70. {loop typeclass(10) as $val}
  71. <span class="ckrows off"><label><input name="density" type="checkbox" value="{$val['id']}"><font>{$val['title']}</font></label></span>
  72. {/loop}
  73. </div>
  74. </li>
  75. <li class="length">
  76. <em>头套种类:</em>
  77. <div class="checkbox">
  78. {loop typeclass(18) as $val}
  79. {if $val['id']==146}
  80. <span class="ckrows off"><label><input name="lacetype" type="checkbox" value="{$val['id']}"><font>{$val['title']}</font></label></span>
  81. {/if}
  82. {/loop}
  83. {loop typeclass(18) as $val}
  84. {if $val['id']!=146}
  85. <span class="ckrows off"><label><input name="lacetype" type="checkbox" value="{$val['id']}"><font>{$val['title']}</font></label></span>
  86. {/if}
  87. {/loop}
  88. </div>
  89. </li>
  90. <li class="length">
  91. <em>发帽大小:</em>
  92. <div class="checkbox">
  93. {loop typeclass(6) as $val}
  94. <span class="ckrows off"><label><input name="haircap" type="checkbox" value="{$val['id']}"><font>{$val['title']}</font></label></span>
  95. {/loop}
  96. </div>
  97. </li>
  98. <li style="width:100%;margin:30px 0;text-align: center;">
  99. <font class="cona downloadexcel">下载Excel</font>
  100. </li>
  101. </div>
  102. </ul>
  103. <script type="text/javascript" src="{$theme}js/laydate.js"></script>
  104. <script>
  105. $(".downloadexcel").click(function() {
  106. var f = "";
  107. var cb = "";var hd = "";
  108. $(".download .ckrows input:checked").each(function(){
  109. cb = cb + $(this).val() + "|";
  110. });
  111. $(".download .hd input:checked").each(function(){
  112. hd = 1;
  113. });
  114. if(cb == "")
  115. {
  116. $(".ts p").text("请选择产品类型!");
  117. $(".ts").show();
  118. setTimeout('$(".ts").fadeOut()', 800);
  119. return false;
  120. }
  121. f = "category=" + cb + "&";
  122. $(".select").each(function() {
  123. f = f + $(this).attr("name") + "=" + $(this).children("option:selected").val() + "&";
  124. });
  125. $("input:text").each(function() {
  126. f = f + $(this).attr("name") + "=" + $(this).val() + "&";
  127. });
  128. $("input:hidden").each(function() {
  129. f = f + $(this).attr("name") + "=" + $(this).val() + "&";
  130. });
  131. for(j=0;j<$(".datalist .checkbox").length;j++)
  132. {
  133. var pcheckid = ""; var pcheckname = "";
  134. $(".checkbox:eq("+j+") .ckrows input:checked").each(function(){
  135. pcheckname = $(this).attr("name");
  136. pcheckid = pcheckid + $(this).val()+",";
  137. });
  138. f = f + pcheckname + "=" + pcheckid + "&";
  139. }
  140. if(hd == 1)
  141. {
  142. window.location.href = "/systemdownload/hd?fexcel=1&" + f;
  143. $("select[name=fexcel] option:eq(0)").prop('selected', 'selected');
  144. }
  145. else
  146. {
  147. window.location.href = "/systemdownload/data?fexcel=1&" + f;
  148. $("select[name=fexcel] option:eq(0)").prop('selected', 'selected');
  149. }
  150. });
  151. </script>
  152. {Template footer}