⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 order_total.php

📁 this the oscommerce 3.0 aplha 4
💻 PHP
字号:
<?php/*  $Id: order_total.php 439 2006-02-19 16:33:18Z 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_Admin {    var $_group = 'order_total';    function install() {      global $osC_Database, $osC_Language;      $Qinstall = $osC_Database->query('insert into :table_templates_boxes (title, code, author_name, author_www, modules_group) values (:title, :code, :author_name, :author_www, :modules_group)');      $Qinstall->bindTable(':table_templates_boxes', TABLE_TEMPLATES_BOXES);      $Qinstall->bindValue(':title', $this->_title);      $Qinstall->bindValue(':code', $this->_code);      $Qinstall->bindValue(':author_name', $this->_author_name);      $Qinstall->bindValue(':author_www', $this->_author_www);      $Qinstall->bindValue(':modules_group', $this->_group);      $Qinstall->execute();//      foreach ($osC_Language->getAll() as $key => $value) {        if (file_exists(dirname(__FILE__) . '/../languages/en_US/modules/' . $this->_group . '/' . $this->_code . '.xml')) {          foreach ($osC_Language->extractDefinitions('en_US/modules/' . $this->_group . '/' . $this->_code . '.xml') as $def) {            $Qcheck = $osC_Database->query('select id from :table_languages_definitions where definition_key = :definition_key and content_group = :content_group and languages_id = :languages_id limit 1');            $Qcheck->bindTable(':table_languages_definitions', TABLE_LANGUAGES_DEFINITIONS);            $Qcheck->bindValue(':definition_key', $def['key']);            $Qcheck->bindValue(':content_group', $def['group']);            $Qcheck->bindInt(':languages_id', 1 /*$value['id']*/);            $Qcheck->execute();            if ($Qcheck->numberOfRows() === 1) {              $Qdef = $osC_Database->query('update :table_languages_definitions set definition_value = :definition_value where definition_key = :definition_key and content_group = :content_group and languages_id = :languages_id');            } else {              $Qdef = $osC_Database->query('insert into :table_languages_definitions (languages_id, content_group, definition_key, definition_value) values (:languages_id, :content_group, :definition_key, :definition_value)');            }            $Qdef->bindTable(':table_languages_definitions', TABLE_LANGUAGES_DEFINITIONS);            $Qdef->bindInt(':languages_id', 1 /*$value['id']*/);            $Qdef->bindValue(':content_group', $def['group']);            $Qdef->bindValue(':definition_key', $def['key']);            $Qdef->bindValue(':definition_value', $def['value']);            $Qdef->execute();          }        }//      }    }  }?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -