delivery_allprint_order_dofetch.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <?php foreach($need_data as $val){ ?>
  2. <div class="w794">
  3. <table width ="794px" cellpadding="0">
  4. <tr class="lft">
  5. <td class="tdleft bold"><?php echo $shoname; ?></td>
  6. <td class="tdleft bold">(团长配送清单)</td>
  7. </tr>
  8. <tr class="lft">
  9. <td class=" ">团长名称:<?php echo $val['head_info']['head_name']; ?></td>
  10. <td class=" ">团长电话:<?php echo $val['head_info']['head_mobile']; ?></td>
  11. </tr>
  12. <tr class="lft">
  13. <td class=" ">配送地址:<?php echo $val['head_info']['head_address']; ?></td>
  14. <td class=" "></td>
  15. </tr>
  16. <tr class="lft">
  17. <td class=" ">配送单号:<?php echo $val['head_info']['list_sn']; ?></td>
  18. <td class=" ">配送时间:</td>
  19. </tr>
  20. <tr class="lft">
  21. <td class=" ">司机名称:<?php echo $val['head_info']['clerk_name']; ?></td>
  22. <td class=" ">司机电话:<?php echo $val['head_info']['clerk_mobile']; ?></td>
  23. </tr>
  24. <tr class="lft">
  25. <td class=" ">配送线路:<?php echo $val['head_info']['line_name']; ?></td>
  26. </tr>
  27. </table>
  28. </div>
  29. <div class="w794">
  30. <table width ="792px" border="1" cellpadding="0">
  31. <tr class="a">
  32. <td class="td1">序号</td>
  33. <td class="td3" style='width:80px'>微信昵称</td>
  34. <td class="td3" style='width:80px'>联系人</td>
  35. <td class="td4" style='width:130px'>联系电话</td>
  36. <td class="td2" style='width:280px'>商品与规格</td>
  37. <td class="td1" >数量</td>
  38. <td class="td3" style='width:80px'>金额</td>
  39. <td class="td1">签收</td>
  40. </tr>
  41. <?php $i=1; foreach($val['need_order_list'] as $order_info ){ ?>
  42. <tr class="a">
  43. <td class="num" ><?php echo $i; ?></td>
  44. <td ><?php echo $order_info['username']; ?></td>
  45. <td ><?php echo $order_info['shipping_name']; ?></td>
  46. <td ><?php echo $order_info['shipping_tel']; ?></td>
  47. <td style="border:none;<?php if($i >1){ ?> border-top:1px solid #000; border-left:1px solid #000; <?php } ?>">
  48. <?php foreach($order_info['order_goods'] as $key => $order_goods){ ?>
  49. <?php if($key >0){ ?><hr style="height:1px;border:none;border-top:1px dashed;" /> <?php }else{ ?> <div style="height:6px;" ></div > <?php } ?>
  50. <?php if((strlen($order_goods['name']) + strlen($order_goods['sku_name'])) > 40 ){?>
  51. <div style="<?php if(stripos($_SERVER["HTTP_USER_AGENT"],"firefox")){ ?>height:36px;<?php }else{ ?>height:34px;<?php } ?>margin: 0 auto;"><?php echo $order_goods['name'].$order_goods['sku_name']; ?></div >
  52. <?php }else{ ?>
  53. <div style="height:0 auto;margin: 0 auto;"><?php echo $order_goods['name'].$order_goods['sku_name']; ?></div >
  54. <?php } ?>
  55. <?php } ?>
  56. </td>
  57. <td >
  58. <?php foreach($order_info['order_goods'] as $key =>$order_goods){ ?>
  59. <?php if($key >0){ ?><hr style="height:1px;border:none;border-top:1px dashed;" /><?php }else{ ?> <div style="height:6px;" ></div > <?php } ?>
  60. <?php if((strlen($order_goods['name']) + strlen($order_goods['sku_name'])) > 40 ){?>
  61. <div style="<?php if(stripos($_SERVER["HTTP_USER_AGENT"],"firefox")){ ?>height:36px;<?php }else{ ?>height:34px;<?php } ?>margin: 0 auto;"><?php echo $order_goods['quantity']; ?></div >
  62. <?php }else{ ?>
  63. <div style="height:0 auto;margin: 0 auto;"><?php echo $order_goods['quantity']; ?></div >
  64. <?php } ?>
  65. <?php } ?>
  66. </td>
  67. <td ><?php echo $order_info['order_all_total']; ?></td>
  68. <td></td>
  69. </tr>
  70. <?php $i++; } ?>
  71. <?php ?>
  72. </table>
  73. </div>
  74. <div style="height:20px;"></div>
  75. <?php if( !empty($val['wait_pay_moeny_list'] ) ){ ?>
  76. <div class="w794">
  77. <table width ="792px" border="1" cellpadding="0">
  78. <th colspan="4">货到付款待收清单</th>
  79. <tr class="a">
  80. <td class="td1">用户名</td>
  81. <td class="td2">手机号</td>
  82. <td class="td4">应收金额</td>
  83. <td class="td3">签收</td>
  84. </tr>
  85. <?php foreach( $val['wait_pay_moeny_list'] as $money_val ){ ?>
  86. <tr class="a">
  87. <td><?php echo $money_val['username']; ?></td>
  88. <td><?php echo $money_val['moble']; ?></td>
  89. <td><?php echo $money_val['wait_pay_money']; ?></td>
  90. <td></td>
  91. </tr>
  92. <?php } ?>
  93. </table>
  94. </div>
  95. <?php } ?>
  96. <div class="PageNext"></div>
  97. <?php } ?>