show_order.html 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. {include file="public/header" /}
  2. <div class="page">
  3. <table class="ds-default-table order">
  4. <tbody>
  5. <tr class="space">
  6. <th colspan="2">{$Think.lang.order_detail}</th>
  7. </tr>
  8. <tr>
  9. <th>{$Think.lang.order_info}</th>
  10. </tr>
  11. <tr>
  12. <td colspan="2"><ul>
  13. <li>
  14. <strong>{$Think.lang.ds_order_sn}:</strong>{$order_info.order_sn}
  15. ( {$Think.lang.ds_pay_sn} {$Think.lang.ds_colon} {$order_info.pay_sn} )
  16. </li>
  17. <li><strong>{$Think.lang.order_state}:</strong>{:get_order_state($order_info)}</li>
  18. <li><strong>{$Think.lang.order_total_price}:</strong><span class="red_common">{$Think.lang.currency}{$order_info.order_amount} </span>
  19. {if $order_info.refund_amount > 0}
  20. ({$Think.lang.order_refund}:{$Think.lang.currency}{$order_info.refund_amount})
  21. {/if}
  22. </li>
  23. <li><strong>{$Think.lang.vrorder_pd_amount}:</strong>{$Think.lang.currency}{$order_info.pd_amount}</li>
  24. <li><strong>{$Think.lang.vrorder_rcb_amount}:</strong>{$Think.lang.currency}{$order_info.rcb_amount}</li>
  25. <li><strong>{$Think.lang.order_total_transport}:</strong>{$Think.lang.currency}{$order_info.shipping_fee}</li>
  26. </ul></td>
  27. </tr>
  28. <tr>
  29. <td><ul>
  30. <li><strong>{$Think.lang.ds_buyer_name}{$Think.lang.ds_colon}</strong>{$order_info.buyer_name}</li>
  31. <li><strong>{$Think.lang.ds_store_name}{$Think.lang.ds_colon}</strong>{$order_info.store_name}</li>
  32. <li><strong>{$Think.lang.ds_payment_code}{$Think.lang.ds_colon}</strong>{:get_order_payment_name($order_info['payment_code'])}</li>
  33. <li><strong>{$Think.lang.order_time}{$Think.lang.ds_colon}</strong>{$order_info.add_time|date='Y-m-d H:i:s'}</li>
  34. {if isset($order_info.payment_time) && $order_info.payment_time!=''}
  35. <li><strong>{$Think.lang.payment_time}{$Think.lang.ds_colon}</strong>{$order_info.payment_time|date='Y-m-d H:i:s'}</li>
  36. {/if}
  37. {if isset($order_info.shipping_time) && $order_info.shipping_time!=''}
  38. <li><strong>{$Think.lang.ship_time}{$Think.lang.ds_colon}</strong>{$order_info.shipping_time|date='Y-m-d H:i:s'}</li>
  39. {/if}
  40. {if isset($order_info.finnshed_time) && $order_info.finnshed_time!=''}
  41. <li><strong>{$Think.lang.complate_time}{$Think.lang.ds_colon}</strong>{$order_info.finnshed_time|date='Y-m-d H:i:s'}</li>
  42. {/if}
  43. {if $order_info.extend_order_common.order_message != ''}
  44. <li><strong>{$Think.lang.buyer_message}{$Think.lang.ds_colon}</strong>{$order_info.extend_order_common.order_message}</li>
  45. {/if}
  46. </ul></td>
  47. </tr>
  48. <tr>
  49. <th>{$Think.lang.consignee_info}</th>
  50. </tr>
  51. <tr>
  52. <td><ul>
  53. <li><strong>{$Think.lang.consignee_name}{$Think.lang.ds_colon}</strong>{$order_info.extend_order_common.reciver_name}</li>
  54. <li><strong>{$Think.lang.tel_phone}{$Think.lang.ds_colon}</strong>{$order_info.extend_order_common.reciver_info.phone|default=''}</li>
  55. <li><strong>{$Think.lang.address}{$Think.lang.ds_colon}</strong>{$order_info.extend_order_common.reciver_info.address|default=''}</li>
  56. {if $order_info.shipping_code != ''}
  57. <li><strong>{$Think.lang.ship_code}{$Think.lang.ds_colon}</strong>{$order_info.shipping_code}</li>
  58. {/if}
  59. </ul></td>
  60. </tr>
  61. {notempty name="daddress_info"}
  62. <tr>
  63. <th>{$Think.lang.daddress_info}</th>
  64. </tr>
  65. <tr>
  66. <td><ul>
  67. <li><strong>{$Think.lang.daddress_seller_name}{$Think.lang.ds_colon}</strong>{$daddress_info.seller_name}</li>
  68. <li><strong>{$Think.lang.tel_phone}:</strong>{$daddress_info.daddress_telphone}</li>
  69. <li><strong>{$Think.lang.daddress_address_name}{$Think.lang.ds_colon}</strong>{$daddress_info.area_info}&nbsp;{$daddress_info.daddress_detail}&nbsp;{$daddress_info.daddress_company}</li>
  70. </ul></td>
  71. </tr>
  72. {/notempty}
  73. <?php if (!empty($order_info['extend_order_common']['invoice_info'])) {?>
  74. <tr>
  75. <th>{$Think.lang.invoice_info}</th>
  76. </tr>
  77. <tr>
  78. <td><ul>
  79. <?php foreach ((array)$order_info['extend_order_common']['invoice_info'] as $key => $value){?>
  80. <li><strong>{$key}{$Think.lang.ds_colon}</strong>{$value}</li>
  81. <?php } ?>
  82. </ul></td>
  83. </tr>
  84. <?php } ?>
  85. <tr>
  86. <th>{$Think.lang.product_info}</th>
  87. </tr>
  88. <tr>
  89. <td><table class="ds-default-table goods ">
  90. <tbody>
  91. <tr>
  92. <th></th>
  93. <th>{$Think.lang.product_info}</th>
  94. <th class="align-center">{$Think.lang.product_price}</th>
  95. <th class="align-center">{$Think.lang.goods_pay_price}</th>
  96. <th class="align-center">{$Think.lang.product_num}</th>
  97. <th class="align-center">{$Think.lang.vrorder_commis_rate}</th>
  98. <th class="align-center">{$Think.lang.vrorder_commis_price}</th>
  99. </tr>
  100. {foreach name="$order_info.extend_order_goods" item="goods"}
  101. <tr>
  102. <td class="w60 picture"><div class="size-56x56"><span class="thumb size-56x56"><i></i><a href="{:url('/home/Goods/index',['goods_id'=>$goods.goods_id])}" target="_blank"><img src="{:goods_cthumb($goods.goods_image)}" width="60" height="60"/> </a></span></div></td>
  103. <td class="w50pre"><p><a href="{:url('/home/Goods/index',['goods_id'=>$goods.goods_id])}" target="_blank">{$goods.goods_name}</a></p><p><?php echo get_order_goodstype($goods['goods_type']);?></p></td>
  104. <td class="w96 align-center"><span class="red_common">{$Think.lang.currency}{$goods.goods_price}</span></td>
  105. <td class="w96 align-center"><span class="red_common">{$Think.lang.currency}{$goods.goods_pay_price}</span></td>
  106. <td class="w96 align-center">{$goods.goods_num}</td>
  107. <td class="w96 align-center"><?php echo $goods['commis_rate'] == 200 ? '' : $goods['commis_rate'].'%';?></td>
  108. <td class="w96 align-center"><?php echo $goods['commis_rate'] == 200 ? '' : ds_price_format($goods['goods_pay_price']*$goods['commis_rate']/100);?></td>
  109. </tr>
  110. {/foreach}
  111. </tbody>
  112. </table>
  113. </td>
  114. </tr>
  115. <!-- S 促销信息 -->
  116. <?php if(!empty($order_info['extend_order_common']['promotion_info']) && !empty($order_info['extend_order_common']['voucher_code'])){ ?>
  117. <tr>
  118. <th>{$Think.lang.other_info}</th>
  119. </tr>
  120. <tr>
  121. <td>
  122. <?php if(!empty($order_info['extend_order_common']['promotion_info'])){ ?>
  123. <?php echo $order_info['extend_order_common']['promotion_info'];?>,
  124. <?php } ?>
  125. <?php if(!empty($order_info['extend_order_common']['voucher_code'])){ ?>
  126. {:sprintf(lang('voucher_use_info'),$order_info['extend_order_common']['voucher_price'],$order_info['extend_order_common']['voucher_code'])}
  127. <?php } ?>
  128. </td>
  129. </tr>
  130. <?php } ?>
  131. <!-- E 促销信息 -->
  132. {notempty name="refund_list"}
  133. <tr>
  134. <th>{$Think.lang.refund_info}</th>
  135. </tr>
  136. {foreach name="refund_list" item="val"}
  137. <tr>
  138. <td>{:sprintf(lang('refund_detail_info'),date('Y-m-d H:i:s',$val['admin_time']),$val['refund_sn'],lang('currency').$val['refund_amount'],$val['goods_name'])}</td>
  139. </tr>
  140. {/foreach}
  141. {/notempty}
  142. {notempty name="return_list"}
  143. <tr>
  144. <th>{$Think.lang.return_info}</th>
  145. </tr>
  146. {foreach name="return_list" item="val"}
  147. <tr>
  148. <td>{:sprintf(lang('return_detail_info'),date('Y-m-d H:i:s',$val['admin_time']),$val['refund_sn'],lang('currency').$val['refund_amount'],$val['goods_name'])}</td>
  149. </tr>
  150. {/foreach}
  151. {/notempty}
  152. {notempty name="order_log"}
  153. <tr>
  154. <th>{$Think.lang.order_handle_history}</th>
  155. </tr>
  156. {foreach name="order_log" item="val"}
  157. <tr>
  158. <td>
  159. {$val.log_role} {$val.log_user}&emsp;{$Think.lang.order_show_at}&emsp;{$val.log_time|date="Y-m-d H:i:s"}&emsp;{$val.log_msg}
  160. </td>
  161. </tr>
  162. {/foreach}
  163. {/notempty}
  164. </tbody>
  165. </table>
  166. </div>