PDF rausgenommen
This commit is contained in:
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/* ----------------------------------------------------------------------
|
||||
$Id: deu.php,v 1.1 2007/06/12 17:11:55 r23 Exp $
|
||||
|
||||
MyOOS [Shopsystem]
|
||||
https://www.oos-shop.de
|
||||
|
||||
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
|
||||
----------------------------------------------------------------------
|
||||
Released under the GNU General Public License
|
||||
---------------------------------------------------------------------- */
|
||||
|
||||
define('PLUGIN_EVENT_MANUFACTURERS_NAME', 'Zeige Hersteller an');
|
||||
define('PLUGIN_EVENT_MANUFACTURERS_DESC', 'Zeigt Hersteller an');
|
||||
|
||||
define('MAX_DISPLAY_MANUFACTURERS_IN_A_LIST_TITLE', 'Anzahl Hersteller');
|
||||
define('MAX_DISPLAY_MANUFACTURERS_IN_A_LIST_DESC', 'Wird im Hersteller-Block benutzt. Maximale Anzahl von Herstellern, die in einer Liste angezeigt werden. Wird diese Zahl von Herstellern überschritten, erscheint eine Auswahlbox anstelle der Standard-Liste');
|
||||
|
||||
define('MAX_MANUFACTURERS_LIST_TITLE', 'Anzahl Zeilen Herstellerauswahlbox');
|
||||
define('MAX_MANUFACTURERS_LIST_DESC', 'Wird im Hersteller-Block benutzt. Ist dieser Wert \'1\' so wird die normale Auswahlbox angezeigt. Anderenfalls wird eine Liste mit der angegebenen Anzahl von Zeilen angezeigt');
|
||||
|
||||
define('MAX_DISPLAY_MANUFACTURER_NAME_LEN_TITLE', 'Länge des Herstellernamens');
|
||||
define('MAX_DISPLAY_MANUFACTURER_NAME_LEN_DESC', 'Wird im Hersteller-Block benutzt. Maximale Anzahl anzuzeigender Zeichen des Herstellernamens');
|
||||
|
||||
|
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/* ----------------------------------------------------------------------
|
||||
$Id: eng.php,v 1.1 2007/06/12 17:11:55 r23 Exp $
|
||||
|
||||
MyOOS [Shopsystem]
|
||||
https://www.oos-shop.de
|
||||
|
||||
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
|
||||
----------------------------------------------------------------------
|
||||
Released under the GNU General Public License
|
||||
---------------------------------------------------------------------- */
|
||||
|
||||
define('PLUGIN_EVENT_MANUFACTURERS_NAME', 'Display Manufacturers');
|
||||
define('PLUGIN_EVENT_MANUFACTURERS_DESC', 'Set to true or false to display manufacturers.');
|
||||
|
||||
|
||||
define('MAX_DISPLAY_MANUFACTURERS_IN_A_LIST_TITLE', 'Manufacturers List');
|
||||
define('MAX_DISPLAY_MANUFACTURERS_IN_A_LIST_DESC', 'Used in manufacturers box; when the number of manufacturers exceeds this number, a drop-down list will be displayed instead of the default list');
|
||||
|
||||
define('MAX_MANUFACTURERS_LIST_TITLE', 'Manufacturers Select Size');
|
||||
define('MAX_MANUFACTURERS_LIST_DESC', 'Used in manufacturers box; when this value is \'1\' the classic drop-down list will be used for the manufacturers box. Otherwise, a list-box with the specified number of rows will be displayed.');
|
||||
|
||||
define('MAX_DISPLAY_MANUFACTURER_NAME_LEN_TITLE', 'Length of Manufacturers Name');
|
||||
define('MAX_DISPLAY_MANUFACTURER_NAME_LEN_DESC', 'Used in manufacturers box; maximum length of manufacturers name to display');
|
||||
|
||||
|
@ -0,0 +1,100 @@
|
||||
<?php
|
||||
/* ----------------------------------------------------------------------
|
||||
$Id: oos_event_manufacturers.php,v 1.1 2007/06/12 17:11:55 r23 Exp $
|
||||
|
||||
MyOOS [Shopsystem]
|
||||
https://www.oos-shop.de
|
||||
|
||||
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
|
||||
----------------------------------------------------------------------
|
||||
Based on:
|
||||
|
||||
osCommerce, Open Source E-Commerce Solutions
|
||||
http://www.oscommerce.com
|
||||
|
||||
Copyright (c) 2003 osCommerce
|
||||
----------------------------------------------------------------------
|
||||
Released under the GNU General Public License
|
||||
---------------------------------------------------------------------- */
|
||||
|
||||
/** ensure this file is being included by a parent file */
|
||||
defined( 'OOS_VALID_MOD' ) OR die( 'Direct Access to this location is not allowed.' );
|
||||
|
||||
|
||||
class oos_event_manufacturers {
|
||||
|
||||
var $name;
|
||||
var $description;
|
||||
var $uninstallable;
|
||||
var $depends;
|
||||
var $preceeds;
|
||||
var $author;
|
||||
var $version;
|
||||
var $requirements;
|
||||
|
||||
|
||||
/**
|
||||
* class constructor
|
||||
*/
|
||||
public function __construct() {
|
||||
|
||||
$this->name = PLUGIN_EVENT_MANUFACTURERS_NAME;
|
||||
$this->description = PLUGIN_EVENT_MANUFACTURERS_DESC;
|
||||
$this->uninstallable = TRUE;
|
||||
$this->author = 'MyOOS Development Team';
|
||||
$this->version = '1.0';
|
||||
$this->requirements = array(
|
||||
'oos' => '1.7.0',
|
||||
'smarty' => '2.6.9',
|
||||
'adodb' => '4.62',
|
||||
'php' => '5.9.0'
|
||||
);
|
||||
}
|
||||
|
||||
function create_plugin_instance() {
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
function install() {
|
||||
|
||||
$dbconn =& oosDBGetConn();
|
||||
$oostable =& oosDBGetTables();
|
||||
|
||||
$blocktable = $oostable['block'];
|
||||
$dbconn->Execute("UPDATE $blocktable
|
||||
SET block_status = 1
|
||||
WHERE block_file = 'manufacturers'");
|
||||
|
||||
$dbconn->Execute("UPDATE $blocktable
|
||||
SET block_status = 1
|
||||
WHERE block_file = 'manufacturer_info'");
|
||||
|
||||
$today = date("Y-m-d H:i:s");
|
||||
|
||||
$configurationtable = $oostable['configuration'];
|
||||
$dbconn->Execute("INSERT INTO $configurationtable (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('MAX_DISPLAY_MANUFACTURERS_IN_A_LIST', '0', 6, 7, NULL, " . $dbconn->DBTimeStamp($today) . ", NULL, NULL)");
|
||||
$dbconn->Execute("INSERT INTO $configurationtable (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('MAX_MANUFACTURERS_LIST', '1', 6, 8, NULL, " . $dbconn->DBTimeStamp($today) . ", NULL, NULL)");
|
||||
$dbconn->Execute("INSERT INTO $configurationtable (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('MAX_DISPLAY_MANUFACTURER_NAME_LEN', '15', 6, 9, NULL, " . $dbconn->DBTimeStamp($today) . ", NULL, NULL)");
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
function remove() {
|
||||
|
||||
$dbconn =& oosDBGetConn();
|
||||
$oostable =& oosDBGetTables();
|
||||
|
||||
$configurationtable = $oostable['configuration'];
|
||||
$dbconn->Execute("DELETE FROM $configurationtable WHERE configuration_key in ('" . implode("', '", $this->config_item()) . "')");
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
function config_item() {
|
||||
return array('MAX_DISPLAY_MANUFACTURERS_IN_A_LIST', 'MAX_MANUFACTURERS_LIST', 'MAX_DISPLAY_MANUFACTURER_NAME_LEN');
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user