color.html 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. {if ($userid == 10)}
  34. <div class="control" >
  35. <a href="javascript:void(0);" class="window" data-h="/color/add/" data-t="新品/新色配图 - 添加">添 加</a>
  36. <a href="javascript:void(0);" class="check">删 除</a>
  37. <a href="javascript:void(0);" class="excel">导出条件检索数据</a>
  38. <a href="javascript:void(0);" class="excel2">导出条件检索数据(带图)</a>
  39. </div>
  40. {/if}
  41. <table class="datatitle data" border="0" style="border-collapse:collapse;">
  42. <tr>
  43. <td><label onClick="swapCheck()"><input name="checkbox" type="checkbox" class="regular-checkbox"></label></td>
  44. <td>标题</td>
  45. <td>是否在售</td>
  46. <td>配图类型</td>
  47. <td>色号</td>
  48. <td>曲度</td>
  49. <td>图片</td>
  50. <td>开发人</td>
  51. <td>重要信息提醒</td>
  52. <td>备注</td>
  53. <td>添加时间</td>
  54. </tr>
  55. </table>
  56. </div>
  57. <table class="datatext data" border="0" style="border-collapse:collapse;">
  58. </table>
  59. <div class="bomf"></div>
  60. </div>
  61. <script>
  62. var dataurl = "/color";
  63. var excel = "/color/";
  64. var editurl = "/color/edit/";
  65. var editdj = 1;
  66. var editt = "新品/新色配图 - 修改";
  67. var customon = 1;
  68. function custom(){
  69. $(".data tr").each(function() {
  70. $(this).find('td:eq(0)').css("width","1%");
  71. $(this).find('td:eq(1)').css("width","11%");
  72. $(this).find('td:eq(2)').css("width","6%");
  73. $(this).find('td:eq(3)').css("width","6%");
  74. $(this).find('td:eq(4)').css("width","7%");
  75. $(this).find('td:eq(6)').css("width","8%");
  76. $(this).find('td:eq(9)').css("width","20%");
  77. });}
  78. $(".excel").click(function() {
  79. var f = "";
  80. var a = "";
  81. $(".datatext input[name='check']:checked").each(function() {
  82. a = a + $(this).val()+",";
  83. });
  84. f = f + "sid=" + a + "&";
  85. $(".select").each(function() {
  86. f = f + $(this).attr("name") + "=" + $(this).children("option:selected").val() + "&";
  87. });
  88. $("input:text").each(function() {
  89. var str = $(this).val().replace(/\#/g,"%23");
  90. f = f + $(this).attr("name") + "=" + str + "&";
  91. });
  92. $("input:hidden").each(function() {
  93. f = f + $(this).attr("name") + "=" + $(this).val() + "&";
  94. });
  95. window.location.href = "/color/ex?a=1&"+f;
  96. });
  97. $(".excel2").click(function() {
  98. var f = "";
  99. var a = "";
  100. $(".datatext input[name='check']:checked").each(function() {
  101. a = a + $(this).val()+",";
  102. });
  103. f = f + "sid=" + a + "&";
  104. $(".select").each(function() {
  105. f = f + $(this).attr("name") + "=" + $(this).children("option:selected").val() + "&";
  106. });
  107. $("input:text").each(function() {
  108. var str = $(this).val().replace(/\#/g,"%23");
  109. f = f + $(this).attr("name") + "=" + str + "&";
  110. });
  111. $("input:hidden").each(function() {
  112. f = f + $(this).attr("name") + "=" + $(this).val() + "&";
  113. });
  114. layx.load('loadId','数据加载中');
  115. window.location.href = "/color/ex2?a=1&"+f;
  116. setTimeout(function(){
  117. layx.destory('loadId');
  118. },2000);
  119. });
  120. </script>
  121. <script type="text/javascript" src="{$theme}js/laydate.js"></script>
  122. {Template footer}