waybill.list.php 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <?php defined('InShopNC') or exit('Access Invalid!');?>
  2. <style type="text/css">
  3. .waybill-img-thumb { background-color: #FFF; vertical-align: top; display: inline-block; *display: inline; width: 70px; height: 45px; padding: 1px; border: solid 1px #E6E6E6; *zoom: 1;}
  4. .waybill-img-thumb a { line-height: 0; text-align: center; vertical-align: middle; display: table-cell; *display: block; width: 70px; height: 45px; overflow: hidden;}
  5. .waybill-img-thumb a img { max-width: 70px; max-height: 45px; margin-top:expression(45-this.height/2); *margin-top:expression(22-this.height/2)/*IE6,7*/;}
  6. .waybill-img-size { color: #777; line-height: 20px; vertical-align: top; display: inline-block; *display: inline; margin-left: 10px; *zoom: 1;}
  7. </style>
  8. <div class="page">
  9. <!-- 页面导航 -->
  10. <div class="fixed-bar">
  11. <div class="item-title">
  12. <h3>运单模板</h3>
  13. <ul class="tab-base">
  14. <?php foreach($output['menu'] as $menu) { if($menu['menu_key'] == $output['menu_key']) { ?>
  15. <li><a href="JavaScript:void(0);" class="current"><span><?php echo $menu['menu_name'];?></span></a></li>
  16. <?php } else { ?>
  17. <li><a href="<?php echo $menu['menu_url'];?>" ><span><?php echo $menu['menu_name'];?></span></a></li>
  18. <?php } } ?>
  19. </ul>
  20. </div>
  21. </div>
  22. <div class="fixed-empty"></div>
  23. <!-- 帮助 -->
  24. <table class="table tb-type2" id="prompt">
  25. <tbody>
  26. <tr class="space odd">
  27. <th colspan="12" class="nobg"> <div class="title">
  28. <h5><?php echo $lang['nc_prompts'];?></h5>
  29. <span class="arrow"></span> </div>
  30. </th>
  31. </tr>
  32. <tr>
  33. <td><ul>
  34. <li>平台现有运单模板列表</li>
  35. <li>点击设计按钮可以对运单模板布局进行设计,点击测试按钮可以对模板进行打印测试,点击编辑按钮可以对模板参数进行调整</li>
  36. <li>设计完成后在编辑中修改模板状态为启用后,商家就可以绑定该模板进行运单打印</li>
  37. <li>点击删除按钮可以删除现有模板,删除后所有使用该模板的商家将自动解除绑定,请慎重操作</li>
  38. </ul></td>
  39. </tr>
  40. </tbody>
  41. </table>
  42. <!-- 列表 -->
  43. <form id="list_form" method="post">
  44. <table class="table tb-type2">
  45. <thead>
  46. <tr class="space">
  47. <th colspan="15" class="nobg"><?php echo $lang['nc_list'];?></th>
  48. </tr>
  49. <tr class="thead">
  50. <th class="w12">&nbsp;</th>
  51. <th>模板名称</th>
  52. <th class="w200">物流公司</th>
  53. <th class="w270">运单图例</th>
  54. <th class="w108 align-center">上偏移量</th>
  55. <th class="w108 align-center">左偏移量</th>
  56. <th class="w96 align-center">启用</th>
  57. <th class="w200 align-center"><span><?php echo $lang['nc_handle'];?></span></th>
  58. </tr>
  59. </thead>
  60. <tbody id="treet1">
  61. <?php if(!empty($output['list']) && is_array($output['list'])){ ?>
  62. <?php foreach($output['list'] as $key => $value){ ?>
  63. <tr class="hover">
  64. <td>&nbsp;</td>
  65. <td><?php echo $value['waybill_name'];?></td>
  66. <td><?php echo $value['express_name'];?></td>
  67. <td>
  68. <div class="waybill-img-thumb"><a class="nyroModal" rel="gal" href="<?php echo $value['waybill_image_url'];?>"><img src="<?php echo $value['waybill_image_url'];?>"></a></div>
  69. <div class="waybill-img-size"><p>宽度:<?php echo $value['waybill_width'];?>(mm)</p><p>高度:<?php echo $value['waybill_height'];?>(mm)</p></div></td>
  70. <td class="align-center"><?php echo $value['waybill_top'];?></td>
  71. <td class="align-center"><?php echo $value['waybill_left'];?></td>
  72. <td class="align-center yes-onoff"><?php echo $value['waybill_usable_text']; ?></td>
  73. <td class="nowrap align-center"><a href="<?php echo urlAdmin('waybill', 'waybill_design', array('waybill_id' => $value['waybill_id']));?>">设计</a>&nbsp;|&nbsp;<a href="<?php echo urlAdmin('waybill', 'waybill_test', array('waybill_id' => $value['waybill_id']));?>" target="_blank">测试</a>&nbsp;|&nbsp;<a href="<?php echo urlAdmin('waybill', 'waybill_edit', array('waybill_id' => $value['waybill_id']));?>">编辑</a>&nbsp;|&nbsp;<a href="javascript:;" nctype="btn_del" data-waybill-id="<?php echo $value['waybill_id'];?>">删除</a></td>
  74. </tr>
  75. <?php } ?>
  76. <?php }else { ?>
  77. <tr class="no_data">
  78. <td colspan="16"><?php echo $lang['nc_no_record'];?></td>
  79. </tr>
  80. <?php } ?>
  81. </tbody>
  82. <?php if(!empty($output['list']) && is_array($output['list'])){ ?>
  83. <tfoot>
  84. <tr class="tfoot">
  85. <td colspan="16"><div class="pagination"> <?php echo $output['page'];?> </div></td>
  86. </tr>
  87. </tfoot>
  88. <?php } ?>
  89. </table>
  90. </form>
  91. </div>
  92. <form id="del_form" action="<?php echo urlAdmin('waybill', 'waybill_del');?>" method="post">
  93. <input type="hidden" id="del_waybill_id" name="waybill_id">
  94. </form>
  95. <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/js/jquery.nyroModal/custom.min.js" charset="utf-8"></script>
  96. <link href="<?php echo RESOURCE_SITE_URL;?>/js/jquery.nyroModal/styles/nyroModal.css" rel="stylesheet" type="text/css" id="cssfile2" />
  97. <script type="text/javascript">
  98. $(document).ready(function(){
  99. $('[nctype="btn_del"]').on('click', function() {
  100. if(confirm('确认删除?')) {
  101. $('#del_waybill_id').val($(this).attr('data-waybill-id'));
  102. $('#del_form').submit();
  103. }
  104. });
  105. //点击查看大图
  106. $('.nyroModal').nyroModal();
  107. });
  108. </script>