order.html 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  5. <title>下单成功-<?php echo C('SITE_NAME'); ?></title>
  6. </head>
  7. <body style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #000000;">
  8. <div style="width: 680px;"><h2><a style="text-decoration:none" href="<?php echo C('SITE_URL'); ?>" title="<?php echo C('SITE_NAME'); ?>"><?php echo C('SITE_NAME'); ?></a></h2>
  9. <?php if(isset($seller_comment)){ ?>
  10. <p style="color:#000;font-size:20px;font-weight:bold;"><?php echo $seller_comment; ?></p>
  11. <?php } ?>
  12. <p style="margin-top: 0px; margin-bottom: 20px;">感谢您对<?php echo C('SITE_NAME'); ?>产品的支持</p>
  13. <table style="border-collapse: collapse; width: 100%; border-top: 1px solid #DDDDDD; border-left: 1px solid #DDDDDD; margin-bottom: 20px;">
  14. <thead>
  15. <tr>
  16. <td style="font-size: 12px; border-right: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD; background-color: #EFEFEF; font-weight: bold; text-align: left; padding: 7px; color: #222222;" colspan="2">订单信息</td>
  17. </tr>
  18. </thead>
  19. <tbody>
  20. <tr>
  21. <td style="font-size: 12px; border-right: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD; text-align: left; padding: 7px;"><b>订单号</b> <?php echo $order['order']['order_num_alias']; ?><br />
  22. <b>付款时间</b> <?php if($order['order']['pay_time']){echo date('Y-m-d H:i:s',$order['order']['pay_time']);}else{echo date('Y-m-d H:i:s',$order['order']['date_modified']);} ?><br />
  23. <b>支付方式</b> <?php echo get_payment_name($order['order']['payment_code']); ?><br />
  24. <?php if ($order['order']['shipping_method']) { ?>
  25. <b>货运方式</b> <?php echo get_shipping_name($order['order']['shipping_method']); ?>
  26. <?php } ?></td>
  27. <td style="font-size: 12px; border-right: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD; text-align: left; padding: 7px;"><b>邮箱</b> <?php echo $order['order']['email']; ?><br />
  28. <b>收货人联系号码</b><?php echo $order['order']['shipping_tel']; ?><br />
  29. <b>收货人</b> <?php echo $order['order']['shipping_name']; ?><br />
  30. <b>订单状态</b> <?php echo $order['order']['name']; ?><br /></td>
  31. </tr>
  32. </tbody>
  33. </table>
  34. <?php if (!empty($order['order']['comment'])) { ?>
  35. <table style="border-collapse: collapse; width: 100%; border-top: 1px solid #DDDDDD; border-left: 1px solid #DDDDDD; margin-bottom: 20px;">
  36. <thead>
  37. <tr>
  38. <td style="font-size: 12px; border-right: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD; background-color: #EFEFEF; font-weight: bold; text-align: left; padding: 7px; color: #222222;">订单留言</td>
  39. </tr>
  40. </thead>
  41. <tbody>
  42. <tr>
  43. <td style="font-size: 12px; border-right: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD; text-align: left; padding: 7px;"><?php echo $order['order']['comment']; ?></td>
  44. </tr>
  45. </tbody>
  46. </table>
  47. <?php } ?>
  48. <table style="border-collapse: collapse; width: 100%; border-top: 1px solid #DDDDDD; border-left: 1px solid #DDDDDD; margin-bottom: 20px;">
  49. <thead>
  50. <tr>
  51. <td style="font-size: 12px; border-right: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD; background-color: #EFEFEF; font-weight: bold; text-align: left; padding: 7px; color: #222222;">收货地址</td>
  52. </tr>
  53. </thead>
  54. <tbody>
  55. <tr>
  56. <td style="font-size: 12px; border-right: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD; text-align: left; padding: 7px;">
  57. <?php echo get_area_name($order['order']['shipping_province_id']).','.get_area_name($order['order']['shipping_city_id']).','.get_area_name($order['order']['shipping_country_id']).','.$order['order']['address']; ?>
  58. </td>
  59. </tr>
  60. </tbody>
  61. </table>
  62. <table style="border-collapse: collapse; width: 100%; border-top: 1px solid #DDDDDD; border-left: 1px solid #DDDDDD; margin-bottom: 20px;">
  63. <thead>
  64. <tr>
  65. <td style="font-size: 12px; border-right: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD; background-color: #EFEFEF; font-weight: bold; text-align: left; padding: 7px; color: #222222;">产品名称</td>
  66. <td style="font-size: 12px; border-right: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD; background-color: #EFEFEF; font-weight: bold; text-align: left; padding: 7px; color: #222222;">型号</td>
  67. <td style="font-size: 12px; border-right: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD; background-color: #EFEFEF; font-weight: bold; text-align: right; padding: 7px; color: #222222;">数量</td>
  68. <td style="font-size: 12px; border-right: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD; background-color: #EFEFEF; font-weight: bold; text-align: right; padding: 7px; color: #222222;">单价</td>
  69. <td style="font-size: 12px; border-right: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD; background-color: #EFEFEF; font-weight: bold; text-align: right; padding: 7px; color: #222222;">总计</td>
  70. </tr>
  71. </thead>
  72. <tbody>
  73. <?php foreach ($order['order_product'] as $product) { ?>
  74. <tr>
  75. <td style="font-size: 12px; border-right: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD; text-align: left; padding: 7px;">
  76. <?php echo $product['name']; ?>
  77. <?php if($option_list=M()->query('select * from '.C('DB_PREFIX').'order_option where order_goods_id='.$product['order_goods_id'].' and order_id='.$product['order_id'])){ ?>
  78. <?php foreach ($option_list as $option) { ?>
  79. <br />
  80. &nbsp;<small> - <?php echo $option['name']; ?>: <?php echo $option['value']; ?></small>
  81. <?php } ?>
  82. <?php } ?>
  83. </td>
  84. <td style="font-size: 12px; border-right: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD; text-align: left; padding: 7px;"><?php echo $product['model']; ?></td>
  85. <td style="font-size: 12px; border-right: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD; text-align: right; padding: 7px;"><?php echo $product['quantity']; ?></td>
  86. <td style="font-size: 12px; border-right: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD; text-align: right; padding: 7px;"><?php echo '¥'.$product['price']; ?></td>
  87. <td style="font-size: 12px; border-right: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD; text-align: right; padding: 7px;"><?php echo '¥'.$product['total']; ?></td>
  88. </tr>
  89. <?php } ?>
  90. </tbody>
  91. <tfoot>
  92. <?php foreach ($order['order_total'] as $total) { ?>
  93. <tr>
  94. <td style="font-size: 12px; border-right: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD; text-align: right; padding: 7px;" colspan="4"><b><?php echo $total['title']; ?>:</b></td>
  95. <td style="font-size: 12px; border-right: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD; text-align: right; padding: 7px;"><?php echo $total['text']; ?></td>
  96. </tr>
  97. <?php } ?>
  98. </tfoot>
  99. </table>
  100. <?php if(!isset($print)){ ?>
  101. <p>您可以登录网站<a href="<?php echo C('SITE_URL').'/order.html'; ?>">查看订单</a></p>
  102. <p style="margin-top: 0px; margin-bottom: 20px;">感谢您对<?php echo C('SITE_NAME'); ?>产品的支持,欢迎下次光顾</p>
  103. <?php } ?>
  104. </div>
  105. </body>
  106. </html>