文件操作 - order.php
返回文件管理
返回主菜单
删除本文件
文件: /home/tecnoht/public_html/sbs-italy--it/admin/templates/cart/order.php
编辑文件内容
<h1 class="text-large uppercase border-bottom border-color-1"><span class="no-phone"><?php echo l10n('cart_order_no') ?>: </span><?php echo $order['id'] ?></h1> <!--_________________________ Invoice and shipping data _________________________ --> <table class="div-phone"> <tbody class="div-phone"> <tr class="div-phone"> <td class="top no-margin div-phone"> <table class="framed" style="<?php echo (count($orderArray['shipping']) === 0) ? "width: auto;" : "" ?>"> <thead> <tr> <?php if (count($orderArray['shipping']) === 0) : ?> <th colspan="2" class="border-bottom-2 border-mute fore-color-1"><?php echo l10n('cart_vat_address') . " / " . l10n('cart_shipping_address') ?></th> <?php else: ?> <th colspan="2" class="border-bottom-2 border-mute fore-color-1"><?php echo l10n('cart_vat_address') ?></th> <?php endif; ?> </tr> </thead> <tbody class="border-bottom border-mute-light"> <?php foreach ($orderArray['invoice'] as $line): ?> <tr> <td class="border-left border-mute-light"><?php echo $line['label'] . ":" ?></td> <td class="border-right border-mute-light"><b><?php echo $line['value'] ?></b></td> </tr> <?php endforeach; ?> <?php if (count($orderArray['attachments']) > 0) { foreach ($orderArray['attachments'] as $line) { ?> <td class="border-left border-mute-light"><?php echo l10n('cart_field_attachment') . ":" ?></b></td> <td class="border-right border-mute-light"><b><a href="cart-order.php?id=<?php echo $order['id'] ?>&download-attachment=<?php echo $line['id'] ?>" class="text-underline" target="_blank"><?php echo $line['original_file_name'] ?></a></b></td> <?php } } ?> </tbody> </table> </td> <?php if (count($orderArray['shipping']) > 0): ?> <td class="top no-margin div-phone"> <div class="page-navbar"><?php echo l10n('cart_shipping_address') ?></div> <table> <tbody class="border-bottom border-mute-light"> <?php foreach ($orderArray['shipping'] as $line): ?> <tr> <td class="border-left border-mute-light"><?php echo $line['label'] . ":" ?></td> <td class="border-right border-mute-light"><b><?php echo $line['value'] ?></b></td> </tr> <?php endforeach; ?> </tbody> </table> </td> <?php endif; // End shipping table ?> </tr> </tbody> </table> <!--_________________________ Products data _________________________ --> <table class="no-phone framed"> <thead> <tr class="page-navbar"> <th class="border-bottom-2 border-mute fore-color-1"></th> <th class="border-bottom-2 border-mute fore-color-1"><span class="text-big"><?php echo l10n('cart_product_list') ?></span></th> <th class="border-bottom-2 border-mute fore-color-1"><?php echo l10n('cart_descr') ?></th> <th class="border-bottom-2 border-mute fore-color-1"><?php echo l10n('cart_price') ?></th> <th class="border-bottom-2 border-mute fore-color-1"><?php echo l10n('cart_qty') ?></th> <?php if ($order['vat_type'] != "none"): ?> <th class="border-bottom-2 border-mute fore-color-1 print-text-right"><?php echo l10n($order['vat_type'] == "excluded" ? 'cart_vat' : 'cart_vat_included') ?></th> <?php endif; ?> <th class="border-bottom-2 border-mute fore-color-1 print-text-right"><?php echo l10n('cart_subtot') ?></th> </tr> </thead> <tbody> <?php $p = 0; foreach ($orderArray['products'] as $product): ?> <tr class="border-bottom border-mute-light <?php echo $p % 2 != 0 ? 'background-blue-light' : '' ?> "> <td class="border-left border-mute-light"> <?php if ($product['digital']): ?> <i class="fore-mute-dark fa icon-large fa-cloud-download" title="Download"></i> <?php elseif ($product['physical']): ?> <i class="fore-mute-dark fa icon-large fa-truck"></i> <?php endif; ?> </td> <td><?php echo $product['name'] ?></td> <td><?php echo ($product['option'] != "" ? " - " . $product['option'] . ($product['suboption'] != "" ? " - " . $product['suboption'] : "") : "") ?></td> <td class="text-left"><?php echo Configuration::getCart()->toCurrency(($order['vat_type'] == "excluded" ? $product['price'] : $product['price_plus_vat']) / $product['quantity'], ' ' . $order['currency']) ?></td> <td class="text-left"><?php echo $product['quantity'] ?></td> <?php if ($order['vat_type'] != "none"): ?> <td class="text-left print-text-right"><?php echo Configuration::getCart()->toCurrency($product['vat'], ' ' . $order['currency']) ?></td> <?php endif; ?> <td class="border-right border-mute-light text-left print-text-right"><b><?php echo Configuration::getCart()->toCurrency($order['vat_type'] == "excluded" ? $product['price'] : $product['price_plus_vat'], ' ' . $order['currency']) ?></b></td> </tr> <?php $p++; endforeach; ?> <?php if ($order['shipping_name'] != "" || $order['shipping_price'] != 0): ?> <!--_________________________ Shipping data _________________________ --> <tr class="page-navbar"> <th class="border-bottom-2 border-mute fore-color-1"><span class="text-big"><?php echo l10n('cart_shipping') ?></span></th> <th class="border-bottom-2 border-mute fore-color-1" colspan="4"></th> <?php if ($order['vat_type'] != "none"): ?> <th class="border-bottom-2 border-mute fore-color-1 print-text-right"><?php echo l10n($order['vat_type'] == "excluded" ? 'cart_vat' : 'cart_vat_included') ?></th> <?php endif; ?> <th class="border-bottom-2 border-mute fore-color-1 print-text-right"><?php echo l10n('cart_price') ?></th> </tr> <tr> <td class="border-left border-bottom border-mute-light" colspan="5"><?php echo $order['shipping_name'] ?></td> <?php if ($order['vat_type'] != "none"): ?> <td class="border-bottom border-mute-light text-left print-text-right"><?php echo Configuration::getCart()->toCurrency($order['shipping_vat'], ' ' . $order['currency']) ?></td> <?php endif; ?> <td class="border-right border-bottom border-mute-light text-left print-text-right"><b><?php echo Configuration::getCart()->toCurrency($order['vat_type'] == "excluded" ? $order['shipping_price'] : $order['shipping_price_plus_vat'], ' ' . $order['currency']) ?></b></td> </tr> <?php endif; ?> <?php if ($order['payment_name'] != "" || $order['payment_price'] != 0): ?> <!--_________________________ Payment data _________________________ --> <tr class="page-navbar"> <th class="border-bottom-2 border-mute fore-color-1"><span class="text-big"><?php echo l10n('cart_payment') ?></span></th> <th class="border-bottom-2 border-mute fore-color-1" colspan="4"></th> <?php if ($order['vat_type'] != "none"): ?> <th class="border-bottom-2 border-mute fore-color-1 print-text-right"><?php echo l10n($order['vat_type'] == "excluded" ? 'cart_vat' : 'cart_vat_included') ?></th> <?php endif; ?> <th class="border-bottom-2 border-mute fore-color-1 print-text-right"><?php echo l10n('cart_price') ?></th> </tr> <tr> <td class="border-left border-bottom border-mute-light " colspan="5"><?php echo $order['payment_name'] ?></td> <?php if ($order['vat_type'] != "none"): ?> <td class="border-bottom border-mute-light text-left print-text-right"><?php echo Configuration::getCart()->toCurrency($order['payment_vat'], ' ' . $order['currency']) ?></td> <?php endif; ?> <td class="border-right border-bottom border-mute-light text-left print-text-right"><b><?php echo Configuration::getCart()->toCurrency($order['vat_type'] == "excluded" ? $order['payment_price'] : $order['payment_price_plus_vat'], ' ' . $order['currency']) ?></b></td> </tr> <?php endif; ?> <!-- Total Amounts --> <tr> <td colspan="<?php echo ($order['vat_type'] != 'none') ? '5' : '4' ?>"></td> <th colspan="2" class="border-bottom-2 border-mute fore-color-1 page-navbar"><?php echo l10n('cart_total', 'Total') ?></th> </tr> <?php switch($order['vat_type']) { case "included": ?> <tr> <td colspan="5"></td> <td class="border-bottom border-left border-mute-light fore-color-1 text-left"><?php echo l10n('cart_total_vat') ?></td> <td class="border-bottom border-right border-mute-light text-left print-text-right"><b><?php echo Configuration::getCart()->toCurrency($order['price_plus_vat'], ' ' . $order['currency']) ?></b></td> </tr> <tr> <td colspan="5"></td> <td class="border-bottom border-left border-mute-light fore-color-1 text-left"><?php echo l10n('cart_vat_included') ?></td> <td class="border-bottom border-right border-mute-light text-left print-text-right"><b><?php echo Configuration::getCart()->toCurrency($order['vat'], ' ' . $order['currency']) ?></b></td> </tr> <?php break; case "excluded": ?> <tr> <td colspan="5"></td> <td class="border-bottom border-left border-mute-light fore-color-1 text-left"><?php echo l10n('cart_total') ?></td> <td class="border-bottom border-right border-mute-light text-left print-text-right"><b><?php echo Configuration::getCart()->toCurrency($order['price'], ' ' . $order['currency']) ?></b></td> </tr> <tr> <td colspan="5"></td> <td class="border-bottom border-left border-mute-light fore-color-1 text-left"><?php echo l10n('cart_vat') ?></td> <td class="border-bottom border-right border-mute-light text-left print-text-right"><b><?php echo Configuration::getCart()->toCurrency($order['vat'], ' ' . $order['currency']) ?></b></td> </tr> <tr> <td colspan="5"></td> <td class="border-bottom border-left border-mute-light fore-color-1 text-left"><?php echo l10n('cart_total_vat') ?></td> <td class="border-bottom border-right border-mute-light text-left print-text-right"><b><?php echo Configuration::getCart()->toCurrency($order['price_plus_vat'], ' ' . $order['currency']) ?></b></td> </tr> <?php break; case "none":?> <tr> <td colspan="4"></td> <td class="border-bottom border-left border-mute-light fore-color-1 head"><?php echo l10n('cart_total') ?></td> <td class="border-bottom border-right border-mute-light text-left print-text-right"><b><?php echo Configuration::getCart()->toCurrency($order['price_plus_vat'], ' ' . $order['currency']) ?></b></td> </tr> <? break; ?> <?php } ?> <!-- Coupon Code and grandtotal --> <?php if (isset($order['coupon']) && $order['coupon'] != "" && $order['coupon_value'] > 0): ?> <tr> <td colspan="<?php echo $order['vat_type'] != 'none' ? '5' : '4' ?>"></td> <td class="border-bottom border-left border-mute-light fore-color-1 text-left"><?php echo l10n('cart_coupon_code', "Coupon Code") ?></td> <td class="border-bottom border-right border-mute-light text-left print-text-right"><b>-<?php echo Configuration::getCart()->toCurrency($order['coupon_value'], ' ' . $order['currency']) . ' (' . $order['coupon'] . ')' ?></b></td> </tr> <tr> <td colspan="<?php echo $order['vat_type'] != 'none' ? '5' : '4' ?>"></td> <td class="border-bottom border-left border-mute-light fore-color-1 text-left"><?php echo l10n('cart_grand_total', "Grand total") ?></td> <td class="border-bottom border-right border-mute-light text-left print-text-right"><b><?php echo Configuration::getCart()->toCurrency($order['price_plus_vat'] - $order['coupon_value'], ' ' . $order['currency']) ?></b></td> </tr> <?php elseif (isset($order['coupon']) && $order['coupon'] != ""): ?> <tr> <td colspan="4"></td> <td class="border-bottom border-left border-mute-light fore-color-1 text-left"><?php echo l10n('cart_coupon_code', "Coupon Code") ?></td> <td class="border-bottom border-right border-mute-light text-left print-text-right"><b><?php echo $order['coupon'] ?></b></td> </tr> <?php endif; ?> </tbody> </table> <!--_________________________ Phone summary _________________________ --> <table class="noprint no-tablet no-desktop"> <tr> <th colspan="3" class="border-bottom-2 border-mute-light fore-color-1 text-center"><?php echo l10n('cart_product_list') ?></th> </tr> <?php $p = 0; foreach ($orderArray['products'] as $product): ?> <tr class="<?php echo $p % 2 != 0 ? 'background-blue-light' : '' ?>"> <td class="border-bottom border-left border-mute-light"><?php echo $product['name'] . ($product['option'] != "" ? " - " . $product['option'] . ($product['suboption'] != "" ? " - " . $product['suboption'] : "") : "") ?></td> <td class="border-bottom border-mute-light text-left"><?php echo $product['quantity'] ?></td> <td class="border-bottom border-right border-mute-light text-right print-text-right"><b><?php echo Configuration::getCart()->toCurrency($order['vat_type'] == "excluded" ? $product['price'] : $product['price_plus_vat'], ' ' . $order['currency']) ?></b></td> </tr> <?php $p++; endforeach; ?> <tr> <td colspan="3" class="border-bottom-2 border-mute-light fore-color-1 text-center"><?php echo l10n('cart_shipping') ?></td> </tr> <tr> <td class="border-left border-bottom border-mute-light" colspan="2"><?php echo $order['shipping_name'] ?></td> <td class="border-right border-bottom border-mute-light text-right print-text-right"><b><?php echo Configuration::getCart()->toCurrency($order['vat_type'] == "excluded" ? $order['shipping_price'] : $order['shipping_price_plus_vat'], ' ' . $order['currency']) ?></b></td> </tr> <tr> <td colspan="3" class="border-bottom-2 border-mute-light fore-color-1 text-center"><?php echo l10n('cart_payment') ?></td> </tr> <tr> <td class="border-left border-bottom border-mute-light" colspan="2"><?php echo $order['payment_name'] ?></td> <td class="border-right border-bottom border-mute-light text-right print-text-right"><b><?php echo Configuration::getCart()->toCurrency($order['vat_type'] == "excluded" ? $order['payment_price'] : $order['payment_price_plus_vat'], ' ' . $order['currency']) ?></b></td> </tr> <!-- Total Amounts --> <tr> <td colspan="3" class="fore-color-1 border-bottom-2 border-mute-light"><?php echo l10n('cart_total', 'Total') ?></td> </tr> <?php switch($order['vat_type']) { case "included": ?> <tr> <td class="border-left border-bottom border-mute-light text-left" colspan="2"><?php echo l10n('cart_total_vat') ?></td> <td class="border-right border-bottom border-mute-light text-right print-text-right"><b><?php echo Configuration::getCart()->toCurrency($order['price_plus_vat'], ' ' . $order['currency']) ?></b></td> </tr> <tr> <td class="border-left border-bottom border-mute-light text-left" colspan="2"><?php echo l10n('cart_vat_included') ?></td> <td class="border-right border-bottom border-mute-light text-right print-text-right"><b><?php echo Configuration::getCart()->toCurrency($order['vat'], ' ' . $order['currency']) ?></b></td> </tr> <?php break; case "excluded": ?> <tr> <td class="border-left border-bottom border-mute-light text-left" colspan="2"><?php echo l10n('cart_total') ?></td> <td class="border-right border-bottom border-mute-light text-right print-text-right"><b><?php echo Configuration::getCart()->toCurrency($order['price'], ' ' . $order['currency']) ?></b></td> </tr> <tr> <td class="border-left border-bottom border-mute-light text-left" colspan="2"><?php echo l10n('cart_vat') ?></td> <td class="border-right border-bottom border-mute-light text-right print-text-right"><b><?php echo Configuration::getCart()->toCurrency($order['vat'], ' ' . $order['currency']) ?></b></td> </tr> <tr> <td class="border-left border-bottom border-mute-light text-left" colspan="2"><?php echo l10n('cart_total_vat') ?></td> <td class="border-right border-bottom border-mute-light text-right print-text-right"><b><?php echo Configuration::getCart()->toCurrency($order['price_plus_vat'], ' ' . $order['currency']) ?></b></td> </tr> <?php break; case "none":?> <tr> <td class="border-left border-bottom border-mute-light" colspan="2"><?php echo l10n('cart_total') ?></td> <td class="border-right border-bottom border-mute-light text-right print-text-right"><b><?php echo Configuration::getCart()->toCurrency($order['price_plus_vat'], ' ' . $order['currency']) ?></b></td> </tr> <? break; ?> <?php } ?> <!-- Coupon Code and grandtotal --> <?php if (isset($order['coupon']) && $order['coupon'] != "" && $order['coupon_value'] > 0): ?> <tr> <td class="border-left border-bottom border-mute-light" colspan="2"><?php echo l10n('cart_coupon_code', "Coupon Code") ?></td> <td class="border-right border-bottom border-mute-light text-right print-text-right"><b>-<?php echo Configuration::getCart()->toCurrency($order['coupon_value'], ' ' . $order['currency']) . ' (' . $order['coupon'] . ')' ?></b></td> </tr> <tr> <td class="border-left border-bottom border-mute-light" colspan="2"><?php echo l10n('cart_grand_total', "Grand total") ?></td> <td class="border-right border-bottom border-mute-light text-right print-text-right"><b><?php echo Configuration::getCart()->toCurrency($order['price_plus_vat'] - $order['coupon_value'], ' ' . $order['currency']) ?></b></td> </tr> <?php elseif (isset($order['coupon']) && $order['coupon'] != ""): ?> <tr> <td class="border-left border-bottom border-mute-light" colspan="2"><?php echo l10n('cart_coupon_code', "Coupon Code") ?></td> <td class="border-right border-bottom border-mute-light text-right print-text-right"><b><?php echo $order['coupon'] ?></b></td> </tr> <?php endif; ?> </table> <div class="clearfix margin-top-2"></div> <a class="noprint button background-color-1 fore-white" href="cart-orders.php?status=<?php echo $order['status'] ?>"><?php echo l10n('cart_goback', "Back") ?></a> <div class="noprint text-center float-right "> <a class="button background-color-1 fore-white no-phone no-tablet" href="#" onclick="window.print(); return false;"><?php echo l10n('cart_print', "Print") ?></a> <?php if ($order['status'] == 'inbox'): ?> <a class="button background-color-1 fore-white" href="cart-order.php?id=<?php echo $order['id'] ?>&evade=true"><?php echo l10n('cart_evade', "Evade") ?></a> <?php endif; ?> <?php if (!Configuration::getControlPanel()->isWsx5Manager()): ?> <a class="button background-color-1 fore-white" href="cart-order.php?id=<?php echo $order['id'] ?>&exportcsv=true"><?php echo l10n('cart_export', "Export") ?></a> <?php endif; ?> </div> <div class="clearfix"></div>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件