📄 total.php
字号:
<?php/* $Id: total.php 1498 2007-03-29 14:04:50Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2006 osCommerce This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License v2 (1991) as published by the Free Software Foundation.*/ class osC_OrderTotal_total extends osC_OrderTotal { var $output; var $_title, $_code = 'total', $_status = false, $_sort_order; function osC_OrderTotal_total() { global $osC_Language; $this->output = array(); $this->_title = $osC_Language->get('order_total_total_title'); $this->_description = $osC_Language->get('order_total_total_description'); $this->_status = (defined('MODULE_ORDER_TOTAL_TOTAL_STATUS') && (MODULE_ORDER_TOTAL_TOTAL_STATUS == 'true') ? true : false); $this->_sort_order = (defined('MODULE_ORDER_TOTAL_TOTAL_SORT_ORDER') ? MODULE_ORDER_TOTAL_TOTAL_SORT_ORDER : null); } function process() { global $osC_ShoppingCart, $osC_Currencies; $this->output[] = array('title' => $this->_title . ':', 'text' => '<b>' . $osC_Currencies->format($osC_ShoppingCart->getTotal()) . '</b>', 'value' => $osC_ShoppingCart->getTotal()); } }?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -