color.html 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. {Template header}
  2. <body>
  3. <div class="warp">
  4. <div class="fixed">
  5. <ul class="search">
  6. <li>是否在售:
  7. <select name="state" id="state" class="select class">
  8. <option value="0">未选择</option>
  9. <option value="1">在售款</option>
  10. <option value="2">已停售</option>
  11. </select>
  12. </li>
  13. <li>配图类型:
  14. <select name="type" id="type" class="select class">
  15. <option value="0">未选择</option>
  16. <option value="1">编号款配图</option>
  17. <option value="2">颜色配图</option>
  18. <option value="3">曲度配图</option>
  19. <option value="5">化纤编号款</option>
  20. <option value="6">化纤颜色</option>
  21. <option value="4">其他配图</option>
  22. </select>
  23. </li>
  24. <li>标题:<input value="" name="title" type="text" style="width:150px"></li>
  25. <li>色号:<input value="" name="color" type="text" style="width:150px"></li>
  26. <li>曲度:<input value="" name="lowe" type="text" style="width:150px"></li>
  27. <li>备注:<input value="" name="content" type="text" style="width:150px"></li>
  28. <li>开发人:<input value="" name="developer" type="text" style="width:150px"></li>
  29. <li>添加时间:<input id="timetk" value="2020-01-01 0:00" name="timetk" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})">
  30. 至&nbsp;&nbsp;&nbsp;&nbsp; <input id="timetj" value="{date('Y-m-d',time()+24*3600)} 0:00" name="timetj" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})"></li>
  31. <li><span>确 定</span></li>
  32. </ul>
  33. <div class="control">
  34. <a href="javascript:void(0);" class="window" data-h="/color/add/" data-t="新品/新色配图 - 添加">添 加</a>
  35. <a href="javascript:void(0);" class="check">删 除</a>
  36. <a href="javascript:void(0);" class="excel">导出条件检索数据</a>
  37. </div>
  38. <table class="datatitle data" border="0" style="border-collapse:collapse;">
  39. <tr>
  40. <td><label onClick="swapCheck()"><input name="checkbox" type="checkbox" class="regular-checkbox"></label></td>
  41. <td>标题</td>
  42. <td>是否在售</td>
  43. <td>配图类型</td>
  44. <td>色号</td>
  45. <td>曲度</td>
  46. <td>图片</td>
  47. <td>开发人</td>
  48. <td>工艺流程</td>
  49. <td>备注</td>
  50. <td>添加时间</td>
  51. </tr>
  52. </table>
  53. </div>
  54. <table class="datatext data" border="0" style="border-collapse:collapse;">
  55. </table>
  56. <div class="bomf"></div>
  57. </div>
  58. <script>
  59. var dataurl = "/color";
  60. var excel = "/color/";
  61. var editurl = "/color/edit/";
  62. var editdj = 1;
  63. var editt = "新品/新色配图 - 修改";
  64. var customon = 1;
  65. function custom(){
  66. $(".data tr").each(function() {
  67. $(this).find('td:eq(0)').css("width","1%");
  68. $(this).find('td:eq(1)').css("width","11%");
  69. $(this).find('td:eq(2)').css("width","6%");
  70. $(this).find('td:eq(3)').css("width","6%");
  71. $(this).find('td:eq(4)').css("width","13%");
  72. $(this).find('td:eq(6)').css("width","8%");
  73. });}
  74. $(".excel").click(function() {
  75. var f = "";
  76. var a = "";
  77. $(".datatext input[name='check']:checked").each(function() {
  78. a = a + $(this).val()+",";
  79. });
  80. f = f + "sid=" + a + "&";
  81. $(".select").each(function() {
  82. f = f + $(this).attr("name") + "=" + $(this).children("option:selected").val() + "&";
  83. });
  84. $("input:text").each(function() {
  85. var str = $(this).val().replace(/\#/g,"%23");
  86. f = f + $(this).attr("name") + "=" + str + "&";
  87. });
  88. $("input:hidden").each(function() {
  89. f = f + $(this).attr("name") + "=" + $(this).val() + "&";
  90. });
  91. window.location.href = "/color/ex?a=1&"+f;
  92. });
  93. </script>
  94. <script type="text/javascript" src="{$theme}js/laydate.js"></script>
  95. {Template footer}