container.html 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. {Template header}
  2. <body>
  3. <div class="warp">
  4. <div class="fixed">
  5. <ul class="search">
  6. <li>
  7. 优先级:<select name="type" class="select" style="width:90px">
  8. <option value="">请选择</option>
  9. <option value="1">A-必须发</option>
  10. <option value="2">B-如果发不完可先发走一部分</option>
  11. <option value="3">C-拼箱用,可发可不发</option>
  12. </select>
  13. </li>
  14. <li>货物名称:<input value="" name="title" type="text" style="width:380px"></li>
  15. <li>提交人:<input value="" name="name" type="text"></li>
  16. <li>提交时间:<input id="timetk" 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'})" style="width:130px">
  17. 至&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'})" style="width:130px"></li>
  18. <li><span>确 定</span></li>
  19. </ul>
  20. <div class="control">
  21. <a href="javascript:void(0);" class="window" data-h="/container/add/" data-t="货柜物品 - 添加">添 加</a>
  22. <a href="javascript:void(0);" class="check">删 除</a>
  23. <a href="javascript:void(0);" class="dccontainer">导出</a>
  24. </div>
  25. <table class="datatitle data" border="0" style="border-collapse:collapse;">
  26. <tr>
  27. <td><label onClick="swapCheck()"><input name="checkbox" type="checkbox" class="regular-checkbox"></label></td>
  28. <td>货物名称</td>
  29. <td>数量</td>
  30. <td>单位重量(千克)</td>
  31. <td>总重量(千克)</td>
  32. <td>预估体积(立方米)</td>
  33. <td>优先级</td>
  34. <td>用途</td>
  35. <td>提交人</td>
  36. <td>提交时间</td>
  37. </tr>
  38. </table>
  39. </div>
  40. <table class="datatext data" border="0" style="border-collapse:collapse;">
  41. </table>
  42. <div class="bomf"></div>
  43. </div>
  44. <script>
  45. var dataurl = "/container";
  46. var editurl = "{if $see == 'see'}/container/see/{else}/container/edit/{/if}";
  47. var editdj = 1;
  48. var editt = "货柜物品 - 修改";
  49. var customon = 1;
  50. function custom(){
  51. $(".data tr").each(function() {
  52. $(this).find('td:eq(0)').css("width","1%");
  53. $(this).find('td:eq(1)').css("width","11%");
  54. $(this).find('td:eq(2)').css("width","6%");
  55. $(this).find('td:eq(3)').css("width","6%");
  56. $(this).find('td:eq(4)').css("width","6%");
  57. $(this).find('td:eq(5)').css("width","6%");
  58. $(this).find('td:eq(6)').css("width","11%");
  59. $(this).find('td:eq(8)').css("width","6%");
  60. $(this).find('td:eq(9)').css("width","8%");
  61. });}
  62. $(".dccontainer").click(function() {
  63. var f = "";
  64. var a = "";
  65. $(".datatext input[name='check']:checked").each(function() {
  66. a = a + $(this).val()+",";
  67. });
  68. f = f + "a=" + a + "&";
  69. $(".select").each(function() {
  70. f = f + $(this).attr("name") + "=" + $(this).children("option:selected").val() + "&";
  71. });
  72. $("input:text").each(function() {
  73. f = f + $(this).attr("name") + "=" + $(this).val() + "&";
  74. });
  75. var a = "";
  76. $(".datatext input[name='check']:checked").each(function() {
  77. a = a + $(this).val()+",";
  78. });
  79. f = f + "excel=1&a="+a;
  80. window.location.href = "/container/excel?excel=1&"+f;
  81. });
  82. </script>
  83. <script type="text/javascript" src="{$theme}js/laydate.js"></script>
  84. {Template footer}