|
From: <os...@us...> - 2011-10-25 09:04:14
|
Revision: 3846
http://oscss.svn.sourceforge.net/oscss/?rev=3846&view=rev
Author: oscim
Date: 2011-10-25 09:04:08 +0000 (Tue, 25 Oct 2011)
Log Message:
-----------
Ajout element manquant des dashbords, ajout de widget de base a completer
correction coquille notice class language
Modified Paths:
--------------
trunk/catalog/admin/includes/data/dashboard.xml
trunk/catalog/admin/includes/languages/fr_FR/modules/pages/index.txt
trunk/catalog/common/classes/language.php
trunk/catalog/common/oscss.version.xml
trunk/catalog/install/includes/content/core.template_sample.php
Added Paths:
-----------
trunk/catalog/admin/includes/languages/fr_FR/widget/HelpConfig.txt
trunk/catalog/admin/includes/languages/fr_FR/widget/SsMenuConfig.txt
trunk/catalog/admin/includes/widget/HelpConfig.php
trunk/catalog/admin/includes/widget/SsMenuConfig.php
Modified: trunk/catalog/admin/includes/data/dashboard.xml
===================================================================
--- trunk/catalog/admin/includes/data/dashboard.xml 2011-10-24 21:23:43 UTC (rev 3845)
+++ trunk/catalog/admin/includes/data/dashboard.xml 2011-10-25 09:04:08 UTC (rev 3846)
@@ -85,4 +85,45 @@
<widget>info_connexion</widget>
</right>
</configuration>
+
+ <config_100>
+ <left>
+ <widget>HelpConfig</widget>
+ </left>
+ <right>
+ <widget>SsMenuConfig</widget>
+ </right>
+ </config_100>
+ <config_110>
+ <left>
+ <widget>HelpConfig</widget>
+ </left>
+ <right>
+ <widget>SsMenuConfig</widget>
+ </right>
+ </config_110>
+ <config_120>
+ <left>
+ <widget>HelpConfig</widget>
+ </left>
+ <right>
+ <widget>SsMenuConfig</widget>
+ </right>
+ </config_120>
+ <config_126>
+ <left>
+ <widget>HelpConfig</widget>
+ </left>
+ <right>
+ <widget>SsMenuConfig</widget>
+ </right>
+ </config_126>
+ <config_127>
+ <left>
+ <widget>HelpConfig</widget>
+ </left>
+ <right>
+ <widget>SsMenuConfig</widget>
+ </right>
+ </config_127>
</root>
\ No newline at end of file
Modified: trunk/catalog/admin/includes/languages/fr_FR/modules/pages/index.txt
===================================================================
--- trunk/catalog/admin/includes/languages/fr_FR/modules/pages/index.txt 2011-10-24 21:23:43 UTC (rev 3845)
+++ trunk/catalog/admin/includes/languages/fr_FR/modules/pages/index.txt 2011-10-25 09:04:08 UTC (rev 3846)
@@ -2,8 +2,8 @@
/**
@licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
@package osCSS-2 <www http://www.oscss.org>
- @version 2.1.0
- @date 23/03/11, 16:10
+ @version 2.1.1
+ @date 25/10/11, 11:00
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
*/
@@ -17,7 +17,13 @@
$lang['heading title modules']="Aperçu" ;
$lang['heading title configuration']="Aperçu de la configuration" ;
+$lang['heading title config_100']="Configuration de l'apparence" ;
+$lang['heading title config_110']="Configuration de base" ;
+$lang['heading title config_120']="Configuration avancée" ;
+$lang['heading title config_126']="Configuration de l'environement admin" ;
+$lang['heading title config_127']="Configuration commerciale de votre boutique" ;
+
$lang['HEADING_STOCK']="Stock Alerte" ;
$lang['TEXT_OSCSS_VERSION']="version d'osCSS" ;
$lang['ERROR_FOPEN']="Ne peut pas vérifier la mise à jour si 'allow_url_fopen' est désactivé sur votre système.." ;
Added: trunk/catalog/admin/includes/languages/fr_FR/widget/HelpConfig.txt
===================================================================
--- trunk/catalog/admin/includes/languages/fr_FR/widget/HelpConfig.txt (rev 0)
+++ trunk/catalog/admin/includes/languages/fr_FR/widget/HelpConfig.txt 2011-10-25 09:04:08 UTC (rev 3846)
@@ -0,0 +1,20 @@
+<?php
+/**
+ @licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
+ @portion code Copyright (c) 2002 osCommerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.1.1
+ @date 25/10/11, 11:00
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+*/
+
+$lang['widget help config config_110']="Configuration de base" ;
+$lang['widget help config config_100']="Configuration de l'apparence" ;
+$lang['widget help config config_120']="Configuration avancée" ;
+$lang['widget help config config_126']="Configuration de l'environement admin" ;
+$lang['widget help config config_127']="Configuration commerciale de votre boutique" ;
+
+
+$lang['widget text help config_110']="Dans cette section de la configuration, vous pouvez regler les informations de base de la boutique. Cette Etape est un prerequis pour un le focntionnement normal de votre shop. Notez que ces information ne sont en generale reglé qu'une seule fois; " ;
+?>
\ No newline at end of file
Added: trunk/catalog/admin/includes/languages/fr_FR/widget/SsMenuConfig.txt
===================================================================
--- trunk/catalog/admin/includes/languages/fr_FR/widget/SsMenuConfig.txt (rev 0)
+++ trunk/catalog/admin/includes/languages/fr_FR/widget/SsMenuConfig.txt 2011-10-25 09:04:08 UTC (rev 3846)
@@ -0,0 +1,16 @@
+<?php
+/**
+ @licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
+ @portion code Copyright (c) 2002 osCommerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.1.1
+ @date 25/10/11, 11:00
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+*/
+$lang['widget ssmenuconfig config_110']="Menu" ;
+$lang['widget ssmenuconfig config_100']="Menu" ;
+$lang['widget ssmenuconfig config_120']="Menu" ;
+$lang['widget ssmenuconfig config_126']="Menu" ;
+$lang['widget ssmenuconfig config_127']="Menu" ;
+?>
\ No newline at end of file
Added: trunk/catalog/admin/includes/widget/HelpConfig.php
===================================================================
--- trunk/catalog/admin/includes/widget/HelpConfig.php (rev 0)
+++ trunk/catalog/admin/includes/widget/HelpConfig.php 2011-10-25 09:04:08 UTC (rev 3846)
@@ -0,0 +1,28 @@
+<?php
+/**
+ @licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
+ @portion code Copyright (c) 2002 osCommerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.1.1
+ @date 25/10/11, 11:00
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+*/
+?>
+
+<div id="HelpConfig" class="<?php echo $widg['class'] ?>" >
+ <h3><?php echo __('widget help config '.@$_GET['type']) ?></h3>
+
+
+ <?php
+ switch(@$_GET['type']){
+
+ case 'config_110':
+ echo __('widget text help config_110');
+ break;
+
+
+ }
+
+ ?>
+</div>
\ No newline at end of file
Added: trunk/catalog/admin/includes/widget/SsMenuConfig.php
===================================================================
--- trunk/catalog/admin/includes/widget/SsMenuConfig.php (rev 0)
+++ trunk/catalog/admin/includes/widget/SsMenuConfig.php 2011-10-25 09:04:08 UTC (rev 3846)
@@ -0,0 +1,22 @@
+<?php
+/**
+ @licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
+ @portion code Copyright (c) 2002 osCommerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.1.1
+ @date 25/10/11, 11:00
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+*/
+require_once(DIR_WS_FUNCTIONS.'lib.configuration.php');
+?>
+
+
+<div id="SsMenuConfig" class="<?php echo $widg['class'] ?>" >
+ <h3><?php echo __('widget ssmenuconfig '.@$_GET['type']) ?></h3>
+
+ <div id="ssmenu">
+ <?php echo tep_ssmenu_configuration((int)substr($_GET['type'],7)) ?>
+ </div>
+ <br />
+</div>
\ No newline at end of file
Modified: trunk/catalog/common/classes/language.php
===================================================================
--- trunk/catalog/common/classes/language.php 2011-10-24 21:23:43 UTC (rev 3845)
+++ trunk/catalog/common/classes/language.php 2011-10-25 09:04:08 UTC (rev 3846)
@@ -175,7 +175,7 @@
private static function check_langue($directory,$public){
$base=(!$public)? DIR_FS_ADMIN : DIR_FS_CATALOG ;
if(is_dir($base.DIR_WS_LANGUAGES.$directory)) return true;
- elseif(tep_cst_define('OSCSS_ALTERNATE') == true && is_dir(CORE_PATH.DIR_WS_LANGUAGES.$directory)) return true;
+// elseif(tep_cst_define('OSCSS_ALTERNATE') == true && is_dir(CORE_PATH.DIR_WS_LANGUAGES.$directory)) return true;
return false;
}
}
Modified: trunk/catalog/common/oscss.version.xml
===================================================================
--- trunk/catalog/common/oscss.version.xml 2011-10-24 21:23:43 UTC (rev 3845)
+++ trunk/catalog/common/oscss.version.xml 2011-10-25 09:04:08 UTC (rev 3846)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<core>
<version>2.1.0 RC</version>
- <svn>3786</svn>
+ <svn>3845</svn>
<level>stable</level>
<template_admin>oscss</template_admin>
Modified: trunk/catalog/install/includes/content/core.template_sample.php
===================================================================
--- trunk/catalog/install/includes/content/core.template_sample.php 2011-10-24 21:23:43 UTC (rev 3845)
+++ trunk/catalog/install/includes/content/core.template_sample.php 2011-10-25 09:04:08 UTC (rev 3846)
@@ -71,7 +71,7 @@
Langue supplementaire
*/
- include($this->fs_document_root.$this->ws_admin_rand.'/includes/modules/configuration/cfg_31.php');
+ include($this->fs_document_root.$this->ws_admin_rand.'/includes/modules/configuration/modlangue.php');
if(isset($_POST['lang']) && is_array($_POST['lang']))
foreach($_POST['lang'] as $key=>$cfg){
core::recurse_copy( $this->fs_document_root . 'install/'.I_WS_DATA.'language/'.$key.'/public/', $this->fs_document_root .'includes/languages/');
@@ -81,7 +81,7 @@
osc_db_query($sql="insert into ".$this->db['DB_TABLE_PREFIX']."languages (name,code,image,directory,sort_order) VALUES ('".core::l10n($key)."','".$key."','icon.gif','".$key."','2') " );
$insert_id=tep_db_insert_id();
- cfg_31::repliqu_db_lang('1',$insert_id);
+ modlangue::repliqu_db_lang('1',$insert_id);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <os...@us...> - 2011-10-25 17:48:17
|
Revision: 3847
http://oscss.svn.sourceforge.net/oscss/?rev=3847&view=rev
Author: oscim
Date: 2011-10-25 17:48:09 +0000 (Tue, 25 Oct 2011)
Log Message:
-----------
suite ajout ete ajustement espace configuration
Ajout d'une page modorders
Modified Paths:
--------------
trunk/catalog/admin/includes/content/configuration.top.inc
trunk/catalog/admin/includes/languages/fr_FR/boxes/01_configuration.php
trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/cfg_128.txt
trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/modstock.txt
trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/my_boutique.txt
trunk/catalog/admin/includes/template/oscss/stylesheet-1.css
trunk/catalog/install/includes/language/fr_FR/oscss_config.txt
trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql
trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration_group.sql
Added Paths:
-----------
trunk/catalog/admin/includes/gabarit/configuration/modorder.listing.gab
trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/cfg_25.txt
trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/modorder.txt
trunk/catalog/admin/includes/modules/configuration/modorder.php
Modified: trunk/catalog/admin/includes/content/configuration.top.inc
===================================================================
--- trunk/catalog/admin/includes/content/configuration.top.inc 2011-10-25 09:04:08 UTC (rev 3846)
+++ trunk/catalog/admin/includes/content/configuration.top.inc 2011-10-25 17:48:09 UTC (rev 3847)
@@ -132,11 +132,15 @@
$cfg->load_db_values();
}
elseif(tep_not_null($gID) && is_numeric($gID) ){
-
$list=sqlconfiguration::fetch(array('group_id'=> (int)$gID), true);
- foreach($list as $row) {
+ if(is_object($list))
+ $liste[]=$list;
+ else
+ $liste=$list;
+ foreach($liste as $row) {
+
$cfgValue =configUtility::CallExecConfigLine($row->use, $row->key, $row->value);
if ($row->set) eval($s[]='$value_field = ' . $row->set . '"' . htmlspecialchars($row->value) . '","'.$row->key.'");');
@@ -152,6 +156,7 @@
}
+// exit;
$cfg_group_query = tep_db_query("select configuration_group_title from " . TABLE_CONFIGURATION_GROUP . " where configuration_group_id = '" . (int)$gID . "'");
Added: trunk/catalog/admin/includes/gabarit/configuration/modorder.listing.gab
===================================================================
--- trunk/catalog/admin/includes/gabarit/configuration/modorder.listing.gab (rev 0)
+++ trunk/catalog/admin/includes/gabarit/configuration/modorder.listing.gab 2011-10-25 17:48:09 UTC (rev 3847)
@@ -0,0 +1,111 @@
+<?php
+/**
+ @licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
+ @portion code Copyright (c) 2002 osCommerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.1.1
+ @date 22/09/11, 20:05
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+ @brief mise en forme de la gestion du stock
+*/
+?>
+
+<div id="ssmenu">
+ <?php echo tep_ssmenu_configuration($_GET['gparentID']) ?>
+</div>
+
+
+
+<h3 class="main-title"><?php echo __('modorder heading') ?></h3>
+
+<?php echo tep_draw_form('configuration', FILENAME_CONFIGURATION, 'gparentID=' . $_GET['gparentID'].'&gID=' . $_GET['gID'] . '&action=save_mutli') ?>
+
+
+<div class="block_form">
+
+ <fieldset class="block_field">
+
+ <legend><?php echo __('modorder legend status orders'). tep_image(DIR_WS_ICONS . 'icon_help.gif'); ?></legend>
+
+ <?php /** */ $row = modorder::$list['DEFAULT_ORDERS_STATUS_ID']; ?>
+ <h4 title="<?php echo '('.$row->key.' - ' . $row->set . ')'; ?>"><?php echo __($row->title). tep_image(DIR_WS_ICONS . 'icon_help.gif'); ?></h4>
+ <div class="block_input">
+ <label><?php if (tep_not_null($row->description))echo __($row->description); ?></label>
+ <p>
+ <?php echo $row->value_field ; ?>
+ </p>
+ </div>
+
+ <?php /** */ $row = modorder::$list['DEFAULT_ORDERS_STATUS_COMPLETED']; ?>
+ <h4 title="<?php echo '('.$row->key.' - ' . $row->set . ')'; ?>"><?php echo __($row->title). tep_image(DIR_WS_ICONS . 'icon_help.gif'); ?></h4>
+ <div class="block_input">
+ <label><?php if (tep_not_null($row->description))echo __($row->description); ?></label>
+ <p>
+ <?php echo $row->value_field ; ?>
+ </p>
+ </div>
+
+ <?php /** */ $row = modorder::$list['DEFAULT_ORDERS_STATUS_ANNULATE']; ?>
+ <h4 title="<?php echo '('.$row->key.' - ' . $row->set . ')'; ?>"><?php echo __($row->title). tep_image(DIR_WS_ICONS . 'icon_help.gif'); ?></h4>
+ <div class="block_input">
+ <label><?php if (tep_not_null($row->description))echo __($row->description); ?></label>
+ <p>
+ <?php echo $row->value_field ; ?>
+ </p>
+ </div>
+ </fieldset>
+
+
+
+ <fieldset class="block_field">
+ <?php /** */ $row = modorder::$list['USE_LOCAL_GENERAT_ORDER_REF']; ?>
+ <legend title="<?php echo '('.$row->key.' - ' . $row->set . ')'; ?>"><?php echo __($row->title). tep_image(DIR_WS_ICONS . 'icon_help.gif'); ?></legend>
+
+ <div class="block_input">
+ <label><?php if (tep_not_null($row->description))echo __($row->description); ?></label>
+ <p>
+ <?php echo $row->value_field ; ?>
+ </p>
+ </div>
+ </p>
+
+
+ <?php /** option de la gestion de stock, disponible que ci value precendente a true */ ?>
+ <?php if(_test_bool(modorder::$list['USE_LOCAL_GENERAT_ORDER_REF']->value)): ?>
+ <?php /** */ $row = modorder::$list['ORDERS_NUMBER_PREFIX']; ?>
+ <div class="block_input">
+ <label><?php if (tep_not_null($row->description))echo __($row->description); ?></label>
+ <p>
+ <?php echo $row->value_field ; ?>
+ </p>
+ </div>
+
+ <?php endif; ?>
+ </fieldset>
+
+ <fieldset class="block_field">
+ <legend class="block_field-title"><?php echo __('modorder legend other') ?></legend>
+
+ <ul class="block_input">
+ <?php foreach(modorder::$list as $row)
+ if(!in_array($row->key,array('DEFAULT_ORDERS_STATUS_ID', 'DEFAULT_ORDERS_STATUS_ANNULATE', 'DEFAULT_ORDERS_STATUS_COMPLETED', 'ORDERS_NUMBER_PREFIX', 'USE_LOCAL_GENERAT_ORDER_REF')) ) { ?>
+ <li id="nav_<?php echo $row->key ?>"><h5 title="<?php echo '('.$row->key.' - ' . $row->set . ')'; ?>"><?php echo __($row->title). tep_image(DIR_WS_ICONS . 'icon_help.gif'); ?></h5>
+
+ <div class="block_input tirroir">
+ <label><?php echo __($row->description); ?></label>
+ <p>
+ <?php echo $row->value_field ; ?>
+ </p>
+ </div>
+ </li>
+ <?php } ?>
+ </ul>
+ </fieldset>
+
+ <div class="button_nav">
+ <?php print tep_image_submit('button_copy.gif', IMAGE_UPDATE) .tep_js_back(tep_href_link(FILENAME_CONFIGURATION, 'gparentID=' . $_GET['gparentID'].'&gID=' . $_GET['gID'] )) ; ?>
+ </div>
+
+</div>
+</form>
\ No newline at end of file
Modified: trunk/catalog/admin/includes/languages/fr_FR/boxes/01_configuration.php
===================================================================
--- trunk/catalog/admin/includes/languages/fr_FR/boxes/01_configuration.php 2011-10-25 09:04:08 UTC (rev 3846)
+++ trunk/catalog/admin/includes/languages/fr_FR/boxes/01_configuration.php 2011-10-25 17:48:09 UTC (rev 3847)
@@ -60,4 +60,6 @@
define('BOX_HEADING_CONF_TEMPLATE',"Template" );
define('BOX_HEADING_CONF_BOX_CONFIGURATION_ENVIRONEMENT',"Environement" );
define('BOX_HEADING_CONF_TITLE_BOX_CONFIGURATION_ENVIRONEMENT',"Environement" );
+
+define('BOX_HEADING_CONF_CONFIGURATION_ORDERS',"Option des commandes" );
?>
\ No newline at end of file
Modified: trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/cfg_128.txt
===================================================================
--- trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/cfg_128.txt 2011-10-25 09:04:08 UTC (rev 3846)
+++ trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/cfg_128.txt 2011-10-25 17:48:09 UTC (rev 3847)
@@ -11,7 +11,6 @@
$lang['USE_LOCAL_GENERAT_PDF_S']="Generation des pdf(commande/BL..)" ;
$lang['USE_LOCAL_GENERAT_PDF_L']="Utiliser un outils externe pour la generation des document pdf, disponible coté public et privé" ;
-$lang['USE_LOCAL_GENERAT_ORDER_REF_S']="Référence des commandes" ;
-$lang['USE_LOCAL_GENERAT_ORDER_REF_L']="Utiliser la numerotaion interne, ou laisser un outils externe prendre en charge cette référence. Celle ci ne sera donc disponible qu'apres la prise en compte par l'outil tiers de la commande. Coté public, le numero generic interne est utilisé en attente de reference" ;
+
?>
\ No newline at end of file
Added: trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/cfg_25.txt
===================================================================
--- trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/cfg_25.txt (rev 0)
+++ trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/cfg_25.txt 2011-10-25 17:48:09 UTC (rev 3847)
@@ -0,0 +1,15 @@
+<?php
+/**
+ @licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
+ @portion code Copyright (c) 2002 osCommerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.1.1
+ @date 24/10/11, 11:18
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+*/
+$lang['MAX_DATEADDED_FOR_NEWX_PRODUCT_S']="durée des nouveaux produits" ;
+$lang['MAX_DATEADDED_FOR_NEWX_PRODUCT_L']="Nombre de jourspour être un nouveaux produits" ;
+
+
+?>
\ No newline at end of file
Added: trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/modorder.txt
===================================================================
--- trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/modorder.txt (rev 0)
+++ trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/modorder.txt 2011-10-25 17:48:09 UTC (rev 3847)
@@ -0,0 +1,41 @@
+<?php
+/**
+ @licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
+ @portion code Copyright (c) 2002 osCommerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.1.1
+ @date 27/09/11, 18:29
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+*/
+
+
+$lang['modorder heading']="Configuration gestion de commande" ;
+
+$lang['modorder legend status orders']="Gestion des status" ;
+$lang['modorder legend other']="Autres" ;
+
+
+
+
+/**
+ @remarks stock Valeur stocké en db pour conversion
+ @note
+ XXXX : key de configuration
+ XXXX_S : desciption courte
+ XXXX_L description longue
+*/
+
+$lang['DEFAULT_ORDERS_STATUS_ID_S']="État par défaut pour une nouvelle commande" ;
+$lang['DEFAULT_ORDERS_STATUS_ID_L']="Quand une nouvelle commande est créée, ce statut de commande lui sera assigné." ;
+$lang['DEFAULT_ORDERS_STATUS_COMPLETED_S']="Commande Cloturé" ;
+$lang['DEFAULT_ORDERS_STATUS_COMPLETED_L']="definir le status final d'une commande livre" ;
+$lang['DEFAULT_ORDERS_STATUS_ID_S']="Commande annulée" ;
+$lang['DEFAULT_ORDERS_STATUS_ID_L']="definir le status d'une commande annule." ;
+
+$lang['ORDERS_NUMBER_PREFIX_S']="Préfixe numéro commande" ;
+$lang['ORDERS_NUMBER_PREFIX_L']="Indiquer le préfixe des numéros de commande le chiffre precise le nombre de chiffre du numéro; ex: 'ym-5'(1005-00001); Laissez vide si vous ne voulez pas de préfixe." ;
+
+$lang['USE_LOCAL_GENERAT_ORDER_REF_S']="Référence des commandes" ;
+$lang['USE_LOCAL_GENERAT_ORDER_REF_L']="Utiliser la numerotaion interne, ou laisser un outils externe prendre en charge cette référence. Celle ci ne sera donc disponible qu'apres la prise en compte par l'outil tiers de la commande. Coté public, le numero generic interne est utilisé en attente de reference" ;
+?>
\ No newline at end of file
Modified: trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/modstock.txt
===================================================================
--- trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/modstock.txt 2011-10-25 09:04:08 UTC (rev 3846)
+++ trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/modstock.txt 2011-10-25 17:48:09 UTC (rev 3847)
@@ -61,4 +61,6 @@
$lang['PRODINFO_ATTRIBUTE_ACTUAL_PRICE_PULL_DOWN_L']="<strong>NOTE:</strong></font> N'affiche un résultat satisfaisant que si vous avez une seule option par produit.<br /><strong> Si True:</strong> Le prix des options sera affiché comme un prix de produit final.<br /><strong> False par défaut.</strong>" ;
$lang['PRODINFO_ATTRIBUTE_DISPLAY_STOCK_LIST_S']="Affichage table avec information stock" ;
$lang['PRODINFO_ATTRIBUTE_DISPLAY_STOCK_LIST_L']="<strong>Si True:</strong> Un tableau avec les informations sur le stock sera affiché au client. Si le produit n'a pas tous les attributs de stock suivi, la table ne sera pas affichée.<br /><strong>True par défaut.</strong>" ;
+$lang['PRODINFO_ATTRIBUTE_NO_ADD_OUT_OF_STOCK_S']="Avertir lors d\une rupture de stock lors d'un ajout au panier." ;
+$lang['PRODINFO_ATTRIBUTE_NO_ADD_OUT_OF_STOCK_L']="<strong>Si True:</strong> Le client ne pourra pas ajouter de produit hors stock avec une combinaison d'attributs. Un message javascript lui sera affiché." ;
?>
\ No newline at end of file
Modified: trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/my_boutique.txt
===================================================================
--- trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/my_boutique.txt 2011-10-25 09:04:08 UTC (rev 3846)
+++ trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/my_boutique.txt 2011-10-25 17:48:09 UTC (rev 3847)
@@ -34,8 +34,6 @@
-$lang['ORDERS_NUMBER_PREFIX_S']="Préfixe numéro commande" ;
-$lang['ORDERS_NUMBER_PREFIX_L']="Indiquer le préfixe des numéros de commande le chiffre precise le nombre de chiffre du numéro; ex: 'ym-5'(1005-00001); Laissez vide si vous ne voulez pas de préfixe." ;
$lang['STORE_OWNER_S']="Propriétaire de la boutique" ;
$lang['STORE_OWNER_L']="Indiquer le nom du propriétaire de la boutique." ;
Added: trunk/catalog/admin/includes/modules/configuration/modorder.php
===================================================================
--- trunk/catalog/admin/includes/modules/configuration/modorder.php (rev 0)
+++ trunk/catalog/admin/includes/modules/configuration/modorder.php 2011-10-25 17:48:09 UTC (rev 3847)
@@ -0,0 +1,149 @@
+<?php
+/**
+ @licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
+ @portion code Copyright (c) 2002 osCommerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.1.1
+ @date 22/09/11, 19:49
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+ @class modorder
+ @brief Mise en forme et structuration des options de stock
+*/
+
+
+Class modorder
+ implements ext_configuration
+ {
+ /**
+ @var array list template
+ */
+ public static $list;
+
+ public static $cfg;
+
+ /**
+ */
+ function __construct(){
+ global $oscss;
+ $this->code=__CLASS__;
+ global $messageStack, $language,$lang;
+ if (!is_writeable(DIR_FS_TEMPLATES)) $messageStack->add(ERROR_DESTINATION_NOT_WRITEABLE. 'template/', 'error');
+
+ $oscss->pile_file_lang(DIR_FS_ADMIN.DIR_WS_LANGUAGES.$language.'/modules/configuration/'.$this->code.'.txt');
+
+ self::$cfg =new sqlconfiguration();
+ }
+
+
+ /**
+ Action Prise en charge par le modules
+ @param
+ @e global $action
+ @e global $messageStack
+ */
+ public function draw_action(){
+ global $action,$messageStack;
+
+ $DB=Database::getInstance();
+ $gparentID = tep_db_prepare_input($_GET['gparentID']);
+ $gID= tep_db_prepare_input($_GET['gID']);
+
+ switch($action){
+ /**
+ @brief save page groupe
+ */
+ case 'save_mutli':
+ if(tep_not_null($gID) ){
+
+ $list=sqlconfiguration::fetch(array('group_id'=> (int)$gID), true);
+
+ foreach($list as $row) {
+
+ if(isset($_POST['configuration'][$row->key])) {
+ $configuration_value = tep_db_prepare_input($_POST['configuration'][$row->key]);
+
+ if( ($res=sqlconfiguration::update(array('key'=>$row->key , 'value'=>tep_db_input($configuration_value) ))) == false)$erreur[]=false;
+ else $erreur[]=true;
+
+ }
+
+ }
+
+ if(!in_array(false,$erreur)) $messageStack->add_session(SAVE_CONFIG_OK, 'success');
+ else $messageStack->add_session(SAVE_CONFIG_NOT_OK, 'error');
+
+ }
+
+ tep_redirect(tep_href_link(FILENAME_CONFIGURATION, 'gparentID=' . $gparentID.'&gID=' . $_GET['gID'] . '&cID=' . $cID));
+ break;
+ }
+ }
+
+ /**
+ @return array
+ */
+ public function load_db_values($Id){
+
+
+ $list_edit=array();
+ $gID = 129;
+
+ $list=sqlconfiguration::fetch(array('group_id'=> (int)$gID), true);
+
+ if(is_object($list))
+ $liste[]=$list;
+ else
+ $liste=$list;
+
+ foreach($liste as $row) {
+
+ $cfgValue =configUtility::CallExecConfigLine($row->use, $row->key, $row->value);
+
+ if ($row->set) eval($s[]='$value_field = ' . $row->set . '"' . htmlspecialchars($row->value) . '","'.$row->key.'");');
+ else $value_field = tep_draw_input_field('configuration['.$row->key.']', '',$row->value);
+
+ $conf = $row;
+ $row->cfgValue=$cfgValue;
+ $row->value_field=$value_field;
+
+ $list_edit[$row->key]=$conf;
+ }
+
+ return $list_edit;
+ }
+
+ /**
+ Appelé dans le header de page
+ */
+ public static function draw_header(){
+ ?>
+ <style type="text/css">
+ #central form label {
+ display: inline-block;
+ font-weight: normal;
+ margin: 5px 10px;
+ text-align: left;
+ white-space: pre-wrap;
+ width: 90%;
+ }
+ </style>
+ <?php
+ }
+
+ /**
+ Contenu central
+ @param
+ @e global $action
+ @e global $gparentID
+ */
+ public function draw(){
+ global $action,$gparentID;
+ if($action=='cfg') return;
+
+ self::$list = $this->load_db_values('');
+ return tep_get_include_contents('configuration/'.__CLASS__.'.listing');
+ }
+}
+
+?>
\ No newline at end of file
Modified: trunk/catalog/admin/includes/template/oscss/stylesheet-1.css
===================================================================
--- trunk/catalog/admin/includes/template/oscss/stylesheet-1.css 2011-10-25 09:04:08 UTC (rev 3846)
+++ trunk/catalog/admin/includes/template/oscss/stylesheet-1.css 2011-10-25 17:48:09 UTC (rev 3847)
@@ -224,6 +224,10 @@
#ssmenu a:hover { float:left; padding:5px 10px ; margin:0;font-size:10px;background:#eee;color:#000;text-shadow: 0 1px 0 #fff;-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.5);-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5);}
#menu_theme * {display:block;}
+ /* sous menu en widget */
+ #central #SsMenuConfig #ssmenu {background:none;}
+ #SsMenuConfig #ssmenu a { background: none repeat scroll 0 0 #797979; border-right: 1px solid #444444; clear: both; color: white; font-size: 10px; margin: 0 0 1px 25px; padding: 5px 10px; text-shadow: 0 1px 0 #000000; width: 40%;}
+ #SsMenuConfig #ssmenu a:hover { float:left; padding:5px 10px ; margin:0;font-size:10px;background:#eee;color:#000;text-shadow: 0 1px 0 #fff;-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.5);-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5);}
/* Habillage */
Modified: trunk/catalog/install/includes/language/fr_FR/oscss_config.txt
===================================================================
--- trunk/catalog/install/includes/language/fr_FR/oscss_config.txt 2011-10-25 09:04:08 UTC (rev 3846)
+++ trunk/catalog/install/includes/language/fr_FR/oscss_config.txt 2011-10-25 17:48:09 UTC (rev 3847)
@@ -17,25 +17,18 @@
$lg['OSC_ADMIN_GROUPS_ADMIN']="Administrateur" ;
$lg['OSC_ADMIN_GROUPS_SELLER']="Vendeur" ;
-/* osc_configuration */
-/// 0 template
-/// 2 Unite
-
-/// 3 max value
-
-
/// 6 module option
-$lg['DEFAULT_ORDERS_STATUS_ID_S']="État par défaut pour une nouvelle commande" ;
-$lg['DEFAULT_ORDERS_STATUS_ID_L']="Quand une nouvelle commande est créée, ce statut de commande lui sera assigné." ;
+
$lg['DEFAULT_RETURN_REASON_S']="Raison des retours par défaut" ;
$lg['DEFAULT_RETURN_REASON_L']="La raison par défaut appliquée pour tous retours." ;
$lg['DEFAULT_RETURN_STATUS_ID_S']="Statut des retours par défaut" ;
$lg['DEFAULT_RETURN_STATUS_ID_L']="Retour d'état par défaut attribué à tous nouveaux retours." ;
$lg['DEFAULT_REFUND_METHOD_S']="Méthode de remboursement par défaut" ;
$lg['DEFAULT_REFUND_METHOD_L']="Méthode de remboursement par défaut." ;
+
$lg['MODULE_GENERIC_INSTALLED_S']="Modules génériques installés" ;
$lg['MODULE_GENERIC_INSTALLED_L']="Liste des modules génériques installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
$lg['MODULE_GENERIC_INSTALLED_BO_S']="[admin]Modules génériques installés" ;
@@ -92,17 +85,8 @@
-/// 25 new products
-$lg['MAX_DATEADDED_FOR_NEWX_PRODUCT_S']="durée des nouveaux produits" ;
-$lg['MAX_DATEADDED_FOR_NEWX_PRODUCT_L']="Nombre de jourspour être un nouveaux produits" ;
-/// 26 products option
-$lg['PRODINFO_ATTRIBUTE_NO_ADD_OUT_OF_STOCK_S']="Avertir lors d\une rupture de stock lors d'un ajout au panier." ;
-$lg['PRODINFO_ATTRIBUTE_NO_ADD_OUT_OF_STOCK_L']="<strong>Si True:</strong> Le client ne pourra pas ajouter de produit hors stock avec une combinaison d'attributs. Un message javascript lui sera affiché." ;
-/// 27 general appearance
-
-
/// 128 Config environement shop
Modified: trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql
===================================================================
--- trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql 2011-10-25 09:04:08 UTC (rev 3846)
+++ trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql 2011-10-25 17:48:09 UTC (rev 3847)
@@ -23,8 +23,6 @@
## 0 Nom editable directement
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('TEMPLATE_NAME_S', 'TEMPLATE_NAME', 'genericLight', 'TEMPLATE_NAME_L', '0', '0', NOW(), NOW(), NULL, NULL);
-insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type) values ('Order completed', 'DEFAULT_ORDERS_STATUS_COMPLETED', '3', 'definir le status final d\'une commande livre', '0', '0', NULL, NOW(), NULL, NULL,2);
-insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type) values ('Order annulate', 'DEFAULT_ORDERS_STATUS_ANNULATE', '4', 'definir le status d\'une commande annule', '0', '0', NULL, NOW(), NULL, NULL,2);
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('DEFAULT_CURRENCY_S', 'DEFAULT_CURRENCY', 'EUR', 'DEFAULT_CURRENCY_L', '0', '0', NULL, NOW(), NULL, NULL);
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('DEFAULT_LANGUAGE_S', 'DEFAULT_LANGUAGE', 'fr', 'DEFAULT_LANGUAGE_L', '0', '1', NULL, NOW(), NULL, NULL);
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function , set_function) values ('WHOS_ONLINE_ACTIVE_S', 'WHOS_ONLINE_FLAG', 'false', 'WHOS_ONLINE_ACTIVE_L', '0', '0', NOW(), NOW(),NULL, 'tep_cfg_Non_Edit(\';\',');
@@ -34,7 +32,7 @@
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function , set_function,configuration_type) values ('CFG_CLASS_VIRTUAL_TYPE_4_S', 'CFG_CLASS_VIRTUAL_TYPE_4', '', 'CFG_CLASS_VIRTUAL_TYPE_L', '0', '0', NOW(), NOW(),NULL, 'tep_cfg_text_auto(', 1);
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function , set_function,configuration_type) values ('TYPE_VIRTUAL_PRODUCTS_S', 'TYPE_VIRTUAL_PRODUCTS', '3,4', 'TYPE_VIRTUAL_PRODUCTS_L', '0', '0', NOW(), NOW(),NULL, NULL, 2);
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function , set_function,configuration_type) values ('ORPHELIN_COLLECTOR_S', 'ORPHELIN_COLLECTOR', '1', 'ORPHELIN_COLLECTOR_L', '0', '0', NOW(), NOW(),NULL, NULL, 1);
-insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function , set_function,configuration_type) values ('PUBLIC_PAGE_TYPE_S', 'PUBLIC_PAGE_TYPE', 'listing,product,account,home,content', 'PUBLIC_PAGE_TYPE_L', '0', '0', NOW(), NOW(),NULL, NULL, 2);
+
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function , set_function,configuration_type) values ('PUBLIC_DRIVERS_PAGE_S', 'PUBLIC_DRIVERS_PAGE', 'GabaritTemplate', 'PUBLIC_DRIVERS_PAGE_L', '0', '0', NOW(), NOW(),NULL, NULL, 2);
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function , set_function,configuration_type) values ('NO_DISPLAY_SYMBOL_TAXE_S', 'NO_DISPLAY_SYMBOL_TAXE', 'GabaritTemplate', 'NO_DISPLAY_SYMBOL_TAXE_L', '0', '0', NOW(), NOW(),NULL, NULL, 2);
@@ -43,7 +41,7 @@
## 1 store
-insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, configuration_type) values ('ORDERS_NUMBER_PREFIX_S', 'ORDERS_NUMBER_PREFIX', 'ym-5', 'ORDERS_NUMBER_PREFIX_L', '1', '0', NULL, NOW(), '2');
+
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added) values ('STORE_NAME_S', 'STORE_NAME', 'osCSS Demo Shop', 'STORE_NAME_L', '1', '1', NULL, NOW());
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added) values ('STORE_OWNER_S', 'STORE_OWNER', 'osCSS Demo Shop', 'STORE_OWNER_L', '1', '2', NULL, NOW());
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, configuration_type) values ('STORE_OWNER_EMAIL_ADDRESS_S', 'STORE_OWNER_EMAIL_ADDRESS', 'root@localhost', 'STORE_OWNER_EMAIL_ADDRESS_L', '1', '3', NULL, NOW(), 2);
@@ -87,7 +85,6 @@
## 6 module option
-insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('DEFAULT_ORDERS_STATUS_ID_S', 'DEFAULT_ORDERS_STATUS_ID', '1', 'DEFAULT_ORDERS_STATUS_ID_L', '6', '2', NULL, NOW(), NULL, NULL);
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type ) values ('DEFAULT_RETURN_REASON_S', 'DEFAULT_RETURN_REASON', '2', 'DEFAULT_RETURN_REASON_L', '6', '3', '2003-02-27 06:44:29', '1000-01-01 00:00:00', NULL, NULL,4);
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type ) values ('DEFAULT_RETURN_STATUS_ID_S', 'DEFAULT_RETURN_STATUS_ID', '1', 'DEFAULT_RETURN_STATUS_ID_L', '6', '4', '2003-02-28 07:10:04', '1000-01-01 00:00:00', NULL, NULL,4);
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type ) values ('DEFAULT_REFUND_METHOD_S', 'DEFAULT_REFUND_METHOD', '1', 'DEFAULT_REFUND_METHOD_L', '6', '5', '2003-03-01 16:46:12', '1000-01-01 00:00:00', NULL, NULL,4);
@@ -350,8 +347,17 @@
## 128 General environement
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type) values ('USE_LOCAL_GENERAT_PDF_S', 'USE_LOCAL_GENERAT_PDF', '10', 'USE_LOCAL_GENERAT_PDF_L', '128', '5', NULL, NOW(), 'tep_value_for_humain', 'tep_cfg_select_option(array(\'true\', \'false\'),','3');
-insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type) values ('USE_LOCAL_GENERAT_ORDER_REF_S', 'USE_LOCAL_GENERAT_ORDER_REF', '10', 'USE_LOCAL_GENERAT_ORDER_REF_L', '128', '5', NULL, NOW(), 'tep_value_for_humain', 'tep_cfg_select_option(array(\'true\', \'false\'),','3');
+## 129 option orders
+
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_mod...
[truncated message content] |
|
From: <os...@us...> - 2011-10-29 11:30:18
|
Revision: 3848
http://oscss.svn.sourceforge.net/oscss/?rev=3848&view=rev
Author: oscim
Date: 2011-10-29 11:30:12 +0000 (Sat, 29 Oct 2011)
Log Message:
-----------
ajout sql drivers
Ajsutement databable pour mieux fragmenter les tables en fonction de leur orientation
Ajout d'une boxes pour seprarer la gestion des compte admin de la configurations
Modified Paths:
--------------
trunk/catalog/admin/includes/boxes/002_admin.php
trunk/catalog/admin/includes/classes/drivers/sqlgeozone.php
trunk/catalog/admin/includes/database_tables.php
trunk/catalog/includes/database_tables.php
Added Paths:
-----------
trunk/catalog/admin/includes/classes/drivers/sqlzonetogeozone.php
Modified: trunk/catalog/admin/includes/boxes/002_admin.php
===================================================================
--- trunk/catalog/admin/includes/boxes/002_admin.php 2011-10-25 17:48:09 UTC (rev 3847)
+++ trunk/catalog/admin/includes/boxes/002_admin.php 2011-10-29 11:30:12 UTC (rev 3848)
@@ -8,17 +8,9 @@
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
*/
- $configuration_groups_query = tep_db_query("SELECT configuration_group_id AS cgID, configuration_group_title AS cgTitle ,configuration_group_parentid AS gparentID from " . TABLE_CONFIGURATION_GROUP . " ORDER BY configuration_group_parentid , sort_order ASC");
+ $tabl_link[]= array(FILENAME_ADMINUSERS, 'BOX_ADMINISTRATOR_MEMBERS', 'members');
+ $tabl_link[]= array(FILENAME_ADMINGROUP, 'BOX_ADMINISTRATOR_GROUPS', 'groups');
+ $tabl_link[]= array(FILENAME_ADMIN_MEMBERS.'?gID=groups', 'BOX_ADMINISTRATOR_GROUPS_PERMISSION', 'groups');
- while ($configuration_groups = tep_db_fetch_array($configuration_groups_query)) {
- if ($configuration_groups['gparentID'] =='0') $tabl_link[$configuration_groups['cgID']]= array('ss_menu', $configuration_groups['cgTitle'], 'config_'.$configuration_groups['cgID'], @$img['config_'.$configuration_groups['cgID']]);
- else $tabl_link[$configuration_groups['gparentID']][4][]= array(FILENAME_CONFIGURATION.'?gparentID=' . $configuration_groups['gparentID'].'&gID=' . $configuration_groups['cgID'], $configuration_groups['cgTitle'], 'config_'.$configuration_groups['cgID'], @$img['config_'.$configuration_groups['cgID']]);
- }
-
-/* taxe et zone de taxe*/
- $tabl_link[130]= array('ss_menu','BOX_ZONE_AND_TAXE','taxes_in_zone');
- $tabl_link[130][4][]= array(FILENAME_COUNTRIES, 'BOX_TAXES_COUNTRIES', 'countries');
- $tabl_link[130][4][]= array(FILENAME_GEO_ZONES, 'BOX_TAXES_GEO_ZONES', 'taxes_geo_zone');
- $tabl_link[130][4][]= array(FILENAME_TAX_CLASSES, 'BOX_TAXES_TAX_CLASSES', 'taxes_classes');
-
+ $tabl_link[]= array(FILENAME_ADMINNOTIF, 'BOX_ADMIN_NOTIFICATIONS', 'groups');
?>
\ No newline at end of file
Modified: trunk/catalog/admin/includes/classes/drivers/sqlgeozone.php
===================================================================
--- trunk/catalog/admin/includes/classes/drivers/sqlgeozone.php 2011-10-25 17:48:09 UTC (rev 3847)
+++ trunk/catalog/admin/includes/classes/drivers/sqlgeozone.php 2011-10-29 11:30:12 UTC (rev 3848)
@@ -8,7 +8,11 @@
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
@class sqlgeozone
+ @file sqlgeozone.php
@brief manage insert/update/delete in zone tables
+
+ @note
+ @depend sqlzonetogeozone.php
*/
@@ -145,7 +149,8 @@
else
return false;
- $DB->query("delete from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . (int)$_id . "' ");
+// $DB->query("delete from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . (int)$_id . "' ");
+ sqlzonetogeozone::delete();
$DB->query("delete from " . TABLE_GEO_ZONES . " where geo_zone_id = '" . (int)$_id . "'");
Added: trunk/catalog/admin/includes/classes/drivers/sqlzonetogeozone.php
===================================================================
--- trunk/catalog/admin/includes/classes/drivers/sqlzonetogeozone.php (rev 0)
+++ trunk/catalog/admin/includes/classes/drivers/sqlzonetogeozone.php 2011-10-29 11:30:12 UTC (rev 3848)
@@ -0,0 +1,198 @@
+<?php if (!defined('HTTP_SERVER')) die('You can not access this file directly!');
+/**
+ @licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
+ @portion code Copyright (c) 2002 osCommerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.1.1
+ @date 23/10/11, 16:51
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+ @class sqlzonetogeozone
+ @file sqlzonetogeozone.php
+ @brief manage insert/update/delete in zone tables
+*/
+
+
+
+
+class sqlzonetogeozone
+ implements ModSqlDataDriver{
+
+ public static $modules;
+
+ protected static $_instance;
+
+ protected function __construct(){
+ }
+
+
+ public static function getInstance() {
+ if(self::$_instance == null) self::$_instance = new self();
+ return self::$_instance;
+ }
+
+
+ /**
+ @brief create new ligne in table configuration
+ */
+ public static function create($option){
+ self::getInstance();
+
+ if(!isset($option['geo_zone_id']))
+ return 'geo_zone_id';
+
+ $sql_data_array['geo_zone_id'] = tep_db_prepare_input($option['geo_zone_id']);
+
+ $sql_data_array['zone_country_id'] = (isset($option['zone_country_id'])) ? tep_db_prepare_input($option['zone_country_id']) :'NULL';
+ $sql_data_array['zone_id'] = (isset($option['zone_id'])) ? tep_db_prepare_input($option['zone_id']) :'NULL';
+
+ $sql_data_array['date_added'] = 'now()';
+
+ $res=tep_db_perform(TABLE_ZONES_TO_GEO_ZONES, $sql_data_array);
+
+ if(!$res)
+ return $res;
+ else
+ return $res->__get('insertId');
+ }
+
+ /**
+ @brief update ligne in table configuration
+ */
+ public static function update($option){
+ self::getInstance();
+
+ if(!isset($option['id']))
+ return 'id';
+
+ $where ='';
+ if(isset($option['id'])) $where .="AND association_id = '".(int)$option['id']."' ";
+
+ $sql_data_array['geo_zone_id'] = tep_db_prepare_input($option['geo_zone_id']);
+
+ $sql_data_array['zone_country_id'] = (isset($option['zone_country_id'])) ? tep_db_prepare_input($option['zone_country_id']) :'NULL';
+ $sql_data_array['zone_id'] = (isset($option['zone_id'])) ? tep_db_prepare_input($option['zone_id']) :'NULL';
+
+ $sql_data_array['last_modified'] = 'now()';
+ $res=tep_db_perform(TABLE_ZONES_TO_GEO_ZONES, $sql_data_array, 'update' , substr($where,3) );
+
+ return $res;
+ }
+
+ /**
+ @brief load ligne in table configuration
+ @param option array
+ id => row id int (configuration_id)
+ key => string key (configuration_key)
+ group_id => group_id int (configuration_group_id)
+ @param $shortkey use cleankey for return short key
+ @return
+
+ object(stdClass)[13]
+ public 'id' => string '1' (length=1)
+
+ OR
+ array(
+ object(stdClass)[13]
+ ...
+ object(stdClass)[13]
+ ..
+ )
+
+ */
+ public static function fetch($option,$shortkey=false){
+ self::getInstance();
+ $DB=Database::getInstance();
+
+ $sql ="";
+ if(isset($option['id'])) $sql .="AND association_id = '".(int)tep_db_input($option['id'])."' ";
+ if(isset($option['geo_zone_id'])) $sql .="AND geo_zone_id = '".(int)tep_db_input($option['geo_zone_id'])."' ";
+ if(isset($option['zone_id'])) $sql .="AND zone_id = '".(int)tep_db_input($option['zone_id'])."' ";
+ if(isset($option['zone_country_id'])) $sql .="AND zone_country_id = '".(int)tep_db_input($option['zone_country_id'])."' ";
+
+ if($sql=='')
+ return false;
+
+
+ $sql="SELECT * FROM " . TABLE_ZONES_TO_GEO_ZONES . " a ".
+// " LEFT JOIN " . TABLE_IMAGES_USED . " g ON (a.rowid=g.rowid) ".
+ " WHERE ".substr($sql,3);
+
+ $res=$DB->query($sql);
+
+ $num = $res->__get('numRows');
+
+ if($num == 1){
+ $result=$res->fetchAssoc();
+ return ((!$shortkey)? $result : self::CleanKey($result));
+ }
+ elseif($num > 1){
+ $array=array();
+
+ foreach($res->fetchAllAssoc() as $result)
+ $array[]= ((!$shortkey)? $result : self::CleanKey($result));
+
+ return $array;
+ }
+
+ return false;
+ }
+
+ /**
+ @brief delete row
+ */
+ public static function delete($option){
+ self::getInstance();
+ $DB=Database::getInstance();
+
+ if(isset($option['id']))
+ $where = " where association_id = '" .(int)tep_db_input($option['id']) . "'";
+ elseif(isset($option['geo_zone_id']))
+ $where = " where geo_zone_id = '" .(int)tep_db_input($option['geo_zone_id']) . "'";
+ else
+ return false;
+
+ $DB->query("delete from " . TABLE_ZONES_TO_GEO_ZONES . $where );
+
+
+ return true;
+ }
+
+
+ /**
+ @brief
+ @return array product empty
+ */
+ public static function Specimen(){
+ $par = array('association_id' => '',
+ 'zone_country_id' => '',
+ 'zone_id' => '',
+ 'geo_zone_id' => '',
+ 'last_modified' => '',
+ 'date_added' => '',
+ );
+
+ return self::CleanKey($par);
+ }
+
+
+
+ /**
+ @fn CleanKey()
+ @brief Clean string name key
+ */
+ private static function CleanKey($array){
+ self::getInstance();
+ $object= new stdclass();
+
+ foreach($array as $key=>$value){
+ $object->$key = $value;
+ }
+
+ return $object;
+ }
+
+}
+
+
+?>
\ No newline at end of file
Modified: trunk/catalog/admin/includes/database_tables.php
===================================================================
--- trunk/catalog/admin/includes/database_tables.php 2011-10-25 17:48:09 UTC (rev 3847)
+++ trunk/catalog/admin/includes/database_tables.php 2011-10-29 11:30:12 UTC (rev 3848)
@@ -20,9 +20,16 @@
define('TABLE_ADMIN_FILES2RIGHT', DB_TABLE_PREFIX . 'admin_m_files_to_right');
//Admin end
+
+// Dictionnaires begin
+ define('TABLE_ADDRESS_FORMAT', DB_TABLE_PREFIX . 'address_format');
+ define('TABLE_COUNTRIES', DB_TABLE_PREFIX . 'countries');
+// Dictionnaires end
+
+
+
// define the database table names used in the project
define('TABLE_ADDRESS_BOOK', DB_TABLE_PREFIX . 'address_book');
- define('TABLE_ADDRESS_FORMAT', DB_TABLE_PREFIX . 'address_format');
define('TABLE_CATEGORIES', DB_TABLE_PREFIX . 'categories');
define('TABLE_CATEGORIES_DESCRIPTION', DB_TABLE_PREFIX . 'categories_description');
@@ -36,7 +43,6 @@
define('TABLE_CONTENT_DESCRIPTION', DB_TABLE_PREFIX . 'content_description');
define('TABLE_CONTENT_TO_CATEGORIES', DB_TABLE_PREFIX . 'content_to_categories');
- define('TABLE_COUNTRIES', DB_TABLE_PREFIX . 'countries');
define('TABLE_CRONJOB', DB_TABLE_PREFIX . 'cronjob');
define('TABLE_CURRENCIES', DB_TABLE_PREFIX . 'currencies');
Modified: trunk/catalog/includes/database_tables.php
===================================================================
--- trunk/catalog/includes/database_tables.php 2011-10-25 17:48:09 UTC (rev 3847)
+++ trunk/catalog/includes/database_tables.php 2011-10-29 11:30:12 UTC (rev 3848)
@@ -9,13 +9,21 @@
@encode UTF-8
*/
+//Admin begin
define('TABLE_ADMIN_NOTIFICATION', DB_TABLE_PREFIX.'admin_notification');
define('TABLE_NOTIFICATION', DB_TABLE_PREFIX.'checknotif');
define('TABLE_ADMIN', DB_TABLE_PREFIX . 'admin_users');
+//Admin end
+
+// Dictionnaires begin
+ define('TABLE_ADDRESS_FORMAT', DB_TABLE_PREFIX . 'address_format');
+ define('TABLE_COUNTRIES', DB_TABLE_PREFIX . 'countries');
+// Dictionnaires end
+
+
// define the database table names used in the project
define('TABLE_ADDRESS_BOOK', DB_TABLE_PREFIX . 'address_book');
- define('TABLE_ADDRESS_FORMAT', DB_TABLE_PREFIX . 'address_format');
define('TABLE_CATEGORIES', DB_TABLE_PREFIX . 'categories');
define('TABLE_CATEGORIES_DESCRIPTION', DB_TABLE_PREFIX . 'categories_description');
@@ -28,7 +36,6 @@
define('TABLE_CONTENT_DESCRIPTION', DB_TABLE_PREFIX . 'content_description');
define('TABLE_CONTENT_TO_CATEGORIES', DB_TABLE_PREFIX . 'content_to_categories');
- define('TABLE_COUNTRIES', DB_TABLE_PREFIX . 'countries');
define('TABLE_CURRENCIES', DB_TABLE_PREFIX . 'currencies');
define('TABLE_CUSTOMERS', DB_TABLE_PREFIX . 'customers');
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <os...@us...> - 2011-10-31 14:19:46
|
Revision: 3853
http://oscss.svn.sourceforge.net/oscss/?rev=3853&view=rev
Author: oscim
Date: 2011-10-31 14:19:40 +0000 (Mon, 31 Oct 2011)
Log Message:
-----------
correction coquille
Ajout enregsitrement / mise a jour du cpath en db
suite ajustement des chemins
correction reliquat table virtual pour les produits
Modified Paths:
--------------
trunk/catalog/admin/includes/classes/categorieUtility.php
trunk/catalog/admin/includes/classes/drivers/sqlcategorie.php
trunk/catalog/admin/includes/modules/pages/index.php
trunk/catalog/common/classes/shoppingCart.php
trunk/catalog/includes/appli_top_Test.php
trunk/catalog/install/includes/modele/configure.txt
trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql
trunk/catalog/install/includes/sql/mysql/tables/osc_categories.sql
Modified: trunk/catalog/admin/includes/classes/categorieUtility.php
===================================================================
--- trunk/catalog/admin/includes/classes/categorieUtility.php 2011-10-31 11:49:06 UTC (rev 3852)
+++ trunk/catalog/admin/includes/classes/categorieUtility.php 2011-10-31 14:19:40 UTC (rev 3853)
@@ -60,21 +60,27 @@
}
/**
- Calcul et mise en forme du cpath
- @package oscss
- @author oscim - OscssTeam
+ @fn get_generated_category_path_ids($id, $from = 'category')
+ @brief Calcul et mise en forme du cpath
+ @param $id int id current category
+ @param $from string category/products
@return string (10_15 ou 8)
*/
public static function get_generated_category_path_ids($id, $from = 'category') {
$calculated_category_path_string = '';
$calculated_category_path = tep_generate_category_path($id, $from);
- for ($i=0, $n=sizeof($calculated_category_path); $i<$n; $i++) {
- for ($j=0, $k=sizeof($calculated_category_path[$i]); $j<$k; $j++) {
- $calculated_category_path_string .= $calculated_category_path[$i][$j]['id'] . '_';
- }
+
+ $carr=$calculated_category_path[0];
+
+ if(count($carr)>1) {
+ foreach(array_reverse($carr) as $v)
+ $calculated_category_path_string .=$v['id'] . '_';
+
$calculated_category_path_string = substr($calculated_category_path_string, 0, -1);
}
- if (strlen($calculated_category_path_string) < 1) $calculated_category_path_string = 0;
+ else
+ $calculated_category_path_string = $id;
+
return $calculated_category_path_string;
}
@@ -162,7 +168,8 @@
$category_query = tep_db_query("select cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . (int)$id . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "'");
$category = tep_db_fetch_array($category_query);
$categories_array[$index][] = array('id' => $id, 'text' => $category['categories_name']);
- if ( (tep_not_null($category['parent_id'])) && ($category['parent_id'] != '0') ) $categories_array = tep_generate_category_path($category['parent_id'], 'category', $categories_array, $index);
+ if ( (tep_not_null($category['parent_id'])) && ($category['parent_id'] != '0') )
+ $categories_array = tep_generate_category_path($category['parent_id'], 'category', $categories_array, $index);
}
return $categories_array;
Modified: trunk/catalog/admin/includes/classes/drivers/sqlcategorie.php
===================================================================
--- trunk/catalog/admin/includes/classes/drivers/sqlcategorie.php 2011-10-31 11:49:06 UTC (rev 3852)
+++ trunk/catalog/admin/includes/classes/drivers/sqlcategorie.php 2011-10-31 14:19:40 UTC (rev 3853)
@@ -7,7 +7,7 @@
@date 22/09/11, 20:11
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
- @class manage link table configuration
+ @class sqlcategorie
*/
@@ -74,6 +74,7 @@
$sql_data_array['date_added'] = 'now()';
$sql_data_array['sort_order'] = (!empty($post['sort_order'])) ? tep_db_prepare_input((int)$post['sort_order']) : 0 ;
$sql_data_array['parent_id'] = (!empty($sql_data_array['parent_id'])) ? tep_db_prepare_input((int)$sql_data_array['parent_id']) : 0 ;
+
$sql_data_array['categories_status'] = (!empty($post['categories_status'])) ? tep_db_prepare_input((int)$post['categories_status']) : 0 ;
$sql_data_array['categories_hidden'] = (!empty($post['categories_hidden'])) ? tep_db_prepare_input((int)$post['categories_hidden']) : 0 ;
@@ -84,12 +85,20 @@
$res=tep_db_perform(TABLE_CATEGORIES, $sql_data_array);
+
+
if(!$res)
return $res;
else
$categories_id = $res->__get('insertId');
+ // cpath adjust
+ $sql_data_array=array();
+ $sql_data_array['categories_cpath'] = categorieUtility::get_generated_category_path_ids($categories_id);
+ $res=tep_db_perform(TABLE_CATEGORIES, $sql_data_array, 'update', "categories_id = '" . $categories_id . "'");
+
+ // table language adjust
$categories_name_array = $_POST['categories_name'];
$categories_desc_array = $_POST['categories_description'];
@@ -143,6 +152,7 @@
$sql_data_array['last_modified'] = 'now()';
$sql_data_array['sort_order'] = (!empty($post['sort_order'])) ? tep_db_prepare_input((int)$post['sort_order']) : 0 ;
$sql_data_array['parent_id'] = (!empty($sql_data_array['parent_id'])) ? tep_db_prepare_input((int)$sql_data_array['parent_id']) : 0 ;
+ $sql_data_array['categories_cpath'] = categorieUtility::get_generated_category_path_ids($id,'category');
$sql_data_array['categories_status'] = (!empty($post['categories_status'])) ? tep_db_prepare_input((int)$post['categories_status']) : 0 ;
$sql_data_array['categories_hidden'] = (!empty($post['categories_hidden'])) ? tep_db_prepare_input((int)$post['categories_hidden']) : 0 ;
Modified: trunk/catalog/admin/includes/modules/pages/index.php
===================================================================
--- trunk/catalog/admin/includes/modules/pages/index.php 2011-10-31 11:49:06 UTC (rev 3852)
+++ trunk/catalog/admin/includes/modules/pages/index.php 2011-10-31 14:19:40 UTC (rev 3853)
@@ -3,8 +3,8 @@
@licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
@portion code Copyright (c) 2002 osCommerce
@package osCSS-2 <www http://www.oscss.org>
- @version 2.1.0
- @date 18/04/11, 18:46
+ @version 2.1.1
+ @date 31/10/11, 12:59
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
@class index
@@ -126,7 +126,7 @@
public static function load_db_values($ID){
global $messageStack, $languages_id;
try{
- if(!$SParser = simplexml_load_file(DIR_WS_INCLUDES.'data/'.$ID)) throw new Exception('Flux introuvable');
+ if(!$SParser = simplexml_load_file(DIR_FS_ROOT_DOCS.'admin/data/'.$ID)) throw new Exception('Flux introuvable');
foreach($SParser->xpath(self::$type) as $item){
foreach($item as $k=>$col){
Modified: trunk/catalog/common/classes/shoppingCart.php
===================================================================
--- trunk/catalog/common/classes/shoppingCart.php 2011-10-31 11:49:06 UTC (rev 3852)
+++ trunk/catalog/common/classes/shoppingCart.php 2011-10-31 14:19:40 UTC (rev 3853)
@@ -403,11 +403,11 @@
if ($this->count_contents() > 0) {
reset($this->contents);
while (list($products_id, ) = each($this->contents)) {
- $virtual_products_result = tep_db_query("select * from ".TABLE_PRODUCTS_VIRTUAL." where productsID=".(int)$products_id);
+ $virtual_products_result = tep_db_query("select products_type from ".TABLE_PRODUCTS." where products_id=".(int)$products_id);
if (tep_db_num_rows($virtual_products_result) > 0) {
$res=tep_db_fetch_array($virtual_products_result);
- $array_content_type[] = (in_array($res['typeID'], explode(';',TYPE_VIRTUAL_PRODUCTS)))? 'virtual' : 'physical';
+ $array_content_type[] = (in_array($res['products_type'], explode(';',TYPE_VIRTUAL_PRODUCTS)))? 'virtual' : 'physical';
}
else $array_content_type[] = 'physical';
}
Modified: trunk/catalog/includes/appli_top_Test.php
===================================================================
--- trunk/catalog/includes/appli_top_Test.php 2011-10-31 11:49:06 UTC (rev 3852)
+++ trunk/catalog/includes/appli_top_Test.php 2011-10-31 14:19:40 UTC (rev 3853)
@@ -29,6 +29,16 @@
}else require('includes/configure.php');
+/**
+ @remarks Force create folder in docs
+*/
+if(!is_dir(DIR_FS_ROOT_DOCS.'dev/'))
+ mkdir(DIR_FS_ROOT_DOCS.'dev/');
+
+if(!is_dir(DIR_FS_ROOT_DOCS.'dev/logs/'))
+ mkdir(DIR_FS_ROOT_DOCS.'dev/logs/');
+
+
if (OSCSS_DEBUG == true) {
$oscss_debug_infos = array();
error_reporting(-1);
@@ -88,7 +98,7 @@
include(DIR_WS_INCLUDES . 'inc_base_lib.php');
if(OSCSS_GARBAGE_ERROR == true){
- if (_cst_bool('STORE_PAGE_PARSE_STOCK_ERROR')) $errorHandler->attachFileWriter('sessions/err-php.log');
+ if (_cst_bool('STORE_PAGE_PARSE_STOCK_ERROR')) $errorHandler->attachFileWriter(DIR_FS_ROOT_DOCS.'dev/logs/dev-php.log');
if (_cst_bool('STORE_PAGE_PARSE_EMAIL_OWNER')) $errorHandler->attachMailWriter(STORE_OWNER_EMAIL_ADDRESS);
}
Modified: trunk/catalog/install/includes/modele/configure.txt
===================================================================
--- trunk/catalog/install/includes/modele/configure.txt 2011-10-31 11:49:06 UTC (rev 3852)
+++ trunk/catalog/install/includes/modele/configure.txt 2011-10-31 14:19:40 UTC (rev 3853)
@@ -34,8 +34,8 @@
define('HTTPS_COOKIE_DOMAIN', '%HTTPS_COOKIE_DOMAIN%');
define('HTTP_COOKIE_PATH', '%HTTP_COOKIE_PATH%');
define('HTTPS_COOKIE_PATH', '%HTTPS_COOKIE_PATH%');
- define('DIR_WS_HTTP_CATALOG', '%HTTP_SERVER%');
- define('DIR_WS_HTTPS_CATALOG', '%HTTPS_SERVER%');
+ define('DIR_WS_HTTP_CATALOG', '%HTTP_CATALOG%');
+ define('DIR_WS_HTTPS_CATALOG', '%HTTP_CATALOG%');
define('DIR_CLASSES', 'classes/');
define('DIR_FUNCTIONS', 'functions/');
@@ -54,7 +54,7 @@
define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
define('DIR_FS_CATALOG', '%FS_DOCUMENT_ROOT%');
- define('DIR_FS_ROOT_DOCS', '%FS_DOCUMENT_ROOT%/Documents/');
+ define('DIR_FS_ROOT_DOCS', '%FS_DOCUMENT_ROOT%Documents/');
define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
Modified: trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql
===================================================================
--- trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql 2011-10-31 11:49:06 UTC (rev 3852)
+++ trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql 2011-10-31 14:19:40 UTC (rev 3853)
@@ -360,4 +360,9 @@
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type) values ('DEFAULT_ORDERS_STATUS_ID_S', 'DEFAULT_ORDERS_STATUS_ANNULATE', '4', 'DEFAULT_ORDERS_STATUS_ID_L', '129', '0', NULL, NOW(), NULL, NULL,2);
## 130 option data types
-insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function , set_function,configuration_type) values ('PUBLIC_PAGE_TYPE_S', 'PUBLIC_PAGE_TYPE', 'listing,product,account,home,content', 'PUBLIC_PAGE_TYPE_L', '130', '0', NOW(), NOW(),NULL, NULL, 2);
\ No newline at end of file
+
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function , set_function,configuration_type) values ('PUBLIC_PAGE_TYPE_S', 'PUBLIC_PAGE_TYPE', 'listing,product,account,home,content', 'PUBLIC_PAGE_TYPE_L', '130', '0', NOW(), NOW(),NULL, NULL, 2);
+
+
+COMMIT;
+
Modified: trunk/catalog/install/includes/sql/mysql/tables/osc_categories.sql
===================================================================
--- trunk/catalog/install/includes/sql/mysql/tables/osc_categories.sql 2011-10-31 11:49:06 UTC (rev 3852)
+++ trunk/catalog/install/includes/sql/mysql/tables/osc_categories.sql 2011-10-31 14:19:40 UTC (rev 3853)
@@ -4,6 +4,7 @@
categories_id int(11) not null auto_increment,
categories_image varchar(64) ,
parent_id int(11) default '0' not null ,
+ categories_cpath varchar(64) not null,
sort_order int(3) ,
date_added datetime default '1000-01-01 00:00:00' null ,
last_modified datetime default '1000-01-01 00:00:00' null ,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <os...@us...> - 2011-10-31 19:18:17
|
Revision: 3854
http://oscss.svn.sourceforge.net/oscss/?rev=3854&view=rev
Author: oscim
Date: 2011-10-31 19:18:09 +0000 (Mon, 31 Oct 2011)
Log Message:
-----------
Ajustement sql
ajustement fichier de langue de l'install
Modified Paths:
--------------
trunk/catalog/admin/includes/exts/package/packageRepository.php
trunk/catalog/admin/includes/modules/pages/attributes.php
trunk/catalog/install/includes/functions/database.php
trunk/catalog/install/includes/language/fr_FR/oscss_config.txt
trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql
trunk/catalog/install/includes/sql/mysql/tables/osc_products.sql
Added Paths:
-----------
trunk/catalog/install/includes/language/fr_FR/osc_admin_groups.txt
trunk/catalog/install/includes/language/fr_FR/osc_categories_description.txt
trunk/catalog/install/includes/language/fr_FR/osc_configuration.txt
trunk/catalog/install/includes/language/fr_FR/osc_content_description.txt
trunk/catalog/install/includes/language/fr_FR/osc_customers_groups.txt
trunk/catalog/install/includes/language/fr_FR/osc_full_tag_description.txt
trunk/catalog/install/includes/language/fr_FR/osc_languages.txt
trunk/catalog/install/includes/language/fr_FR/osc_navigation_links_description.txt
trunk/catalog/install/includes/language/fr_FR/osc_status.txt
Modified: trunk/catalog/admin/includes/exts/package/packageRepository.php
===================================================================
--- trunk/catalog/admin/includes/exts/package/packageRepository.php 2011-10-31 14:19:40 UTC (rev 3853)
+++ trunk/catalog/admin/includes/exts/package/packageRepository.php 2011-10-31 19:18:09 UTC (rev 3854)
@@ -3,8 +3,8 @@
@licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
@portion code Copyright (c) 2002 osCommerce
@package osCSS-2 <www http://www.oscss.org>
- @version 2.1.0
- @date 27/05/11, 14:28
+ @version 2.1.1
+ @date 31/10/11, 15:47
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
@class packageRepository
@@ -39,7 +39,7 @@
global $messageStack,$osCSS_Cache;
try{
//! load xml file
- if(!$Parser = @simplexml_load_file(DIR_FS_ADMIN.DIR_WS_INCLUDES.'data/'.self::REPOSITORY_SOURCE)) throw new Exception('Flux introuvable');
+ if(!$Parser = @simplexml_load_file(DIR_FS_ROOT_DOCS.'admin/data/'.self::REPOSITORY_SOURCE)) throw new Exception('Flux introuvable');
$FeedItem = $Parser->xpath('channel');
if(!$osCSS_Cache->read(parent::REPOSITORY_CACHE,0,true)) throw new Exception('Cache introuvable');
@@ -67,7 +67,7 @@
global $messageStack;
try{
//! load xml file
- if(!$Parser = @simplexml_load_file(DIR_FS_ADMIN.DIR_WS_INCLUDES.'data/'.self::REPOSITORY_SOURCE)) throw new Exception('Flux introuvable');
+ if(!$Parser = @simplexml_load_file(DIR_FS_ROOT_DOCS.'admin/data/'.self::REPOSITORY_SOURCE)) throw new Exception('Flux introuvable');
$FeedItem = $Parser->xpath('channel');
foreach($FeedItem as $item){
if((string)$item->key == (string)$key) return $item;
@@ -104,7 +104,7 @@
$channel = $dom->createElement("channel");
$rss->appendChild($channel);
- if(!$SP = simplexml_load_file(DIR_FS_ADMIN.DIR_WS_INCLUDES.'data/'.parent::REPOSITORY_SOURCE)) throw new Exception('Fichier Source introuvable '.DIR_WS_ADMIN.DIR_WS_INCLUDES.'data/'.parent::REPOSITORY_SOURCE);
+ if(!$SP = simplexml_load_file(DIR_FS_ROOT_DOCS.'admin/data/'.parent::REPOSITORY_SOURCE)) throw new Exception('Fichier Source introuvable '.DIR_WS_ADMIN.DIR_WS_INCLUDES.'data/'.parent::REPOSITORY_SOURCE);
foreach($SP as $repo){
if(!$re= fileUtility::url_fopen($repo->repository.$repo->rep_listing) ) $messageStack->add_session('recuperation repository impossible :'.$repo->repository,'error' );
@@ -210,9 +210,9 @@
else $messageStack->add_session(__('repository ok :').' local','success' );
- @unlink(DIR_FS_ADMIN.DIR_WS_INCLUDES.'data/'.parent::REPOSITORY_DATA);
+ @unlink(DIR_FS_ROOT_DOCS.'admin/data/'.parent::REPOSITORY_DATA);
- if($dom->save(DIR_FS_ADMIN.DIR_WS_INCLUDES.'data/'.parent::REPOSITORY_DATA) !=true)throw new Exception('erreur enregistrement');
+ if($dom->save(DIR_FS_ROOT_DOCS.'admin/data/'.parent::REPOSITORY_DATA) !=true)throw new Exception('erreur enregistrement');
$osCSS_Cache->writeBuffer($var_file,true);
Modified: trunk/catalog/admin/includes/modules/pages/attributes.php
===================================================================
--- trunk/catalog/admin/includes/modules/pages/attributes.php 2011-10-31 14:19:40 UTC (rev 3853)
+++ trunk/catalog/admin/includes/modules/pages/attributes.php 2011-10-31 19:18:09 UTC (rev 3854)
@@ -3,8 +3,8 @@
@licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
@portion code Copyright (c) 2002 osCommerce
@package osCSS-2 <www http://www.oscss.org>
- @version 2.1.0
- @date 15/05/11, 19:25
+ @version 2.1.1
+ @date 31/10/11, 16:21
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
@class attributes
@@ -398,7 +398,7 @@
self::$poID=(int)$id;
self::$type='values_for_option';
self::load_db_values((int)$id);
- return MGabCont::CallGab('inline','display_view',__CLASS__);
+ return MGabCont::CallGab('options.inline','display_view',__CLASS__);
}
Modified: trunk/catalog/install/includes/functions/database.php
===================================================================
--- trunk/catalog/install/includes/functions/database.php 2011-10-31 14:19:40 UTC (rev 3853)
+++ trunk/catalog/install/includes/functions/database.php 2011-10-31 19:18:09 UTC (rev 3854)
@@ -251,7 +251,7 @@
if (!$db_error) {
if (file_exists($sql_file)) {
- $file_lg= dirname($_SERVER['SCRIPT_FILENAME']).'/'.WS_LANGUAGE.DC_LOADER_LANG.'/'.str_replace('.sql','.txt',basename($sql_file));
+ $file_lg= dirname($_SERVER['SCRIPT_FILENAME']).'/'.WS_LANGUAGE.DC_LOADER_LANG.'/'.preg_replace(array('#(.sql)#i','#^([0-9]*_)#i'),array('.txt','') ,basename($sql_file));
if( $file_lg_sample !='')include($file_lg_sample);
elseif(file_exists($file_lg))include($file_lg);
Added: trunk/catalog/install/includes/language/fr_FR/osc_admin_groups.txt
===================================================================
--- trunk/catalog/install/includes/language/fr_FR/osc_admin_groups.txt (rev 0)
+++ trunk/catalog/install/includes/language/fr_FR/osc_admin_groups.txt 2011-10-31 19:18:09 UTC (rev 3854)
@@ -0,0 +1,16 @@
+<?php
+/**
+ @licence GPL 2005-2010 The osCSS developers - osCSS Open Source E-commerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.1.0
+ @date 18/12/10, 10:50
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+*/
+
+
+/* osc_admin_groups */
+$lg['OSC_ADMIN_GROUPS_ADMIN']="Administrateur" ;
+$lg['OSC_ADMIN_GROUPS_SELLER']="Vendeur" ;
+
+?>
\ No newline at end of file
Added: trunk/catalog/install/includes/language/fr_FR/osc_categories_description.txt
===================================================================
--- trunk/catalog/install/includes/language/fr_FR/osc_categories_description.txt (rev 0)
+++ trunk/catalog/install/includes/language/fr_FR/osc_categories_description.txt 2011-10-31 19:18:09 UTC (rev 3854)
@@ -0,0 +1,17 @@
+<?php
+/**
+ @licence GPL 2005-2010 The osCSS developers - osCSS Open Source E-commerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.1.0
+ @date 18/12/10, 10:50
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+*/
+
+
+/* osc_categories_description */
+$lg['CAT1']="Non classé(s)" ;
+$lg['CAT2']="Informations" ;
+$lg['CAT3']="Home" ;
+
+?>
\ No newline at end of file
Added: trunk/catalog/install/includes/language/fr_FR/osc_configuration.txt
===================================================================
--- trunk/catalog/install/includes/language/fr_FR/osc_configuration.txt (rev 0)
+++ trunk/catalog/install/includes/language/fr_FR/osc_configuration.txt 2011-10-31 19:18:09 UTC (rev 3854)
@@ -0,0 +1,67 @@
+<?php
+/**
+ @licence GPL 2005-2010 The osCSS developers - osCSS Open Source E-commerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.1.0
+ @date 18/12/10, 10:50
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+*/
+
+
+$lg['MODULE_GENERIC_INSTALLED_S']="Modules génériques installés" ;
+$lg['MODULE_GENERIC_INSTALLED_L']="Liste des modules génériques installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
+$lg['MODULE_GENERIC_INSTALLED_BO_S']="[admin]Modules génériques installés" ;
+$lg['MODULE_GENERIC_INSTALLED_BO_L']="Liste des modules génériques installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
+$lg['MODULE_ACAPRO_INSTALLED_S']="Modules de produit installés" ;
+$lg['MODULE_ACAPRO_INSTALLED_L']="Liste des modules de produit installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
+$lg['MODULE_ACAPRO_INSTALLED_BO_S']="[admin]Modules de produit installés" ;
+$lg['MODULE_ACAPRO_INSTALLED_BO_L']="Liste des modules de produit installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
+$lg['MODULE_CONTENT_INSTALLED_S']="Modules de contenu installés" ;
+$lg['MODULE_CONTENT_INSTALLED_L']="Liste des modules de contenu installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
+$lg['MODULE_CONTENT_INSTALLED_BO_S']="[admin] Modules de contenu installés" ;
+$lg['MODULE_CONTENT_INSTALLED_BO_L']="Liste des modules de contenu installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
+$lg['MODULE_ACACAT_INSTALLED_S']="Modules de catégorie installés" ;
+$lg['MODULE_ACACAT_INSTALLED_L']="Liste des modules de catégories installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
+$lg['MODULE_ACACAT_INSTALLED_BO_S']="[admin]Modules de catégorie installés" ;
+$lg['MODULE_ACACAT_INSTALLED_BO_L']="Liste des modules de catégorie installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
+$lg['MODULE_ACCOUNT_INSTALLED_S']="Modules de compte installés" ;
+$lg['MODULE_ACCOUNT_INSTALLED_L']="Liste des modules de compte installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
+$lg['MODULE_ACCOUNT_INSTALLED_BO_S']="[admin]Modules de compte installés" ;
+$lg['MODULE_ACCOUNT_INSTALLED_BO_L']="Liste des modules de compte installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
+$lg['MODULE_LISTING_INSTALLED_S']="Modules de liste installés" ;
+$lg['MODULE_LISTING_INSTALLED_L']="Liste des modules de liste installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
+$lg['MODULE_LISTING_INSTALLED_BO_S']="[admin]Modules de liste installés" ;
+$lg['MODULE_LISTING_INSTALLED_BO_L']="Liste des modules de liste installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
+$lg['MODULE_HOME_INSTALLED_S']="Modules d'accueil installés" ;
+$lg['MODULE_HOME_INSTALLED_L']="Liste des modules d'accueil installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
+$lg['MODULE_HOME_INSTALLED_BO_S']="[admin]Modules d'accueil installés" ;
+$lg['MODULE_HOME_INSTALLED_BO_L']="Liste des modules d'accueil installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
+$lg['MODULE_CHECKOUT_PROCESS_INSTALLED_S']="Modules de commande installés" ;
+$lg['MODULE_CHECKOUT_PROCESS_INSTALLED_L']="Liste des modules de commande installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
+$lg['MODULE_CHECKOUT_PROCESS_INSTALLED_BO_S']="[admin]Modules de commande installés" ;
+$lg['MODULE_CHECKOUT_PROCESS_INSTALLED_BO_L']="Liste des modules de commande installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
+$lg['MODULE_SHIPPING_INSTALLED_S']="Modules de livraison installés" ;
+$lg['MODULE_SHIPPING_INSTALLED_L']="Liste des modules de livraison installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: ups.php;flat.php;item.php)" ;
+$lg['MODULE_PAYMENT_INSTALLED_S']="Modules de paiement installés" ;
+$lg['MODULE_PAYMENT_INSTALLED_L']="Liste des modules de paiement installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
+$lg['MODULE_ORDER_TOTAL_INSTALLED_S']="Modules total commande installés" ;
+$lg['MODULE_ORDER_TOTAL_INSTALLED_L']="Liste des modules de total installés; séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: ot_subtotal.php;ot_tax.php;ot_shipping.php;ot_total.php)" ;
+$lg['PLUGIN_GENERIC_INSTALLED_S']="Plugins génériques installés" ;
+$lg['PLUGIN_GENERIC_INSTALLED_L']="Liste des plugins génériques installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
+$lg['PLUGIN_PRODUCT_INSTALLED_S']="Plugins de produit installés" ;
+$lg['PLUGIN_PRODUCT_INSTALLED_L']="Liste des plugins de produit installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
+$lg['PLUGIN_ACCOUNT_INSTALLED_S']="Plugins de compte installés" ;
+$lg['PLUGIN_ACCOUNT_INSTALLED_L']="Liste des plugins de compte installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
+$lg['PLUGIN_LISTING_INSTALLED_S']="Plugins de liste installés" ;
+$lg['PLUGIN_LISTING_INSTALLED_L']="Liste des plugins de liste installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
+$lg['PLUGIN_HOME_INSTALLED_S']="Plugins d'accueil installés" ;
+$lg['PLUGIN_HOME_INSTALLED_L']="Liste des plugins d'accueil installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
+
+
+/// 19 tell a friend
+$lg['ALLOW_GUEST_TO_TELL_A_FRIEND_S']="Permettre la recommandation d'un article" ;
+$lg['ALLOW_GUEST_TO_TELL_A_FRIEND_L']="Permettre aux visiteurs de recommander un article." ;
+
+
+?>
\ No newline at end of file
Added: trunk/catalog/install/includes/language/fr_FR/osc_content_description.txt
===================================================================
--- trunk/catalog/install/includes/language/fr_FR/osc_content_description.txt (rev 0)
+++ trunk/catalog/install/includes/language/fr_FR/osc_content_description.txt 2011-10-31 19:18:09 UTC (rev 3854)
@@ -0,0 +1,23 @@
+<?php
+/**
+ @licence GPL 2005-2010 The osCSS developers - osCSS Open Source E-commerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.1.0
+ @date 18/12/10, 10:50
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+*/
+
+
+/* osc_content_description */
+$lg['OSC_CONTENT_DESCRIPTION_SHIPPING_T']="Expédition et retours" ;
+$lg['OSC_CONTENT_DESCRIPTION_SHIPPING_D']="<p>Insérer ici vos informations d'expédition & retours.</p>" ;
+$lg['OSC_CONTENT_DESCRIPTION_PRIVACY_T']="Vie privée" ;
+$lg['OSC_CONTENT_DESCRIPTION_PRIVACY_D']="<p>Insérer ici vos remarques de confidentialité.</p>" ;
+$lg['OSC_CONTENT_DESCRIPTION_CONDITIONS_T']="Conditions d'utilisation" ;
+$lg['OSC_CONTENT_DESCRIPTION_CONDITIONS_D']="<p>Insérer ici vos conditions d'usage.</p>" ;
+$lg['OSC_CONTENT_DESCRIPTION_CONTACT_T']="Contact" ;
+$lg['OSC_CONTENT_DESCRIPTION_CONTACT_D']="<p>Utiliser ce formulaire pour contacter notre service clientèle.</p>" ;
+
+
+?>
\ No newline at end of file
Added: trunk/catalog/install/includes/language/fr_FR/osc_customers_groups.txt
===================================================================
--- trunk/catalog/install/includes/language/fr_FR/osc_customers_groups.txt (rev 0)
+++ trunk/catalog/install/includes/language/fr_FR/osc_customers_groups.txt 2011-10-31 19:18:09 UTC (rev 3854)
@@ -0,0 +1,14 @@
+<?php
+/**
+ @licence GPL 2005-2010 The osCSS developers - osCSS Open Source E-commerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.1.0
+ @date 18/12/10, 10:50
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+*/
+
+
+/* osc_customers_groups */
+$lg['OSC_CUSTOMERS_GROUPS_RETAIL']="particuliers" ;
+?>
\ No newline at end of file
Added: trunk/catalog/install/includes/language/fr_FR/osc_full_tag_description.txt
===================================================================
--- trunk/catalog/install/includes/language/fr_FR/osc_full_tag_description.txt (rev 0)
+++ trunk/catalog/install/includes/language/fr_FR/osc_full_tag_description.txt 2011-10-31 19:18:09 UTC (rev 3854)
@@ -0,0 +1,14 @@
+<?php
+/**
+ @licence GPL 2005-2010 The osCSS developers - osCSS Open Source E-commerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.1.0
+ @date 18/12/10, 10:50
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+*/
+
+
+/* osc_customers_groups */
+$lg['OSC_CUSTOMERS_GROUPS_RETAIL']="particuliers" ;
+?>
\ No newline at end of file
Added: trunk/catalog/install/includes/language/fr_FR/osc_languages.txt
===================================================================
--- trunk/catalog/install/includes/language/fr_FR/osc_languages.txt (rev 0)
+++ trunk/catalog/install/includes/language/fr_FR/osc_languages.txt 2011-10-31 19:18:09 UTC (rev 3854)
@@ -0,0 +1,16 @@
+<?php
+/**
+ @licence GPL 2005-2010 The osCSS developers - osCSS Open Source E-commerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.1.0
+ @date 18/12/10, 10:50
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+*/
+
+
+/* osc_languages */
+$lg['LANGUAGE_NAME_S']="Français" ;
+$lg['LANGUAGE_NAME_CODE_S']="fr" ;
+$lg['LANGUAGE_NAME_REP_S']="fr_FR" ;
+?>
\ No newline at end of file
Added: trunk/catalog/install/includes/language/fr_FR/osc_navigation_links_description.txt
===================================================================
--- trunk/catalog/install/includes/language/fr_FR/osc_navigation_links_description.txt (rev 0)
+++ trunk/catalog/install/includes/language/fr_FR/osc_navigation_links_description.txt 2011-10-31 19:18:09 UTC (rev 3854)
@@ -0,0 +1,31 @@
+<?php
+/**
+ @licence GPL 2005-2010 The osCSS developers - osCSS Open Source E-commerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.1.0
+ @date 18/12/10, 10:50
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+*/
+
+
+/* osc_navigation_links_description */
+$lg['OSC_NAVIGATION_LINKS_DESCRIPTION_HOME']="Accueil" ;
+$lg['OSC_NAVIGATION_LINKS_DESCRIPTION_NEWS']="Nouveautés" ;
+$lg['OSC_NAVIGATION_LINKS_DESCRIPTION_ACCOUNT']="Mon compte" ;
+$lg['OSC_NAVIGATION_LINKS_DESCRIPTION_LOGOFF']="Fermer la session" ;
+$lg['OSC_NAVIGATION_LINKS_DESCRIPTION_CART']="Panier" ;
+$lg['OSC_NAVIGATION_LINKS_DESCRIPTION_CATEGORIES']="Catégories" ;
+$lg['OSC_NAVIGATION_LINKS_DESCRIPTION_SELECTION']="Sélection" ;
+$lg['OSC_NAVIGATION_LINKS_DESCRIPTION_HISTORY']="Historique" ;
+$lg['OSC_NAVIGATION_LINKS_DESCRIPTION_PERSONAL_INFORMATION']="Informations personnel" ;
+$lg['OSC_NAVIGATION_LINKS_DESCRIPTION_BESTSELLERS']="Meilleures ventes" ;
+$lg['OSC_NAVIGATION_LINKS_DESCRIPTION_SMALLPRICE']="Petit prix" ;
+$lg['OSC_NAVIGATION_LINKS_DESCRIPTION_INFORMATION']="Informations" ;
+$lg['OSC_NAVIGATION_LINKS_DESCRIPTION_SITEMAP']="Plan du site" ;
+$lg['OSC_NAVIGATION_LINKS_DESCRIPTION_CONTACT']="Contact" ;
+$lg['OSC_NAVIGATION_LINKS_DESCRIPTION_CAT']="Catégories" ;
+$lg['OSC_NAVIGATION_LINKS_DESCRIPTION_LISTCAT']="Liste catégories" ;
+$lg['OSC_NAVIGATION_LINKS_DESCRIPTION_SPECIAL']="Promotions" ;
+$lg['OSC_NAVIGATION_LINKS_DESCRIPTION_CREDITS']="Crédits" ;
+?>
\ No newline at end of file
Added: trunk/catalog/install/includes/language/fr_FR/osc_status.txt
===================================================================
--- trunk/catalog/install/includes/language/fr_FR/osc_status.txt (rev 0)
+++ trunk/catalog/install/includes/language/fr_FR/osc_status.txt 2011-10-31 19:18:09 UTC (rev 3854)
@@ -0,0 +1,44 @@
+<?php
+/**
+ @licence GPL 2005-2010 The osCSS developers - osCSS Open Source E-commerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.1.0
+ @date 18/12/10, 10:50
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+*/
+
+
+/* osc_orders_status */
+$lg['OSC_ORDERS_STATUS_PENDING']="En attente" ;
+$lg['OSC_ORDERS_STATUS_PROCESSING']="Traitement en cours" ;
+$lg['OSC_ORDERS_STATUS_DELIVERED']="Livré" ;
+$lg['OSC_ORDERS_STATUS_CANCELED']="Annulé" ;
+
+
+/* osc_products_virtual_types */
+$lg['OSC_PRODUCTS_VIRTUAL_TYPES_PHYSICAL']="Physique" ;
+$lg['OSC_PRODUCTS_VIRTUAL_TYPES_SUBSCRIPTION']="Abonnement" ;
+$lg['OSC_PRODUCTS_VIRTUAL_TYPES_SERVICE']="Services" ;
+$lg['OSC_PRODUCTS_VIRTUAL_TYPES_SOFTWARE']="Logiciels" ;
+$lg['OSC_PRODUCTS_VIRTUAL_TYPES_MEMBERS']="Membre uniquement" ;
+
+/* osc_refund_method */
+$lg['OSC_REFUND_METHOD_PAYPAL']="Paypal" ;
+$lg['OSC_REFUND_METHOD_NOCHEX']="Pas de remboursement" ;
+$lg['OSC_REFUND_METHOD_EXCHANGE']="Échange" ;
+$lg['OSC_REFUND_METHOD_GIFT_VOUCHERS']="Chèques Cadeaux" ;
+$lg['OSC_REFUND_METHOD_CUSTOMERS_POINTS']="Valeur en points" ;
+
+/* osc_return_reasons */
+$lg['OSC_RETURN_REASONS_FAULTY']="Défectueux" ;
+$lg['OSC_RETURN_REASONS_DAMAGED']="Endommagé" ;
+$lg['OSC_RETURN_REASONS_INCORRECT_ITEM']="Erreur" ;
+$lg['OSC_RETURN_REASONS_WARRANTY']="Garantie" ;
+
+/* osc_returns_status */
+$lg['OSC_RETURNS_STATUS_PENDING']="En attente" ;
+$lg['OSC_RETURNS_STATUS_AWAITING_RETURN']="Attente du retour" ;
+$lg['OSC_RETURNS_STATUS_CANCELLED']="Annulé" ;
+$lg['OSC_RETURNS_STATUS_COMPLETE']="Terminé" ;
+?>
\ No newline at end of file
Modified: trunk/catalog/install/includes/language/fr_FR/oscss_config.txt
===================================================================
--- trunk/catalog/install/includes/language/fr_FR/oscss_config.txt 2011-10-31 14:19:40 UTC (rev 3853)
+++ trunk/catalog/install/includes/language/fr_FR/oscss_config.txt 2011-10-31 19:18:09 UTC (rev 3854)
@@ -8,17 +8,11 @@
@encode UTF-8
*/
-/* osc_categories_description */
-$lg['CAT1']="Non classé(s)" ;
-$lg['CAT2']="Informations" ;
-$lg['CAT3']="Home" ;
-/* osc_admin_groups */
-$lg['OSC_ADMIN_GROUPS_ADMIN']="Administrateur" ;
-$lg['OSC_ADMIN_GROUPS_SELLER']="Vendeur" ;
+
/// 6 module option
@@ -29,141 +23,20 @@
$lg['DEFAULT_REFUND_METHOD_S']="Méthode de remboursement par défaut" ;
$lg['DEFAULT_REFUND_METHOD_L']="Méthode de remboursement par défaut." ;
-$lg['MODULE_GENERIC_INSTALLED_S']="Modules génériques installés" ;
-$lg['MODULE_GENERIC_INSTALLED_L']="Liste des modules génériques installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
-$lg['MODULE_GENERIC_INSTALLED_BO_S']="[admin]Modules génériques installés" ;
-$lg['MODULE_GENERIC_INSTALLED_BO_L']="Liste des modules génériques installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
-$lg['MODULE_ACAPRO_INSTALLED_S']="Modules de produit installés" ;
-$lg['MODULE_ACAPRO_INSTALLED_L']="Liste des modules de produit installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
-$lg['MODULE_ACAPRO_INSTALLED_BO_S']="[admin]Modules de produit installés" ;
-$lg['MODULE_ACAPRO_INSTALLED_BO_L']="Liste des modules de produit installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
-$lg['MODULE_CONTENT_INSTALLED_S']="Modules de contenu installés" ;
-$lg['MODULE_CONTENT_INSTALLED_L']="Liste des modules de contenu installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
-$lg['MODULE_CONTENT_INSTALLED_BO_S']="[admin] Modules de contenu installés" ;
-$lg['MODULE_CONTENT_INSTALLED_BO_L']="Liste des modules de contenu installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
-$lg['MODULE_ACACAT_INSTALLED_S']="Modules de catégorie installés" ;
-$lg['MODULE_ACACAT_INSTALLED_L']="Liste des modules de catégories installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
-$lg['MODULE_ACACAT_INSTALLED_BO_S']="[admin]Modules de catégorie installés" ;
-$lg['MODULE_ACACAT_INSTALLED_BO_L']="Liste des modules de catégorie installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
-$lg['MODULE_ACCOUNT_INSTALLED_S']="Modules de compte installés" ;
-$lg['MODULE_ACCOUNT_INSTALLED_L']="Liste des modules de compte installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
-$lg['MODULE_ACCOUNT_INSTALLED_BO_S']="[admin]Modules de compte installés" ;
-$lg['MODULE_ACCOUNT_INSTALLED_BO_L']="Liste des modules de compte installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
-$lg['MODULE_LISTING_INSTALLED_S']="Modules de liste installés" ;
-$lg['MODULE_LISTING_INSTALLED_L']="Liste des modules de liste installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
-$lg['MODULE_LISTING_INSTALLED_BO_S']="[admin]Modules de liste installés" ;
-$lg['MODULE_LISTING_INSTALLED_BO_L']="Liste des modules de liste installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
-$lg['MODULE_HOME_INSTALLED_S']="Modules d'accueil installés" ;
-$lg['MODULE_HOME_INSTALLED_L']="Liste des modules d'accueil installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
-$lg['MODULE_HOME_INSTALLED_BO_S']="[admin]Modules d'accueil installés" ;
-$lg['MODULE_HOME_INSTALLED_BO_L']="Liste des modules d'accueil installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
-$lg['MODULE_CHECKOUT_PROCESS_INSTALLED_S']="Modules de commande installés" ;
-$lg['MODULE_CHECKOUT_PROCESS_INSTALLED_L']="Liste des modules de commande installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
-$lg['MODULE_CHECKOUT_PROCESS_INSTALLED_BO_S']="[admin]Modules de commande installés" ;
-$lg['MODULE_CHECKOUT_PROCESS_INSTALLED_BO_L']="Liste des modules de commande installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
-$lg['MODULE_SHIPPING_INSTALLED_S']="Modules de livraison installés" ;
-$lg['MODULE_SHIPPING_INSTALLED_L']="Liste des modules de livraison installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: ups.php;flat.php;item.php)" ;
-$lg['MODULE_PAYMENT_INSTALLED_S']="Modules de paiement installés" ;
-$lg['MODULE_PAYMENT_INSTALLED_L']="Liste des modules de paiement installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
-$lg['MODULE_ORDER_TOTAL_INSTALLED_S']="Modules total commande installés" ;
-$lg['MODULE_ORDER_TOTAL_INSTALLED_L']="Liste des modules de total installés; séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: ot_subtotal.php;ot_tax.php;ot_shipping.php;ot_total.php)" ;
-$lg['PLUGIN_GENERIC_INSTALLED_S']="Plugins génériques installés" ;
-$lg['PLUGIN_GENERIC_INSTALLED_L']="Liste des plugins génériques installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
-$lg['PLUGIN_PRODUCT_INSTALLED_S']="Plugins de produit installés" ;
-$lg['PLUGIN_PRODUCT_INSTALLED_L']="Liste des plugins de produit installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
-$lg['PLUGIN_ACCOUNT_INSTALLED_S']="Plugins de compte installés" ;
-$lg['PLUGIN_ACCOUNT_INSTALLED_L']="Liste des plugins de compte installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
-$lg['PLUGIN_LISTING_INSTALLED_S']="Plugins de liste installés" ;
-$lg['PLUGIN_LISTING_INSTALLED_L']="Liste des plugins de liste installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
-$lg['PLUGIN_HOME_INSTALLED_S']="Plugins d'accueil installés" ;
-$lg['PLUGIN_HOME_INSTALLED_L']="Liste des plugins d'accueil installés séparés par un point virgule. Mise à jour automatique. Ne pas éditer. (Exemple: cc.php;cod.php;paypal.php)" ;
-/// 19 tell a friend
-$lg['ALLOW_GUEST_TO_TELL_A_FRIEND_S']="Permettre la recommandation d'un article" ;
-$lg['ALLOW_GUEST_TO_TELL_A_FRIEND_L']="Permettre aux visiteurs de recommander un article." ;
-
-
/// 128 Config environement shop
-/* osc_content_description */
-$lg['OSC_CONTENT_DESCRIPTION_SHIPPING_T']="Expédition et retours" ;
-$lg['OSC_CONTENT_DESCRIPTION_SHIPPING_D']="<p>Insérer ici vos informations d'expédition & retours.</p>" ;
-$lg['OSC_CONTENT_DESCRIPTION_PRIVACY_T']="Vie privée" ;
-$lg['OSC_CONTENT_DESCRIPTION_PRIVACY_D']="<p>Insérer ici vos remarques de confidentialité.</p>" ;
-$...
[truncated message content] |
|
From: <os...@us...> - 2011-11-01 08:56:23
|
Revision: 3857
http://oscss.svn.sourceforge.net/oscss/?rev=3857&view=rev
Author: oscim
Date: 2011-11-01 08:56:16 +0000 (Tue, 01 Nov 2011)
Log Message:
-----------
suite ajout des class de sqlxxx
Ajout contrainte externe sur la table de liaison entre option et value option des produits
Modified Paths:
--------------
trunk/catalog/admin/includes/modules/pages/attributes.php
Added Paths:
-----------
trunk/catalog/admin/includes/classes/drivers/sqlamattribute2template.php
trunk/catalog/admin/includes/classes/drivers/sqlamtemplate.php
trunk/catalog/admin/includes/classes/drivers/sqlproductoption.php
trunk/catalog/admin/includes/classes/drivers/sqlproductoptionvalue.php
trunk/catalog/admin/includes/classes/drivers/sqlproductoptionvalue2option.php
trunk/catalog/install/includes/sql/mysql/tables/osc_products_options_values_to_products_options.key.sql
Added: trunk/catalog/admin/includes/classes/drivers/sqlamattribute2template.php
===================================================================
--- trunk/catalog/admin/includes/classes/drivers/sqlamattribute2template.php (rev 0)
+++ trunk/catalog/admin/includes/classes/drivers/sqlamattribute2template.php 2011-11-01 08:56:16 UTC (rev 3857)
@@ -0,0 +1,155 @@
+<?php if (!defined('HTTP_SERVER')) die('You can not access this file directly!');
+/**
+ @licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
+ @portion code Copyright (c) 2002 osCommerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.1.1
+ @date 01/11/11, 09:50
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+ @class sqlamattribute2template
+ @brief Use for stock modele attribute option for products
+*/
+
+
+
+
+class sqlamattribute2template
+ implements ModSqlDataDriver{
+
+
+ /**
+ @brief create new ligne in table configuration
+ */
+ public static function create($option){
+
+ if(!isset($option['id'])) return 'id';
+
+ if(isset($option['id'])) $sql_data_array['template_id'] = $option['id'];
+ if(isset($option['options_id'])) $sql_data_array['options_id'] = $option['options_id'];
+ if(isset($option['values_id'])) $sql_data_array['option_values_id'] = $option['values_id'];
+ if(isset($option['price_prefix'])) $sql_data_array['price_prefix'] = $option['price_prefix'];
+ if(isset($option['values_price'])) $sql_data_array['options_values_price'] = $option['values_price'];
+ if(isset($option['sort_order'])) $sql_data_array['products_options_sort_order'] = $option['sort_order'];
+
+
+ $res=tep_db_perform(TABLE_PRODUCTS_AM_ATTRIBUTES_TO_TEMPLATES, $sql_data_array);
+
+ if(!$res)
+ return $res;
+ else
+ return $res->__get('insertId');
+ }
+
+ /**
+ @brief update ligne in table configuration
+ */
+ public static function update($option){
+
+ if(!isset($option['id'])) return 'id';
+
+ if(isset($option['id'])) $where .="AND template_id = '".(int)tep_db_input($option['id'])."' ";
+ if(isset($option['options_id'])) $where .="AND options_id = '".(int)tep_db_input($option['options_id'])."' ";
+
+ if(isset($option['id'])) $sql_data_array['template_id'] = $option['id'];
+ if(isset($option['options_id'])) $sql_data_array['options_id'] = $option['options_id'];
+ if(isset($option['values_id'])) $sql_data_array['option_values_id'] = $option['values_id'];
+ if(isset($option['price_prefix'])) $sql_data_array['price_prefix'] = $option['price_prefix'];
+ if(isset($option['values_price'])) $sql_data_array['options_values_price'] = $option['values_price'];
+ if(isset($option['sort_order'])) $sql_data_array['products_options_sort_order'] = $option['sort_order'];
+
+ $res=tep_db_perform(TABLE_PRODUCTS_AM_ATTRIBUTES_TO_TEMPLATES, $sql_data_array, 'update' , substr($where,3) );
+
+ return $res;
+ }
+
+ /**
+ @brief load ligne in table configuration
+ @param option array
+ id => row id int (configuration_id)
+ key => string key (configuration_key)
+ group_id => group_id int (configuration_group_id)
+
+ @return
+
+ object(stdClass)[13]
+ public 'id' => string '1' (length=1)
+
+ OR
+ array(
+ object(stdClass)[13]
+ ...
+ object(stdClass)[13]
+ ..
+ )
+
+ */
+ public static function fetch($option,$shortkey=false){
+ $DB=Database::getInstance();
+
+ $sql ="";
+ if(isset($option['id'])) $sql .="AND template_id = '".(int)tep_db_input($option['id'])."' ";
+
+ $sql ="SELECT * FROM ".TABLE_PRODUCTS_AM_ATTRIBUTES_TO_TEMPLATES." WHERE ".substr($sql,3);
+
+ $res=$DB->query($sql);
+
+ $num = $res->__get('numRows');
+
+ if($num == 1){
+ $result=$res->fetchAssoc();
+ return ((!$shortkey)? $result : self::CleanKey($result));
+ }
+ elseif($num > 1){
+ $array=array();
+
+ foreach($res->fetchAllAssoc() as $result)
+ $array[]= ((!$shortkey)? $result : self::CleanKey($result));
+
+ return $array;
+ }
+
+ return false;
+ }
+
+ /**
+ @brief delete row
+ */
+ public static function delete($option){
+ $DB=Database::getInstance();
+
+ $sql ="";
+ if(isset($option['id'])) $sql .="AND template_id = '".(int)tep_db_input($option['id'])."' ";
+
+ if(strlen($sql)==0)
+ return false;
+
+ $sql ="DELETE FROM ".TABLE_PRODUCTS_AM_ATTRIBUTES_TO_TEMPLATES." WHERE ".substr($sql,3);
+
+ $res=$DB->query($sql);
+
+ return $res;
+ }
+
+ /**
+ @fn CleanKey()
+ @brief Clean string name key
+ */
+ private static function CleanKey($array){
+
+ $object= new stdclass();
+
+ foreach($array as $key=>$value){
+ if( strpos($key,'template_') ===0)
+ $key=substr($key,9);
+
+ $object->$key = $value;
+ }
+
+ return $object;
+ }
+
+}
+
+
+?>
\ No newline at end of file
Added: trunk/catalog/admin/includes/classes/drivers/sqlamtemplate.php
===================================================================
--- trunk/catalog/admin/includes/classes/drivers/sqlamtemplate.php (rev 0)
+++ trunk/catalog/admin/includes/classes/drivers/sqlamtemplate.php 2011-11-01 08:56:16 UTC (rev 3857)
@@ -0,0 +1,145 @@
+<?php if (!defined('HTTP_SERVER')) die('You can not access this file directly!');
+/**
+ @licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
+ @portion code Copyright (c) 2002 osCommerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.1.1
+ @date 01/11/11, 09:50
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+ @class sqlamtemplate
+ @brief Use for stock modele attribute option for products
+*/
+
+
+
+
+class sqlamtemplate
+ implements ModSqlDataDriver{
+
+
+ /**
+ @brief create new ligne in table configuration
+ */
+ public static function create($option){
+
+// if(!isset($option['id'])) return 'id';
+
+ if(isset($option['id'])) $sql_data_array['template_id'] = $option['id'];
+ if(isset($option['name'])) $sql_data_array['template_name'] = $option['name'];
+
+
+ $res=tep_db_perform(TABLE_PRODUCTS_AM_TEMPLATES, $sql_data_array);
+
+ if(!$res)
+ return $res;
+ else
+ return $res->__get('insertId');
+ }
+
+ /**
+ @brief update ligne in table configuration
+ */
+ public static function update($option){
+
+ if(!isset($option['id'])) return 'id';
+
+ if(isset($option['id'])) $where .="AND template_id = '".(int)tep_db_input($option['id'])."' ";
+
+ if(isset($option['name'])) $sql_data_array['template_name'] = $option['name'];
+
+ $res=tep_db_perform(TABLE_PRODUCTS_AM_TEMPLATES, $sql_data_array, 'update' , substr($where,3) );
+
+ return $res;
+ }
+
+ /**
+ @brief load ligne in table configuration
+ @param option array
+ id => row id int (configuration_id)
+ key => string key (configuration_key)
+ group_id => group_id int (configuration_group_id)
+
+ @return
+
+ object(stdClass)[13]
+ public 'id' => string '1' (length=1)
+
+ OR
+ array(
+ object(stdClass)[13]
+ ...
+ object(stdClass)[13]
+ ..
+ )
+
+ */
+ public static function fetch($option,$shortkey=false){
+ $DB=Database::getInstance();
+
+ $sql ="";
+ if(isset($option['id'])) $sql .="AND template_id = '".(int)tep_db_input($option['id'])."' ";
+
+ $sql ="SELECT * FROM ".TABLE_PRODUCTS_AM_TEMPLATES." WHERE ".substr($sql,3);
+
+ $res=$DB->query($sql);
+
+ $num = $res->__get('numRows');
+
+ if($num == 1){
+ $result=$res->fetchAssoc();
+ return ((!$shortkey)? $result : self::CleanKey($result));
+ }
+ elseif($num > 1){
+ $array=array();
+
+ foreach($res->fetchAllAssoc() as $result)
+ $array[]= ((!$shortkey)? $result : self::CleanKey($result));
+
+ return $array;
+ }
+
+ return false;
+ }
+
+ /**
+ @brief delete row
+ */
+ public static function delete($option){
+ $DB=Database::getInstance();
+
+ $sql ="";
+ if(isset($option['id'])) $sql .="AND template_id = '".(int)tep_db_input($option['id'])."' ";
+
+ if(strlen($sql)==0)
+ return false;
+
+ $sql ="DELETE FROM ".TABLE_PRODUCTS_AM_TEMPLATES." WHERE ".substr($sql,3);
+
+ $res=$DB->query($sql);
+
+ return $res;
+ }
+
+ /**
+ @fn CleanKey()
+ @brief Clean string name key
+ */
+ private static function CleanKey($array){
+
+ $object= new stdclass();
+
+ foreach($array as $key=>$value){
+ if( strpos($key,'template_') ===0)
+ $key=substr($key,9);
+
+ $object->$key = $value;
+ }
+
+ return $object;
+ }
+
+}
+
+
+?>
\ No newline at end of file
Added: trunk/catalog/admin/includes/classes/drivers/sqlproductoption.php
===================================================================
--- trunk/catalog/admin/includes/classes/drivers/sqlproductoption.php (rev 0)
+++ trunk/catalog/admin/includes/classes/drivers/sqlproductoption.php 2011-11-01 08:56:16 UTC (rev 3857)
@@ -0,0 +1,167 @@
+<?php if (!defined('HTTP_SERVER')) die('You can not access this file directly!');
+/**
+ @licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
+ @portion code Copyright (c) 2002 osCommerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.1.1
+ @date 01/11/11, 09:50
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+ @class manage link table configuration
+*/
+
+
+
+
+class sqlproductoption
+ implements ModSqlDataDriver{
+
+
+ /**
+ @brief create new ligne in table options
+ @note id (products_options_id) is not auto incremente
+ */
+ public static function create($option){
+
+ if(!isset($option['id'])) return 'id';
+
+ if(isset($option['id'])) $sql_data_array['products_options_id'] = $option['id'];
+ if(isset($option['language_id'])) $sql_data_array['language_id'] = $option['language_id'];
+ if(isset($option['name'])) $sql_data_array['products_options_name'] = $option['name'];
+ if(isset($option['track_stock'])) $sql_data_array['products_options_track_stock'] = $option['track_stock'];
+ if(isset($option['sort_order'])) $sql_data_array['products_options_sort_order'] = $option['sort_order'];
+ if(isset($option['images_enabled'])) $sql_data_array['products_options_images_enabled'] = $option['images_enabled'];
+ if(isset($option['type'])) $sql_data_array['products_options_type'] = $option['type'];
+ if(isset($option['length'])) $sql_data_array['products_options_length'] = $option['length'];
+ if(isset($option['comment'])) $sql_data_array['products_options_comment'] = $option['comment'];
+ if(isset($option['condition'])) $sql_data_array['products_options_condition'] = $option['condition'];
+
+ $res=tep_db_perform(TABLE_PRODUCTS_OPTIONS, $sql_data_array);
+
+ if(!$res)
+ return $res;
+ else
+ return $option['id'];
+ }
+
+ /**
+ @brief update ligne in table configuration
+ */
+ public static function update($option){
+
+ if(!isset($option['id'])) return 'id';
+
+ if(isset($option['id'])) $where .="AND products_options_id = '".(int)tep_db_input($option['id'])."' ";
+ if(isset($option['language_id'])) $where .="AND language_id = '".(string)tep_db_input($option['language_id'])."' ";
+
+ if($where =='')
+ return false;
+
+// if(isset($option['products_options_id'])) $sql_data_array['products_options_id'] = $option['id'];
+// if(isset($option['language_id'])) $sql_data_array['language_id'] = $option['language_id'];
+ if(isset($option['name'])) $sql_data_array['products_options_name'] = $option['name'];
+ if(isset($option['track_stock'])) $sql_data_array['products_options_track_stock'] = $option['track_stock'];
+ if(isset($option['sort_order'])) $sql_data_array['products_options_sort_order'] = $option['sort_order'];
+ if(isset($option['images_enabled'])) $sql_data_array['products_options_images_enabled'] = $option['images_enabled'];
+ if(isset($option['type'])) $sql_data_array['products_options_type'] = $option['type'];
+ if(isset($option['length'])) $sql_data_array['products_options_length'] = $option['length'];
+ if(isset($option['comment'])) $sql_data_array['products_options_comment'] = $option['comment'];
+ if(isset($option['condition'])) $sql_data_array['products_options_condition'] = $option['condition'];
+
+ $res=tep_db_perform(TABLE_PRODUCTS_OPTIONS, $sql_data_array, 'update' , substr($where,3) );
+
+ return $res;
+ }
+
+ /**
+ @brief load ligne in table configuration
+ @param option array
+ id => row id int (configuration_id)
+ key => string key (configuration_key)
+ group_id => group_id int (configuration_group_id)
+
+ @return
+
+ object(stdClass)[13]
+ public 'id' => string '1' (length=1)
+
+ OR
+ array(
+ object(stdClass)[13]
+ ...
+ object(stdClass)[13]
+ ..
+ )
+
+ */
+ public static function fetch($option,$shortkey=false){
+ $DB=Database::getInstance();
+
+ $sql ="";
+ if(isset($option['id'])) $sql .="AND products_options_id = '".(int)tep_db_input($option['id'])."' ";
+ if(isset($option['language_id'])) $sql .="AND language_id = '".(string)tep_db_input($option['language_id'])."' ";
+
+ $sql ="SELECT * FROM ".TABLE_PRODUCTS_OPTIONS." WHERE ".substr($sql,3);
+
+ $res=$DB->query($sql);
+
+ $num = $res->__get('numRows');
+
+ if($num == 1){
+ $result=$res->fetchAssoc();
+ return ((!$shortkey)? $result : self::CleanKey($result));
+ }
+ elseif($num > 1){
+ $array=array();
+
+ foreach($res->fetchAllAssoc() as $result)
+ $array[]= ((!$shortkey)? $result : self::CleanKey($result));
+
+ return $array;
+ }
+
+ return false;
+ }
+
+ /**
+ @brief delete row
+ */
+ public static function delete($option){
+ $DB=Database::getInstance();
+
+ $sql ="";
+ if(isset($option['id'])) $sql .="AND products_options_id = '".(int)tep_db_input($option['id'])."' ";
+
+ if(strlen($sql)==0)
+ return false;
+
+ $sql ="DELETE FROM ".TABLE_PRODUCTS_OPTIONS." WHERE ".substr($sql,3);
+
+ $res=$DB->query($sql);
+
+ return $res;
+ }
+
+ /**
+ @fn CleanKey()
+ @brief Clean string name key
+ */
+ private static function CleanKey($array){
+
+ $object= new stdclass();
+
+ foreach($array as $key=>$value){
+ if( strpos($key,'products_options_') ===0)
+ $key=substr($key,17);
+
+
+ $object->$key = $value;
+ }
+
+ return $object;
+ }
+
+}
+
+
+?>
\ No newline at end of file
Added: trunk/catalog/admin/includes/classes/drivers/sqlproductoptionvalue.php
===================================================================
--- trunk/catalog/admin/includes/classes/drivers/sqlproductoptionvalue.php (rev 0)
+++ trunk/catalog/admin/includes/classes/drivers/sqlproductoptionvalue.php 2011-11-01 08:56:16 UTC (rev 3857)
@@ -0,0 +1,157 @@
+<?php if (!defined('HTTP_SERVER')) die('You can not access this file directly!');
+/**
+ @licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
+ @portion code Copyright (c) 2002 osCommerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.1.1
+ @date 01/11/11, 09:50
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+ @class sqlproductoptionvalue
+*/
+
+
+
+
+class sqlproductoptionvalue
+ implements ModSqlDataDriver{
+
+
+ /**
+ @brief create new ligne in table configuration
+ */
+ public static function create($option){
+
+ if(!isset($option['id'])) return 'id';
+
+ if(isset($option['id'])) $sql_data_array['products_options_values_id'] = $option['id'];
+ if(isset($option['language_id'])) $sql_data_array['language_id'] = $option['language_id'];
+ if(isset($option['name'])) $sql_data_array['products_options_values_name'] = $option['name'];
+ if(isset($option['thumbnail'])) $sql_data_array['products_options_values_thumbnail'] = $option['thumbnail'];
+
+
+ $res=tep_db_perform(TABLE_PRODUCTS_OPTIONS_VALUES, $sql_data_array);
+
+ if(!$res)
+ return $res;
+ else
+ return $option['id'];
+ }
+
+ /**
+ @brief update ligne in table configuration
+ */
+ public static function update($option){
+
+ if(!isset($option['id'])) return 'id';
+
+ if(isset($option['id'])) $where .="AND products_options_values_id = '".(int)tep_db_input($option['id'])."' ";
+ if(isset($option['language_id'])) $where .="AND language_id = '".(string)tep_db_input($option['language_id'])."' ";
+
+ if($where =='')
+ return false;
+
+ if(isset($option['name'])) $sql_data_array['products_options_values_name'] = $option['name'];
+ if(isset($option['thumbnail'])) $sql_data_array['products_options_values_thumbnail'] = $option['thumbnail'];
+
+ $res=tep_db_perform(TABLE_PRODUCTS_OPTIONS_VALUES, $sql_data_array, 'update' , substr($where,3) );
+
+ return $res;
+ }
+
+ /**
+ @brief load ligne in table configuration
+ @param option array
+ id => row id int (configuration_id)
+ key => string key (configuration_key)
+ group_id => group_id int (configuration_group_id)
+
+ @return
+
+ object(stdClass)[13]
+ public 'id' => string '1' (length=1)
+
+ OR
+ array(
+ object(stdClass)[13]
+ ...
+ object(stdClass)[13]
+ ..
+ )
+
+ */
+ public static function fetch($option,$shortkey=false){
+ $DB=Database::getInstance();
+
+ $sql ="";
+ if(isset($option['id'])) $sql .="AND products_options_values_id = '".(int)tep_db_input($option['id'])."' ";
+ if(isset($option['language_id'])) $sql .="AND language_id = '".(string)tep_db_input($option['language_id'])."' ";
+
+ $sql ="SELECT * FROM ".TABLE_PRODUCTS_OPTIONS_VALUES." WHERE ".substr($sql,3);
+
+ $res=$DB->query($sql);
+
+ $num = $res->__get('numRows');
+
+ if($num == 1){
+ $result=$res->fetchAssoc();
+ return ((!$shortkey)? $result : self::CleanKey($result));
+ }
+ elseif($num > 1){
+ $array=array();
+
+ foreach($res->fetchAllAssoc() as $result)
+ $array[]= ((!$shortkey)? $result : self::CleanKey($result));
+
+ return $array;
+ }
+
+ return false;
+ }
+
+ /**
+ @brief delete row
+ */
+ public static function delete($option){
+ $DB=Database::getInstance();
+
+ $sql ="";
+ if(isset($option['id'])) $sql .="AND products_options_values_id = '".(int)tep_db_input($option['id'])."' ";
+
+ if(strlen($sql)==0)
+ return false;
+
+ // supp link external key sql
+ $res=$DB->query("DELETE FROM ".TABLE_PRODUCTS_OPTIONS_VALUES_TO_PRODUCTS_OPTIONS." WHERE ".substr($sql,3));
+
+ $sql ="DELETE FROM ".TABLE_PRODUCTS_OPTIONS_VALUES." WHERE ".substr($sql,3);
+
+ $res=$DB->query($sql);
+
+ return $res;
+ }
+
+ /**
+ @fn CleanKey()
+ @brief Clean string name key
+ */
+ private static function CleanKey($array){
+
+ $object= new stdclass();
+
+ foreach($array as $key=>$value){
+ if( strpos($key,'products_options_') ===0)
+ $key=substr($key,17);
+ if( strpos($key,'products_options_values_id') ===0)
+ $key='id';
+
+ $object->$key = $value;
+ }
+
+ return $object;
+ }
+
+}
+
+
+?>
\ No newline at end of file
Added: trunk/catalog/admin/includes/classes/drivers/sqlproductoptionvalue2option.php
===================================================================
--- trunk/catalog/admin/includes/classes/drivers/sqlproductoptionvalue2option.php (rev 0)
+++ trunk/catalog/admin/includes/classes/drivers/sqlproductoptionvalue2option.php 2011-11-01 08:56:16 UTC (rev 3857)
@@ -0,0 +1,165 @@
+<?php if (!defined('HTTP_SERVER')) die('You can not access this file directly!');
+/**
+ @licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
+ @portion code Copyright (c) 2002 osCommerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.1.1
+ @date 01/11/11, 09:50
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+ @class sqlproductoptionvalue2option
+*/
+
+
+
+
+class sqlproductoptionvalue2option
+ implements ModSqlDataDriver{
+
+
+ /**
+ @brief create new ligne in table option to option value
+ @param $option array
+ options_id => int
+ values_id => int
+ */
+ public static function create($option){
+
+ if(!isset($option['options_id']))
+ return 'options_id';
+ if(!isset($option['values_id']))
+ return 'values_id';
+
+// if(isset($option['products_options_values_to_products_options_id'])) $sql_data_array['products_options_values_to_products_options_id '] = $option['id'];
+ if(isset($option['options_id'])) $sql_data_array['products_options_id'] = $option['options_id'];
+ if(isset($option['values_id'])) $sql_data_array['products_options_values_id'] = $option['values_id'];
+
+ $res=tep_db_perform(TABLE_PRODUCTS_OPTIONS_VALUES_TO_PRODUCTS_OPTIONS, $sql_data_array);
+
+ if(!$res)
+ return $res;
+ else
+ return $res->__get('insertId');
+ }
+
+ /**
+ @brief update ligne in table configuration
+ */
+ public static function update($option){
+
+ if(!isset($option['id'])) return 'id';
+
+ if(isset($option['id'])) $where .="AND products_options_values_to_products_options_id = '".(int)tep_db_input($option['id'])."' ";
+
+ if($where =='')
+ return false;
+
+ if(isset($option['options_id'])) $sql_data_array['products_options_id'] = $option['options_id'];
+ if(isset($option['values_id'])) $sql_data_array['products_options_values_id'] = $option['values_id'];
+
+ $res=tep_db_perform(TABLE_PRODUCTS_OPTIONS_VALUES_TO_PRODUCTS_OPTIONS, $sql_data_array, 'update' , substr($where,3) );
+
+ return $res;
+ }
+
+ /**
+ @brief load ligne in table configuration
+ @param option array
+ id => row id int (configuration_id)
+ key => string key (configuration_key)
+ group_id => group_id int (configuration_group_id)
+
+ @return
+
+ object(stdClass)[13]
+ public 'id' => string '1' (length=1)
+
+ OR
+ array(
+ object(stdClass)[13]
+ ...
+ object(stdClass)[13]
+ ..
+ )
+
+ */
+ public static function fetch($option,$shortkey=false){
+ $DB=Database::getInstance();
+
+ $sql ="";
+ if(isset($option['id'])) $sql .="AND products_options_values_to_products_options_id = '".(int)tep_db_input($option['id'])."' ";
+ if(isset($option['options_id'])) $sql .="AND products_options_id = '".(int)tep_db_input($option['options_id'])."' ";
+ if(isset($option['values_id'])) $sql .="AND products_options_values_id = '".(int)tep_db_input($option['options_values_id'])."' ";
+
+ $sql ="SELECT * FROM ".TABLE_PRODUCTS_OPTIONS_VALUES_TO_PRODUCTS_OPTIONS." WHERE ".substr($sql,3);
+
+ $res=$DB->query($sql);
+
+ $num = $res->__get('numRows');
+
+ if($num == 1){
+ $result=$res->fetchAssoc();
+ return ((!$shortkey)? $result : self::CleanKey($result));
+ }
+ elseif($num > 1){
+ $array=array();
+
+ foreach($res->fetchAllAssoc() as $result)
+ $array[]= ((!$shortkey)? $result : self::CleanKey($result));
+
+ return $array;
+ }
+
+ return false;
+ }
+
+ /**
+ @brief delete row
+ @param option array
+ id => int row id
+ option_id => int value row id option in products_options
+ value_id => int value row in products_option_value
+ */
+ public static function delete($option){
+ $DB=Database::getInstance();
+
+ $sql ="";
+ if(isset($option['id'])) $sql .="AND products_options_values_to_products_options_id = '".(int)tep_db_input($option['id'])."' ";
+ if(isset($option['options_id'])) $sql .="AND products_options_id = '".(int)tep_db_input($option['options_id'])."' ";
+ if(isset($option['values_id'])) $sql .="AND products_options_values_id = '".(int)tep_db_input($option['values_id'])."' ";
+
+ if(strlen($sql)==0)
+ return false;
+
+
+ $sql ="DELETE FROM ".TABLE_PRODUCTS_OPTIONS_VALUES_TO_PRODUCTS_OPTIONS." WHERE ".substr($sql,3);
+
+ $res=$DB->query($sql);
+
+ return $res;
+ }
+
+ /**
+ @fn CleanKey()
+ @brief Clean string name key
+ */
+ private static function CleanKey($array){
+
+ $object= new stdclass();
+
+ foreach($array as $key=>$value){
+ if( strpos($key,'products_options_') ===0)
+ $key=substr($key,17);
+ if( strpos($key,'products_options_values_to_products_options_') ===0)
+ $key=substr($key,strlen('products_options_values_to_products_options_'));
+
+ $object->$key = $value;
+ }
+
+ return $object;
+ }
+
+}
+
+
+?>
\ No newline at end of file
Modified: trunk/catalog/admin/includes/modules/pages/attributes.php
===================================================================
--- trunk/catalog/admin/includes/modules/pages/attributes.php 2011-11-01 08:55:07 UTC (rev 3856)
+++ trunk/catalog/admin/includes/modules/pages/attributes.php 2011-11-01 08:56:16 UTC (rev 3857)
@@ -4,7 +4,7 @@
@portion code Copyright (c) 2002 osCommerce
@package osCSS-2 <www http://www.oscss.org>
@version 2.1.1
- @date 31/10/11, 16:21
+ @date 01/11/11, 09:50
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
@class attributes
@@ -88,7 +88,7 @@
public function check_action($actions){
global $messageStack;
-
+error_reporting(E_ALL);
self::$action=$actions;
switch (self::$action) {
@@ -101,9 +101,14 @@
break;
case 'delete':
if(self::$type=='options') {
+ $poID=tep_db_prepare_input($_GET['poID']);
+
+ sqlproductoption::delete(array('id'=>$poID));
}
elseif(self::$type=='values') {
+ $povID=tep_db_prepare_input($_GET['povID']);
+ sqlproductoptionvalue::delete(array('id'=>$povID));
}
break;
case 'insert':
@@ -114,23 +119,24 @@
? self::getNextAutoValue(TABLE_PRODUCTS_OPTIONS,'products_options_id')
: tep_db_prepare_input($_GET['poID']) ;
- $sql_data_array['products_options_condition']= (int)tep_db_prepare_input($_POST['products_options_condition']);
- $sql_data_array['products_options_sort_order']= tep_db_prepare_input($_POST['products_options_sort_order']);
- $sql_data_array['products_options_track_stock']= (int)tep_db_prepare_input($_POST['products_options_track_stock']);
- $sql_data_array['products_options_images_enabled']= (int)tep_db_prepare_input($_POST['products_options_images_enabled']);
- $sql_data_array['products_options_type']= tep_db_prepare_input($_POST['products_options_type']);
- $sql_data_array['products_options_length']= tep_db_prepare_input($_POST['products_options_length']);
+ $sql_data_array['id']= $poID;
+ $sql_data_array['condition']= (int)tep_db_prepare_input($_POST['products_options_condition']);
+ $sql_data_array['sort_order']= tep_db_prepare_input($_POST['products_options_sort_order']);
+ $sql_data_array['track_stock']= (int)tep_db_prepare_input($_POST['products_options_track_stock']);
+ $sql_data_array['images_enabled']= (int)tep_db_prepare_input($_POST['products_options_images_enabled']);
+ $sql_data_array['type']= tep_db_prepare_input($_POST['products_options_type']);
+ $sql_data_array['length']= tep_db_prepare_input($_POST['products_options_length']);
for ($i=0, $n=sizeof(self::$languages); $i<$n; $i++) {
- $sql_data_array['products_options_name']= $_POST['products_options_name'][self::$languages[$i]['id']];
- $sql_data_array['products_options_comment']= $_POST['products_options_comment'][self::$languages[$i]['id']];
+ $sql_data_array['name']= $_POST['products_options_name'][self::$languages[$i]['id']];
+ $sql_data_array['comment']= $_POST['products_options_comment'][self::$languages[$i]['id']];
+ $sql_data_array['language_id']= self::$languages[$i]['id'];
- if(self::$action=='insert'){
- $sql_data_array['products_options_id']= $poID;
- tep_db_perform(TABLE_PRODUCTS_OPTIONS, $sql_data_array);
- }
- else tep_db_perform(TABLE_PRODUCTS_OPTIONS, $sql_data_array, 'update', ' language_id = \''.(int)self::$languages[$i]['id'].'\' and products_options_id=\''.$poID.'\'');
+ if(self::$action=='insert')
+ sqlproductoption::create($sql_data_array);
+ else
+ sqlproductoption::update($sql_data_array);
}
tep_redirect(tep_href_link(self::FILENAME));
@@ -146,24 +152,25 @@
: tep_db_prepare_input($_GET['povID']) ;
for ($i=0, $n=sizeof(self::$languages); $i<$n; $i++) {
- $sql_data_array['products_options_values_name']= $_POST['products_options_values_name'][self::$languages[$i]['id']];
- $sql_data_array['products_options_values_thumbnail']= $_POST['products_options_values_thumbnail'][self::$languages[$i]['id']];
- if(self::$action=='insert') {
- $sql_data_array['products_options_values_id']= $povID;
- $sql_data_array['language_id']= self::$languages[$i]['id'];
- $res=tep_db_perform(TABLE_PRODUCTS_OPTIONS_VALUES, $sql_data_array);
- }
- else{
- tep_db_perform(TABLE_PRODUCTS_OPTIONS_VALUES, $sql_data_array, 'update', ' language_id = \''.(int)self::$languages[$i]['id'].'\' and products_options_values_id=\''.$povID.'\'');
- }
+
+ $sql_data_array['name']= tep_db_prepare_input($_POST['products_options_values_name'][self::$languages[$i]['id']]);
+ $sql_data_array['thumbnail']= tep_db_prepare_input($_POST['products_options_values_thumbnail'][self::$languages[$i]['id']]);
+ $sql_data_array['id']= $povID;
+ $sql_data_array['language_id']= self::$languages[$i]['id'];
+
+
+ if(self::$action=='insert')
+ sqlproductoptionvalue::create($sql_data_array);
+ e...
[truncated message content] |
|
From: <os...@us...> - 2011-11-01 21:02:43
|
Revision: 3861
http://oscss.svn.sourceforge.net/oscss/?rev=3861&view=rev
Author: oscim
Date: 2011-11-01 21:02:36 +0000 (Tue, 01 Nov 2011)
Log Message:
-----------
convertion en module de la listes des archives de commande pour les clients
ajustement des fichiers account li?\195?\169s
Modified Paths:
--------------
trunk/catalog/account.php
trunk/catalog/includes/content/account.php
trunk/catalog/includes/languages/fr_FR/account.php
trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/includes/content/account.php
trunk/catalog/install/data/templates/appareil_photo/electronix/includes/content/account.php
Added Paths:
-----------
trunk/catalog/includes/gabarit/orders_history.display_view.gab
trunk/catalog/includes/languages/fr_FR/modules/account/orders_history.txt
trunk/catalog/includes/modules/account/orders_history.php
Removed Paths:
-------------
trunk/catalog/includes/content/account_history.php
trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/includes/content/account_history.php
Modified: trunk/catalog/account.php
===================================================================
--- trunk/catalog/account.php 2011-11-01 19:17:19 UTC (rev 3860)
+++ trunk/catalog/account.php 2011-11-01 21:02:36 UTC (rev 3861)
@@ -117,14 +117,8 @@
break;
+
/**
- * \internal execution historique liste des commandes
- * Display list customers order
- */
- case 'history':
- $page->force_content('account_history.php');
- break;
- /**
* \section execution affiche une commande
* \a (int) $_GET['order_id']
*/
Modified: trunk/catalog/includes/content/account.php
===================================================================
--- trunk/catalog/includes/content/account.php 2011-11-01 19:17:19 UTC (rev 3860)
+++ trunk/catalog/includes/content/account.php 2011-11-01 21:02:36 UTC (rev 3861)
@@ -57,7 +57,7 @@
<div class="contentBox myOrders">
<h3><?php echo MY_ORDERS_TITLE; ?></h3>
<ul>
- <li><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, 'action=history', 'SSL') . '">' . MY_ORDERS_VIEW . '</a>'; ?></li>
+ <?php /** ACA module */ foreach($module as $k){ if (method_exists($k, 'display_view_min_listMyOrders')) foreach($k->display_view_min_listMyOrders($customer_id) as $kt=>$vt){ $i++; echo '<li><a href="'.$vt->href_link.'">'.$vt->title.'</a> </li>'; } } ?>
</ul>
</div>
Deleted: trunk/catalog/includes/content/account_history.php
===================================================================
--- trunk/catalog/includes/content/account_history.php 2011-11-01 19:17:19 UTC (rev 3860)
+++ trunk/catalog/includes/content/account_history.php 2011-11-01 21:02:36 UTC (rev 3861)
@@ -1,64 +0,0 @@
-<?php
-/**
- @licence GPL 2005-2010 The osCSS developers - osCSS Open Source E-commerce
- @portion code Copyright (c) 2002 osCommerce
- @package osCSS-2 <www http://www.oscss.org>
- @version 2.1.0
- @date 16/12/10, 21:52
- @author oscim <mail aur...@os...> <www http://www.oscim.fr>
- @encode UTF-8
-*/
-?>
-<div id="accountHistory">
-
- <h2 class="content title <?php echo $language ;?>"><?php echo HEADING_TITLE_6; ?></h2>
-
-<?php
- $orders_total = tep_count_customer_orders();
-
- if ($orders_total > 0) {
- $history_query_raw = "select o.orders_id,o.orders_prefix, o.date_purchased, o.delivery_name, o.billing_name, ot.text as order_total,o.orders_status, s.status_name as orders_status_name from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_TOTAL . " ot, " . TABLE_STATUS . " s where o.customers_id = '" . (int)$customer_id . "' and o.orders_id = ot.orders_id and ot.class = 'ot_total' and o.orders_status = s.status_id AND status_type='orders' AND s.language_id = '" . (int)$languages_id . "' order by orders_id DESC";
- $history_split = new splitPageResults($history_query_raw, MAX_DISPLAY_ORDER_HISTORY);
- $history_query = tep_db_query($history_split->sql_query);
-
- while ($history = tep_db_fetch_array($history_query)) {
- $products_query = tep_db_query("select count(*) as count from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . (int)$history['orders_id'] . "'");
- $products = tep_db_fetch_array($products_query);
-
- if (tep_not_null($history['delivery_name'])) {
- $order_type = TEXT_ORDER_SHIPPED_TO;
- $order_name = $history['delivery_name'];
- } else {
- $order_type = TEXT_ORDER_BILLED_TO;
- $order_name = $history['billing_name'];
- }
-?>
- <dl class="orderHistory">
- <dt><?php echo TEXT_ORDER_NUMBER . $history['orders_prefix'].$history['orders_id']; ?> <span class="linkPdf"><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, 'action=pdf&'.(isset($_GET['page']) ? 'page=' . $_GET['page'] . '&' : '') . 'order_id=' . $history['orders_id'], 'SSL') ?>">PDF</a></span></dt>
- <dd><?php echo TEXT_ORDER_STATUS . $history['orders_status_name']; ?></dd>
- <dd><?php echo TEXT_ORDER_DATE . tep_date_long($history['date_purchased']) ;?></dd>
- <dd><?php echo $order_type . tep_output_string_protected($order_name); ?></dd>
- <dd><?php echo TEXT_ORDER_PRODUCTS . $products['count'] ;?></dd>
- <dd><?php echo TEXT_ORDER_COST . strip_tags($history['order_total']); ?></dd>
- <dd><?php echo '<a class="navBtMini" href="' . tep_href_link(FILENAME_ACCOUNT, 'action=history_info&'.(isset($_GET['page']) ? 'page=' . $_GET['page'] . '&' : '') . 'order_id=' . $history['orders_id'], 'SSL') . '">' . SMALL_IMAGE_BUTTON_VIEW . '</a>'; ?></dd>
- </dl>
-
-<?php }
- } else { ?>
- <p class="infoText"><?php echo TEXT_NO_PURCHASES; ?></p>
-<?php } ?>
-
-<?php if ($orders_total > 0) { ?>
-
-<div id="splitPageBottom">
- <p class="sP1"><?php echo $history_split->display_count(TEXT_DISPLAY_NUMBER_OF_ORDERS); ?></p>
- <p class="sP2"><?php echo TEXT_RESULT_PAGE . ' ' . $history_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></p>
-</div>
-
-<?php } ?>
-
- <div class="navBt">
- <?php echo '<a class="navBt" href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . IMAGE_BUTTON_BACK . '</a>'; ?>
- </div>
-
-</div>
\ No newline at end of file
Added: trunk/catalog/includes/gabarit/orders_history.display_view.gab
===================================================================
--- trunk/catalog/includes/gabarit/orders_history.display_view.gab (rev 0)
+++ trunk/catalog/includes/gabarit/orders_history.display_view.gab 2011-11-01 21:02:36 UTC (rev 3861)
@@ -0,0 +1,68 @@
+<?php
+/**
+ @licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
+ @portion code Copyright (c) 2002 osCommerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.1.1
+ @date 01/11/11, 21:42
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+ @brief This listing orders for module account/orders_history
+*/
+global $language,$customer_id;
+?>
+<div class="main-orders_history">
+
+ <?php if (count(orders_history::$current) > 0): ?>
+
+ <?php foreach(orders_history::$current as $row): ?>
+ <dl class="orderHistory">
+ <dt>
+ <?php echo __('orders_history text order number') . $row->orders_prefix.$row->orders_id; ?>
+
+ </dt>
+ <dd>
+ <?php echo __('orders_history text order status') . $row->orders_status_name; ?>
+ </dd>
+ <dd>
+ <?php echo __('orders_history text order date') . $row->date_purchased ;?>
+ </dd>
+ <dd>
+ <?php echo $order_type . tep_output_string_protected($order_name); ?>
+ </dd>
+ <dd>
+ <?php echo __('orders_history text order products') . $row->count_products ;?>
+ </dd>
+ <dd>
+ <?php echo __('orders_history text order cost') . strip_tags($row->order_total); ?>
+ </dd>
+ <dd>
+ <span class="linkView">
+ <a class="navBtMini" href="<?php echo $row->linkView ?>" >
+ <?php echo __('orders_history small image button view'); ?>
+ </a>
+ </span>
+ <span class="linkPdf">
+ <a class="linkPdf" href="<?php echo $row->linkPdf ?>">
+ <?php echo __('orders_history pdf link') ?>
+ </a>
+ </span>
+ </dd>
+ </dl>
+ <?php endforeach; ?>
+
+ <div id="splitPageBottom" class="split">
+ <p class="sP1"><?php echo orders_history::$history_split->display_count(__('orders_history text display number of orders %s')); ?></p>
+ <p class="sP2"><?php echo __('orders_history text result page') . ' ' . orders_history::$history_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></p>
+ </div>
+
+ <?php else : ?>
+ <p class="infoText"><?php echo TEXT_NO_PURCHASES; ?></p>
+ <?php endif; ?>
+
+
+ <div class="navBt">
+ <?php echo '<a class="navBt" href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . IMAGE_BUTTON_BACK . '</a>'; ?>
+ </div>
+
+</div>
\ No newline at end of file
Modified: trunk/catalog/includes/languages/fr_FR/account.php
===================================================================
--- trunk/catalog/includes/languages/fr_FR/account.php 2011-11-01 19:17:19 UTC (rev 3860)
+++ trunk/catalog/includes/languages/fr_FR/account.php 2011-11-01 21:02:36 UTC (rev 3861)
@@ -1,9 +1,9 @@
<?php
/**
- @licence GPL 2005-2010 The osCSS developers - osCSS Open Source E-commerce
+ @licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
@package osCSS-2 <www http://www.oscss.org>
- @version 2.1.0
- @date 07/06/10, 14:47
+ @version 2.1.1
+ @date 01/11/11, 21:42
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
*/
@@ -83,3 +83,7 @@
define('HEADING_BILLING_ADDRESS',"Adresse de facturation" );
define('HEADING_PAYMENT_METHOD',"Méthode de paiement " );
define('HEADING_ORDER_HISTORY',"Historique de la commande" );
+define('HEADING_HISTORY_DATE',"Date" );
+define('HEADING_HISTORY_STATUS',"Statut" );
+define('HEADING_HISTORY_COMMENT',"Commentaires" );
+?>
Added: trunk/catalog/includes/languages/fr_FR/modules/account/orders_history.txt
===================================================================
--- trunk/catalog/includes/languages/fr_FR/modules/account/orders_history.txt (rev 0)
+++ trunk/catalog/includes/languages/fr_FR/modules/account/orders_history.txt 2011-11-01 21:02:36 UTC (rev 3861)
@@ -0,0 +1,29 @@
+<?php
+/**
+ @licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
+ @portion code Copyright (c) 2002 osCommerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.1.1
+ @date 01/11/11, 21:42
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+*/
+
+$lang['orders_history tab']="Voir mes anciennes commandes" ;
+
+$lang['orders_history heading listing']="Historique des Commandes" ;
+$lang['orders_history text order number']="Numéro de commande : " ;
+$lang['orders_history text order status']="Statut de la commande : " ;
+$lang['orders_history text order date']="Date de la commande : " ;
+$lang['orders_history text order products']="Produit(s) : " ;
+$lang['orders_history text order cost']="Coût de la commande : " ;
+
+
+$lang['orders_history small image button view']="Afficher" ;
+$lang['orders_history pdf link']="Pdf" ;
+
+
+$lang['orders_history text result %s']="result %s" ;
+
+
+?>
\ No newline at end of file
Added: trunk/catalog/includes/modules/account/orders_history.php
===================================================================
--- trunk/catalog/includes/modules/account/orders_history.php (rev 0)
+++ trunk/catalog/includes/modules/account/orders_history.php 2011-11-01 21:02:36 UTC (rev 3861)
@@ -0,0 +1,171 @@
+<?php
+/**
+ @licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
+ @portion code Copyright (c) 2002 osCommerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.1.1
+ @date 01/11/11, 21:42
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+ *\class orders_history
+ *\group modules
+ *\brief Address book for customers
+*/
+
+class orders_history
+ extends AbstractAccount
+ implements InterfaceModule{
+
+ /**
+ @var array
+ */
+ public static $current;
+ /**
+ @var array
+ */
+ public static $history_split;
+
+ /**
+ */
+ function __construct(){
+ $this->code =__CLASS__;
+ $this->type ='account';
+ $this->title = __('module orders_history text title');
+ $this->description = __('module orders_history text description') ;
+ $this->sort_order = (defined('MODULE_ACA_HISTORY_SORT_ORDER')) ? MODULE_ACA_HISTORY_SORT_ORDER : 0;
+ $this->enabled = true;
+
+
+ $this->sql_data_array=array();
+ $this->cInfo = new objectInfo(array());
+
+ }
+
+ public function get_header($action=''){}
+
+ /**
+ * \fn check_action($action)
+ * \brief Action exe
+ * @param $action string la var d'action
+ * @p $cID int recupere le Session[]
+ */
+ public function check_action($action) {
+
+ if (!tep_session_is_registered('customer_id')) return false;
+
+ global $page;
+ $customer_id=$page->the_var('customer_id');
+
+
+// switch ($action) {
+// }
+
+ return true;
+ }
+
+ /**
+ */
+ public function after_check_action ($action) {
+ if($action=='new') tep_redirect(tep_href_link(FILENAME_ACCOUNT, 'aca_mod='.$this->code.'&aca_type='.$this->type.'&aca_action=display_view', 'SSL'));
+ }
+
+
+
+ /**
+ */
+ public function load_db_values($cID) {
+ global $languages_id;
+
+ $DB=Database::getInstance();
+
+ $sql="SELECT o.orders_id,o.orders_prefix, o.date_purchased, o.delivery_name, o.billing_name, ot.text as order_total,o.orders_status, s.status_name as orders_status_name from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_TOTAL . " ot, " . TABLE_STATUS . " s WHERE o.customers_id = '" . (int)$cID . "' AND o.orders_id = ot.orders_id and ot.class = 'ot_total' and o.orders_status = s.status_id AND status_type='orders' AND s.language_id = '" . (int)$languages_id . "' ORDER BY orders_id DESC";
+
+ self::$history_split = new splitPageResults($sql, MAX_DISPLAY_ORDER_HISTORY);
+ $_query = $DB->query(self::$history_split->sql_query);
+
+ foreach($_query->fetchAllAssoc() as $row){
+
+ $products_query = tep_db_query("select count(*) as count from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . (int)$row['orders_id'] . "'");
+ $products = tep_db_fetch_array($products_query);
+
+ if (tep_not_null($row['delivery_name'])) {
+ $order_type = TEXT_ORDER_SHIPPED_TO;
+ $order_name = $row['delivery_name'];
+ } else {
+ $order_type = TEXT_ORDER_BILLED_TO;
+ $order_name = $row['billing_name'];
+ }
+
+
+ $n = new objectInfo($row);
+ $n->date_purchased = tep_date_short($row['date_purchased']);
+ $n->type = 'order';
+ $n->count_products = $products['count'];
+ $n->destinataire = $order_type.' '.$order_name;
+// $n->linkView = tep_href_link(FILENAME_ACCOUNT, 'aca_mod='.$this->code.'&aca_type='.$this->type.'&aca_action=display_info&oID='. (int)$row['orders_id'], 'SSL');
+ $n->linkView = tep_href_link(FILENAME_ACCOUNT, 'action=history_info&order_id=' . (int)$row['orders_id'], 'SSL');
+ $n->linkPdf = tep_href_link(FILENAME_ACCOUNT, 'action=pdf&order_id=' . (int)$row['orders_id'], 'SSL');
+
+ $result[strtotime($row['date_purchased'])]=$n;
+ }
+
+
+ krsort($result);
+
+ return ($result);
+ }
+
+
+
+
+ /**
+ List des element du block my account
+ */
+ public function display_view_min_listMyOrders($cID){
+ global $page;
+
+ $v['title']=__("orders_history tab");
+ $v['href_link']= tep_href_link(FILENAME_ACCOUNT, 'aca_mod='.$this->code.'&aca_type='.$this->type.'&aca_action=display_view', 'SSL');
+ return array(new objectInfo($v));
+ }
+
+ /**
+ * \fn display_view($pID='')
+ * \brief Affiche Block edit/modif reviews
+ * @param $pID int id products
+ * @p $customer_id int current
+ */
+ public function display_view($pID=''){
+ global $page;
+
+ $customer_id=$page->the_var('customer_id');
+
+ self::$current = $this->load_db_values($customer_id);
+
+ return new objectInfo(array('title'=>__("orders_history heading listing"),'content'=> tep_output_string_protected(tep_get_include_contents(__CLASS__.'.'.__FUNCTION__),false,true) ) );
+ }
+
+
+ /**
+ * \brief select function for display
+ */
+// public function display_info(){
+// global $page;
+//
+// $customer_id=$page->the_var('customer_id');
+//
+// self::$current = $this->load_db_values($customer_id);
+//
+// return new objectInfo(array('title'=>__("orders_history heading listing"),'content'=> tep_output_string_protected(tep_get_include_contents(__CLASS__.'.'.__FUNCTION__),false,true) ) );
+// }
+
+
+
+/** implements InterfaceModule depend */
+ public function check() {}
+ public function install() {}
+ public function remove() {}
+ public function keys() {}
+}
+
+?>
\ No newline at end of file
Modified: trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/includes/content/account.php
===================================================================
--- trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/includes/content/account.php 2011-11-01 19:17:19 UTC (rev 3860)
+++ trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/includes/content/account.php 2011-11-01 21:02:36 UTC (rev 3861)
@@ -36,6 +36,27 @@
<?php } ?>
+
+
+ <div class="contentBox myAccount">
+ <h3><?php echo MY_ACCOUNT_TITLE; ?></h3>
+ <ul>
+ <li><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, 'action=edit', 'SSL') . '">' . MY_ACCOUNT_INFORMATION . '</a>'; ?></li>
+ <li><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, 'action=password', 'SSL') . '">' . MY_ACCOUNT_PASSWORD . '</a>'; ?></li>
+ <?php /** ACA module */ foreach($module as $k){ if (method_exists($k, 'display_view_min_listMyAccount')) foreach($k->display_view_min_listMyAccount($customer_id) as $kt=>$vt){ $i++; echo '<li><a href="'.$vt->href_link.'">'.$vt->title.'</a> </li>'; } } ?>
+ </ul>
+ </div>
+
+ <div class="contentBox myEmail">
+ <h3><?php echo HEADER_TITLE_LOGOFF; ?></h3>
+ <ul>
+ <li><?php echo '<a href="' . tep_href_link(FILENAME_LOGOFF, '', 'NONSSL') . '">' .TEXT_LOGOFF . '</a>'; ?></li>
+ </ul>
+ </div>
+
+ <div class="contentBox myOrders">
+ <h3><?php echo MY_ORDERS_TITLE; ?></h3>
+
<?php while ($orders = tep_db_fetch_array($orders_query)) {
if (tep_count_customer_orders() > 0) { ?>
<div class="contentBox overview">
@@ -47,26 +68,14 @@
else echo tep_output_string_protected($orders['billing_name']) . ', ' . $orders['billing_country']; ?></li>
</ul>
<?php } ?>
- <p><?php echo '<a class="navBtMini" href="' . tep_href_link(FILENAME_ACCOUNT, 'action=history', 'SSL') . '">' . OVERVIEW_SHOW_ALL_ORDERS . '</a>'; ?></p>
</div>
<?php } ?>
- <div class="contentBox myAccount">
- <h3><?php echo MY_ACCOUNT_TITLE; ?></h3>
<ul>
- <li><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, 'action=edit', 'SSL') . '">' . MY_ACCOUNT_INFORMATION . '</a>'; ?></li>
- <li><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, 'action=password', 'SSL') . '">' . MY_ACCOUNT_PASSWORD . '</a>'; ?></li>
- <?php /** ACA module */ foreach($module as $k){ if (method_exists($k, 'display_view_min_listMyAccount')) foreach($k->display_view_min_listMyAccount($customer_id) as $kt=>$vt){ $i++; echo '<li><a href="'.$vt->href_link.'">'.$vt->title.'</a> </li>'; } } ?>
+ <?php /** ACA module */ foreach($module as $k){ if (method_exists($k, 'display_view_min_listMyOrders')) foreach($k->display_view_min_listMyOrders($customer_id) as $kt=>$vt){ $i++; echo '<li><a href="'.$vt->href_link.'">'.$vt->title.'</a> </li>'; } } ?>
</ul>
</div>
- <div class="contentBox myOrders">
- <h3><?php echo MY_ORDERS_TITLE; ?></h3>
- <ul>
- <li><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, 'action=history', 'SSL') . '">' . MY_ORDERS_VIEW . '</a>'; ?></li>
- </ul>
- </div>
-
<div class="contentBox myEmail">
<h3><?php echo EMAIL_NOTIFICATIONS_TITLE; ?></h3>
<ul>
@@ -74,11 +83,6 @@
</ul>
</div>
- <div class="contentBox myEmail">
- <h3><?php echo HEADER_TITLE_LOGOFF; ?></h3>
- <ul>
- <li><?php echo '<a href="' . tep_href_link(FILENAME_LOGOFF, '', 'NONSSL') . '">' .TEXT_LOGOFF . '</a>'; ?></li>
- </ul>
- </div>
+
</div>
\ No newline at end of file
Deleted: trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/includes/content/account_history.php
===================================================================
--- trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/includes/content/account_history.php 2011-11-01 19:17:19 UTC (rev 3860)
+++ trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/includes/content/account_history.php 2011-11-01 21:02:36 UTC (rev 3861)
@@ -1,68 +0,0 @@
-<?php
-/**
- @licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
- @subpackage 2cShopHtml5Oscim
- @package osCSS-2 <www http://www.oscss.org>
- @author oscim <mail aur...@os...> <www http://www.oscim.fr>
- @date 16/09/10, 21:54
- @encode UTF-8
-*/
-?>
-
-<header>
- <h1 class="content title <?php echo $language ;?>"><?php echo HEADING_TITLE_6; ?></h1>
-</header>
-
-
-
-<div id="accountHistory">
-
-<?php
- $orders_total = tep_count_customer_orders();
-
- if ($orders_total > 0) {
- $history_query_raw = "select o.orders_id,o.orders_prefix, o.date_purchased, o.delivery_name, o.billing_name, ot.text as order_total,o.orders_status, s.status_name as orders_status_name from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_TOTAL . " ot, " . TABLE_STATUS . " s where o.customers_id = '" . (int)$customer_id . "' and o.orders_id = ot.orders_id and ot.class = 'ot_total' and o.orders_status = s.status_id AND status_type='orders' AND s.language_id = '" . (int)$languages_id . "' order by orders_id DESC";
- $history_split = new splitPageResults($history_query_raw, MAX_DISPLAY_ORDER_HISTORY);
- $history_query = tep_db_query($history_split->sql_query);
-
- while ($history = tep_db_fetch_array($history_query)) {
- $products_query = tep_db_query("select count(*) as count from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . (int)$history['orders_id'] . "'");
- $products = tep_db_fetch_array($products_query);
-
- if (tep_not_null($history['delivery_name'])) {
- $order_type = TEXT_ORDER_SHIPPED_TO;
- $order_name = $history['delivery_name'];
- } else {
- $order_type = TEXT_ORDER_BILLED_TO;
- $order_name = $history['billing_name'];
- }
-?>
- <dl class="orderHistory">
- <dt><?php echo TEXT_ORDER_NUMBER . $history['orders_prefix'].$history['orders_id']; ?> <span class="linkPdf"><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, 'action=pdf&'.(isset($_GET['page']) ? 'page=' . $_GET['page'] . '&' : '') . 'order_id=' . $history['orders_id'], 'SSL') ?>">PDF</a></span></dt>
- <dd><?php echo TEXT_ORDER_STATUS . $history['orders_status_name']; ?></dd>
- <dd><?php echo TEXT_ORDER_DATE . tep_date_long($history['date_purchased']) ;?></dd>
- <dd><?php echo $order_type . tep_output_string_protected($order_name); ?></dd>
- <dd><?php echo TEXT_ORDER_PRODUCTS . $products['count'] ;?></dd>
- <dd><?php echo TEXT_ORDER_COST . strip_tags($history['order_total']); ?></dd>
- <dd><?php echo '<a class="navBtMini" href="' . tep_href_link(FILENAME_ACCOUNT, 'action=history_info&'.(isset($_GET['page']) ? 'page=' . $_GET['page'] . '&' : '') . 'order_id=' . $history['orders_id'], 'SSL') . '">' . SMALL_IMAGE_BUTTON_VIEW . '</a>'; ?></dd>
- </dl>
-
-<?php }
- } else { ?>
- <p class="infoText"><?php echo TEXT_NO_PURCHASES; ?></p>
-<?php } ?>
-
-<?php if ($orders_total > 0) { ?>
-
-<div id="splitPageBottom">
- <p class="sP1"><?php echo $history_split->display_count(TEXT_DISPLAY_NUMBER_OF_ORDERS); ?></p>
- <p class="sP2"><?php echo TEXT_RESULT_PAGE . ' ' . $history_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></p>
-</div>
-
-<?php } ?>
-
- <div class="navBt">
- <?php echo '<a class="navBt" href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . IMAGE_BUTTON_BACK . '</a>'; ?>
- </div>
-
-</div>
\ No newline at end of file
Modified: trunk/catalog/install/data/templates/appareil_photo/electronix/includes/content/account.php
===================================================================
--- trunk/catalog/install/data/templates/appareil_photo/electronix/includes/content/account.php 2011-11-01 19:17:19 UTC (rev 3860)
+++ trunk/catalog/install/data/templates/appareil_photo/electronix/includes/content/account.php 2011-11-01 21:02:36 UTC (rev 3861)
@@ -60,7 +60,7 @@
<div class="contentBox myOrders">
<h3><?php echo MY_ORDERS_TITLE; ?></h3>
<ul>
- <li><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, 'action=history', 'SSL') . '">' . MY_ORDERS_VIEW . '</a>'; ?></li>
+ <?php /** ACA module */ foreach($module as $k){ if (method_exists($k, 'display_view_min_listMyOrders')) foreach($k->display_view_min_listMyOrders($customer_id) as $kt=>$vt){ $i++; echo '<li><a href="'.$vt->href_link.'">'.$vt->title.'</a> </li>'; } } ?>
</ul>
</div>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <os...@us...> - 2011-11-04 07:38:52
|
Revision: 3864
http://oscss.svn.sourceforge.net/oscss/?rev=3864&view=rev
Author: oscim
Date: 2011-11-04 07:38:45 +0000 (Fri, 04 Nov 2011)
Log Message:
-----------
amelioration et ajustement sql lors de l'install
Modified Paths:
--------------
trunk/catalog/admin/editeur/tiny_mce/oscss_init.php
trunk/catalog/admin/includes/gabarit/configuration/modadminconfig.listing.gab
trunk/catalog/admin/includes/modules/configuration/modadminconfig.php
trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql
trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration_group.sql
Modified: trunk/catalog/admin/editeur/tiny_mce/oscss_init.php
===================================================================
--- trunk/catalog/admin/editeur/tiny_mce/oscss_init.php 2011-11-02 14:12:13 UTC (rev 3863)
+++ trunk/catalog/admin/editeur/tiny_mce/oscss_init.php 2011-11-04 07:38:45 UTC (rev 3864)
@@ -3,11 +3,11 @@
@licence GPL 2005-2010 The osCSS developers - osCSS Open Source E-commerce
@portion code Copyright (c) 2002 osCommerce
@package osCSS-2 <www http://www.oscss.org>
- @version 2.1.0
- @date 09/01/11, 03:00
+ @version 2.1.1
+ @date 03/11/11, 21:18
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
- Chargeur pour oscss
+ @brief Chargeur pour oscss
Output a form textarea field w/ tiny_mce
NOTE:
@@ -22,7 +22,8 @@
-class tiny_mce_oscss extends oscss_cstr {
+class tiny_mce_oscss
+ extends oscss_cstr {
function tiny_mce_options(){
global $oscss;
@@ -109,5 +110,28 @@
return $field;
}
+
+
+
+
+
+
+// function check() {
+// if (!isset($this->_check)) {
+// $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_GENERIC_SVNUPDATE_SORT_ORDER'");
+// $this->_check = tep_db_num_rows($check_query);
+// }
+// return $this->_check;
+// }
+//
+// function install() {
+// tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added,configuration_type) values ('".addslashes(__("Ordre de tri"))."', 'MODULE_GENERIC_SVNUPDATE_SORT_ORDER', '0', '".addslashes(__("Ordre de tri, dans l'affichage"))."', '1', '0', now(),1)");
+// }
+//
+// function remove() { return false; }
+//
+// function keys() {
+// return array();
+// }
}
?>
\ No newline at end of file
Modified: trunk/catalog/admin/includes/gabarit/configuration/modadminconfig.listing.gab
===================================================================
--- trunk/catalog/admin/includes/gabarit/configuration/modadminconfig.listing.gab 2011-11-02 14:12:13 UTC (rev 3863)
+++ trunk/catalog/admin/includes/gabarit/configuration/modadminconfig.listing.gab 2011-11-04 07:38:45 UTC (rev 3864)
@@ -34,7 +34,6 @@
<?php echo $row->value_field ; ?>
</p>
</div>
- </p>
@@ -65,13 +64,27 @@
</fieldset>
+ <fieldset class="block_field">
+ <?php /** */ $row = modadminconfig::$list['BO_WISIWYG_SELECTED']; ?>
+ <legend title="<?php echo '('.$row->key.' - ' . $row->set . ')'; ?>"><?php echo __($row->title). tep_image(DIR_WS_ICONS . 'icon_help.gif'); ?></legend>
+
+ <div class="block_input">
+ <label><?php if (tep_not_null($row->description))echo __($row->description); ?></label>
+ <p>
+ <?php echo $row->value_field ; ?>
+ </p>
+ </div>
+ </fieldset>
+
+
+
<?php /** */ ?>
<fieldset class="block_field">
<legend class="block_field-title"><?php echo __('modadminconfig legend other') ?></legend>
<ul class="block_input">
<?php foreach(modadminconfig::$list as $row)
- if(!in_array($row->key,array('CHECKUP_WARN',)) && substr($row->key,0,4) !='WARN' ) { ?>
+ if(!in_array($row->key,array('CHECKUP_WARN','BO_WISIWYG_SELECTED')) && substr($row->key,0,4) !='WARN' ) { ?>
<li id="nav_<?php echo $row->key ?>"><h5 title="<?php echo '('.$row->key.' - ' . $row->set . ')'; ?>"><?php echo __($row->title). tep_image(DIR_WS_ICONS . 'icon_help.gif'); ?></h5>
<div class="block_input tirroir">
Modified: trunk/catalog/admin/includes/modules/configuration/modadminconfig.php
===================================================================
--- trunk/catalog/admin/includes/modules/configuration/modadminconfig.php 2011-11-02 14:12:13 UTC (rev 3863)
+++ trunk/catalog/admin/includes/modules/configuration/modadminconfig.php 2011-11-04 07:38:45 UTC (rev 3864)
@@ -8,7 +8,6 @@
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
@class modadminconfig
- Mise en forme et structuration des options de stock
*/
@@ -90,7 +89,6 @@
$gID = 17;
$list=sqlconfiguration::fetch(array('group_id'=> (int)$gID), true);
-
foreach($list as $row) {
$cfgValue =configUtility::CallExecConfigLine($row->use, $row->key, $row->value);
@@ -127,10 +125,7 @@
}
/**
- Contenu central
- @param
- @e global $action
- @e global $gparentID
+ @brief Contenu central
*/
public function draw(){
global $action,$gparentID;
@@ -138,6 +133,20 @@
self::$list = $this->load_db_values('');
return tep_get_include_contents('configuration/'.__CLASS__.'.listing');
}
+
+
+ /**
+ @brief Scan and retrun wisiwyg in /editeur/
+ */
+ function GetBrowser(){
+ $list = array();
+ foreach(scan(DIR_FS_ADMIN .'editeur/') as $row){
+ if(is_dir(DIR_FS_ADMIN .'editeur/'.$row) && file_exists(DIR_FS_ADMIN .'editeur/'.$row.'/oscss_init.php')){
+ $list[$row]= $row;
+ }
+ }
+ return $list;
+ }
}
?>
\ No newline at end of file
Modified: trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql
===================================================================
--- trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql 2011-11-02 14:12:13 UTC (rev 3863)
+++ trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql 2011-11-04 07:38:45 UTC (rev 3864)
@@ -244,7 +244,7 @@
## 17 General Backoffice
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type) values ('BO_FILEBROSWER_SERVER_USE_S', 'BO_FILEBROSWER_SERVER_USE', 'tinybrowser', 'BO_FILEBROSWER_SERVER_USE_L', '17', '0', NOW(), NOW(), NULL, NULL, '1');
-insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type) values ('BO_WISIWYG_SELECTED_S', 'BO_WISIWYG_SELECTED', 'tiny_mce', 'BO_WISIWYG_SELECTED_L', '17', '0', NOW(), NOW(), NULL, NULL, '1');
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type) values ('BO_WISIWYG_SELECTED_S', 'BO_WISIWYG_SELECTED', 'tiny_mce', 'BO_WISIWYG_SELECTED_L', '17', '0', NOW(), NOW(), NULL, 'tep_cfg_select_option_bis(modadminconfig::GetBrowser(),', '1');
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function , set_function,configuration_type ) values ('CHECKUP_WARN_S', 'CHECKUP_WARN', 'true', 'CHECKUP_WARN_L', '17', '6', NOW(), NOW(),'tep_value_for_humain', 'tep_cfg_select_option(array(\'true\', \'false\'),','1');
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function , set_function,configuration_type) values ('WARN_INSTALL_EXISTENCE_S', 'WARN_INSTALL_EXISTENCE', 'true', 'WARN_INSTALL_EXISTENCE_L', '17', '7', NOW(), NOW(),'tep_value_for_humain', 'tep_cfg_select_option(array(\'true\', \'false\'),','1');
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function , set_function,configuration_type) values ('WARN_CONFIG_WRITEABLE_S', 'WARN_CONFIG_WRITEABLE', 'true', 'WARN_CONFIG_WRITEABLE_L', '17', '8', NOW(), NOW(),'tep_value_for_humain', 'tep_cfg_select_option(array(\'true\', \'false\'),','1');
@@ -353,11 +353,11 @@
## 129 option orders
-insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('DEFAULT_ORDERS_STATUS_ID_S', 'DEFAULT_ORDERS_STATUS_ID', '1', 'DEFAULT_ORDERS_STATUS_ID_L', '129', '2', NULL, NOW(), NULL, NULL);
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('DEFAULT_ORDERS_STATUS_ID_S', 'DEFAULT_ORDERS_STATUS_ID', '1', 'DEFAULT_ORDERS_STATUS_ID_L', '129', '2', NULL, NOW(), 'tep_cfg_pull_down_order_statuses(', 'tep_get_order_status_name',2, configuration_type);
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, configuration_type) values ('ORDERS_NUMBER_PREFIX_S', 'ORDERS_NUMBER_PREFIX', 'ym-5', 'ORDERS_NUMBER_PREFIX_L', '129', '0', NULL, NOW(), '2');
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type) values ('USE_LOCAL_GENERAT_ORDER_REF_S', 'USE_LOCAL_GENERAT_ORDER_REF', '10', 'USE_LOCAL_GENERAT_ORDER_REF_L', '129', '5', NULL, NOW(), 'tep_value_for_humain', 'tep_cfg_select_option(array(\'true\', \'false\'),','3');
-insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type) values ('DEFAULT_ORDERS_STATUS_COMPLETED_S', 'DEFAULT_ORDERS_STATUS_COMPLETED', '3', 'DEFAULT_ORDERS_STATUS_COMPLETED_L', '129', '0', NULL, NOW(), NULL, NULL,2);
-insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type) values ('DEFAULT_ORDERS_STATUS_ID_S', 'DEFAULT_ORDERS_STATUS_ANNULATE', '4', 'DEFAULT_ORDERS_STATUS_ID_L', '129', '0', NULL, NOW(), NULL, NULL,2);
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type) values ('DEFAULT_ORDERS_STATUS_COMPLETED_S', 'DEFAULT_ORDERS_STATUS_COMPLETED', '3', 'DEFAULT_ORDERS_STATUS_COMPLETED_L', '129', '0', NULL, NOW(), 'tep_cfg_pull_down_order_statuses(', 'tep_get_order_status_name',2);
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type) values ('DEFAULT_ORDERS_STATUS_ID_S', 'DEFAULT_ORDERS_STATUS_ANNULATE', '4', 'DEFAULT_ORDERS_STATUS_ID_L', '129', '0', NULL, NOW(),'tep_cfg_pull_down_order_statuses(', 'tep_get_order_status_name',2);
## 130 option data types
Modified: trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration_group.sql
===================================================================
--- trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration_group.sql 2011-11-02 14:12:13 UTC (rev 3863)
+++ trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration_group.sql 2011-11-04 07:38:45 UTC (rev 3864)
@@ -59,5 +59,5 @@
insert into osc_configuration_group values (34 , 'BOX_CONFIGURATION_PRODUCTS_EXTRA_FIELDS', NULL, 0 , 1, 120, '1', 'MODPRODEXTRA');
insert into osc_configuration_group values (128,'BOX_CONFIGURATION_ENVIRONEMENT', NULL, 0, 1, 120, '1', 'CFG_ENVIRONEMENT');
insert into osc_configuration_group values (129,'CONFIGURATION_ORDERS', NULL, 0, 1, 127, '1', 'MODORDER');
-insert into osc_configuration_group values (130,'CONFIGURATION_DATATYPES', NULL, 0, 1, 127, '1', 'MODDATATYPE');
+#insert into osc_configuration_group values (130,'CONFIGURATION_DATATYPES', NULL, 0, 1, 127, '1', 'MODDATATYPE');
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <os...@us...> - 2011-11-04 08:06:30
|
Revision: 3865
http://oscss.svn.sourceforge.net/oscss/?rev=3865&view=rev
Author: oscim
Date: 2011-11-04 08:06:23 +0000 (Fri, 04 Nov 2011)
Log Message:
-----------
correction coquille install
Modified Paths:
--------------
trunk/catalog/common/classes/sql_drivers/DB_Mysql.php
trunk/catalog/install/includes/modele/admin_configure.txt
trunk/catalog/install/includes/modele/configure.txt
trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql
trunk/catalog/install/includes/team_info/base.inc
Modified: trunk/catalog/common/classes/sql_drivers/DB_Mysql.php
===================================================================
--- trunk/catalog/common/classes/sql_drivers/DB_Mysql.php 2011-11-04 07:38:45 UTC (rev 3864)
+++ trunk/catalog/common/classes/sql_drivers/DB_Mysql.php 2011-11-04 08:06:23 UTC (rev 3865)
@@ -71,8 +71,6 @@
if (is_resource($this->resConnection))
{
- @mysql_query("SET sql_mode=''", $this->resConnection);
- @mysql_query("SET NAMES " . parent::CHARSET, $this->resConnection);
if($db)
$this->set_database(parent::DB);
}
@@ -183,6 +181,8 @@
*/
protected function set_database($strDatabase)
{
+ @mysql_query("SET sql_mode=''", $this->resConnection);
+ @mysql_query("SET NAMES " . parent::CHARSET, $this->resConnection);
return @mysql_select_db($strDatabase, $this->resConnection);
}
Modified: trunk/catalog/install/includes/modele/admin_configure.txt
===================================================================
--- trunk/catalog/install/includes/modele/admin_configure.txt 2011-11-04 07:38:45 UTC (rev 3864)
+++ trunk/catalog/install/includes/modele/admin_configure.txt 2011-11-04 08:06:23 UTC (rev 3865)
@@ -94,8 +94,8 @@
define('DB_CONNECTOR', '%DBMOTOR%');
define('DB_MOTOR', '%DBMOTOR%');
define('DB_MOTOR_TYPE', '%DBMOTOR_TYPE%');
- define('DB_PORT', '%DB_PORT%');
- define('DB_CHARSET', '%DB_CHARSET%');
+ define('DB_PORT', '%DBMOTOR_PORT%');
+ define('DB_CHARSET', '%DBMOTOR_CHARSET%');
define('DB_SERVER', '%DB_SERVER%'); // eg, localhost - should not be empty for productive servers
define('DB_SERVER_USERNAME', '%DB_SERVER_USERNAME%');
define('DB_SERVER_PASSWORD', '%DB_SERVER_PASSWORD%');
Modified: trunk/catalog/install/includes/modele/configure.txt
===================================================================
--- trunk/catalog/install/includes/modele/configure.txt 2011-11-04 07:38:45 UTC (rev 3864)
+++ trunk/catalog/install/includes/modele/configure.txt 2011-11-04 08:06:23 UTC (rev 3865)
@@ -84,8 +84,8 @@
define('DB_CONNECTOR', '%DBMOTOR%');
define('DB_MOTOR', '%DBMOTOR%');
define('DB_MOTOR_TYPE', '%DBMOTOR_TYPE%');
- define('DB_PORT', '%DB_PORT%');
- define('DB_CHARSET', '%DB_CHARSET%');
+ define('DB_PORT', '%DBMOTOR_PORT%');
+ define('DB_CHARSET', '%DBMOTOR_CHARSET%');
define('DB_SERVER', '%DB_SERVER%'); // eg, localhost - should not be empty for productive servers
define('DB_SERVER_USERNAME', '%DB_SERVER_USERNAME%');
define('DB_SERVER_PASSWORD', '%DB_SERVER_PASSWORD%');
Modified: trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql
===================================================================
--- trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql 2011-11-04 07:38:45 UTC (rev 3864)
+++ trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql 2011-11-04 08:06:23 UTC (rev 3865)
@@ -353,7 +353,7 @@
## 129 option orders
-insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('DEFAULT_ORDERS_STATUS_ID_S', 'DEFAULT_ORDERS_STATUS_ID', '1', 'DEFAULT_ORDERS_STATUS_ID_L', '129', '2', NULL, NOW(), 'tep_cfg_pull_down_order_statuses(', 'tep_get_order_status_name',2, configuration_type);
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function,configuration_type) values ('DEFAULT_ORDERS_STATUS_ID_S', 'DEFAULT_ORDERS_STATUS_ID', '1', 'DEFAULT_ORDERS_STATUS_ID_L', '129', '2', NULL, NOW(), 'tep_cfg_pull_down_order_statuses(', 'tep_get_order_status_name',2);
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, configuration_type) values ('ORDERS_NUMBER_PREFIX_S', 'ORDERS_NUMBER_PREFIX', 'ym-5', 'ORDERS_NUMBER_PREFIX_L', '129', '0', NULL, NOW(), '2');
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type) values ('USE_LOCAL_GENERAT_ORDER_REF_S', 'USE_LOCAL_GENERAT_ORDER_REF', '10', 'USE_LOCAL_GENERAT_ORDER_REF_L', '129', '5', NULL, NOW(), 'tep_value_for_humain', 'tep_cfg_select_option(array(\'true\', \'false\'),','3');
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type) values ('DEFAULT_ORDERS_STATUS_COMPLETED_S', 'DEFAULT_ORDERS_STATUS_COMPLETED', '3', 'DEFAULT_ORDERS_STATUS_COMPLETED_L', '129', '0', NULL, NOW(), 'tep_cfg_pull_down_order_statuses(', 'tep_get_order_status_name',2);
Modified: trunk/catalog/install/includes/team_info/base.inc
===================================================================
--- trunk/catalog/install/includes/team_info/base.inc 2011-11-04 07:38:45 UTC (rev 3864)
+++ trunk/catalog/install/includes/team_info/base.inc 2011-11-04 08:06:23 UTC (rev 3865)
@@ -9,5 +9,5 @@
</p>
<p><strong>Soutenez nous !</strong> Participez à la promotion, au développement, aux remontées de bug, afin d'améliorer les performances, la stabilité et la cohérence de l'ensemble. Toutes informations liées à votre utilisation nous intéressent. Quelques minutes pour nous faire connaître vos remarques sur cette solution seront les bienvenues.
</p>
-<p>osCSS, 2005 - 2010. - Basé à l'origine sur osCommerce</p>
+<p>osCSS, 2005 - <?php echo date('Y') ?>. - Basé à l'origine sur osCommerce</p>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <os...@us...> - 2011-11-05 08:16:46
|
Revision: 3867
http://oscss.svn.sourceforge.net/oscss/?rev=3867&view=rev
Author: oscim
Date: 2011-11-05 08:16:39 +0000 (Sat, 05 Nov 2011)
Log Message:
-----------
correction coquille
Modified Paths:
--------------
trunk/catalog/admin/includes/modules/pages/products.php
trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/includes/content/account_edit.php
trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/includes/content/advanced_search.php
trunk/catalog/install/includes/functions/unzip.php
Modified: trunk/catalog/admin/includes/modules/pages/products.php
===================================================================
--- trunk/catalog/admin/includes/modules/pages/products.php 2011-11-04 16:26:25 UTC (rev 3866)
+++ trunk/catalog/admin/includes/modules/pages/products.php 2011-11-05 08:16:39 UTC (rev 3867)
@@ -567,7 +567,6 @@
}
private static function emptyResult(){
-// return array( 'null', 'id', 'image', 'pv.typeID', 'model', 'name', 'categorie', 'quantity', 'price', 'status', 'action' );
$mod[] = 'null';
$mod[] = 'null';
$mod[] = 'null';
@@ -604,7 +603,7 @@
if(self::$cPath>0) self::$DiversInfo['current_category_id']=self::$cPath;
else self::$DiversInfo['current_category_id']=(isset($options['current_category_id'])?$options['current_category_id'] :'');
- $sta=(!empty(self::$Vtype)? " AND pv.typeID ='".(int)self::$Vtype."' " : '' );
+ $sta=(!empty(self::$Vtype)? " AND p.products_type ='".(int)self::$Vtype."' " : '' );
$DB=Database::getInstance();
$listing_products=array();
@@ -630,7 +629,7 @@
$pq=$DB->query($products_query);
while ($products = tep_db_fetch_array($pq)) {
-// $products['pv.typeID']=(!empty($products['typeID'])? $products['typeID']: '0');
+
$products['products_image']=(!empty($products['products_image']))
? tep_info_image($products['products_image'], $products['products_name'], TEMP_BO_SMALL_IMAGE_WIDTH, TEMP_BO_SMALL_IMAGE_HEIGHT)
: tep_info_image(IMAGE_NONEXISTENT, $products['products_name'], TEMP_BO_SMALL_IMAGE_WIDTH, TEMP_BO_SMALL_IMAGE_HEIGHT) ;
Modified: trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/includes/content/account_edit.php
===================================================================
--- trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/includes/content/account_edit.php 2011-11-04 16:26:25 UTC (rev 3866)
+++ trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/includes/content/account_edit.php 2011-11-05 08:16:39 UTC (rev 3867)
@@ -10,12 +10,12 @@
$account = $page->_call('customer','the_customer');
?>
-<header>
+<header class="main-content">
<h1 class="content title <?php echo $language ;?>"><?php echo HEADING_TITLE_7; ?></h1>
</header>
-<div id="accountEdit">
+<div id="accountEdit" class="main-content">
<?php $page->messageStack->_draw('account_edit');?>
@@ -25,13 +25,13 @@
<fieldset class="account">
<legend><?php echo MY_ACCOUNT_TITLE; ?></legend>
-
+ <ul>
<?php if ( $page->_draw_in_page('ACCOUNT_GENDER')) {
$male = ($account['customers_gender'] == 'm' ? true : false);
$female = ($account['customers_gender'] == 'f'? true : false);
$mlle = ($account['customers_gender'] == 'l' ? true : false);
?>
- <p class="gender">
+ <li class="BlockRows gender">
<label><?php echo ENTRY_GENDER; ?></label>
<?php echo tep_draw_radio_field('gender','male', 'm', $male) ;?>
<?php echo MALE ;?>
@@ -40,61 +40,61 @@
<?php echo tep_draw_radio_field('gender','mlle', 'l', $mlle) ;?>
<?php echo MLLE ;?>
<?php echo (tep_not_null(ENTRY_GENDER_TEXT) ? '<span class="inputRequirement">' . ENTRY_GENDER_TEXT . '</span>': ''); ?>
- </p>
+ </li>
<?php } ?>
- <p>
+
+
+ <li class="BlockRows">
<label for="accountEditFirstname"><?php echo ENTRY_FIRST_NAME; ?></label>
- <?php echo tep_draw_input_field('firstname','accountEditFirstname', $account['customers_firstname']) . ' ' . (tep_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_FIRST_NAME_TEXT . '</span>': ''); ?>
- </p>
+ <?php echo tep_draw_input_field('firstname','accountEditFirstname', $account['customers_firstname']) . ' ' . (tep_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_FIRST_NAME_TEXT . '</span>': ''); ?>
+ </li>
- <p>
+ <li class="BlockRows">
<label for="accountEditLastname"><?php echo ENTRY_LAST_NAME; ?></label>
<?php echo tep_draw_input_field('lastname','accountEditLastname', $account['customers_lastname']) . ' ' . (tep_not_null(ENTRY_LAST_NAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_LAST_NAME_TEXT . '</span>': ''); ?>
- </p>
+ </li>
- <?php if ( $page->_draw_in_page('ACCOUNT_DOB')) { ?>
- <p>
+ <?php if ( $page->_draw_in_page('ACCOUNT_DOB')): ?>
+ <li class="BlockRows">
<label for="accountEditDob"><?php echo ENTRY_DATE_OF_BIRTH; ?></label>
<?php echo tep_draw_input_field('dob','accountEditDob', tep_date_short($account['customers_dob'])) . ' ' . (tep_not_null(ENTRY_DATE_OF_BIRTH_TEXT) ? '<span class="inputRequirement">' . ENTRY_DATE_OF_BIRTH_TEXT . '</span>': ''); ?>
- </p>
- <?php } ?>
+ </li>
+ <?php endif; ?>
- <p>
+ <li class="BlockRows">
<label for="accountEditEmail"><?php echo ENTRY_EMAIL_ADDRESS; ?></label>
<?php echo tep_draw_input_field('email_address', 'accountEditEmail',$account['customers_email_address']) . ' ' . (tep_not_null(ENTRY_EMAIL_ADDRESS_TEXT) ? '<span class="inputRequirement">' . ENTRY_EMAIL_ADDRESS_TEXT . '</span>': ''); ?>
- </p>
+ </li>
- <p>
+ <li class="BlockRows">
<label for="accountEditPhone"><?php echo ENTRY_TELEPHONE_NUMBER; ?></label>
<?php echo tep_draw_input_field('telephone','accountEditPhone', $account['customers_telephone']) . ' ' . (tep_not_null(ENTRY_TELEPHONE_NUMBER_TEXT) ? '<span class="inputRequirement">' . ENTRY_TELEPHONE_NUMBER_TEXT . '</span>': ''); ?>
- </p>
+ </li>
<?php if (_cst_bool('ACCOUNT_FAXNUM')): ?>
- <p>
+ <li class="BlockRows">
<label for="accountEditFax"><?php echo ENTRY_FAX_NUMBER; ?></label>
<?php echo tep_draw_input_field('fax', 'accountEditFax',$account['customers_fax']) . ' ' . (tep_not_null(ENTRY_FAX_NUMBER_TEXT) ? '<span class="inputRequirement">' . ENTRY_FAX_NUMBER_TEXT . '</span>': ''); ?>
- </p>
+ </li>
<?php endif; ?>
+ </ul>
<!-- // BOF Customers extra fields -->
<?php echo tep_get_extra_fields($customer_id, $languages_id)?>
<!-- // EOF Customers extra fields -->
- <p class="formBt"><?php echo tep_draw_hidden_field('action', 'process') ;?><input type="submit" class="submitBt" value="<?php echo IMAGE_BUTTON_CONTINUE; ?>" /></p>
+ <p class="BlockRows Button formBt">
+ <?php echo tep_draw_hidden_field('action', 'process') ;?>
+ <input type="submit" class="submitBt" value="<?php echo IMAGE_BUTTON_CONTINUE; ?>" />
+ </p>
+
</fieldset>
</form>
- <div class="navBt">
+ <div class="Button navBt">
<?php echo '<a class="navBt" href="' . tep_href_link(FILENAME_ACCOUNT) . '">' . IMAGE_BUTTON_BACK . '</a>'; ?>
</div>
- <!-- extra divs to add extra pictures. -->
- <div class="extraDiv1"><span></span></div>
- <div class="extraDiv2"><span></span></div>
- <div class="extraDiv3"><span></span></div>
- <div class="extraDiv4"><span></span></div>
- <div class="extraDiv5"><span></span></div>
-
</div>
\ No newline at end of file
Modified: trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/includes/content/advanced_search.php
===================================================================
--- trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/includes/content/advanced_search.php 2011-11-04 16:26:25 UTC (rev 3866)
+++ trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/includes/content/advanced_search.php 2011-11-05 08:16:39 UTC (rev 3867)
@@ -1,94 +1,150 @@
<?php
/**
- @licence GPL 2005-2010 The osCSS developers - osCSS Open Source E-commerce
- @portion code Copyright (c) 2002 osCommerce
+ @licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
+ @subpackage 2cShopHtml5Oscim
@package osCSS-2 <www http://www.oscss.org>
- @version 2.1.0
- @date 16/09/10, 21:53
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @date 16/09/10, 21:54
@encode UTF-8
+ @brief this page draw form for requete search in db
+ this item search is only product type
*/
+
+/**
+ @remarks Load split page , and Load the module with the result of the split
+*/
+if (isset($listing_sql) && tep_not_null($listing_sql) ){
+ $listing_split = new splitPageResults($listing_sql, $page->_conf_value('MAX_DISPLAY_SEARCH_RESULTS'), 'p.products_id');
+ $page->oscss_modules->_add(FILENAME_PRODUCT_LISTING,'center', array('listing_split'=>$listing_split,'listing_query'=>$listing_sql) );
+}
?>
-<div id="advancedSearch">
+
+<header class="main-content">
+ <h1 class="content title <?php echo $language ;?>"><?php echo HEADING_TITLE_1; ?></h1>
+</header>
+
+<div id="advancedSearch" class="main-content">
<?php $page->messageStack->_draw('search');?>
- <h2 class="content title <?php echo $language ;?>"><?php echo HEADING_TITLE_1; ?></h2>
- <?php
- if ( ($replace=$page->prop_ctrl('text_search_help_link', 'text_search_help_link')) !=false) echo $replace();
- else {
- echo '<p id="text_search_help_link" class="infoText"><a href="javascript:popupWindow(\'' . tep_href_link(FILENAME_SEARCH_HELP,'&popup=true') . '\')">' . TEXT_SEARCH_HELP_LINK . '</a></p>';
- } ?>
+ <?php /**
+ @remarks Selecteur du texte
+ 1 : Page CMS
+ 2 : plugins use prop_ctrl
+ 3 : link popup text help
+ */ ?>
+ <?php if( (($conti=tep_get_cms_content('text_search_help', true,
+ '<header>
+ <h2 class="content title '.$language.'">%s</h2>
+ </header>
+ <div class="">
+ %s
+ </div>'
+ )) !=false ) ):/** Page cms de contenu text_search_help */ ?>
+ <?php echo $conti; ?>
+ <?php elseif( ($replace=$page->prop_ctrl('text_search_help_link', 'text_search_help_link')) !=false): /** Prise en charge des plugin exploitant la propriété text_search_help_link */ ?>
+ <?php echo $replace(); ?>
+ <?php else: ?>
+ <p id="text_search_help_link" class="infoText">
+ <a href="javascript:popupWindow('<?php echo tep_href_link(FILENAME_SEARCH_HELP,'&popup=true') ?>')"><?php echo TEXT_SEARCH_HELP_LINK ?></a>
+ </p>
+ <?php endif; ?>
+
+
+
+
+
+
+
+ <?php /**
+ @remarks Block draw form
+ This search Use GET values
+ */ ?>
+
<?php echo tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH, '', 'NONSSL', false), 'get', 'onsubmit="return check_form(this);"') ;?>
<fieldset class="advancedSearch">
<legend><?php echo HEADING_SEARCH_CRITERIA ; ?></legend>
<?php echo tep_hide_session_id().tep_draw_hidden_field('search_in_description', '1') ;?>
+
<ul>
- <li>
- <label><?php echo ENTRY_KEYWORDS ; ?></label>
+ <li class="BlockRows">
+ <label for="keywords"><?php echo ENTRY_KEYWORDS ; ?></label>
<?php echo tep_draw_input_field('keywords', 'keywords','','onfocus="this.value=\'\'"') ; ?>
</li>
- <li>
- <label><?php echo ENTRY_CATEGORIES; ?></label>
- <?php echo tep_draw_pull_down_menu('categories_id', 'categories_id', tep_get_categories(array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES)))); ?>
- </li>
+ <li class="BlockRows">
+ <span class="BlockInput">
+ <label for="categories_id"><?php echo ENTRY_CATEGORIES; ?></label>
+ <?php echo tep_draw_pull_down_menu('categories_id', 'categories_id', tep_get_categories(array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES)))); ?>
+ </span>
- <li class="check">
- <label><?php echo ENTRY_INCLUDE_SUBCATEGORIES; ?></label>
- <?php echo tep_draw_checkbox_field('inc_subcat','inc_subcat', '1', true) ;?>
+ <span class="BlockInput">
+ <label for="inc_subcat"><?php echo ENTRY_INCLUDE_SUBCATEGORIES; ?></label>
+ <?php echo tep_draw_checkbox_field('inc_subcat','inc_subcat', '1', true) ;?>
+ </span>
</li>
<li>
- <label><?php echo ENTRY_MANUFACTURERS; ?></label>
+ <label for="manufacturers_id"><?php echo ENTRY_MANUFACTURERS; ?></label>
<?php echo tep_draw_pull_down_menu('manufacturers_id', 'manufacturers_id', tep_get_manufacturers(array(array('id' => '', 'text' => TEXT_ALL_MANUFACTURERS)))); ?>
</li>
- <li>
+ <li class="BlockRows">
+ <span class="BlockInput">
<label for="pfrom"><?php echo ENTRY_PRICE_FROM; ?></label>
<?php echo tep_draw_input_field('pfrom','pfrom'); ?>
- </li>
+ </span>
- <li>
+ <span class="BlockInput">
<label for="pto"><?php echo ENTRY_PRICE_TO; ?></label>
<?php echo tep_draw_input_field('pto','pto'); ?>
+ </span>
</li>
- <li>
+
+ <li class="BlockRows">
+ <span class="BlockInput">
<label for="dfrom"><?php echo ENTRY_DATE_FROM; ?></label>
<?php echo tep_draw_input_field('dfrom','dfrom', DOB_FORMAT_STRING, 'onfocus="this.value=\'\'"'); ?>
- </li>
+ </span>
- <li>
+ <span class="BlockInput">
<label for="dto"><?php echo ENTRY_DATE_TO; ?></label>
<?php echo tep_draw_input_field('dto','dto', DOB_FORMAT_STRING, 'onfocus="this.value=\'\'"'); ?>
+ </span>
</li>
- <li>
- <label for="dto"><?php echo ENTRY_DATE_TO; ?></label>
+<!-- <li class="BlockRows">
+ <label for="dto"><?php echo ENTRY_OPTION; ?></label>
<?php echo tep_list_option_value_dipso(); ?>
+ </li>-->
+
+ <li class="BlockRows Button">
+ <input type="submit" class="submitBt" value="<?php echo IMAGE_BUTTON_SEARCH; ?>" />
</li>
- <li class="formBt"><input type="submit" class="submitBt" value="<?php echo IMAGE_BUTTON_SEARCH; ?>" /></li>
</ul>
</fieldset>
</form>
</div>
-<?php if (isset($listing_sql) && tep_not_null($listing_sql) ) {
-$listing_split = new splitPageResults($listing_sql, $page->_conf_value('MAX_DISPLAY_SEARCH_RESULTS'), 'p.products_id');
-?>
-<div id="advancedSearchResult">
- <h2 class="content title <?php echo $language ;?>"><?php echo HEADING_TITLE_2; ?></h2>
+ <?php /**
+ @remarks Result by $string query sql $listing_sql
+ Draw title. This result use module (no type) listing product
+ and is call by template file in loop module
+ */ ?>
- <?php $page->oscss_modules->_add(FILENAME_PRODUCT_LISTING,'center', array('listing_split'=>$listing_split,'listing_query'=>$listing_sql) ); ?>
+<?php if (isset($listing_sql) && tep_not_null($listing_sql) ): ?>
+ <div id="advancedSearchResult" class="main-content">
- <div class="navBt">
- <?php echo '<a class="navBt" href="' . tep_href_link(FILENAME_ADVANCED_SEARCH, tep_get_all_get_params(array('sort', 'page')), 'NONSSL', true, false) . '">' . IMAGE_BUTTON_BACK . '</a>'; ?>
+ <h2 class="content title <?php echo $language ;?>"><?php echo HEADING_TITLE_2; ?></h2>
+
+ <div class="navBt Button">
+ <a class="navBt" href="<?php echo tep_href_link(FILENAME_ADVANCED_SEARCH, tep_get_all_get_params(array('sort', 'page')), 'NONSSL', true, false) ?>"><?php echo IMAGE_BUTTON_BACK ?></a>
+ </div>
+
</div>
-
-</div>
- <?php } ?>
\ No newline at end of file
+<?php endif; ?>
\ No newline at end of file
Modified: trunk/catalog/install/includes/functions/unzip.php
===================================================================
--- trunk/catalog/install/includes/functions/unzip.php 2011-11-04 16:26:25 UTC (rev 3866)
+++ trunk/catalog/install/includes/functions/unzip.php 2011-11-05 08:16:39 UTC (rev 3867)
@@ -57,7 +57,7 @@
// Set the rights
if(file_exists($file_name))
{
- chmod($file_name, 0777);
+ @chmod($file_name, 0777);
// echo "<span style=\"color:#1da319;\">file saved: </span>".$file_name."<br />";
}
else
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <os...@us...> - 2011-11-06 19:42:41
|
Revision: 3868
http://oscss.svn.sourceforge.net/oscss/?rev=3868&view=rev
Author: oscim
Date: 2011-11-06 19:42:35 +0000 (Sun, 06 Nov 2011)
Log Message:
-----------
correction coquille
Ajout class installer pour lire des fichiers sql
Modified Paths:
--------------
trunk/catalog/install/includes/functions/database.php
Added Paths:
-----------
trunk/catalog/admin/includes/exts/package/tags/filesql.php
Added: trunk/catalog/admin/includes/exts/package/tags/filesql.php
===================================================================
--- trunk/catalog/admin/includes/exts/package/tags/filesql.php (rev 0)
+++ trunk/catalog/admin/includes/exts/package/tags/filesql.php 2011-11-06 19:42:35 UTC (rev 3868)
@@ -0,0 +1,279 @@
+<?php
+/**
+ @licence GPL 2005-2010 The osCSS developers - osCSS Open Source E-commerce
+ @portion code Copyright (c) 2002 osCommerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.1.1
+ @date 06/11/11, 15:12
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+ @class Tc_filesql
+ @brief install/remove table and data based in file and folder
+ @example
+ <filesql></filesql>
+*/
+
+
+class Tc_filesql
+ extends ContribInstallerBaseTag
+ {
+
+ public $tag_name='filesql';
+
+ public $priority = 200;
+
+
+ /**
+ @brief Constructor
+ */
+ function Tc_filesql($contrib='', $id='', $xml_data='', $dep='') {
+ $this->params=array(
+ 'tables'=>array(
+ 'sql_type'=>'text',
+ 'xml_error'=>__('no query tag in sql section text')
+ ),
+ 'keys'=>array(
+ 'sql_type'=>'text',
+ 'xml_error'=>__('no query tag in sql section text')
+ ),
+ 'data'=>array(
+ 'sql_type'=>'text',
+ 'xml_error'=>__('no query tag in sql section text')
+ ),
+ 'remove_tables'=>array(
+ 'sql_type'=>'text',
+ 'xml_error'=>__('no query tag in sql section text')
+ ),
+ 'remove_keys'=>array(
+ 'sql_type'=>'text',
+ 'xml_error'=>__('no query tag in sql section text')
+ ),
+ 'remove_data'=>array(
+ 'sql_type'=>'text',
+ 'xml_error'=>__('no query tag in sql section text')
+ ),
+ );
+ $this->ContribInstallerBaseTag($contrib, $id, $xml_data, $dep);
+ }
+
+
+
+ /**
+ @brief create virtual data xml based in folder and file
+ */
+ function get_data_from_xml_parser($xml_data='') {
+
+ $dbtype = DB_MOTOR_TYPE;
+ $dbmotor = strtolower(DB_CONNECTOR);
+ $action='install';
+ $path=DIR_FS_CIP.$this->contrib.'/'.'sql/'.$dbmotor.'/'.$action.'/';
+
+ $files=$this->SqlFileBrowse($path);
+
+ foreach($files[0] as $row){
+ $this->data['tables'][] = $row;
+ }
+ foreach($files[1] as $row){
+ $this->data['keys'][] = $row;
+ }
+ foreach($files[2] as $row){
+ $this->data['data'][] = $row;
+ }
+
+ $action='remove';
+ $path=DIR_FS_CIP.$this->contrib.'/'.'sql/'.$dbmotor.'/'.$action.'/';
+ $files=$this->SqlFileBrowse($path);
+
+ foreach($files[0] as $row){
+ $this->data['remove_tables'][] = $row;
+ }
+ foreach($files[1] as $row){
+ $this->data['remove_keys'][] = $row;
+ }
+ foreach($files[2] as $row){
+ $this->data['remove_data'][] = $row;
+ }
+
+ }
+
+
+
+ function do_install($data='') {
+
+ $dbtype = DB_MOTOR_TYPE;
+ $dbmotor = strtolower(DB_CONNECTOR);
+ $action='install';
+ $path=DIR_FS_CIP.$this->contrib.'/'.'sql/'.$dbmotor.'/'.$action.'/';
+
+ foreach($this->data['tables'] as $row){
+ $this->SqlFileProcess( $path.'/tables/' . $row, DB_TABLE_PREFIX );
+ }
+ foreach($this->data['keys'] as $row){
+ $this->SqlFileProcess( $path.'/tables/' . $row, DB_TABLE_PREFIX );
+ }
+ foreach($this->data['data'] as $row){
+ $this->SqlFileDataProcess( $path.'/data/' . $row, DB_TABLE_PREFIX );
+ }
+
+ return true;
+ }
+
+ function do_remove() {
+
+ $dbtype = DB_MOTOR_TYPE;
+ $dbmotor = strtolower(DB_CONNECTOR);
+ $action='remove';
+ $path=DIR_FS_CIP.$this->contrib.'/'.'sql/'.$dbmotor.'/'.$action.'/';
+
+ foreach($this->data['remove_tables'] as $row){
+ $this->SqlFileProcess( $path.'/tables/' . $row, DB_TABLE_PREFIX );
+ }
+ foreach($this->data['remove_keys'] as $row){
+ $this->SqlFileProcess( $path.'/tables/' . $row, DB_TABLE_PREFIX );
+ }
+ foreach($this->data['remove_data'] as $row){
+ $this->SqlFileDataProcess( $path.'/data/' . $row, DB_TABLE_PREFIX );
+ }
+
+ return true;
+ }
+
+ public function permissions_check_for_install() { return true; }
+ public function conflicts_check_for_install() { return true; }
+ public function permissions_check_for_remove() { return true; }
+ public function conflicts_check_for_remove() { return true; }
+
+
+
+
+/** =============================================================== PRIVATE =============================================================== */
+
+
+
+ /**
+ @brief ordonne les fichier pour l'install
+ @param path path directory for scan
+ @return array
+ [0] tables
+ [1] keys
+ [2] data
+ */
+ function SqlFileBrowse($path){
+
+ $result=array();
+ $result[0]=array();
+ $result[1]=array();
+ $result[2]=array();
+
+
+
+ foreach(scan($path.'tables/') as $row){
+ if(substr($row,-1) !='~') {
+ if(strpos($row , '.key')===false)
+ $result[0][]=$row;
+
+ elseif(strpos($row , '.key') > 0){
+ if(DB_MOTOR_TYPE =='InnoDB')
+ $result[1][]=$row;
+ }
+ }
+ }
+
+ foreach(scan($path.'data/') as $row){
+ if(substr($row,-1) !='~')
+ $result[2][]=$row;
+ }
+
+
+ return $result;
+
+ }
+
+
+ /**
+ @brief Process for load and install .sql or .key.sql
+ */
+ function SqlFileDataProcess( $sql_file, $table_prefix = -1,$file_lg_sample='') {
+ global $language;
+ $buffer = '';
+ $lg=false;
+
+
+ if( $file_lg_sample !='')include($file_lg_sample);
+ else{
+// $file_lg= dirname($_SERVER['SCRIPT_FILENAME']).'/'.WS_LANGUAGE.DC_LOADER_LANG.'/'.preg_replace(array('#(.sql)#i','#^([0-9]*_)#i'),array('.txt','') ,basename($sql_file));
+// if(file_exists($file_lg))include($file_lg);
+ }
+
+ $fp = fopen($sql_file, 'rb');
+
+ while (!feof ($fp)){
+ $buf = fgets($fp, 4096);
+ if (substr($buf, 0, 2) <> '--' ){
+ $buf=preg_replace('/--(.+)*/' ,'',$buf);
+ $buffer .= $buf;
+ }
+ }
+
+ $DB=Database::getInstance();
+ $repl = ((is_array($lg) && count($lg) >0)? true : false);
+ $buffer=preg_replace('/[ ](OSC_)([A-Z])/i', ' '.$table_prefix.'$2',$buffer);
+ $buffer = trim($buffer);
+
+ $query=preg_split("/\n/i",$buffer,-1,PREG_SPLIT_NO_EMPTY);
+
+
+ if($repl) {
+ $lg_k = array_keys($lg);
+ $lg_v = array_map('addslashes',$lg);
+ }
+ foreach($query as $row){
+ $row = trim($row);
+ if(strlen($row) > 3){
+ $sql=($repl)? str_replace($lg_k,$lg_v,$row) : $row ;
+
+ $DB->query($row);
+
+ }
+ }
+
+ }
+
+ /**
+ @brief Process for load and install .sql or .key.sql
+ */
+ function SqlFileProcess( $sql_file, $table_prefix = -1) {
+
+ $buffer = '';
+ $lg=false;
+
+ $fp = fopen($sql_file, 'rb');
+
+ while (!feof ($fp)){
+ $buf = fgets($fp, 4096);
+ if (substr($buf, 0, 2) <> '--' ){
+ $buf=preg_replace('/--(.+)*/' ,'',$buf);
+ $buffer .= $buf;
+ }
+ }
+ fclose($fp);
+
+
+ $DB=Database::getInstance();
+
+ $buffer=preg_replace('/[ ](OSC_)([A-Z])/i', ' '.$table_prefix.'$2',$buffer);
+
+ $query=explode(';',$buffer);
+ foreach($query as $row){
+ $row = trim($row);
+ if(strlen($row) > 3){
+ $DB->query($row);
+ }
+ }
+
+ }
+
+
+}
+
+?>
\ No newline at end of file
Modified: trunk/catalog/install/includes/functions/database.php
===================================================================
--- trunk/catalog/install/includes/functions/database.php 2011-11-05 08:16:39 UTC (rev 3867)
+++ trunk/catalog/install/includes/functions/database.php 2011-11-06 19:42:35 UTC (rev 3868)
@@ -277,14 +277,14 @@
$query=preg_split ("/(;[ ]{0,}\n)/i",$buffer);
- if(is_array($lg)) {
+ if($repl) {
$lg_k = array_keys($lg);
$lg_v = array_map('addslashes',$lg);
}
foreach($query as $row){
$row = trim($row);
if(strlen($row) > 3){
- $sql=(is_array($lg))? str_replace($lg_k,$lg_v,$row) : $row ;
+ $sql=($repl)? str_replace($lg_k,$lg_v,$row) : $row ;
$DB->query($row);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <os...@us...> - 2011-11-08 15:38:48
|
Revision: 3871
http://oscss.svn.sourceforge.net/oscss/?rev=3871&view=rev
Author: oscim
Date: 2011-11-08 15:38:37 +0000 (Tue, 08 Nov 2011)
Log Message:
-----------
correction nommage module coquille.
Mise a niveau gestion rewrite, mode2 par default
Refonte du fichier htaccess , amelioration et suppression duplicata content entre index.php / home et racine
Ajout choix fonctionnement et commentaire dans le htaccess
ajout regle protection
Modified Paths:
--------------
trunk/catalog/index.php
trunk/catalog/install/includes/modele/htaccess.txt
trunk/catalog/install/includes/modele/robot.txt
Added Paths:
-----------
trunk/catalog/includes/gabarit/history.display_view.gab
trunk/catalog/includes/languages/fr_FR/modules/account/history.txt
trunk/catalog/includes/modules/account/history.php
Removed Paths:
-------------
trunk/catalog/includes/gabarit/orders_history.display_view.gab
trunk/catalog/includes/languages/fr_FR/modules/account/orders_history.txt
trunk/catalog/includes/modules/account/orders_history.php
Copied: trunk/catalog/includes/gabarit/history.display_view.gab (from rev 3863, trunk/catalog/includes/gabarit/orders_history.display_view.gab)
===================================================================
--- trunk/catalog/includes/gabarit/history.display_view.gab (rev 0)
+++ trunk/catalog/includes/gabarit/history.display_view.gab 2011-11-08 15:38:37 UTC (rev 3871)
@@ -0,0 +1,68 @@
+<?php
+/**
+ @licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
+ @portion code Copyright (c) 2002 osCommerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.1.1
+ @date 01/11/11, 21:42
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+ @brief This listing orders for module account/history
+*/
+global $language,$customer_id;
+?>
+<div class="main-history">
+
+ <?php if (count(history::$current) > 0): ?>
+
+ <?php foreach(history::$current as $row): ?>
+ <dl class="orderHistory">
+ <dt>
+ <?php echo __('history text order number') . $row->orders_prefix.$row->orders_id; ?>
+
+ </dt>
+ <dd>
+ <?php echo __('history text order status') . $row->orders_status_name; ?>
+ </dd>
+ <dd>
+ <?php echo __('history text order date') . $row->date_purchased ;?>
+ </dd>
+ <dd>
+ <?php echo $order_type . tep_output_string_protected($order_name); ?>
+ </dd>
+ <dd>
+ <?php echo __('history text order products') . $row->count_products ;?>
+ </dd>
+ <dd>
+ <?php echo __('history text order cost') . strip_tags($row->order_total); ?>
+ </dd>
+ <dd>
+ <span class="linkView">
+ <a class="navBtMini" href="<?php echo $row->linkView ?>" >
+ <?php echo __('history small image button view'); ?>
+ </a>
+ </span>
+ <span class="linkPdf">
+ <a class="linkPdf" href="<?php echo $row->linkPdf ?>">
+ <?php echo __('history pdf link') ?>
+ </a>
+ </span>
+ </dd>
+ </dl>
+ <?php endforeach; ?>
+
+ <div id="splitPageBottom" class="split">
+ <p class="sP1"><?php echo history::$history_split->display_count(__('history text display number of orders %s')); ?></p>
+ <p class="sP2"><?php echo __('history text result page') . ' ' . history::$history_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></p>
+ </div>
+
+ <?php else : ?>
+ <p class="infoText"><?php echo TEXT_NO_PURCHASES; ?></p>
+ <?php endif; ?>
+
+
+ <div class="navBt">
+ <?php echo '<a class="navBt" href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . IMAGE_BUTTON_BACK . '</a>'; ?>
+ </div>
+
+</div>
\ No newline at end of file
Deleted: trunk/catalog/includes/gabarit/orders_history.display_view.gab
===================================================================
--- trunk/catalog/includes/gabarit/orders_history.display_view.gab 2011-11-08 09:58:15 UTC (rev 3870)
+++ trunk/catalog/includes/gabarit/orders_history.display_view.gab 2011-11-08 15:38:37 UTC (rev 3871)
@@ -1,68 +0,0 @@
-<?php
-/**
- @licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
- @portion code Copyright (c) 2002 osCommerce
- @package osCSS-2 <www http://www.oscss.org>
- @version 2.1.1
- @date 01/11/11, 21:42
- @author oscim <mail aur...@os...> <www http://www.oscim.fr>
- @encode UTF-8
- @brief This listing orders for module account/orders_history
-*/
-global $language,$customer_id;
-?>
-<div class="main-orders_history">
-
- <?php if (count(orders_history::$current) > 0): ?>
-
- <?php foreach(orders_history::$current as $row): ?>
- <dl class="orderHistory">
- <dt>
- <?php echo __('orders_history text order number') . $row->orders_prefix.$row->orders_id; ?>
-
- </dt>
- <dd>
- <?php echo __('orders_history text order status') . $row->orders_status_name; ?>
- </dd>
- <dd>
- <?php echo __('orders_history text order date') . $row->date_purchased ;?>
- </dd>
- <dd>
- <?php echo $order_type . tep_output_string_protected($order_name); ?>
- </dd>
- <dd>
- <?php echo __('orders_history text order products') . $row->count_products ;?>
- </dd>
- <dd>
- <?php echo __('orders_history text order cost') . strip_tags($row->order_total); ?>
- </dd>
- <dd>
- <span class="linkView">
- <a class="navBtMini" href="<?php echo $row->linkView ?>" >
- <?php echo __('orders_history small image button view'); ?>
- </a>
- </span>
- <span class="linkPdf">
- <a class="linkPdf" href="<?php echo $row->linkPdf ?>">
- <?php echo __('orders_history pdf link') ?>
- </a>
- </span>
- </dd>
- </dl>
- <?php endforeach; ?>
-
- <div id="splitPageBottom" class="split">
- <p class="sP1"><?php echo orders_history::$history_split->display_count(__('orders_history text display number of orders %s')); ?></p>
- <p class="sP2"><?php echo __('orders_history text result page') . ' ' . orders_history::$history_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></p>
- </div>
-
- <?php else : ?>
- <p class="infoText"><?php echo TEXT_NO_PURCHASES; ?></p>
- <?php endif; ?>
-
-
- <div class="navBt">
- <?php echo '<a class="navBt" href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . IMAGE_BUTTON_BACK . '</a>'; ?>
- </div>
-
-</div>
\ No newline at end of file
Copied: trunk/catalog/includes/languages/fr_FR/modules/account/history.txt (from rev 3863, trunk/catalog/includes/languages/fr_FR/modules/account/orders_history.txt)
===================================================================
--- trunk/catalog/includes/languages/fr_FR/modules/account/history.txt (rev 0)
+++ trunk/catalog/includes/languages/fr_FR/modules/account/history.txt 2011-11-08 15:38:37 UTC (rev 3871)
@@ -0,0 +1,29 @@
+<?php
+/**
+ @licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
+ @portion code Copyright (c) 2002 osCommerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.1.1
+ @date 01/11/11, 21:42
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+*/
+
+$lang['history tab']="Voir mes anciennes commandes" ;
+
+$lang['history heading listing']="Historique des Commandes" ;
+$lang['history text order number']="Numéro de commande : " ;
+$lang['history text order status']="Statut de la commande : " ;
+$lang['history text order date']="Date de la commande : " ;
+$lang['history text order products']="Produit(s) : " ;
+$lang['history text order cost']="Coût de la commande : " ;
+
+
+$lang['history small image button view']="Afficher" ;
+$lang['history pdf link']="Pdf" ;
+
+
+$lang['history text result %s']="result %s" ;
+
+
+?>
\ No newline at end of file
Deleted: trunk/catalog/includes/languages/fr_FR/modules/account/orders_history.txt
===================================================================
--- trunk/catalog/includes/languages/fr_FR/modules/account/orders_history.txt 2011-11-08 09:58:15 UTC (rev 3870)
+++ trunk/catalog/includes/languages/fr_FR/modules/account/orders_history.txt 2011-11-08 15:38:37 UTC (rev 3871)
@@ -1,29 +0,0 @@
-<?php
-/**
- @licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
- @portion code Copyright (c) 2002 osCommerce
- @package osCSS-2 <www http://www.oscss.org>
- @version 2.1.1
- @date 01/11/11, 21:42
- @author oscim <mail aur...@os...> <www http://www.oscim.fr>
- @encode UTF-8
-*/
-
-$lang['orders_history tab']="Voir mes anciennes commandes" ;
-
-$lang['orders_history heading listing']="Historique des Commandes" ;
-$lang['orders_history text order number']="Numéro de commande : " ;
-$lang['orders_history text order status']="Statut de la commande : " ;
-$lang['orders_history text order date']="Date de la commande : " ;
-$lang['orders_history text order products']="Produit(s) : " ;
-$lang['orders_history text order cost']="Coût de la commande : " ;
-
-
-$lang['orders_history small image button view']="Afficher" ;
-$lang['orders_history pdf link']="Pdf" ;
-
-
-$lang['orders_history text result %s']="result %s" ;
-
-
-?>
\ No newline at end of file
Copied: trunk/catalog/includes/modules/account/history.php (from rev 3863, trunk/catalog/includes/modules/account/orders_history.php)
===================================================================
--- trunk/catalog/includes/modules/account/history.php (rev 0)
+++ trunk/catalog/includes/modules/account/history.php 2011-11-08 15:38:37 UTC (rev 3871)
@@ -0,0 +1,171 @@
+<?php
+/**
+ @licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
+ @portion code Copyright (c) 2002 osCommerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.1.1
+ @date 01/11/11, 21:42
+ @author oscim <mail aur...@os...> <www http://www.oscim.fr>
+ @encode UTF-8
+ *\class history
+ *\group modules
+ *\brief Address book for customers
+*/
+
+class history
+ extends AbstractAccount
+ implements InterfaceModule{
+
+ /**
+ @var array
+ */
+ public static $current;
+ /**
+ @var array
+ */
+ public static $history_split;
+
+ /**
+ */
+ function __construct(){
+ $this->code =__CLASS__;
+ $this->type ='account';
+ $this->title = __('module history text title');
+ $this->description = __('module history text description') ;
+ $this->sort_order = (defined('MODULE_ACA_HISTORY_SORT_ORDER')) ? MODULE_ACA_HISTORY_SORT_ORDER : 0;
+ $this->enabled = true;
+
+
+ $this->sql_data_array=array();
+ $this->cInfo = new objectInfo(array());
+
+ }
+
+ public function get_header($action=''){}
+
+ /**
+ * \fn check_action($action)
+ * \brief Action exe
+ * @param $action string la var d'action
+ * @p $cID int recupere le Session[]
+ */
+ public function check_action($action) {
+
+ if (!tep_session_is_registered('customer_id')) return false;
+
+ global $page;
+ $customer_id=$page->the_var('customer_id');
+
+
+// switch ($action) {
+// }
+
+ return true;
+ }
+
+ /**
+ */
+ public function after_check_action ($action) {
+ if($action=='new') tep_redirect(tep_href_link(FILENAME_ACCOUNT, 'aca_mod='.$this->code.'&aca_type='.$this->type.'&aca_action=display_view', 'SSL'));
+ }
+
+
+
+ /**
+ */
+ public function load_db_values($cID) {
+ global $languages_id;
+
+ $DB=Database::getInstance();
+
+ $sql="SELECT o.orders_id,o.orders_prefix, o.date_purchased, o.delivery_name, o.billing_name, ot.text as order_total,o.orders_status, s.status_name as orders_status_name from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_TOTAL . " ot, " . TABLE_STATUS . " s WHERE o.customers_id = '" . (int)$cID . "' AND o.orders_id = ot.orders_id and ot.class = 'ot_total' and o.orders_status = s.status_id AND status_type='orders' AND s.language_id = '" . (int)$languages_id . "' ORDER BY orders_id DESC";
+
+ self::$history_split = new splitPageResults($sql, MAX_DISPLAY_ORDER_HISTORY);
+ $_query = $DB->query(self::$history_split->sql_query);
+
+ foreach($_query->fetchAllAssoc() as $row){
+
+ $products_query = tep_db_query("select count(*) as count from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . (int)$row['orders_id'] . "'");
+ $products = tep_db_fetch_array($products_query);
+
+ if (tep_not_null($row['delivery_name'])) {
+ $order_type = TEXT_ORDER_SHIPPED_TO;
+ $order_name = $row['delivery_name'];
+ } else {
+ $order_type = TEXT_ORDER_BILLED_TO;
+ $order_name = $row['billing_name'];
+ }
+
+
+ $n = new objectInfo($row);
+ $n->date_purchased = tep_date_short($row['date_purchased']);
+ $n->type = 'order';
+ $n->count_products = $products['count'];
+ $n->destinataire = $order_type.' '.$order_name;
+// $n->linkView = tep_href_link(FILENAME_ACCOUNT, 'aca_mod='.$this->code.'&aca_type='.$this->type.'&aca_action=display_info&oID='. (int)$row['orders_id'], 'SSL');
+ $n->linkView = tep_href_link(FILENAME_ACCOUNT, 'action=history_info&order_id=' . (int)$row['orders_id'], 'SSL');
+ $n->linkPdf = tep_href_link(FILENAME_ACCOUNT, 'action=pdf&order_id=' . (int)$row['orders_id'], 'SSL');
+
+ $result[strtotime($row['date_purchased'])]=$n;
+ }
+
+
+ krsort($result);
+
+ return ($result);
+ }
+
+
+
+
+ /**
+ List des element du block my account
+ */
+ public function display_view_min_listMyOrders($cID){
+ global $page;
+
+ $v['title']=__("history tab");
+ $v['href_link']= tep_href_link(FILENAME_ACCOUNT, 'aca_mod='.$this->code.'&aca_type='.$this->type.'&aca_action=display_view', 'SSL');
+ return array(new objectInfo($v));
+ }
+
+ /**
+ * \fn display_view($pID='')
+ * \brief Affiche Block edit/modif reviews
+ * @param $pID int id products
+ * @p $customer_id int current
+ */
+ public function display_view($pID=''){
+ global $page;
+
+ $customer_id=$page->the_var('customer_id');
+
+ self::$current = $this->load_db_values($customer_id);
+
+ return new objectInfo(array('title'=>__("history heading listing"),'content'=> tep_output_string_protected(tep_get_include_contents(__CLASS__.'.'.__FUNCTION__),false,true) ) );
+ }
+
+
+ /**
+ * \brief select function for display
+ */
+// public function display_info(){
+// global $page;
+//
+// $customer_id=$page->the_var('customer_id');
+//
+// self::$current = $this->load_db_values($customer_id);
+//
+// return new objectInfo(array('title'=>__("history heading listing"),'content'=> tep_output_string_protected(tep_get_include_contents(__CLASS__.'.'.__FUNCTION__),false,true) ) );
+// }
+
+
+
+/** implements InterfaceModule depend */
+ public function check() {}
+ public function install() {}
+ public function remove() {}
+ public function keys() {}
+}
+
+?>
\ No newline at end of file
Deleted: trunk/catalog/includes/modules/account/orders_history.php
===================================================================
--- trunk/catalog/includes/modules/account/orders_history.php 2011-11-08 09:58:15 UTC (rev 3870)
+++ trunk/catalog/includes/modules/account/orders_history.php 2011-11-08 15:38:37 UTC (rev 3871)
@@ -1,171 +0,0 @@
-<?php
-/**
- @licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
- @portion code Copyright (c) 2002 osCommerce
- @package osCSS-2 <www http://www.oscss.org>
- @version 2.1.1
- @date 01/11/11, 21:42
- @author oscim <mail aur...@os...> <www http://www.oscim.fr>
- @encode UTF-8
- *\class orders_history
- *\group modules
- *\brief Address book for customers
-*/
-
-class orders_history
- extends AbstractAccount
- implements InterfaceModule{
-
- /**
- @var array
- */
- public static $current;
- /**
- @var array
- */
- public static $history_split;
-
- /**
- */
- function __construct(){
- $this->code =__CLASS__;
- $this->type ='account';
- $this->title = __('module orders_history text title');
- $this->description = __('module orders_history text description') ;
- $this->sort_order = (defined('MODULE_ACA_HISTORY_SORT_ORDER')) ? MODULE_ACA_HISTORY_SORT_ORDER : 0;
- $this->enabled = true;
-
-
- $this->sql_data_array=array();
- $this->cInfo = new objectInfo(array());
-
- }
-
- public function get_header($action=''){}
-
- /**
- * \fn check_action($action)
- * \brief Action exe
- * @param $action string la var d'action
- * @p $cID int recupere le Session[]
- */
- public function check_action($action) {
-
- if (!tep_session_is_registered('customer_id')) return false;
-
- global $page;
- $customer_id=$page->the_var('customer_id');
-
-
-// switch ($action) {
-// }
-
- return true;
- }
-
- /**
- */
- public function after_check_action ($action) {
- if($action=='new') tep_redirect(tep_href_link(FILENAME_ACCOUNT, 'aca_mod='.$this->code.'&aca_type='.$this->type.'&aca_action=display_view', 'SSL'));
- }
-
-
-
- /**
- */
- public function load_db_values($cID) {
- global $languages_id;
-
- $DB=Database::getInstance();
-
- $sql="SELECT o.orders_id,o.orders_prefix, o.date_purchased, o.delivery_name, o.billing_name, ot.text as order_total,o.orders_status, s.status_name as orders_status_name from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_TOTAL . " ot, " . TABLE_STATUS . " s WHERE o.customers_id = '" . (int)$cID . "' AND o.orders_id = ot.orders_id and ot.class = 'ot_total' and o.orders_status = s.status_id AND status_type='orders' AND s.language_id = '" . (int)$languages_id . "' ORDER BY orders_id DESC";
-
- self::$history_split = new splitPageResults($sql, MAX_DISPLAY_ORDER_HISTORY);
- $_query = $DB->query(self::$history_split->sql_query);
-
- foreach($_query->fetchAllAssoc() as $row){
-
- $products_query = tep_db_query("select count(*) as count from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . (int)$row['orders_id'] . "'");
- $products = tep_db_fetch_array($products_query);
-
- if (tep_not_null($row['delivery_name'])) {
- $order_type = TEXT_ORDER_SHIPPED_TO;
- $order_name = $row['delivery_name'];
- } else {
- $order_type = TEXT_ORDER_BILLED_TO;
- $order_name = $row['billing_name'];
- }
-
-
- $n = new objectInfo($row);
- $n->date_purchased = tep_date_short($row['date_purchased']);
- $n->type = 'order';
- $n->count_products = $products['count'];
- $n->destinataire = $order_type.' '.$order_name;
-// $n->linkView = tep_href_link(FILENAME_ACCOUNT, 'aca_mod='.$this->code.'&aca_type='.$this->type.'&aca_action=display_info&oID='. (int)$row['orders_id'], 'SSL');
- $n->linkView = tep_href_link(FILENAME_ACCOUNT, 'action=history_info&order_id=' . (int)$row['orders_id'], 'SSL');
- $n->linkPdf = tep_href_link(FILENAME_ACCOUNT, 'action=pdf&order_id=' . (int)$row['orders_id'], 'SSL');
-
- $result[strtotime($row['date_purchased'])]=$n;
- }
-
-
- krsort($result);
-
- return ($result);
- }
-
-
-
-
- /**
- List des element du block my account
- */
- public function display_view_min_listMyOrders($cID){
- global $page;
-
- $v['title']=__("orders_history tab");
- $v['href_link']= tep_href_link(FILENAME_ACCOUNT, 'aca_mod='.$this->code.'&aca_type='.$this->type.'&aca_action=display_view', 'SSL');
- return array(new objectInfo($v));
- }
-
- /**
- * \fn display_view($pID='')
- * \brief Affiche Block edit/modif reviews
- * @param $pID int id products
- * @p $customer_id int current
- */
- public function display_view($pID=''){
- global $page;
-
- $customer_id=$page->the_var('customer_id');
-
- self::$current = $this->load_db_values($customer_id);
-
- return new objectInfo(array('title'=>__("orders_history heading listing"),'content'=> tep_output_string_protected(tep_get_include_contents(__CLASS__.'.'.__FUNCTION__),false,true) ) );
- }
-
-
- /**
- * \brief select function for display
- */
-// public function display_info(){
-// global $page;
-//
-// $customer_id=$page->the_var('customer_id');
-//
-// self::$current = $this->load_db_values($customer_id);
-//
-// return new objectInfo(array('title'=>__("orders_history heading listing"),'content'=> tep_output_string_protected(tep_get_include_contents(__CLASS__.'.'.__FUNCTION__),false,true) ) );
-// }
-
-
-
-/** implements InterfaceModule depend */
- public function check() {}
- public function install() {}
- public function remove() {}
- public function keys() {}
-}
-
-?>
\ No newline at end of file
Modified: trunk/catalog/index.php
===================================================================
--- trunk/catalog/index.php 2011-11-08 09:58:15 UTC (rev 3870)
+++ trunk/catalog/index.php 2011-11-08 15:38:37 UTC (rev 3871)
@@ -17,6 +17,7 @@
*
* Pour Ajouter un fichier à la racine simplement, utiliser la base example
*/
+
require_once('includes/application_top.php');
//! Choix du mode affichage des listign et priorité
@@ -38,10 +39,34 @@
$page->add_var_page('category_depth',$category_depth);
-// var_dump($cPath);
-if ($category_depth == 'top') {
+/**
+ * \section Page Error
+ */
+if(isset($_GET['ServerError'])){
+ switch((int)$_GET['ServerError']){
+ case 404:
+ $page->init('404.php',$language);
+ $page_content = $page->force_content('404.php');
+ break;
+ default:
+ /**
+ @remarks Alert and log
+ */
+ //! gestionnaire d'erreur
+ $errorHandler = osC_ErrorHandler::start();
+ // fichier de log d'erreur http
+ $errorHandler->attachFileWriter(DIR_FS_ROOT_DOCS.'public/logs/server-http.log');
+ trigger_error(sprintf(__FILE__.'::'.__LINE__.' Error type %s : SERVER: %s', (int)$_GET['ServerError'], print_r($_SERVER, true) ) , E_USER_ERROR);
+
+ header("HTTP/1.0 301 Moved Permanently");
+ tep_redirect(tep_href_link(''));
+ }
+
+}
+elseif ($category_depth == 'top') {
+
/**
* \section Page Customer public
*/
@@ -53,12 +78,14 @@
$page_content = $page->force_content('customers.php');
}
- elseif (isset($_GET['products_id']) ) {
- $page->init('404.php',$language);
- $page_content = $page->force_content('404.php');
-
-
+ /**
+ * \section 404 Error not Cpath and xid !!
+ */
+ elseif (isset($_GET['products_id']) || isset($_GET['content'])) {
+ header("Status: 404 Not Found");
+ header("HTTP/1.0 301 Moved Permanently");
+ tep_redirect(tep_href_link('error/404.html'));
}
@@ -227,9 +254,9 @@
use /content/404.php
*/
elseif ( $category_depth == 'nofound') {
- $page->init('404.php',$language);
-
- $page_content = $page->force_content('404.php');
+ header("Status: 404 Not Found");
+ header("HTTP/1.0 301 Moved Permanently");
+ tep_redirect(tep_href_link('error/404.html'));
}
/**
Modified: trunk/catalog/install/includes/modele/htaccess.txt
===================================================================
--- trunk/catalog/install/includes/modele/htaccess.txt 2011-11-08 09:58:15 UTC (rev 3870)
+++ trunk/catalog/install/includes/modele/htaccess.txt 2011-11-08 15:38:37 UTC (rev 3871)
@@ -24,7 +24,7 @@
# Fix certain PHP values
-## element pur hebergement mutulalise, a commenter si inutile
+## element pour hebergement mutulalise, a commenter si inutile
SetEnv REGISTER_GLOBALS 0
SetEnv MAGIC_QUOTES 1
SetEnv PHP_VER 5
@@ -32,6 +32,16 @@
# force default charset
AddDefaultCharset UTF-8
+# Turns off directory browsing
+# not absolutely essential, but keeps people from snooping around without
+# needing empty index.html files everywhere
+Options -Indexes
+
+
+# Etre discret ne coûte rien
+ServerSignature Off
+
+
# FIX
<IfModule mod_php5.c>
php_flag register_long_arrays Off
@@ -46,80 +56,133 @@
RewriteEngine on
RewriteBase %WS_DOCUMENT_ROOT%
+
+
+
+
+
+ ## Error Document
+ ## Authorization htaccess & htpassword
+ ErrorDocument 401 %WS_DOCUMENT_ROOT%error/401.html
+ ## no found
+ ErrorDocument 404 %WS_DOCUMENT_ROOT%error/404.html
+ ## error in process payment
+ ErrorDocument 402 %WS_DOCUMENT_ROOT%checkout_confirmation.php
+ ## Bad request
+ ErrorDocument 400 %WS_DOCUMENT_ROOT%error/400.html
+ ## forbidden Intrustion error
+ ErrorDocument 403 %WS_DOCUMENT_ROOT%error/403.html
+ ## méthode non autorisée.
+ ErrorDocument 405 %WS_DOCUMENT_ROOT%error/405.html
+ ## technical error
+ ErrorDocument 500 %WS_DOCUMENT_ROOT%error/500.html
+ ## le serveur ne supporte pas le service demandé.
+ ErrorDocument 501 %WS_DOCUMENT_ROOT%error/501.html
+ ## mauvaise passerelle.
+ ErrorDocument 502 %WS_DOCUMENT_ROOT%error/502.html
+ ## service indisponible.
+ ErrorDocument 503 %WS_DOCUMENT_ROOT%error/503.html
+ ## trop de temps à la réponse.
+ ErrorDocument 504 %WS_DOCUMENT_ROOT%error/504.html
+ ## version HTTP non supportée.
+ ErrorDocument 505 %WS_DOCUMENT_ROOT%error/505.html
+
+
+ # rule for error page
+ RewriteRule ^error/([0-9]*).html$ index.php?ServerError=$1 [L]
+
+
+
+## Protection
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule ^(.*)$ index.php [F,L]
-# rule for 404 page
- RewriteRule ^404.php$ index.php?_ID=404.php&%{QUERY_STRING}
+# Block loop redirect
+ RewriteCond %{REQUEST_URI} ^/(stats/|missing\.html|failed_auth\.html|error/).* [NC]
+ RewriteRule .* - [L]
+
+ RewriteCond %{ENV:REDIRECT_STATUS} 200
+ RewriteRule .* - [L]
+
+
+
+
##newsletter trace opened email
RewriteRule n-([0-9]+)-([0-9]+).jpg newsletters.php?mode=opened&newsID=$1&cID=$2 [L,QSA]
-# DEB Sans rewrite, placer des fichier du même nom a la racine
-# DEB Retrocompatibiliter
- RewriteRule ^conditions.php$ index.php?content=3&%{QUERY_STRING}
- RewriteRule ^contact.php$ index.php?_ID=contact.php&%{QUERY_STRING}
- RewriteRule ^cookie_usage.php$ index.php?_ID=cookie_usage.php&%{QUERY_STRING}
- RewriteRule ^info_shopping_cart.php$ index.php?_ID=info_shopping_cart.php&%{QUERY_STRING}
- RewriteRule ^tell_a_friend.php$ index.php?_ID=tell_a_friend.php&%{QUERY_STRING}
- RewriteRule ^featured_products.php$ index.php?_ID=featured_products.php&%{QUERY_STRING}
- RewriteRule ^template.php$ index.php?_ID=template.php&%{QUERY_STRING}
- RewriteRule ^privacy.php$ index.php?_ID=privacy.php&%{QUERY_STRING}
- RewriteRule ^listing_best_sellers.php$ index.php?_ID=listing_best_sellers.php&%{QUERY_STRING}
- RewriteRule ^listing_products_new.php$ index.php?_ID=listing_products_new.php&%{QUERY_STRING}
- RewriteRule ^listing_small_price.php$ index.php?_ID=listing_small_price.php&%{QUERY_STRING}
- RewriteRule ^listing_specials.php$ index.php?_ID=listing_specials.php&%{QUERY_STRING}
- RewriteRule ^search_help.php$ index.php?_ID=search_help.php&%{QUERY_STRING}
- RewriteRule ^ssl_check.php$ index.php?_ID=ssl_check.php&%{QUERY_STRING}
- RewriteRule ^shopping_cart.php(.{0,})$ index.php?_ID=shopping_cart.php&%{QUERY_STRING}
- RewriteRule ^shipping.php(.{0,})$ index.php?_ID=shipping.php&%{QUERY_STRING}
- RewriteRule ^sitemap.php$ index.php?_ID=sitemap.php&%{QUERY_STRING}
- RewriteRule ^remove_cart.php$ index.php?_ID=remove_cart.php&%{QUERY_STRING}
- RewriteRule ^product_reviews.php$ index.php?_ID=listing_reviews.php&%{QUERY_STRING}
- RewriteRule ^product_info.php$ index.php?products_id=$2&%{QUERY_STRING}
- RewriteRule ^home.php?(.*)$ index.php?content=$1&%{QUERY_STRING}
- RewriteRule ^account_([a-z_]*).php$ account.php?action=$1&%{QUERY_STRING}
- RewriteRule ^address_([a-z_]*).php$ account.php?aca_mod=address_book&aca_type=account&aca_action=display_view&%{QUERY_STRING}
-# FIN Sans rewrite, placer des fichier du même nom a la racine
-# Prise en charge des appels vers les vidéo
-# RewriteRule ^playlist:([0-9]*)::type:([a-z]*)::pID:([0-9]*)::ext:.flv$ counter.php?action_type=$2&action_class=portfolio&method=counter_media&ppID=$1&products_id=$3 [L]
-# RewriteRule ^playlist:([0-9]*)::type:([a-z]*)::pID:([0-9]*)::ext:.mp3 counter.php?action_type=$2&action_class=portfolio&method=counter_media&ppID=$1&products_id=$3 [L]
+
+ ## Home Et index Ou Home = index
+ ## Force Unique Home page
+ RewriteRule ^(home.php)(.*)$ %WS_DOCUMENT_ROOT%?%{QUERY_STRING} [R=301]
+ RewriteRule ^(.*)(index.html)$ %WS_DOCUMENT_ROOT%?%{QUERY_STRING} [R=301]
+ ## Home page & index page; two distinct page
+# RewriteRule ^(home.(php|html)) %WS_DOCUMENT_ROOT%index.php?_ID=home.php [L,QSA]
+# RewriteRule ^()$ %WS_DOCUMENT_ROOT%index.php?_ID=home.php [L,QSA]
+# RewriteRule ^(.*)(index.html)$ %WS_DOCUMENT_ROOT%index.php?%{QUERY_STRING} [R=301]
+
+
+ ## Retro-compatibilité
+ ## Account specific pages
+ RewriteRule ^(.*)account.(php|html)$ account.php?%{QUERY_STRING} [L,QSA]
+ RewriteRule ^(.*)account(_([a-z_]*)).(php|html)$ account.php?action=$3&%{QUERY_STRING} [L,QSA]
+ RewriteRule ^address_([a-z_]*).php$ account.php?aca_mod=address_book&aca_type=account&aca_action=display_view&%{QUERY_STRING}
+
+
+ ## Move xxxx.php >> xxx.html
+ RewriteCond %{REQUEST_FILENAME} !-f
+ RewriteCond %{REQUEST_FILENAME} !-d
+ #Mode SEO2 default
+ RewriteRule ^([a-zA-Z_]*)\.(php)$ d/$1/$1.html?&%{QUERY_STRING} [R=301]
+ ## Mode SEO
+ # RewriteRule ^([a-zA-Z_]*)\.(php)$ $1d-$1.html?&%{QUERY_STRING} [R=301]
+
+
+
# SEO
- # MODE SEO Rewrite
- RewriteRule ^(.*)-p-(.*).html$ index.php?products_id=$2&%{QUERY_STRING}
- RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}
- RewriteRule ^(.*)-b-(.*).html$ index.php?content=$2&%{QUERY_STRING}
- RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}
- RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING}
- RewriteRule ^(.*)-t-(.*).html$ index.php?content=$2&%{QUERY_STRING}
- # RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}
- RewriteRule ^(.*)-pr-(.*).html$ index.php?_ID=listing_reviews.php&products_id=$2&%{QUERY_STRING}
- # RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}
- RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING}
- RewriteRule ^(.*)-d-(.*).html$ $2.php?divers=$2&%{QUERY_STRING}
- RewriteRule ^(.*)-l-(.*).html$ $2.php?lID=$2&%{QUERY_STRING} [L]
-...
[truncated message content] |
|
From: <os...@us...> - 2011-11-08 23:15:01
|
Revision: 3874
http://oscss.svn.sourceforge.net/oscss/?rev=3874&view=rev
Author: oscim
Date: 2011-11-08 23:14:54 +0000 (Tue, 08 Nov 2011)
Log Message:
-----------
suite correction et amelioration seo / rewrite htaccess et acces au images public
Ajustement class page pour normaliser l'appel au tags de la page courante
Amelioration Class seo , gestion dynamique des format de reecriture, synthetisation de la methode parse_parameters
Modified Paths:
--------------
trunk/catalog/common/classes/image_ratio.php
trunk/catalog/common/classes/seo_url.php
trunk/catalog/document.php
trunk/catalog/includes/classes/page.php
trunk/catalog/includes/functions/general.php
trunk/catalog/index.php
trunk/catalog/install/includes/modele/htaccess.txt
trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql
Modified: trunk/catalog/common/classes/image_ratio.php
===================================================================
--- trunk/catalog/common/classes/image_ratio.php 2011-11-08 16:39:34 UTC (rev 3873)
+++ trunk/catalog/common/classes/image_ratio.php 2011-11-08 23:14:54 UTC (rev 3874)
@@ -150,7 +150,7 @@
if(is_bool($mode) && $mode){
self::$Modele=null;
if (self::$env->inadmin)return tep_output_string($src);
- return tep_output_string(tep_get_httpdir().$src);
+ return tep_output_string(tep_get_httpdir().$theImg['src_origin']."?w=" . $width . "&h=" . $height);
}
else {
/// if cache return
@@ -159,7 +159,7 @@
return self::$CacheImage[self::$key][self::$keydim]['img'];
}
else {
- $image = '<img src="' . (!self::$env->inadmin ? tep_output_string(tep_get_httpdir().$src) : tep_output_string($src)) . '" alt="' . tep_output_string($alt) . '" ';
+ $image = '<img src="' . (!self::$env->inadmin ? tep_output_string(tep_get_httpdir().$theImg['src_origin']."?w=" . $width . "&h=" . $height ) : tep_output_string($src)) . '" alt="' . tep_output_string($alt) . '" ';
if($mode !='simple') $image .= 'width="' . $theImg['width'] . '" height="' . $theImg['height'] . '"';
if (tep_not_null($theImg['alt'])) $image .= ' title="' . tep_output_string($theImg['alt']) . '"';
if (tep_not_null($parameters)) $image .= ' ' . $parameters;
@@ -401,6 +401,8 @@
if(isset(self::$CacheImage[self::$key][self::$keydim]) ) return self::$CacheImage[self::$key][self::$keydim];
+ $origin = $src;
+
$imgd = self::$CacheImage[self::$key]['conf']['getimagesize'];
if(self::$Modele !=null && method_exists(self::$Modele,'aspectratio' ))
@@ -424,6 +426,7 @@
$src=self::CleanPathReturn($src);
self::$CacheImage[self::$key][self::$keydim]['src']=$src;
+ self::$CacheImage[self::$key][self::$keydim]['src_origin']=$origin;
self::$CacheImage[self::$key][self::$keydim]['alt']=$alt;
self::$CacheImage[self::$key][self::$keydim]['width']=$width;
self::$CacheImage[self::$key][self::$keydim]['height']=$height;
Modified: trunk/catalog/common/classes/seo_url.php
===================================================================
--- trunk/catalog/common/classes/seo_url.php 2011-11-08 16:39:34 UTC (rev 3873)
+++ trunk/catalog/common/classes/seo_url.php 2011-11-08 23:14:54 UTC (rev 3874)
@@ -118,8 +118,12 @@
@var object
*/
var $header_tag;
+ /**
+ * $header_tag activ
+ @var bool
+ */
+ public static $htexe = false;
-
/**
Interne static function
*/
@@ -163,7 +167,23 @@
$this->header_tag=array();
//ojp FILENAME_LINKS
- $seo_pages=array(FILENAME_DEFAULT,FILENAME_ACCOUNT,FILENAME_POPUP_IMAGE,FILENAME_PRODUCT_INFO,FILENAME_CONTENT,FILENAME_CREATE_ACCOUNT,FILENAME_ADVANCED_SEARCH,FILENAME_PRODUCTS_NEW,FILENAME_SMALL_PRICE,FILENAME_SPECIALS,FILENAME_BEST_SELLERS,FILENAME_SITEMAP,FILENAME_TEMPLATE,FILENAME_CONTACT_US, FILENAME_SHOPPING_CART);
+ $seo_pages=array(
+ FILENAME_DEFAULT,
+ FILENAME_ACCOUNT,
+ FILENAME_POPUP_IMAGE,
+ FILENAME_PRODUCT_INFO,
+ FILENAME_CONTENT,
+ FILENAME_CREATE_ACCOUNT,
+ FILENAME_ADVANCED_SEARCH,
+ FILENAME_PRODUCTS_NEW,
+ FILENAME_SMALL_PRICE,
+ FILENAME_SPECIALS,
+ FILENAME_BEST_SELLERS,
+ FILENAME_SITEMAP,
+ FILENAME_TEMPLATE,
+ FILENAME_CONTACT_US,
+ FILENAME_SHOPPING_CART
+ );
if ( defined('FILENAME_LINKS') ) $seo_pages[] = FILENAME_LINKS;
@@ -187,7 +207,7 @@
Conf
*/
self::$SEO_REWRITE_TYPE=defined('SEO_REWRITE_TYPE') ? SEO_REWRITE_TYPE : 'false';
- self::$USE_SEO_REDIRECT= defined('USE_SEO_REDIRECT') ? USE_SEO_REDIRECT : 'false';
+ self::$USE_SEO_REDIRECT= 'true'; //defined('USE_SEO_REDIRECT') ? USE_SEO_REDIRECT : 'false';
self::$USE_SEO_CACHE_GLOBAL=defined('USE_SEO_CACHE_GLOBAL') ? USE_SEO_CACHE_GLOBAL : 'false';
self::$USE_SEO_CACHE_LINKS=defined('USE_SEO_CACHE_LINKS') ? USE_SEO_CACHE_LINKS : 'false';
@@ -199,34 +219,34 @@
$this->cache = array();
$this->timestamp = 0;
- $this->reg_anchors['no-rewrite'] = array('products_id' => 'products_id=',
- 'cPath' => 'cPath=',
- 'manufacturers_id' => 'manufacturers_id=',
- 'pID' => 'pID=',
- 'content' => 'content=',
- 'divers' => 'divers=',
- 'lID' => 'lID=',
- 'customers_id' => 'customers_id=',
+
+ // respecter l'ordre
+ $this->reg_anchors= array(
+ 'pID' => 'pi',
+ 'products_id' => 'p',
+ 'cPath' => 'c',
+ 'manufacturers_id' => 'm',
+ 'content' => 't',
+ 'divers' => 'd',
+ 'lID' => 'l',
+ 'customers_id' => 'u',
+ 'type_object' => 'to',
);
- $this->reg_anchors['Rewrite'] = array('products_id' => '-p-',
- 'cPath' => '-c-',
- 'manufacturers_id' => '-m-',
- 'pID' => '-pi-',
- 'content' => '-t-',
- 'divers' => '-d-',
- 'lID' => '-l-',
- 'customers_id' => '-u-',
- );
- $this->reg_anchors['Rewrite-mode2'] = array('products_id' => 'p/',
- 'cPath' => 'c/',
- 'manufacturers_id' => 'm/',
- 'pID' => 'pi/',
- 'content' => 't/',
- 'divers' => 'd/',
- 'lID' => 'l/',
- 'customers_id' => 'u/',
- );
+
+
+ /**
+ @remarks mask pour reecriture
+ %1$s => key
+ %2$s => id
+ %3$s => title
+ %4$s => ext
+ */
+ $this->reg_mask['no-rewrite'] = '%1$s=%2$s';
+ $this->reg_mask['Rewrite'] = '%2$s-%1$s-%3$s.%4$s';
+ $this->reg_mask['Rewrite-mode2'] = '%1$s/%2$s/%3$s.%4$s';
+
+ /// ext apres reecriture
$this->reg_ext['no-rewrite']='html';
$this->reg_ext['Rewrite']='html';
$this->reg_ext['Rewrite-mode2']='html';
@@ -256,6 +276,7 @@
if ( _test_bool(self::$USE_SEO_CACHE_LINKS) ) $this->generate_links_cache();
}
+
if (_test_bool( self::$USE_SEO_REDIRECT)) $this->check_redirect();
@@ -264,7 +285,7 @@
/**
* \brief Prepa static var
*/
- self::$extention= (!empty($this->reg_ext[self::$SEO_REWRITE_TYPE]))? '.'.$this->reg_ext[self::$SEO_REWRITE_TYPE] : '';
+ self::$extention= (!empty($this->reg_ext[self::$SEO_REWRITE_TYPE]))? $this->reg_ext[self::$SEO_REWRITE_TYPE] : '';
self::$base_url = HTTP_SERVER . DIR_WS_HTTP_CATALOG;
self::$base_url_ssl = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG;
@@ -307,10 +328,14 @@
$this->start($this->timestamp);
$this->performance['NUMBER_URLS_GENERATED']++;
- if ( !in_array($page, $this->attributes['SEO_PAGES']) ) return $this->stock_href_link($page, $parameters, $connection, $add_session_id);
+ if ( !in_array($page, $this->attributes['SEO_PAGES']) )
+ return $this->stock_href_link($page, $parameters, $connection, $add_session_id);
+
$link = ($connection == 'NONSSL' || !(getenv('HTTPS') == 'on') )? self::$base_url : self::$base_url_ssl;
$separator = '?';
+
+
if ($this->not_null($parameters)) $link .= $this->parse_parameters($page, $parameters ,$connection , $separator);
else $link .= $this->parse_parameters($page, (!empty($parameters)?$parameters.'&':'') .'divers='.substr($page,0,strlen($page)-4) ,$connection , $separator); //$page;
@@ -339,8 +364,9 @@
public function header_tags($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = false){
$link = $connection == 'NONSSL' ? self::$base_url : self::$base_url_ssl;
$separator = '?';
+ self::$htexe = true;
$this->parse_parameters($page, $parameters ,$connection , $separator, true);
- if(!isset($this->header_tag['title'])) $this->transph_header_tag(array());
+ self::$htexe = false;
}
/**
@@ -354,7 +380,7 @@
}
/**
- * \brief Stock function, fallback use
+ * \brief Stock function, callback use
* @param $page
* @param $parameters
* @param $connection
@@ -420,38 +446,7 @@
}
}
- /**
- * \brief Function to append session ID if needed
- * @author Bobby Easland
- * @param $link string
- * @param $add_session_id boolean
- * @param $connection string
- * @param $separator string
- * @return string
- */
- private function add_sid( $link, $add_session_id, $connection, $separator ){
- global $request_type, $kill_sid;
- if ( ($add_session_id) && ($this->attributes['SESSION_STARTED']) && !_cst_bool('SESSION_FORCE_COOKIE_USE') ) {
- if ($this->not_null($this->attributes['SID'])) $_sid = $this->attributes['SID'];
- elseif ( ( ($request_type == 'NONSSL') && ($connection == 'SSL') && (ENABLE_SSL == true) ) || ( ($request_type == 'SSL') && ($connection == 'NONSSL') ) ) {
- if (HTTP_COOKIE_DOMAIN != HTTPS_COOKIE_DOMAIN) $_sid = $this->SessionName() . '=' . $this->SessionID();
- }
- else $_sid=tep_session_name().'='.tep_session_id();
- } else $_sid=tep_session_name().'='.tep_session_id();
- switch(true){
- case (!isset($_SESSION['customer_id']) && _cst_bool('ENABLE_PAGE_CACHE') && class_exists('page_cache')):
- $return = $link . $separator . '<osCsid>';
- break;
- case (isset($_sid) && $this->not_null($_sid) && ( !$kill_sid )):
- $return = $link . $separator . tep_output_string($_sid);
- break;
- default:
- $return = $link;
- break;
- }
- return $return;
- }
/**
* \brief Function to parse the parameters into an SEO URL
@@ -468,100 +463,158 @@
krsort($p);
$container = array();
- foreach ($p as $index => $valuepair){
- $p2 = @explode('=', $valuepair);
+ // preparation array key/value
+ foreach ($p as $index => $valuepair)
+ if(!empty($valuepair) || $index !=0) {
+ $p2 = @explode('=', $valuepair);
- switch ($p2[0]){
- case 'products_id':
- switch(true){
- default:
- case ( !$this->is_attribute_string($p2[1]) && in_array($page,array(FILENAME_PRODUCT_INFO, FILENAME_DEFAULT) ) ):
- $url = $this->make_url($page, $this->get_product_name($p2[1]), $p2[0], $p2[1], $separator);
- $this->ValidateName($url, "p", $p2[1], $connection, $separator);
- break;
- default:
- $container[$p2[0]] = $p2[1];
- break;
- }
+ $p3[$p2[0]]=$p2[1];
+ }
+
+ $check=array_keys($this->reg_anchors);
+
+ foreach ($p3 as $key => $value){
+ $url='';
+ switch ($key){
+ case (in_array($key, $check)):
+
+ $Rkey=$this->reg_anchors[$key];
+ $function = 'GetName_'.$Rkey;
+ $url = $this->make_url($page, $this->$function($value), $key, $value, $separator);
+
+// $url = $this->make_url($page, $this->get_product_name($p2[1]), $p2[0], $p2[1], $separator);
+ $this->ValidateName($url, $Rkey, $value, $connection, $separator);
+
break;
- case 'cPath':
- switch(true){
- case ($page == FILENAME_DEFAULT):
- default:
- $url = $this->make_url($page, $this->get_category_name($p2[1]), $p2[0], $p2[1], $separator);
- $this->ValidateName($url, "c", $p2[1], $connection, $separator);
- break;
-// case ( !$this->is_product_string($params) ):
-// if ( _test_bool($this->attributes['SEO_ADD_CPATH_TO_PRODUCT_URLS'])){
-// $container[$p2[0]] = $p2[1];
-// }
+
+
+// switch(true){
+// default:
+// case ( !$this->is_attribute_string($p2[1]) && in_array($page,array(FILENAME_PRODUCT_INFO, FILENAME_DEFAULT) ) ):
+// $url = $this->make_url($page, $this->get_product_name($p2[1]), $p2[0], $p2[1], $separator);
+// $this->ValidateName($url, "p", $p2[1], $connection, $separator);
// break;
// default:
// $container[$p2[0]] = $p2[1];
// break;
- }
- break;
- case 'manufacturers_id':
- switch(true){
- case ($page == FILENAME_DEFAULT && !$this->is_cPath_string($params) && !$this->is_product_string($params) ):
- $url = $this->make_url($page, $this->get_manufacturer_name($p2[1]), $p2[0], $p2[1], $separator);
- $this->ValidateName($url, "m", $p2[1], $connection, $separator);
- break;
- case ($page == FILENAME_PRODUCT_INFO):
- break;
- default:
- $container[$p2[0]] = $p2[1];
- break;
- }
- break;
- case 'pID':
- switch(true){
- case ($page == FILENAME_POPUP_IMAGE):
- $url = $this->make_url($page, $this->get_product_name($p2[1]), $p2[0], $p2[1], $separator);
- $this->ValidateName($url, "pID", $p2[1], $connection, $separator);
- break;
- default:
- $container[$p2[0]] = $p2[1];
- break;
- }
- break;
- case 'lID':
- switch(true){
- default:
- $url = $this->make_url($page, $this->get_links_name($p2[1]), $p2[0], $p2[1], $separator);
- $this->ValidateName($url, "lID", $p2[1], $connection, $separator);
- break;
- }
- break;
- case 'content':
- switch(true){
- case ($page == FILENAME_CONTENT):
- $url = $this->make_url($page, $this->get_topic_name($p2[1]), $p2[0], $p2[1], $separator);
- $this->ValidateName($url, "t", $p2[1], $connection, $separator);
- break;
- default:
- $container[$p2[0]] = $p2[1];
- break;
- }
- break;
- case 'divers':
- switch(true){
- default:
- $url = $this->make_url($page, $this->get_divers_name($p2[1]), $p2[0], $p2[1], $separator);
- $this->ValidateName($url, "d", $p2[1], $connection, $separator);
- break;
- }
- break;
- case 'customers_id':
- switch(true){
- default:
- $url = $this->make_url($page, $this->get_divers_name($p2[1]), $p2[0], $p2[1], $separator);
- $this->ValidateName($url, "u", $p2[1], $connection, $separator);
- break;
- }
- break;
+// }
+// break;
+// case 'cPath':
+// switch(true){
+// case ($page == FILENAME_DEFAULT):
+// default:
+// $url = $this->make_url($page, $this->get_category_name($p2[1]), $p2[0], $p2[1], $separator);
+// $this->ValidateName($url, "c", $p2[1], $connection, $separator);
+// break;
+// }
+// break;
+// case 'manufacturers_id':
+//
+//
+// switch(true){
+// case (/*$page == FILENAME_DEFAULT &&*/ !$this->is_cPath_string($params) && !$this->is_product_string($params) ):
+// $url = $this->make_url($page, $this->get_manufacturer_name($p2[1]), $p2[0], $p2[1], $separator);
+// $this->ValidateName($url, "m", $p2[1], $connection, $separator);
+//
+//
+// break;
+// case ($page == FILENAME_PRODUCT_INFO):
+// break;
+// default:
+// $container[$p2[0]] = $p2[1];
+// break;
+// }
+// break;
+// case 'pID':
+// switch(true){
+// case ($page == FILENAME_POPUP_IMAGE):
+// $url = $this->make_url($page, $this->get_product_name($p2[1]), $p2[0], $p2[1], $separator);
+// $this->ValidateName($url, "pID", $p2[1], $connection, $separator);
+// break;
+// default:
+// $container[$p2[0]] = $p2[1];
+// break;
+// }
+// break;
+// case 'lID':
+// switch(true){
+// default:
+// $url = $this->make_url($page, $this->get_links_name($p2[1]), $p2[0], $p2[1], $separator);
+// $this->ValidateName($url, "lID", $p2[1], $connection, $separator);
+// break;
+// }
+// break;
+// case 'content':
+// switch(true){
+// case ($page == FILENAME_CONTENT):
+// $url = $this->make_url($page, $this->get_topic_name($p2[1]), $p2[0], $p2[1], $separator);
+// $this->ValidateName($url, "t", $p2[1], $connection, $separator);
+// break;
+// default:
+// $container[$p2[0]] = $p2[1];
+// break;
+// }
+// break;
+// case 'divers':
+// switch(true){
+// case ($page == '' || $page ==FILENAME_DEFAULT):
+// $id=AbstractHeader_tags::get_prio_cms('home');
+// //! home by cms
+// if(is_int($id)) {
+// $url = $this->make_url($page, $this->get_topic_name($id), "content", $id, $separator);
+// $this->ValidateName($url, "t", $id, $connection, $separator);
+// }
+// //! home by page content
+// else {
+// $url = $this->make_url('home', $this->get_divers_name('home'), 'divers', 'home', $separator);
+// $this->ValidateName($url, "d", 'home', $connection, $separator);
+// }
+// var_dump($url);
+// break;
+// default:
+// $url = $this->make_url($page, $this->get_divers_name($p2[1]), $p2[0], $p2[1], $separator);
+// $this->ValidateName($url, "d", $p2[1], $connection, $separator);
+// break;
+// }
+// break;
+// case 'customers_id':
+// switch(true){
+// default:
+// $url = $this->make_url($page, $this->get_divers_name($p2[1]), $p2[0], $p2[1], $separator);
+// $this->ValidateName($url, "u", $p2[1], $connection, $separator);
+// break;
+// }
+// break;
+//
+//
+// case 'type_object':
+// switch(true){
+//
+// /**
+// Listing fabricant
+// */
+// case 'manufacturers':
+// default:
+//
+//
+// $url = $this->make_url($page, $this->get_divers_name(substr($page,0,-4)), $p2[0], $p2[1], $separator);
+// $this->ValidateName($url, "d", $p2[1], $connection, $separator);
+// break;
+// }
+// break;
+//
+//
+//
+//
+
+// case (in_array($key, array('categories_id'))):
+// $this->do_redirect();
+// break
+
default:
- $container[$p2[0]] = @$p2[1];
+// $key => $value
+ $container[$key] = @$value;
+// var_dump($page,$key);
switch(true){
case ($page == '' || $page ==FILENAME_DEFAULT):
$id=AbstractHeader_tags::get_prio_cms('home');
@@ -577,18 +630,22 @@
}
break;
default:
- if(is_array($p2)) $container[$p2[0]] = @$p2[1];
+ if(is_array($p2)) $container[$key] = $value;
break;
}
}
+// if($url !='') continue;
}
+
$url = isset($url) ? $url : $page;
+
if ( sizeof($container) > 0 ){
if ( $imploded_params = $this->implode_assoc($container) ){
$url .= $separator . $this->output_string( $imploded_params );
$separator = '&';
}
}
+
return $url;
}
@@ -604,14 +661,20 @@
@return string
*/
private function make_url($page, $string, $anchor_type, $id, &$separator){
- switch ( self::$SEO_REWRITE_TYPE ){
- case 'Rewrite':
- return $string . $this->reg_anchors['Rewrite'][$anchor_type] . $id .self::$extention;
- break;
- case 'Rewrite-mode2':
- return $this->reg_anchors['Rewrite-mode2'][$anchor_type] . $id .'/'.$string. self::$extention;
- break;
- }
+
+ if(self::$SEO_REWRITE_TYPE =='no-rewrite')
+ $key = $anchor_type;
+ else
+ $key = $this->reg_anchors[$anchor_type];
+
+ return sprintf(
+ $this->reg_mask[self::$SEO_REWRITE_TYPE],
+ $key,
+ $id,
+ $string,
+ self::$extention
+ );
+
}
@@ -660,23 +723,29 @@
* @param $pID integer
* @return string Stripped anchor text
*/
- private function get_divers_name($pID){
+ private function GetName_d($pID){
+// private function get_divers_name($pID){
+
switch(true){
case (_test_bool(self::$USE_SEO_CACHE_GLOBAL) && isset($this->cache['DIVERS'][$pID])):
$this->performance['CACHE_QUERY_SAVINGS']++;
$result = $this->get_cache_id($pID,'','DIVERS');
+// var_dump(self::$htexe,$result);
$return = (isset($result['tName'])? $this->strip($result['tName']): $this->strip($pID));
- $this->transph_header_tag($result);
+ if(self::$htexe)
+ $this->transph_header_tag($result);
break;
default:
$this->performance['NUMBER_QUERIES']++;
- $sql = "select head_title_tag as tName, head_desc_tag, head_keywords_tag from " . TABLE_FULL_TAG . " ft, " . TABLE_FULL_TAG_DESCRIPTION . " ftd where ft.tag_id=ftd.tag_id and ft.page_type='page' and ft.page_id = '" . $pID. "' and ftd.language_id = '" . (int)$this->languages_id. "' Limit 1";
+ $sql = "select head_title_tag as tName, head_desc_tag, head_keywords_tag from " . TABLE_FULL_TAG . " ft, " . TABLE_FULL_TAG_DESCRIPTION . " ftd where ft.tag_id=ftd.tag_id and ft.page_type='page' and ft.page_id = '" . basename($pID). "' and ftd.language_id = '" . (int)$this->languages_id. "' Limit 1";
$query=$this->DB->query( $sql );
if ($query->__get('numRows')>0) $result =$query->fetchAssoc();
else $result['tName'] = $this->strip($pID);
$this->get_cache_id($pID,'','DIVERS');
$this->performance['QUERIES']['DIVERS'][] = $sql;
- $this->transph_header_tag($result);
+
+ if(self::$htexe)
+ $this->transph_header_tag($result);
$return = $result['tName'];
break;
}
@@ -701,13 +770,14 @@
* @param $pID integer
* @return string Stripped anchor text
*/
- private function get_links_name($pID){
+ private function GetName_l($pID){
+// private function get_links_name($pID){
switch(true){
case (_test_bool(self::$USE_SEO_CACHE_GLOBAL) && isset($this->cache['LINKS'][$pID]) ):
$this->performance['CACHE_QUERY_SAVINGS']++;
$result = $this->get_cache_id($pID,'','LINKS');
$return = (isset($result['tName'])? $this->strip($result['tName']): $this->strip($pID));
- $this->transph_header_tag($result);
+ if(self::$htexe) $this->transph_header_tag($result);
break;
default:
$this->performance['NUMBER_QUERIES']++;
@@ -716,7 +786,7 @@
else $result['tName'] = $this->strip($pID);
$this->get_cache_id($pID,'','LINKS');
$this->performance['QUERIES']['LINKS'][] = $query;
- $this->transph_header_tag($result);
+ if(self::$htexe) $this->transph_header_tag($result);
$return = $result['tName'];
break;
}
@@ -736,19 +806,28 @@
}
/**
+ * \brief Alias GetName_p();
+ */
+ private function GetName_pi($pID){
+ return $this->GetName_p($pID);
+ }
+
+
+ /**
* \brief Function to get the product name. Use evaluated cache, per page cache, or database query in that order of precedent
* @author Bobby Easland
* @version 1.1
* @param $pID integer
* @return string Stripped anchor text
*/
- private function get_product_name($pID){
+ private function GetName_p($pID){
+// private function get_product_name($pID){
switch(true){
case (_test_bool(self::$USE_SEO_CACHE_GLOBAL) && isset($this->cache['PRODUCTS'][$pID]) ):
$this->performance['CACHE_QUERY_SAVINGS']++;
$result = $this->get_cache_id($pID,'','PRODUCTS');
$return = (isset($result['tName'])? $this->strip($result['tName']): '');
- $this->transph_header_tag($result);
+ if(self::$htexe) $this->transph_header_tag($result);
break;
default:
$this->performance['NUMBER_QUERIES']++;
@@ -771,7 +850,7 @@
// $result = $this->DB->FetchArray( $this->DB->Query( $sql ) );
$this->get_cache_id($pID,$result,'PRODUCTS');
$this->performance['QUERIES']['PRODUCTS'][] = $rsql;
- $this->transph_header_tag($result);
+ if(self::$htexe) $this->transph_header_tag($result);
$return = $this->strip( $result['tName'] );
break;
}
@@ -796,7 +875,8 @@
* @param $cID integer NOTE: passed by reference
* @return string Stripped anchor text
*/
- private function get_category_name(&$cID){
+// private function get_category_name(&$cID){
+ private function GetName_c($cID){
$ID=substr(strrchr($cID, '_'),1);
$ID=(is_numeric($ID) ?$ID : $this->get_full_cPath($cID, $single_cID));
switch(true){
@@ -804,7 +884,7 @@
$this->performance['CACHE_QUERY_SAVINGS']++;
$result = $this->get_cache_id($ID,'','CATEGORIES');;
$return = (isset($result['tName'])? $this->strip($result['tName']): '');
- $this->transph_header_tag($result);
+ if(self::$htexe) $this->transph_header_tag($result);
break;
default:
$this->performance['NUMBER_QUERIES']++;
@@ -830,7 +910,7 @@
}
$cName = $this->strip($cName);
$this->get_cache_id($ID,$result,'CATEGORIES');
- $this->transph_header_tag($result);
+ if(self::$htexe) $this->transph_header_tag($result);
$return = $cName;
break;
}
@@ -857,13 +937,14 @@
* @param $mID integer
* @return string
*/
- private function get_manufacturer_name($mID){
+// private function get_manufacturer_name($mID){
+ private function GetName_m($mID){
switch(true){
case (_test_bool(self::$USE_SEO_CACHE_GLOBAL) && isset($this->cache['MANUFACTURERS'][$mID])):
$this->performance['CACHE_QUERY_SAVINGS']++;
$result = $this->cache['MANUFACTURERS'][$mID];
$return = (isset($result['tName'])? $result['tName']: '');
- $this->transph_header_tag($result);
+ if(self::$htexe) $this->transph_header_tag($result);
break;
default:
$this->performance['NUMBER_QUERIES']++;
@@ -872,7 +953,7 @@
$mName = $this->strip( $result['tName'] );
$this->cache['MANUFACTURERS'][$mID] = $result;
$this->performance['QUERIES']['MANUFACTURERS'][] = $rsql;
- $this->transph_header_tag($result);
+ if(self::$htexe) $this->transph_header_tag($result);
$return = $mName;
break;
}
@@ -887,13 +968,14 @@
* @param $tID integer
* @return string
*/
- private function get_topic_name($tID){
+ private function GetName_t($tID){
+// private function get_topic_name($tID){
switch(true){
case (_test_bool(self::$USE_SEO_CACHE_GLOBAL) && isset($this->cache['TOPICS'][$tID]) ):
$this->performance['CACHE_QUERY_SAVINGS']++;
$result = $this->cache['TOPICS'][$tID];
$return = (isset($result['tName'])? $this->strip($result['tName']): '');
- $this->transph_header_tag($result);
+ if(self::$htexe) $this->transph_header_tag($result);
break;
default:
$this->performance['NUMBER_QUERIES']++;
@@ -904,7 +986,7 @@
$tName = $this->strip( $result['tName'] );
$this->cache['ARTICLES'][$tID] = $result;
$this->performance['QUERIES']['TOPICS'][] = $sql;
- $this->transph_header_tag($result);
+ if(self::$htexe) $this->transph_header_tag($result);
$return = $tName;
break;
}
@@ -1398,6 +1480,7 @@
@author Bobby Easland
*/
private function check_redirect(){
+
$this->need_redirect = false;
$this->path_info = is_numeric(strpos(ltrim(getenv('PATH_INFO'), '/') , '/')) ? ltrim(getenv('PATH_INFO'), '/') : NULL;
$this->uri = ltrim( basename($_SERVER['REQUEST_URI']), '/' );
@@ -1437,6 +1520,7 @@
@author Bobby Easland
*/
private function check_seo_page(){
+
switch (true){
case (isset($this->uri_parsed['path']) && in_array($this->uri_parsed['path'], $this->attributes['SEO_PAGES'])): $this->is_seopage = true; break;
default: $this->is_seopage = false; break;
@@ -1469,6 +1553,8 @@
@author Bobby Easland
*/
private function do_redirect(){
+var_dump(__FUNCTION__);
+
$rs=str_replace('&','&',$this->uri_parsed['query']);
$p = @explode('&', $rs);
foreach( $p as $index => $value ){
@@ -1511,5 +1597,39 @@
break;
}
}
+
+
+ /**
+ * \brief Function to append session ID if needed
+ * @author Bobby Easland
+ * @param $link string
+ * @param $add_session_id boolean
+ * @param $connection string
+ * @param $separator string
+ * @return string
+ */
+ private function add_sid( $link, $add_session_id, $connection, $separator ){
+ global $request_type, $kill_sid;
+ if ( ($add_session_id) && ($this->attributes['SESSION_STARTED']) && !_cst_bool('SESSION_FORCE_COOKIE_USE') ) {
+ if ($this->not_null($this->attributes['SID'])) $_sid = $this->attributes['SID'];
+ elseif ( ( ($request_type == 'NONSSL') && ($connection == 'SSL') && (ENABLE_SSL == true) ) || ( ($request_type == 'SSL') && ($connection == 'NONSSL') ) ) {
+ if (HTTP_COOKIE_DOMAIN != HTTPS_COOKIE_DOMAIN) $_sid = $this->SessionName() . '=' . $this->SessionID();
+ }
+ else $_sid=tep_session_name().'='.tep_session_id();
+ } else $_sid=tep_session_name().'='.tep_session_id();
+
+ switch(true){
+ case (!isset($_SESSION['customer_id']) && _cst_bool('ENABLE_PAGE_CACHE') && class_exists('page_cache')):
+ $return = $link . $separator . '<osCsid>';
+ break;
+ case (isset($_sid) && $this->not_null($_sid) && ( !$kill_sid )):
+ $return = $link . $separator . tep_output_string($_sid);
+ break;
+ default:
+ $return = $link;
+ break;
+ }
+ return $return;
+ }
}
?>
\ No newline at end of file
Modified: trunk/catalog/document.php
===================================================================
--- trunk/catalog/document.php 2011-11-08 16:39:34 UTC (rev 3873)
+++ trunk/catalog/document.php 2011-11-08 23:14:54 UTC (rev 3874)
@@ -12,10 +12,39 @@
$page->init(basename(__FILE__),$language);
+// die('toto');
-
switch($_REQUEST['mod']){
+
+ /**
+ @brief Traitement des images
+ Prise en charge des images
+ */
+ case 'images':
+ case 'image':
+ case 'img':
+
+ $width=((isset($_REQUEST['w']) && (int)$_REQUEST['w'] > 0)? (int)$_REQUEST['w'] : '');
+ $height=((isset($_REQUEST['h']) && (int)$_REQUEST['h'] > 0)? (int)$_REQUEST['h'] : '');
+ $img=((isset($_REQUEST['i']) && strlen((string)$_REQUEST['i']) > 0)? tep_sanitize_request($_REQUEST['i']) : '');
+
+
+ $get=image_ratio::get_image(DIR_WS_IMAGES.$img,'',$width,$height);
+
+ if($ext='jpg')$ext='jpeg';
+
+ $img=$get['src'];
+
+ header('Content-type: image/'.$ext);
+
+ readfile(DIR_FS_CATALOG.$img);
+ exit;
+
+
+ break;
+
+
case 'invoice':
case 'packingslip':
Modified: trunk/catalog/includes/classes/page.php
===================================================================
--- trunk/catalog/includes/classes/page.php 2011-11-08 16:39:34 UTC (rev 3873)
+++ trunk/catalog/includes/classes/page.php 2011-11-08 23:14:54 UTC (rev 3874)
@@ -397,12 +397,44 @@
}
}
+
/**
+ * \fn CurrentPageInit()
+ */
+ protected function CurrentPageInit($path=''){
+ global $languages_id;
+
+ $here = (!empty($...
[truncated message content] |
|
From: <os...@us...> - 2011-11-14 22:56:16
|
Revision: 3877
http://oscss.svn.sourceforge.net/oscss/?rev=3877&view=rev
Author: oscim
Date: 2011-11-14 22:56:08 +0000 (Mon, 14 Nov 2011)
Log Message:
-----------
suite correction
Externalisation dans le configure du tableau de fichier utilise par le contructeur file_registered
Normalisation des modules de checkout
Ajout d'une class au constructor page : checkout
Report des conditions cgu dans une etape prealable, qui fonctionne en parallele avec les module aca type checkout
Ajout des cgu en module
Modified Paths:
--------------
trunk/catalog/admin/includes/classes/drivers/sqlcontent.php
trunk/catalog/admin/includes/classes/drivers/sqlorder.php
trunk/catalog/admin/includes/classes/productUtility.php
trunk/catalog/admin/includes/content/modules.top.inc
trunk/catalog/admin/includes/exts/package/packageUtility.php
trunk/catalog/admin/includes/modules/configuration/modexpedition.php
trunk/catalog/admin/includes/modules/configuration/modseourl.php
trunk/catalog/admin/includes/modules/pages/customers.php
trunk/catalog/common/classes/seo_url.php
trunk/catalog/includes/appli_top_Test.php
trunk/catalog/includes/application_top.php
trunk/catalog/includes/classes/AbstractAcaModule.php
trunk/catalog/includes/classes/page.php
trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/includes/content/shopping_cart.php
trunk/catalog/install/includes/modele/configure.txt
Added Paths:
-----------
trunk/catalog/includes/classes/core_page/checkout.php
trunk/catalog/includes/modules/checkout/
trunk/catalog/includes/modules/checkout/PrCgu.php
trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/includes/content/checkout_before_process.php
Removed Paths:
-------------
trunk/catalog/includes/modules/checkout_process/
Modified: trunk/catalog/admin/includes/classes/drivers/sqlcontent.php
===================================================================
--- trunk/catalog/admin/includes/classes/drivers/sqlcontent.php 2011-11-13 21:53:14 UTC (rev 3876)
+++ trunk/catalog/admin/includes/classes/drivers/sqlcontent.php 2011-11-14 22:56:08 UTC (rev 3877)
@@ -169,15 +169,16 @@
self::getInstance();
$DB=Database::getInstance();
+ $result=array();
// $languages_id = $option['language_id'];
$cat_list =array();
$list_languages=tep_get_languages();
- $sql ="AND ";
+ $sql ="";
if(isset($option['id'])){
$ID = (int) $option['id'];
- $sql .="AND p.content_id = '".(int)tep_db_input($option['id'])."' ";
+ $sql .="AND c.content_id = '".(int)tep_db_input($option['id'])."' ";
}
// if(isset($option['language_id'])){
@@ -185,54 +186,76 @@
// $sql .="AND pd.language_id = '".(int)tep_db_input($option['language_id'])."' ";
// }
-// $sql =substr($sql,3);
+ if(isset($option['catid'])){
+ $languages_id = (int)$option['catid'];
+ $sql .="AND c2c.categories_id = '".(int)tep_db_input($option['catid'])."' ";
+ }
+ $sql =substr($sql,3);
- $content_query = $DB->query("select c.content_id, content_name, date_added, last_modified, content_status from " . TABLE_CONTENT . " c where c.content_id = '" . (int)$ID . "' ");
- $cInfo_array = tep_db_fetch_array($content_query);
- tep_db_free_result($content_query);
- // call all langue for this post
- for ($i=0, $n=sizeof($list_languages); $i<$n; $i++) {
- $language_id = $list_languages[$i]['id'];
- $content_query = $DB->query("select cd.content_text, cd.content_title from " . TABLE_CONTENT . " c, " . TABLE_CONTENT_DESCRIPTION . " cd where c.content_id = '" . (int)$ID . "' and c.content_id = cd.content_id and language_id='" . $language_id . "'");
- $content = tep_db_fetch_array($content_query);
- $cInfo_array['text'][$language_id] = $content['content_text'];
- $cInfo_array['title'][$language_id] = $content['content_title'];
- tep_db_free_result($content_query);
- }
+ $res = $DB->query($sql="select c.content_id, content_name, date_added, last_modified, content_status from " . TABLE_CONTENT . " c LEFT JOIN " . TABLE_CONTENT_TO_CATEGORIES . " c2c on(c.content_id=c2c.content_id) WHERE ".$sql); //c.content_id = '" . (int)$ID . "' ");
- $cat_query = $DB->query("select categories_id from " . TABLE_CONTENT_TO_CATEGORIES . " where content_id='" . (int)$ID . "' ");
+ $num = $res->__get('numRows');
+ if($num == 1)
+ $cInfo_array[] = $res->fetchAssoc();
+ else
+ foreach($res->fetchAllAssoc() as $row)
+ $cInfo_array[] = $row;
- while($cat_l = tep_db_fetch_array($cat_query)){ $cat_list[$cat_l['categories_id']]=$cat_l; }
- $cInfo_array['categories']=$cat_list;
+ tep_db_free_result($res);
- tep_db_free_result($cat_query);
+ foreach($cInfo_array as $row) {
- self::$modules->load_db_values($ID);
+ // call all langue for this post
+ for ($i=0, $n=sizeof($list_languages); $i<$n; $i++) {
+ $language_id = $list_languages[$i]['id'];
+ $content_query = $DB->query("select cd.content_text, cd.content_title from " . TABLE_CONTENT . " c, " . TABLE_CONTENT_DESCRIPTION . " cd where c.content_id = '" . (int)$row['content_id'] . "' and c.content_id = cd.content_id and language_id='" . $language_id . "'");
+ $content = tep_db_fetch_array($content_query);
+ $row['text'][$language_id] = $content['content_text'];
+ $row['title'][$language_id] = $content['content_title'];
+ tep_db_free_result($content_query);
+ }
+ $cat_query = $DB->query("select categories_id from " . TABLE_CONTENT_TO_CATEGORIES . " where content_id='" . (int)$row['content_id'] . "' ");
- return ((!$shortkey)? $cInfo_array : self::CleanKey($cInfo_array)) ;
-// if($num == 1){
-// $result=$res->fetchAssoc();
-// return self::CleanKey($result);
-// }
-// elseif($num > 1){
-// $array=array();
-//
-// foreach($res->fetchAllAssoc() as $lg)
-// $array[]= self::CleanKey($lg);
-//
-// return $array;
-// }
-// return false;
+ while($cat_l = tep_db_fetch_array($cat_query)){ $cat_list[$cat_l['categories_id']]=$cat_l; }
+ $row['categories']=$cat_list;
+
+
+ tep_db_free_result($cat_query);
+
+
+ self::$modules->load_db_values((int)$row['content_id']);
+
+
+ $result[] = $row;
+ }
+
+
+
+// return ((!$shortkey)? $cInfo_array : self::CleanKey($cInfo_array)) ;
+
+ if($num == 1){
+ return ((!$shortkey)? $result[0] : self::CleanKey($result[0])) ;
+ }
+ elseif($num > 1){
+ $array=array();
+
+ foreach($result as $lg)
+ $array[]= ((!$shortkey)? $lg : self::CleanKey($lg));
+
+ return $array;
+ }
+
+ return false;
}
/**
Modified: trunk/catalog/admin/includes/classes/drivers/sqlorder.php
===================================================================
--- trunk/catalog/admin/includes/classes/drivers/sqlorder.php 2011-11-13 21:53:14 UTC (rev 3876)
+++ trunk/catalog/admin/includes/classes/drivers/sqlorder.php 2011-11-14 22:56:08 UTC (rev 3877)
@@ -35,8 +35,8 @@
/**
TODO : remplacer le nom de constante par un MODULE_CATEGORIES_INSTALLED_BO
*/
- self::$modules=new AcaFactory('categories','MODULE_ACACAT_INSTALLED_BO');
- self::$modules->set_image_handler();
+ self::$modules=new AcaFactory('orders','MODULE_ORDERS_INSTALLED_BO');
+// self::$modules->set_image_handler();
}
/**
@@ -69,54 +69,54 @@
else
$post = $option['post'];
- $list_languages=tep_get_languages();
+// $list_languages=tep_get_languages();
+//
+// $sql_data_array['date_added'] = 'now()';
+// $sql_data_array['sort_order'] = (!empty($post['sort_order'])) ? tep_db_prepare_input((int)$post['sort_order']) : 0 ;
+// $sql_data_array['parent_id'] = (!empty($sql_data_array['parent_id'])) ? tep_db_prepare_input((int)$sql_data_array['parent_id']) : 0 ;
+//
+// $sql_data_array['categories_status'] = (!empty($post['categories_status'])) ? tep_db_prepare_input((int)$post['categories_status']) : 0 ;
+// $sql_data_array['categories_hidden'] = (!empty($post['categories_hidden'])) ? tep_db_prepare_input((int)$post['categories_hidden']) : 0 ;
+//
+// // Put post value
+// self::$modules->load_post_values($post);
+//
+// self::$modules->get_insert_table_categories($sql_data_array,'');
+//
+// $res=tep_db_perform(TABLE_CATEGORIES, $sql_data_array);
+//
+//
+//
+// if(!$res)
+// return $res;
+// else
+// $categories_id = $res->__get('insertId');
+//
+// // cpath adjust
+// $sql_data_array=array();
+// $sql_data_array['categories_cpath'] = categorieUtility::get_generated_category_path_ids($categories_id);
+// $res=tep_db_perform(TABLE_CATEGORIES, $sql_data_array, 'update', "categories_id = '" . $categories_id . "'");
+//
+//
+// // table language adjust
+// $categories_name_array = $_POST['categories_name'];
+// $categories_desc_array = $_POST['categories_description'];
+//
+//
+// for ($i=0, $n=sizeof($list_languages); $i<$n; $i++) {
+// $language_id = $list_languages[$i]['id'];
+// $sql_data_array = array('categories_name' => tep_db_prepare_input($categories_name_array[$language_id]),
+// 'categories_description'=>tep_db_prepare_input($categories_desc_array[$language_id]));
+//
+// $insert_sql_data = array('categories_id' => $categories_id,
+// 'language_id' => $list_languages[$i]['id']);
+// $sql_data_array = array_merge($sql_data_array, $insert_sql_data);
+// $sql_data_array = array_merge($sql_data_array,self::$modules->get_insert_table_categories_description (array(),$list_languages[$i]['id']));
+//
+// tep_db_perform(TABLE_CATEGORIES_DESCRIPTION, $sql_data_array);
+// }
- $sql_data_array['date_added'] = 'now()';
- $sql_data_array['sort_order'] = (!empty($post['sort_order'])) ? tep_db_prepare_input((int)$post['sort_order']) : 0 ;
- $sql_data_array['parent_id'] = (!empty($sql_data_array['parent_id'])) ? tep_db_prepare_input((int)$sql_data_array['parent_id']) : 0 ;
- $sql_data_array['categories_status'] = (!empty($post['categories_status'])) ? tep_db_prepare_input((int)$post['categories_status']) : 0 ;
- $sql_data_array['categories_hidden'] = (!empty($post['categories_hidden'])) ? tep_db_prepare_input((int)$post['categories_hidden']) : 0 ;
-
- // Put post value
- self::$modules->load_post_values($post);
-
- self::$modules->get_insert_table_categories($sql_data_array,'');
-
- $res=tep_db_perform(TABLE_CATEGORIES, $sql_data_array);
-
-
-
- if(!$res)
- return $res;
- else
- $categories_id = $res->__get('insertId');
-
- // cpath adjust
- $sql_data_array=array();
- $sql_data_array['categories_cpath'] = categorieUtility::get_generated_category_path_ids($categories_id);
- $res=tep_db_perform(TABLE_CATEGORIES, $sql_data_array, 'update', "categories_id = '" . $categories_id . "'");
-
-
- // table language adjust
- $categories_name_array = $_POST['categories_name'];
- $categories_desc_array = $_POST['categories_description'];
-
-
- for ($i=0, $n=sizeof($list_languages); $i<$n; $i++) {
- $language_id = $list_languages[$i]['id'];
- $sql_data_array = array('categories_name' => tep_db_prepare_input($categories_name_array[$language_id]),
- 'categories_description'=>tep_db_prepare_input($categories_desc_array[$language_id]));
-
- $insert_sql_data = array('categories_id' => $categories_id,
- 'language_id' => $list_languages[$i]['id']);
- $sql_data_array = array_merge($sql_data_array, $insert_sql_data);
- $sql_data_array = array_merge($sql_data_array,self::$modules->get_insert_table_categories_description (array(),$list_languages[$i]['id']));
-
- tep_db_perform(TABLE_CATEGORIES_DESCRIPTION, $sql_data_array);
- }
-
-
/// Child module, Call After Update process
self::$modules->after_update($id);
@@ -145,49 +145,49 @@
else
$post = $option['post'];
- $list_languages=tep_get_languages();
+// $list_languages=tep_get_languages();
+//
+// $sql_data_array = $option['sqlarray'];
+//
+// $sql_data_array['last_modified'] = 'now()';
+// $sql_data_array['sort_order'] = (!empty($post['sort_order'])) ? tep_db_prepare_input((int)$post['sort_order']) : 0 ;
+// $sql_data_array['parent_id'] = (!empty($sql_data_array['parent_id'])) ? tep_db_prepare_input((int)$sql_data_array['parent_id']) : 0 ;
+// $sql_data_array['categories_cpath'] = categorieUtility::get_generated_category_path_ids($id,'category');
+// $sql_data_array['categories_status'] = (!empty($post['categories_status'])) ? tep_db_prepare_input((int)$post['categories_status']) : 0 ;
+// $sql_data_array['categories_hidden'] = (!empty($post['categories_hidden'])) ? tep_db_prepare_input((int)$post['categories_hidden']) : 0 ;
- $sql_data_array = $option['sqlarray'];
- $sql_data_array['last_modified'] = 'now()';
- $sql_data_array['sort_order'] = (!empty($post['sort_order'])) ? tep_db_prepare_input((int)$post['sort_order']) : 0 ;
- $sql_data_array['parent_id'] = (!empty($sql_data_array['parent_id'])) ? tep_db_prepare_input((int)$sql_data_array['parent_id']) : 0 ;
- $sql_data_array['categories_cpath'] = categorieUtility::get_generated_category_path_ids($id,'category');
- $sql_data_array['categories_status'] = (!empty($post['categories_status'])) ? tep_db_prepare_input((int)$post['categories_status']) : 0 ;
- $sql_data_array['categories_hidden'] = (!empty($post['categories_hidden'])) ? tep_db_prepare_input((int)$post['categories_hidden']) : 0 ;
-
-
// Put post value
self::$modules->load_post_values($post);
- $sql_data_array=array_merge($sql_data_array, (array) self::$modules->get_update_table_categories($sql_data_array) );
+// $sql_data_array=array_merge($sql_data_array, (array) self::$modules->get_update_table_categories($sql_data_array) );
+//
+//
+// tep_db_perform(TABLE_CATEGORIES, $sql_data_array, 'update', "categories_id = '" . $id . "'");
+//
+// $categories_name_array = $post['categories_name'];
+// $categories_desc_array = $post['categories_description'];
+//
+//
+// for ($i=0, $n=sizeof($list_languages); $i<$n; $i++) {
+//
+// $language_id = (int)$list_languages[$i]['id'];
+// $sql_data_array = array('categories_name' => tep_db_prepare_input($categories_name_array[$language_id]),
+// 'categories_description'=>tep_db_prepare_input($categories_desc_array[$language_id]));
+//
+// $tabl=self::$modules->get_update_table_categories_description ($list_languages[$i]['id']);
+// $sql_data_array = array_merge($sql_data_array, $tabl);
+//
+// tep_db_perform(TABLE_CATEGORIES_DESCRIPTION, $sql_data_array, 'update', "categories_id = '" . $id . "' and language_id = '" . $language_id . "'");
+//
+// }
+//
+// // if ( !empty($_FILES['categories_image']['tmp_name']) ) {
+// // $categories_image = new upload('categories_image', DIR_FS_CATALOG_IMAGES);
+// // tep_db_query("update " . TABLE_CATEGORIES . " set categories_image = '" . tep_db_input($categories_image->filename) . "' where categories_id = '" . (int)$categories_id . "'");
+// // }
- tep_db_perform(TABLE_CATEGORIES, $sql_data_array, 'update', "categories_id = '" . $id . "'");
-
- $categories_name_array = $post['categories_name'];
- $categories_desc_array = $post['categories_description'];
-
-
- for ($i=0, $n=sizeof($list_languages); $i<$n; $i++) {
-
- $language_id = (int)$list_languages[$i]['id'];
- $sql_data_array = array('categories_name' => tep_db_prepare_input($categories_name_array[$language_id]),
- 'categories_description'=>tep_db_prepare_input($categories_desc_array[$language_id]));
-
- $tabl=self::$modules->get_update_table_categories_description ($list_languages[$i]['id']);
- $sql_data_array = array_merge($sql_data_array, $tabl);
-
- tep_db_perform(TABLE_CATEGORIES_DESCRIPTION, $sql_data_array, 'update', "categories_id = '" . $id . "' and language_id = '" . $language_id . "'");
-
- }
-
-// if ( !empty($_FILES['categories_image']['tmp_name']) ) {
-// $categories_image = new upload('categories_image', DIR_FS_CATALOG_IMAGES);
-// tep_db_query("update " . TABLE_CATEGORIES . " set categories_image = '" . tep_db_input($categories_image->filename) . "' where categories_id = '" . (int)$categories_id . "'");
-// }
-
-
/// Child module, Call After Update process
self::$modules->after_update($id);
@@ -230,55 +230,59 @@
$ID = $option['id'];
}
- if( ! isset($option['language_id']) )
- self::$error = __('no language_id');
- else
- $languages_id = $option['language_id'];
+// if( ! isset($option['language_id']) )
+// self::$error = __('no language_id');
+// else
+// $languages_id = $option['language_id'];
- $sql ="SELECT * FROM " . TABLE_CATEGORIES . " c WHERE c.categories_id = '" . (int)$ID . "' "; //.substr($sql,3);
+ $sql ="SELECT orders_id as id FROM " . TABLE_ORDERS . " c WHERE c.orders_id = '" . (int)$ID . "' "; //.substr($sql,3);
$res=$DB->query($sql);
$num = $res->__get('numRows');
if($num == 1){
- $result = $res->fetchAssoc();
+ $resarray = $res->fetchAssoc();
- $check_q = $DB->query($sql="select * from " . TABLE_CATEGORIES_DESCRIPTION . " cd where categories_id = '" .(int) $ID . "'");
+// $check_q = $DB->query($sql="select * from " . TABLE_CATEGORIES_DESCRIPTION . " cd where categories_id = '" .(int) $ID . "'");
+//
+// foreach($check_q->fetchAllAssoc() as $catlg){
+// $result['categories_name'][$catlg['language_id']] = $catlg['categories_name'];
+// $result['categories_description'][$catlg['language_id']] = $catlg['categories_description'];
+// }
+// $result['products_count'] = categorieUtility::products_in_category_count($ID);
+// $result['cms_count'] =categorieUtility::cms_in_category_count($ID);
+// $result['childs_count'] =categorieUtility::childs_in_category_count($ID);
+// $result['cPath'] = categorieUtility::get_generated_category_path_ids($ID);
+//
+// /// Childs module load
+// self::$modules->load_db_values($ID);
- foreach($check_q->fetchAllAssoc() as $catlg){
- $result['categories_name'][$catlg['language_id']] = $catlg['categories_name'];
- $result['categories_description'][$catlg['language_id']] = $catlg['categories_description'];
- }
- $result['products_count'] = categorieUtility::products_in_category_count($ID);
- $result['cms_count'] =categorieUtility::cms_in_category_count($ID);
- $result['childs_count'] =categorieUtility::childs_in_category_count($ID);
- $result['cPath'] = categorieUtility::get_generated_category_path_ids($ID);
+ $result = new order((int)tep_db_input($resarray['id']));
- /// Childs module load
- self::$modules->load_db_values($ID);
-
return ((!$shortkey)? $result : self::CleanKey($result));
}
elseif($num > 1){
$array=array();
- foreach($res->fetchAllAssoc() as $result){
+ foreach($res->fetchAllAssoc() as $resarray){
- $check_q = $DB->query($sql="select * from " . TABLE_CATEGORIES_DESCRIPTION . " cd where categories_id = '" .(int) $ID . "'");
+// $check_q = $DB->query($sql="select * from " . TABLE_CATEGORIES_DESCRIPTION . " cd where categories_id = '" .(int) $ID . "'");
+//
+// foreach($check_q->fetchAllAssoc() as $catlg){
+// $result['categories_name'][$catlg['language_id']] = $catlg['categories_name'];
+// $result['categories_description'][$catlg['language_id']] = $catlg['categories_description'];
+// }
+// $result['products_count'] = categorieUtility::products_in_category_count($ID);
+// $result['cms_count'] =categorieUtility::cms_in_category_count($ID);
+// $result['childs_count'] =categorieUtility::childs_in_category_count($ID);
+// $result['cPath'] = categorieUtility::get_generated_category_path_ids($ID);
+//
+// /// Childs module load
+// self::$modules->load_db_values($ID);
- foreach($check_q->fetchAllAssoc() as $catlg){
- $result['categories_name'][$catlg['language_id']] = $catlg['categories_name'];
- $result['categories_description'][$catlg['language_id']] = $catlg['categories_description'];
- }
- $result['products_count'] = categorieUtility::products_in_category_count($ID);
- $result['cms_count'] =categorieUtility::cms_in_category_count($ID);
- $result['childs_count'] =categorieUtility::childs_in_category_count($ID);
- $result['cPath'] = categorieUtility::get_generated_category_path_ids($ID);
+ $result = new order((int)tep_db_input($resarray['id']));
- /// Childs module load
- self::$modules->load_db_values($ID);
-
$array[]= ((!$shortkey)? $result : self::CleanKey($result));
}
@@ -373,7 +377,7 @@
public static function Specimen(){
$par = array(
- 'orders_id',
+ 'orders_id'=>'',
// 'configuration_key',
// 'configuration_title',
// 'configuration_value',
@@ -384,7 +388,157 @@
// 'last_modified',
// 'use',
// 'set',
+'info' => Array
+ (
+ 'orders_id' => '',
+ 'orders_prefix' => '',
+ 'currency' => '',
+ 'currency_value' =>'',
+ 'payment_method' => '',
+ 'cc_type' =>'',
+ 'cc_owner' =>'',
+ 'cc_number' => '',
+ 'cc_expires' =>'',
+ 'date_purchased' => '',
+ 'orders_status' => '',
+ 'orders_status_id' => '',
+ 'last_modified' =>'',
+ 'total' =>'',
+ 'shipping_method' =>'',
+ 'ip_address' => '',
+ 'total_weight' => '',
+ 'date_finish' =>'',
+ 'facture_id' =>'',
+ 'holding_origin_id' => '',
+ 'tax_groups' => Array
+ (
+ '19.6000' => '',
+ ),
+ ),
+
+ 'totals' => Array
+ (
+// '0' => Array
+// (
+// 'title' => Sous-Total:
+// 'text' => 7.18€
+// )
+//
+// '1' => Array
+// (
+// 'title' => dont TVA normal:
+// 'text' => 1.18€
+// )
+//
+// '2' => Array
+// (
+// 'title' => Total:
+// 'text' => <strong>7.18€</strong>
+// )
+
+ ),
+
+ 'products' => Array
+ (
+ '0' => Array
+ (
+ 'qty' => '',
+ 'id' => '',
+ 'type' => '',
+ 'name' =>'',
+ 'model' =>'',
+ 'tax' =>'',
+ 'price' =>'',
+ 'final_price' => '',
+ 'return' =>'',
+ 'exchange' => '',
+ 'exchange_id' => '',
+ 'attributes' => Array
+ (
+ '0' => Array
+ (
+// 'option' => Durée
+// 'value' => 3 mois
+// 'prefix' => x
+// 'price' => 3.0000
+ ),
+
+ ),
+
+ 'final_price_ttc' => '',
+ 'total_line' => '',
+ 'total_line_taxe' => '',
+ 'total_line_ttc' => '',
+ ),
+
+ ),
+
+ 'customer' => Array
+ (
+ 'id' => '',
+ 'name' => '',
+ 'company' =>'',
+ 'street_address' => '',
+ 'suburb' =>'',
+ 'city' => '',
+ 'postcode' =>'',
+ 'state' => '',
+ 'country' => '',
+ 'format_id' =>'',
+ 'customers_group_name' => '',
+ 'telephone' => '',
+ 'email_address' => '',
+ ),
+
+ 'delivery' => Array
+ (
+ 'name' =>'',
+ 'company' =>'',
+ 'street_address' =>'',
+ 'suburb' =>'',
+ 'city' =>'',
+ 'postcode' =>'',
+ 'state' =>'',
+ 'country' =>'',
+ 'format_id' => '',
+ ),
+
+ 'content_type' =>'',
+ 'coupon' =>'',
+ 'billing' => Array
+ (
+ 'name' =>'',
+ 'company' =>'',
+ 'street_address' =>'',
+ 'suburb' =>'',
+ 'city' =>'',
+ 'postcode' =>'',
+ 'state' => '',
+ 'country' =>'',
+ 'format_id' => '',
+ ),
+
+ 'history' => Array
+ (
+// '0' => Array
+// (
+// // 'date_added' => 10/11/2011 16:05:05
+// // 'customer_notified' => <img src="images/icons/tick.gif" alt="Vrai" width="16" height="16" title="Vrai" />
+// // 'orders_status' => En attente
+// // 'comments' =>
+// ),
+
+ ),
+
+ 'lasthistory' => Array
+ (
+// 'date_added' => 10/11/2011 16:05:05
+// 'customer_notified' => <img src="images/icons/tick.gif" alt="Vrai" width="16" height="16" title="Vrai" />
+// 'orders_status' => En attente
+// 'comments' =>
+ ),
+
);
return self::CleanKey($par);
Modified: trunk/catalog/admin/includes/classes/productUtility.php
===================================================================
--- trunk/catalog/admin/includes/classes/productUtility.php 2011-11-13 21:53:14 UTC (rev 3876)
+++ trunk/catalog/admin/includes/classes/productUtility.php 2011-11-14 22:56:08 UTC (rev 3877)
@@ -218,11 +218,11 @@
$language_id=$languages_id;
- $products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$pID . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int) $language_id. "'");
- $products_attributes = tep_db_fetch_array($products_attributes_query);
- $products_attributes= ($products_attributes['total'] > 0)? $products_attributes['total'] : 0 ;
+ $products_attributes_query = tep_db_query("select * from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$pID . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int) $language_id. "'");
+// $products_attributes = tep_db_fetch_array($products_attributes_query);
+// $products_attributes= ($products_attributes['total'] > 0)? $products_attributes['total'] : 0 ;
- return $products_attributes;
+ return $products_attributes_query->fetchAllAssoc();
}
/**
Modified: trunk/catalog/admin/includes/content/modules.top.inc
===================================================================
--- trunk/catalog/admin/includes/content/modules.top.inc 2011-11-13 21:53:14 UTC (rev 3876)
+++ trunk/catalog/admin/includes/content/modules.top.inc 2011-11-14 22:56:08 UTC (rev 3877)
@@ -1,12 +1,19 @@
<?php
/**
- @licence GPL 2005-2010 The osCSS developers - osCSS Open Source E-commerce
+ @licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
+ @portion code Copyright (c) 2002 osCommerce
@package osCSS-2 <www http://www.oscss.org>
- @version 2.0.9
- @date 28/05/10, 17:03
+ @version 2.1.1
+ @date 13/11/11, 16:03
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
+
+ TODO Transforme this page on general map activ/inactive module
+ Report update/modif in package exe
+
+
+
@param GET
@a string $_GET['set']
@a string $_GET['manager'] le type de prise en charge, (general|process|plugin)
@@ -22,20 +29,21 @@
switch ($manager){
case 'process':
- $code_inistalletd_array['checkout_process']=array('key'=>'MODULE_CHECKOUT_PROCESS_INSTALLED', 'value'=>MODULE_CHECKOUT_PROCESS_INSTALLED, 'module_directory'=> 'process/');
- $code_inistalletd_array['shipping']=array('key'=>'MODULE_SHIPPING_INSTALLED', 'value'=>MODULE_SHIPPING_INSTALLED, 'module_directory'=>'shipping/');
- $code_inistalletd_array['payment']=array('key'=>'MODULE_PAYMENT_INSTALLED', 'value'=>MODULE_PAYMENT_INSTALLED, 'module_directory'=> 'payment/');
- $code_inistalletd_array['order_total']=array('key'=>'MODULE_ORDER_TOTAL_INSTALLED', 'value'=>MODULE_ORDER_TOTAL_INSTALLED, 'module_directory'=> 'order_total/');
+ $code_inistalletd_array['checkout_process']=array('key'=>'MODULE_CHECKOUT_PROCESS_INSTALLED', 'value'=>MODULE_CHECKOUT_PROCESS_INSTALLED, 'module_directory'=> 'checkout/','key_BO'=>'MODULE_CHECKOUT_PROCESS_INSTALLED_BO', 'value_BO'=>MODULE_CHECKOUT_PROCESS_INSTALLED_BO, 'prefix'=>'Pr');
+ $code_inistalletd_array['shipping']=array('key'=>'MODULE_SHIPPING_INSTALLED', 'value'=>MODULE_SHIPPING_INSTALLED, 'module_directory'=>'shipping/', 'prefix'=>'');
+ $code_inistalletd_array['payment']=array('key'=>'MODULE_PAYMENT_INSTALLED', 'value'=>MODULE_PAYMENT_INSTALLED, 'module_directory'=> 'payment/', 'prefix'=>'');
+ $code_inistalletd_array['order_total']=array('key'=>'MODULE_ORDER_TOTAL_INSTALLED', 'value'=>MODULE_ORDER_TOTAL_INSTALLED, 'module_directory'=> 'order_total/', 'prefix'=>'');
+ $code_inistalletd_array['orders']=array('key_BO'=>'MODULE_ORDERS_INSTALLED_BO', 'value_BO'=>MODULE_ORDERS_INSTALLED_BO, 'module_directory'=> 'orders/', 'prefix'=>'');
break;
case 'general':
default:
- $code_inistalletd_array['generic']=array('key'=>'MODULE_GENERIC_INSTALLED', 'value'=>MODULE_GENERIC_INSTALLED, 'key_BO'=>'MODULE_GENERIC_INSTALLED_BO', 'value_BO'=>MODULE_GENERIC_INSTALLED_BO,'module_directory'=>'generic/','module_language'=>DIR_FS_ADMIN.'includes/languages/');
- $code_inistalletd_array['products']=array('key'=>'MODULE_ACAPRO_INSTALLED', 'value'=>MODULE_ACAPRO_INSTALLED,'key_BO'=>'MODULE_ACAPRO_INSTALLED_BO', 'value_BO'=>MODULE_ACAPRO_INSTALLED_BO,'module_directory'=> 'products/','module_language'=>DIR_FS_ADMIN.'includes/languages/' );
- $code_inistalletd_array['content']...
[truncated message content] |
|
From: <os...@us...> - 2011-11-16 12:58:58
|
Revision: 3878
http://oscss.svn.sourceforge.net/oscss/?rev=3878&view=rev
Author: oscim
Date: 2011-11-16 12:58:51 +0000 (Wed, 16 Nov 2011)
Log Message:
-----------
correction coquille
Ajout code pays
Correction template public in install
Correction lien SEO
Modified Paths:
--------------
trunk/catalog/admin/includes/gabarit/customers/history/display_edit.noedit.gab
trunk/catalog/common/classes/seo_url.php
trunk/catalog/includes/functions/general.php
trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/Childs_tpl/footer.php
trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/Css/Bottom.css
trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/sample.css
trunk/catalog/install/includes/functions/database.php
trunk/catalog/install/includes/sql/mysql/data/20_osc_countries.sql
Modified: trunk/catalog/admin/includes/gabarit/customers/history/display_edit.noedit.gab
===================================================================
--- trunk/catalog/admin/includes/gabarit/customers/history/display_edit.noedit.gab 2011-11-14 22:56:08 UTC (rev 3877)
+++ trunk/catalog/admin/includes/gabarit/customers/history/display_edit.noedit.gab 2011-11-16 12:58:51 UTC (rev 3878)
@@ -12,7 +12,7 @@
<div class="main-customers history noedit">
- <table class="dataTableBase">
+ <table class="dataTableBase Sort">
<thead>
<tr>
<th><?php echo __('history table heading type') ?></th>
Modified: trunk/catalog/common/classes/seo_url.php
===================================================================
--- trunk/catalog/common/classes/seo_url.php 2011-11-14 22:56:08 UTC (rev 3877)
+++ trunk/catalog/common/classes/seo_url.php 2011-11-16 12:58:51 UTC (rev 3878)
@@ -173,7 +173,7 @@
FILENAME_POPUP_IMAGE,
FILENAME_PRODUCT_INFO,
FILENAME_CONTENT,
- FILENAME_CREATE_ACCOUNT,
+// FILENAME_CREATE_ACCOUNT,
FILENAME_ADVANCED_SEARCH,
FILENAME_PRODUCTS_NEW,
FILENAME_SMALL_PRICE,
Modified: trunk/catalog/includes/functions/general.php
===================================================================
--- trunk/catalog/includes/functions/general.php 2011-11-14 22:56:08 UTC (rev 3877)
+++ trunk/catalog/includes/functions/general.php 2011-11-16 12:58:51 UTC (rev 3878)
@@ -252,61 +252,73 @@
*/
function tep_word_count($string, $needle) { return sizeof(preg_split('/'.$needle.'/', $string)); }
- function tep_count_modules($modules = '') {
- $count = 0;
+/**
+ @fn tep_count_modules($modules = '', $active=true)
+ @brief Count module active for payement or shipping
+ Explode string separated by ; in array
+ @note the class master shipping/payment/order_total is required
+ @param $modules string result constant MODULE_PAYMENT_INSTALLED
+ @param $active boolean for test active module or just count
+ @return int
+*/
+function tep_count_modules($modules = '', $active=true) {
+ $count = 0;
- if (empty($modules)) return $count;
+ if (empty($modules)) return $count;
- $modules_array = preg_split('/;/', $modules);
-
- for ($i=0, $n=sizeof($modules_array); $i<$n; $i++) {
- $class = substr($modules_array[$i], 0, strrpos($modules_array[$i], '.'));
-
- if (isset($GLOBALS[$class]) && is_object($GLOBALS[$class])) {
- if ($GLOBALS[$class]->enabled) {
- $count++;
- }
+ $modules_array = preg_split('/;/', $modules);
+ for ($i=0, $n=sizeof($modules_array); $i<$n; $i++) {
+ $class = substr($modules_array[$i], 0, strrpos($modules_array[$i], '.'));
+ if ($active && isset($GLOBALS[$class]) && is_object($GLOBALS[$class])) {
+ if ($GLOBALS[$class]->enabled) {
+ $count++;
}
}
-
- return $count;
}
- /**
- * \brief enresgitrement cookies
- * @param $name
- * @param $value
- * @param $expire
- * @param $path
- * @param $domain
- * @param $secure
- */
+ return $count;
+}
+
+/**
+ * \brief enresgitrement cookies
+ * @param $name
+ * @param $value
+ * @param $expire
+ * @param $path
+ * @param $domain
+ * @param $secure
+ */
function tep_setcookie($name, $value = '', $expire = 0, $path = '/', $domain = '', $secure = 0) {
setcookie($name, $value, $expire, $path, (tep_not_null($domain) ? $domain : ''), $secure);
}
- function tep_get_ip_address() {
- if (isset($_SERVER)) {
- if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
- $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
- } elseif (isset($_SERVER['HTTP_CLIENT_IP'])) {
- $ip = $_SERVER['HTTP_CLIENT_IP'];
- } else {
- $ip = $_SERVER['REMOTE_ADDR'];
- }
+/**
+ @fn tep_get_ip_address()
+ @brief retrun ip client
+ @return ip (string)
+*/
+function tep_get_ip_address() {
+ if (isset($_SERVER)) {
+ if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
+ $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
+ } elseif (isset($_SERVER['HTTP_CLIENT_IP'])) {
+ $ip = $_SERVER['HTTP_CLIENT_IP'];
} else {
- if (getenv('HTTP_X_FORWARDED_FOR')) {
- $ip = getenv('HTTP_X_FORWARDED_FOR');
- } elseif (getenv('HTTP_CLIENT_IP')) {
- $ip = getenv('HTTP_CLIENT_IP');
- } else {
- $ip = getenv('REMOTE_ADDR');
- }
+ $ip = $_SERVER['REMOTE_ADDR'];
}
-
- return $ip;
+ } else {
+ if (getenv('HTTP_X_FORWARDED_FOR')) {
+ $ip = getenv('HTTP_X_FORWARDED_FOR');
+ } elseif (getenv('HTTP_CLIENT_IP')) {
+ $ip = getenv('HTTP_CLIENT_IP');
+ } else {
+ $ip = getenv('REMOTE_ADDR');
+ }
}
+ return $ip;
+}
+
/** nl2br() prior PHP 4.2.0 did not convert linefeeds on all OSs (it only converted \n) */
function tep_convert_linefeeds($from, $to, $string) { return str_replace($from, $to, $string); }
Modified: trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/Childs_tpl/footer.php
===================================================================
--- trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/Childs_tpl/footer.php 2011-11-14 22:56:08 UTC (rev 3877)
+++ trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/Childs_tpl/footer.php 2011-11-16 12:58:51 UTC (rev 3878)
@@ -5,19 +5,24 @@
@package osCSS-2 <www http://www.oscss.org>
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
+
+ @note La Licence OpenSource d'osCSS, vous impose de conserver le liens vers le site de la communauté. C'est la seul contrepartie imposé part l'utilisation de cette solution , qui est diffusé gratuitement, dans le cadre de ca licence.
+ Si vous supprimer la référence à osCSS, la commuanté se reserve le droit de faire valoir ces droits aupres des organisme dedié à la protection de cette licence.
+
+ CE template est livré gratuitement pour donner un aperçu des disponibilités du moteur de templates.
+ Veuillez respecter les termes et conditions générales d'utilisation.
+ Vous pouvez employer nos templates sous n'importe quel site Web publiquement accessible selon les termes et conditions générales du contrat Creative Commons
*/
global $template;
?>
<footer id="main-tpl-footer">
- <p class="left_footer"></p>
- <p class="center_footer">
- ~ Realisation <a href="http://www.oscim.fr">oscim</a> 2010-2011 ~<br />
+ <div class="left_footer"></div>
+ <div class="center_footer">
+ ~ Realisation <a href="http://www.oscim.fr">oscim</a> 2010-<?php echo date('Y') ?> ~<br />
~ Propulsé par <a href="http://www.oscss.org/" title=" osCSS ">osCSS</a> ~<br />
~ Valid <a href="http://validator.w3.org/check?uri=referer" title=" validate XHTML ">XHTML</a>
· <a href="http://jigsaw.w3.org/css-validator/check/referer" title=" validate CSS ">CSS</a> ~
- <br />
- <a href="http://csscreme.com" rel="nofollow" ><img alt="csscreme" src="<?php echo tep_get_httpdir().'templates/'.$template.'/' ?>images/csscreme.jpg" /></a>
- </p>
+ </div>
<div class="right_footer">
<a href="<?php echo tep_href_link() ?>"><?php echo __('home') ?></a>
<a href="<?php echo tep_href_link(FILENAME_TEMPLATE) ?>"><?php echo __('about') ?></a>
Modified: trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/Css/Bottom.css
===================================================================
--- trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/Css/Bottom.css 2011-11-14 22:56:08 UTC (rev 3877)
+++ trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/Css/Bottom.css 2011-11-16 12:58:51 UTC (rev 3878)
@@ -12,6 +12,7 @@
clear: both;
background: #222;
width: 960px;
+ height:80px;
color: #fff;
margin-bottom: 10px;
@@ -34,3 +35,9 @@
color: #FFF;
text-decoration: none;
}
+
+footer div {margin:0; padding:0; width:33%; float:left; display:block; height:100%; text-align:left;}
+
+footer div.center_footer{
+text-align:center;
+}
\ No newline at end of file
Modified: trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/sample.css
===================================================================
--- trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/sample.css 2011-11-14 22:56:08 UTC (rev 3877)
+++ trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/sample.css 2011-11-16 12:58:51 UTC (rev 3878)
@@ -35,15 +35,45 @@
/* Block debugg template */
- #develop{background:white none repeat scroll 0 0; border:1px solid black; padding:1em; position:fixed; right:0; top:0;}
+ #develop{
+ opacity:0.4;
+ filter:alpha(opacity=40); /* For IE8 and earlier */
+ color:black;
+ line-height:17px;
+ background:white none repeat scroll 0 0
+ ; border:1px solid black;
+ padding:1em;
+ position:fixed;
+ right:0;
+ top:0;
+ }
+ #develop p {padding:0; margin:0;}
+div.CguView {
+ width:100%;
+ overflow:auto;
+ height:150px;
+ text-align: justify;
+ border:1px solid black;
+ background:white;
+}
+
+
+
+
+
+
+
+
+
+
/* --------------------- Css theme ---------------------*/
@@ -69,6 +99,8 @@
background: #ff8300;
}
+ table { width:100%}
+
/* standard alignments */
.alignleft { float: left; }
@@ -261,3 +293,8 @@
float:left;
margin:5px 5px;
}
+
+
+
+
+.CartQty{ width:15px;}
\ No newline at end of file
Modified: trunk/catalog/install/includes/functions/database.php
===================================================================
--- trunk/catalog/install/includes/functions/database.php 2011-11-14 22:56:08 UTC (rev 3877)
+++ trunk/catalog/install/includes/functions/database.php 2011-11-16 12:58:51 UTC (rev 3878)
@@ -11,8 +11,11 @@
function osc_db_connect($motor, $port, $charset, $server, $username, $password, $database/*,$type*/) {
+
+ if(!defined('DB_CONNECTOR'))
+ return false;
+
define('HTTP_SERVER',true);
-
define('DIR_WS_COMMON','');
define('DIR_FS_CATALOG',substr(dirname(__FILE__),0,strpos(dirname(__FILE__),'install/includes/functions') ).'/common/');
Modified: trunk/catalog/install/includes/sql/mysql/data/20_osc_countries.sql
===================================================================
--- trunk/catalog/install/includes/sql/mysql/data/20_osc_countries.sql 2011-11-14 22:56:08 UTC (rev 3877)
+++ trunk/catalog/install/includes/sql/mysql/data/20_osc_countries.sql 2011-11-16 12:58:51 UTC (rev 3878)
@@ -249,7 +249,7 @@
insert into osc_countries (countries_id, countries_name, countries_localname, countries_iso_code_2, countries_iso_code_3, address_format_id, country_visible) values ('236', 'Yugoslavia', 'Yugoslavia', 'YU', 'YUG', '1', '0');
insert into osc_countries (countries_id, countries_name, countries_localname, countries_iso_code_2, countries_iso_code_3, address_format_id, country_visible) values ('237', 'Zaire', 'Zaire', 'ZR', 'ZAR', '1', '0');
insert into osc_countries (countries_id, countries_name, countries_localname, countries_iso_code_2, countries_iso_code_3, address_format_id, country_visible) values ('238', 'Zambia', 'Zambia', 'ZM', 'ZMB', '1', '0');
-insert into osc_countries (countries_id, countries_name, countries_localname, countries_iso_code_2, countries_iso_code_3, address_format_id, country_visible) values ('239', 'Zimbabwe', 'Zimbabwe', 'ZW', 'ZWE', '1', '0');
+insert into osc_countries (countries_id, countries_name, countries_localname, countries_iso_code_2, countries_iso_code_3, address_format_id, country_visible) values ('239', 'Roumanie', 'Zimbabwe', 'ZW', 'ZWE', '1', '0');
+insert into osc_countries (countries_id, countries_name, countries_localname, countries_iso_code_2, countries_iso_code_3, address_format_id, country_visible) values ('240', 'Romania', 'Romania', 'RO', 'ROU', '1', '0');
-
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <os...@us...> - 2011-11-17 09:36:15
|
Revision: 3883
http://oscss.svn.sourceforge.net/oscss/?rev=3883&view=rev
Author: oscim
Date: 2011-11-17 09:36:09 +0000 (Thu, 17 Nov 2011)
Log Message:
-----------
correction ext svnupdate
Mise en oeuvre mise a jour du fichier oscss.version , sans supprim?\195?\169 le reste du contenu.
Modified Paths:
--------------
trunk/catalog/admin/includes/modules/generic/SvnUpdate.php
trunk/catalog/install/includes/content/core.update.php
Modified: trunk/catalog/admin/includes/modules/generic/SvnUpdate.php
===================================================================
--- trunk/catalog/admin/includes/modules/generic/SvnUpdate.php 2011-11-16 23:20:45 UTC (rev 3882)
+++ trunk/catalog/admin/includes/modules/generic/SvnUpdate.php 2011-11-17 09:36:09 UTC (rev 3883)
@@ -1,9 +1,10 @@
<?php
/**
- @licence GPL 2005-2010 The osCSS developers - osCSS Open Source E-commerce
+ @licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
+ @portion code Copyright (c) 2002 osCommerce
@package osCSS-2 <www http://www.oscss.org>
- @version 2.0.1
- @date 14/01/11, 18:06
+ @version 2.1.1
+ @date 17/11/11, 10:06
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
@class SvnUpdate
@@ -21,11 +22,13 @@
/// Configuration
/// -> Settings you *must* adjust
- const URL_OSCSS_ORG_TRAC = 'http://sourceforge.net/apps/trac/oscss/changeset/?format=zip&new=SVN_REV_MAX&old=SVN_REV&new_path=branches%2F2.1.0%2Fcatalog&old_path=branches%2F2.1.0%2Fcatalog';
- const URL_OSCSS_GET_REV = 'http://oscss.svn.sourceforge.net/viewvc/oscss?view=revision';
- const PATH_SVN_BRANCHE = 'branches/2.1.0/catalog/';
- const FILEPATH_SVN_CORE = 'common/oscss.version.xml';
+// const $URL_OSCSS_ORG_TRAC = 'http://sourceforge.net/apps/trac/oscss/changeset/?format=zip&new=SVN_REV_MAX&old=SVN_REV&new_path=branches%2F2.1.0%2Fcatalog&old_path=branches%2F2.1.0%2Fcatalog';
+ public static $URL_OSCSS_ORG_TRAC = 'http://sourceforge.net/apps/trac/oscss/changeset/?format=zip&new=SVN_REV_MAX&old=SVN_REV&new_path=trunk%2F2.1.0%2Fcatalog&old_path=trunk%2F2.1.0%2Fcatalog';
+ public static $URL_OSCSS_GET_REV = 'http://oscss.svn.sourceforge.net/viewvc/oscss?view=revision';
+ public static $PATH_SVN_BRANCHE = 'trunk/catalog/';
+ public static $FILEPATH_SVN_CORE = 'common/oscss.version.xml';
+
//! page de redirection apres exec
const REDIRECT = FILENAME_PACKAGE;
@@ -62,15 +65,15 @@
$svnupdate=0;
if(!tep_session_is_registered('svnupdate')) {
- self::$actu_rev=$this->get_info_core(DIR_FS_CATALOG.self::FILEPATH_SVN_CORE);
- self::$current_rev=$this->get_current_rev(self::URL_OSCSS_GET_REV);
+ self::$actu_rev=$this->get_info_core(DIR_FS_CATALOG.self::$FILEPATH_SVN_CORE);
+ self::$current_rev=$this->get_current_rev(self::$URL_OSCSS_GET_REV);
if(self::$actu_rev!=self::$current_rev)$svnupdate=1;
$_SESSION['svnupdate']=$svnupdate;
}
else $svnupdate=(int)$_SESSION['svnupdate'];
if($svnupdate==1) {
- $messageStack->add( __("mise a jour disponible ").'<a href="'.tep_href_link(FILENAME_ACA,'action_type='.$this->type.'&action_class='.self::$code.'&action_method=draw_form').'">'.__('detail').'</a>', 'info' ) ;
+ $messageStack->add( __("mise a jour disponible ").'<a href="'.tep_href_link(FILENAME_ACA,'action_type='.$this->type.'&action_class='.self::$code.'&action_method=draw_form&action_type=generic').'">'.__('detail').'</a>', 'info' ) ;
}
}
@@ -89,15 +92,15 @@
@author oscim <mail os...@os...> <www http://www.oscim.fr>
*/
public function _add_menu() {
- return('<a href="'.tep_href_link(FILENAME_ACA,'action_type='.$this->type.'&action_class='.self::$code.'&action_method=draw_form').'">'.__('Svn synchro').'</a>');
+ return('<a href="'.tep_href_link(FILENAME_ACA,'action_type='.$this->type.'&action_class='.self::$code.'&action_method=draw_form&action_type=generic').'">'.__('Svn synchro').'</a>');
}
/**
@author oscim <mail os...@os...> <www http://www.oscim.fr>
*/
public function draw_form(){
- if((int)self::$actu_rev==0) self::$actu_rev=$this->get_info_core(DIR_FS_CATALOG.self::FILEPATH_SVN_CORE);
- if((int)self::$current_rev==0) self::$current_rev=$this->get_current_rev(self::URL_OSCSS_GET_REV);
+ if((int)self::$actu_rev==0) self::$actu_rev=$this->get_info_core(DIR_FS_CATALOG.self::$FILEPATH_SVN_CORE);
+ if((int)self::$current_rev==0) self::$current_rev=$this->get_current_rev(self::$URL_OSCSS_GET_REV);
if(isset($_POST['ACTU_REV']))$S=$this->exe_update($_POST['ACTU_REV'],$_POST['CURENT_REV']);
else {
@@ -155,12 +158,12 @@
@set_time_limit(0);
$folder_admin=substr(DIR_WS_ADMIN, strlen(DIR_WS_CATALOG) );
$name='old'.$corre_rev.'new'.$curent_rev.'_patch.zip';
- $file=DIR_FS_ADMIN.'contributions/'.$name;
+ $file=DIR_FS_ROOT_DOCS.'admin/contributions/'.$name;
//! recup zip fournis par trac SF
$oscss_zip = @fopen($file,'wb');
// recup zip
- $tp=@file_get_contents/*fileUtility::url_fopen*/(str_replace( array('SVN_REV_MAX', 'SVN_REV'), array($curent_rev, $corre_rev), self::URL_OSCSS_ORG_TRAC));
+ $tp=@file_get_contents/*fileUtility::url_fopen*/(str_replace( array('SVN_REV_MAX', 'SVN_REV'), array($curent_rev, $corre_rev), self::$URL_OSCSS_ORG_TRAC));
fputs( $oscss_zip,$tp);
fclose($oscss_zip);
if ($file!=false) $messageStack->add( __("Le fichier à été enregistré"),'succes' ) ;
@@ -170,8 +173,8 @@
tep_zip_extractto( $file,DIR_FS_CATALOG);
//! mode admin folder
// report branche dans le core
- if(file_exists(DIR_FS_CATALOG.self::PATH_SVN_BRANCHE)){
- $this->recurse_copy(DIR_FS_CATALOG.self::PATH_SVN_BRANCHE,DIR_FS_CATALOG);
+ if(file_exists(DIR_FS_CATALOG.self::$PATH_SVN_BRANCHE)){
+ $this->recurse_copy(DIR_FS_CATALOG.self::$PATH_SVN_BRANCHE,DIR_FS_CATALOG);
$this->recurse_delete(DIR_FS_CATALOG.'branches/');
}
// deplacement admin
@@ -203,13 +206,35 @@
@a int $corre_rev n° revision patch
*/
private function new_version_xml($curent_rev, $corre_rev){
- $tmp='<?xml version="1.0" encoding="utf-8"?>'."\n".
- '<core>'."\n".
- '<version>'.get_info_core(DIR_FS_CATALOG. DIR_WS_COMMON.'oscss.version.xml','version').'</version>'."\n".
- '<svn>'.$curent_rev.'</svn>'."\n".
- '</core>'."\n";
- $file_vers= @fopen(DIR_FS_CATALOG.self::FILEPATH_SVN_CORE,'w');
- fputs( $file_vers,$tmp);
+
+
+ $SimpleParser = @simplexml_load_file(DIR_FS_CATALOG.self::$FILEPATH_SVN_CORE);
+
+ $SimpleParser->svn = (int)$curent_rev;
+
+
+ // Create a new DOMDocument object
+ $doc = new DOMDocument('1.0');
+
+ // add spaces, new lines and make the XML more readable format
+ $doc->formatOutput = true;
+
+ // Get a DOMElement object from a SimpleXMLElement object
+ $domnode = dom_import_simplexml($SimpleParser);
+
+ $domnode->preserveWhiteSpace = false;
+
+ // Import node into current document
+ $domnode = $doc->importNode($domnode, true);
+
+ // Add new child at the end of the children
+ $domnode = $doc->appendChild($domnode);
+
+ // Dump the internal XML tree back into a string
+ $saveXml = $doc->saveXML();
+
+ $file_vers= @fopen(DIR_FS_CATALOG.self::$FILEPATH_SVN_CORE,'w');
+ fputs( $file_vers,$saveXml);
fclose($file_vers);
}
@@ -254,13 +279,16 @@
'</extractzip>'."\n".
'</contrib>'."\n";
- mkdir(DIR_FS_ADMIN.'contributions/'.$folder.'/');
- copy(DIR_FS_ADMIN.'contributions/'.$name_zip,DIR_FS_ADMIN.'contributions/'.$folder.'/'.$name_zip);
+
+ mkdir(DIR_FS_ROOT_DOCS.'admin/contributions/'.$folder.'/');
+ copy(DIR_FS_ROOT_DOCS.'admin/contributions/'.$name_zip,DIR_FS_ROOT_DOCS.'admin/contributions/'.$folder.'/'.$name_zip);
+
+
//! ne pas supp le zip, sert a être traité par cip
// unlink(DIR_FS_ADMIN.'contributions/'.$name_zip);
$this->insert_db_cip($folder);
- $file_vers= @fopen(DIR_FS_ADMIN.'contributions/'.$folder.'/install.xml','w');
+ $file_vers= @fopen(DIR_FS_ROOT_DOCS.'admin/contributions/'.$folder.'/install.xml','w');
fputs( $file_vers,$file);
fclose($file_vers);
}
Modified: trunk/catalog/install/includes/content/core.update.php
===================================================================
--- trunk/catalog/install/includes/content/core.update.php 2011-11-16 23:20:45 UTC (rev 3882)
+++ trunk/catalog/install/includes/content/core.update.php 2011-11-17 09:36:09 UTC (rev 3883)
@@ -12,7 +12,7 @@
Utilise l'exporte n zip de trac
*/
-define('URL_OSCSS_ORG_TRAC', 'http://sourceforge.net/apps/trac/oscss/changeset/?format=zip&new=SVN_REV_MAX&old=SVN_REV&new_path=branches%2F2.1.0%2Fcatalog&old_path=branches%2F2.1.0%2Fcatalog');
+define('URL_OSCSS_ORG_TRAC', 'http://sourceforge.net/apps/trac/oscss/changeset/?format=zip&new=SVN_REV_MAX&old=SVN_REV&new_path=trunk%2Fcatalog&old_path=trunk%2Fcatalog');
define('URL_OSCSS_GET_REV', 'http://oscss.svn.sourceforge.net/viewvc/oscss?view=revision');
define('PATH_SVN_BRANCHE', 'trunk/catalog/');
@@ -189,16 +189,43 @@
sleep(1);
tep_zip_extractto( $file,'../');
+
+
+
// remplacement fichier de version
- $tmp='<?xml version="1.0" encoding="utf-8"?>'."\n".
- '<core>'."\n".
- '<version>'.$this->get_info_core($this->fs_document_root.FILEPATH_SVN_CORE, 'version').'(dev)</version>'."\n".
- '<svn>'.$curent_rev.'</svn>'."\n".
- '</core>'."\n";
- $file_vers= @fopen($this->fs_document_root.FILEPATH_SVN_CORE,'w');
- fputs( $file_vers,$tmp); //$this->write_dest($tmp, $file_vers);
+
+ $SimpleParser = @simplexml_load_file($this->fs_document_root.FILEPATH_SVN_CORE);
+
+ $SimpleParser->svn = (int)$curent_rev;
+
+
+ // Create a new DOMDocument object
+ $doc = new DOMDocument('1.0');
+
+ // add spaces, new lines and make the XML more readable format
+ $doc->formatOutput = true;
+
+ // Get a DOMElement object from a SimpleXMLElement object
+ $domnode = dom_import_simplexml($SimpleParser);
+
+ $domnode->preserveWhiteSpace = false;
+
+ // Import node into current document
+ $domnode = $doc->importNode($domnode, true);
+
+ // Add new child at the end of the children
+ $domnode = $doc->appendChild($domnode);
+
+ // Dump the internal XML tree back into a string
+ $saveXml = $doc->saveXML();
+
+ $file_vers= @fopen(DIR_FS_CATALOG.self::$FILEPATH_SVN_CORE,'w');
+ fputs( $file_vers,$saveXml);
fclose($file_vers);
+
+
+
// report branche dans le core
if(file_exists($this->fs_document_root.PATH_SVN_BRANCHE)){
$this->recurse_copy($this->fs_document_root.PATH_SVN_BRANCHE,$this->fs_document_root);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <os...@us...> - 2011-11-17 12:43:44
|
Revision: 3885
http://oscss.svn.sourceforge.net/oscss/?rev=3885&view=rev
Author: oscim
Date: 2011-11-17 12:43:38 +0000 (Thu, 17 Nov 2011)
Log Message:
-----------
correction gestion des url de tract via le fichier oscss.version
Modified Paths:
--------------
trunk/catalog/admin/includes/functions/general.php
trunk/catalog/admin/includes/modules/generic/SvnUpdate.php
trunk/catalog/common/oscss.version.xml
Modified: trunk/catalog/admin/includes/functions/general.php
===================================================================
--- trunk/catalog/admin/includes/functions/general.php 2011-11-17 09:40:09 UTC (rev 3884)
+++ trunk/catalog/admin/includes/functions/general.php 2011-11-17 12:43:38 UTC (rev 3885)
@@ -559,13 +559,18 @@
@fn get_info_core($file,$name='svn')
@brief Recuperation des element de svn basé sur le fichier oscss.version.xml
@param $file path acces file
- @param $name string le tag qui doit être retourné
+ @param $name string le tag qui doit être retourné (all for return all tags)
*/
function get_info_core($file,$name='svn'){
if(!file_exists($file)) return die(__('Erreur récuperation fichier'));
$SimpleParser = simplexml_load_file($file);
- if(!isset($SimpleParser->$name)) die(__('Erreur récuperation tag '.$name)) ;
- else return (string)$SimpleParser->$name;
+
+ if($name=='all')
+ return (string)$SimpleParser;
+ elseif(!isset($SimpleParser->$name))
+ die(__('Erreur récuperation tag '.$name)) ;
+ else
+ return (string)$SimpleParser->$name;
}
/**
Modified: trunk/catalog/admin/includes/modules/generic/SvnUpdate.php
===================================================================
--- trunk/catalog/admin/includes/modules/generic/SvnUpdate.php 2011-11-17 09:40:09 UTC (rev 3884)
+++ trunk/catalog/admin/includes/modules/generic/SvnUpdate.php 2011-11-17 12:43:38 UTC (rev 3885)
@@ -22,9 +22,7 @@
/// Configuration
/// -> Settings you *must* adjust
-// const $URL_OSCSS_ORG_TRAC = 'http://sourceforge.net/apps/trac/oscss/changeset/?format=zip&new=SVN_REV_MAX&old=SVN_REV&new_path=branches%2F2.1.0%2Fcatalog&old_path=branches%2F2.1.0%2Fcatalog';
-
- public static $URL_OSCSS_ORG_TRAC = 'http://sourceforge.net/apps/trac/oscss/changeset/?format=zip&new=SVN_REV_MAX&old=SVN_REV&new_path=trunk%2F2.1.0%2Fcatalog&old_path=trunk%2F2.1.0%2Fcatalog';
+ public static $URL_OSCSS_ORG_TRAC = 'http://sourceforge.net/apps/trac/oscss/changeset/?format=zip&new=SVN_REV_MAX&old=SVN_REV&new_path=trunk%2Fcatalog&old_path=trunk%2Fcatalog';
public static $URL_OSCSS_GET_REV = 'http://oscss.svn.sourceforge.net/viewvc/oscss?view=revision';
public static $PATH_SVN_BRANCHE = 'trunk/catalog/';
public static $FILEPATH_SVN_CORE = 'common/oscss.version.xml';
@@ -33,7 +31,7 @@
const REDIRECT = FILENAME_PACKAGE;
/// version module
- var $version='2.0.1';
+ var $version='2.1.0';
public static $code;
var $title;
@@ -65,7 +63,14 @@
$svnupdate=0;
if(!tep_session_is_registered('svnupdate')) {
- self::$actu_rev=$this->get_info_core(DIR_FS_CATALOG.self::$FILEPATH_SVN_CORE);
+
+ $info = $this->get_info_core(DIR_FS_CATALOG.self::$FILEPATH_SVN_CORE, 'all');
+
+ self::$actu_rev= (int)$info->svn;
+ self::$URL_OSCSS_ORG_TRAC = $info->urloscssorgtrac;
+ self::$URL_OSCSS_GET_REV = $info->urloscssgetrev;
+ self::$PATH_SVN_BRANCHE = (string)$info->pathsvnbranche;
+
self::$current_rev=$this->get_current_rev(self::$URL_OSCSS_GET_REV);
if(self::$actu_rev!=self::$current_rev)$svnupdate=1;
$_SESSION['svnupdate']=$svnupdate;
@@ -208,7 +213,7 @@
private function new_version_xml($curent_rev, $corre_rev){
- $SimpleParser = @simplexml_load_file(DIR_FS_CATALOG.self::$FILEPATH_SVN_CORE);
+ $SimpleParser = $this->get_info_core(DIR_FS_CATALOG.self::$FILEPATH_SVN_CORE, 'all');
$SimpleParser->svn = (int)$curent_rev;
Modified: trunk/catalog/common/oscss.version.xml
===================================================================
--- trunk/catalog/common/oscss.version.xml 2011-11-17 09:40:09 UTC (rev 3884)
+++ trunk/catalog/common/oscss.version.xml 2011-11-17 12:43:38 UTC (rev 3885)
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<core>
- <version>2.1.0 RC</version>
- <svn>3845</svn>
+ <version>2.1.1 (dev)</version>
+ <svn>3885</svn>
<level>stable</level>
<template_admin>oscss</template_admin>
- <urloscssorgtrac>http://sourceforge.net/apps/trac/oscss/changeset/?format=zip&new=SVN_REV_MAX&old=SVN_REV&new_path=branches%2F2.1.0%2Fcatalog&old_path=branches%2F2.1.0%2Fcatalog</urloscssorgtrac>
+ <urloscssorgtrac>http://sourceforge.net/apps/trac/oscss/changeset/?format=zip&new=SVN_REV_MAX&old=SVN_REV&new_path=trunk%2Fcatalog&old_path=trunk%2Fcatalog</urloscssorgtrac>
<urloscssgetrev>http://oscss.svn.sourceforge.net/viewvc/oscss?view=revision</urloscssgetrev>
- <pathsvnbranche>branches/2.1.0/catalog/</pathsvnbranche>
+ <pathsvnbranche>trunk/catalog/</pathsvnbranche>
</core>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <os...@us...> - 2011-11-17 15:37:32
|
Revision: 3887
http://oscss.svn.sourceforge.net/oscss/?rev=3887&view=rev
Author: oscim
Date: 2011-11-17 15:37:26 +0000 (Thu, 17 Nov 2011)
Log Message:
-----------
Report et ajustement var conf use_modele_pdf
Modified Paths:
--------------
trunk/catalog/admin/includes/classes/emailUtility.php
trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/cfg_128.txt
trunk/catalog/install/includes/content/core.update.php
trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql
Added Paths:
-----------
trunk/catalog/admin/includes/languages/fr_FR/modeles/pdf/
trunk/catalog/admin/includes/languages/fr_FR/modeles/pdf/harry/
Removed Paths:
-------------
trunk/catalog/admin/includes/languages/fr_FR/modules/template_pdf/
Modified: trunk/catalog/admin/includes/classes/emailUtility.php
===================================================================
--- trunk/catalog/admin/includes/classes/emailUtility.php 2011-11-17 15:08:16 UTC (rev 3886)
+++ trunk/catalog/admin/includes/classes/emailUtility.php 2011-11-17 15:37:26 UTC (rev 3887)
@@ -10,6 +10,7 @@
@class emailUtility
*/
+
class emailUtility {
Modified: trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/cfg_128.txt
===================================================================
--- trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/cfg_128.txt 2011-11-17 15:08:16 UTC (rev 3886)
+++ trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/cfg_128.txt 2011-11-17 15:37:26 UTC (rev 3887)
@@ -11,6 +11,7 @@
$lang['USE_LOCAL_GENERAT_PDF_S']="Generation des pdf(commande/BL..)" ;
$lang['USE_LOCAL_GENERAT_PDF_L']="Utiliser un outils externe pour la generation des document pdf, disponible coté public et privé" ;
+$lang['USE_MODELE_PDF_S']="Choix du modele de gabarit a utiliser" ;
+$lang['USE_MODELE_PDF_L']="Vous Pouver ajouter et modifier les modeles dans Documents" ;
-
?>
\ No newline at end of file
Modified: trunk/catalog/install/includes/content/core.update.php
===================================================================
--- trunk/catalog/install/includes/content/core.update.php 2011-11-17 15:08:16 UTC (rev 3886)
+++ trunk/catalog/install/includes/content/core.update.php 2011-11-17 15:37:26 UTC (rev 3887)
@@ -12,7 +12,7 @@
Utilise l'exporte n zip de trac
*/
-define('URL_OSCSS_ORG_TRAC', 'http://sourceforge.net/apps/trac/oscss/changeset/?format=zip&new=SVN_REV_MAX&old=SVN_REV&new_path=trunk%2Fcatalog&old_path=trunk%2Fcatalog');
+define('URL_OSCSS_ORG_TRAC', 'http://sourceforge.net/apps/trac/oscss/changeset/?format=zip&new=SVN_REV_MAX&old=SVN_REV&new_path=branches%2F2.1.0%2Fcatalog&old_path=branches%2F2.1.0%2Fcatalog');
define('URL_OSCSS_GET_REV', 'http://oscss.svn.sourceforge.net/viewvc/oscss?view=revision');
define('PATH_SVN_BRANCHE', 'trunk/catalog/');
Modified: trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql
===================================================================
--- trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql 2011-11-17 15:08:16 UTC (rev 3886)
+++ trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql 2011-11-17 15:37:26 UTC (rev 3887)
@@ -341,10 +341,10 @@
-- 128 General environement
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type) values ('USE_LOCAL_GENERAT_PDF_S', 'USE_LOCAL_GENERAT_PDF', '10', 'USE_LOCAL_GENERAT_PDF_L', '128', '5', NULL, NOW(), 'tep_value_for_humain', 'tep_cfg_select_option(array(\'true\', \'false\'),','3');
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type) values ('USE_MODELE_PDF_S', 'USE_MODELE_PDF', 'harry', 'USE_MODELE_PDF_L', '128', '5', NULL, NOW(), NULL, '','2');
-
-- 129 option orders
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function,configuration_type) values ('DEFAULT_ORDERS_STATUS_ID_S', 'DEFAULT_ORDERS_STATUS_ID', '1', 'DEFAULT_ORDERS_STATUS_ID_L', '129', '2', NULL, NOW(), 'tep_cfg_pull_down_order_statuses(', 'tep_cfg_pull_down_order_statuses(',2);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <os...@us...> - 2011-11-17 23:10:18
|
Revision: 3888
http://oscss.svn.sourceforge.net/oscss/?rev=3888&view=rev
Author: oscim
Date: 2011-11-17 23:10:12 +0000 (Thu, 17 Nov 2011)
Log Message:
-----------
correction chemin et utilisation des modele email du frontoffice
ajustement des chemin dans le template, sur /includes/modeles/email
Corretion liens vers upgrade
Correction template
Modified Paths:
--------------
trunk/catalog/admin/includes/widget/homeStats.php
trunk/catalog/includes/functions/general.php
trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/includes/content/login.php
trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/template.php
Modified: trunk/catalog/admin/includes/widget/homeStats.php
===================================================================
--- trunk/catalog/admin/includes/widget/homeStats.php 2011-11-17 15:37:26 UTC (rev 3887)
+++ trunk/catalog/admin/includes/widget/homeStats.php 2011-11-17 23:10:12 UTC (rev 3888)
@@ -1,9 +1,10 @@
<?php
/**
- @licence GPL 2005-2010 The osCSS developers - osCSS Open Source E-commerce
+ @licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
+ @portion code Copyright (c) 2002 osCommerce
@package osCSS-2 <www http://www.oscss.org>
- @version 2.0.9h
- @date 06/06/10, 15:45
+ @version 2.1.1
+ @date 17/11/11, 23:57
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
*/
@@ -41,7 +42,7 @@
<h3><?php echo __('main info') ;?></h3>
<dl>
<dt><?php echo __('text oscss version') ;?></dt>
- <dd><?php echo PROJECT_VERSION ;?> - <a href="<?php echo tep_href_link(FILENAME_ACA,'action_type=generic&action_class=SvnUpdate&action_method=draw_form') ?>"><?php echo __('Check for upgrade') ?></a></dd>
+ <dd><?php echo PROJECT_VERSION ;?> - <a href="<?php echo tep_href_link(FILENAME_ACA,'aca.php?action_type=generic&action_class=SvnUpdate&action_method=draw_form&action_type=generic') ?>"><?php echo __('Check for upgrade') ?></a></dd>
<dt><?php echo __('environment') ;?></dt>
<dd>
Modified: trunk/catalog/includes/functions/general.php
===================================================================
--- trunk/catalog/includes/functions/general.php 2011-11-17 15:37:26 UTC (rev 3887)
+++ trunk/catalog/includes/functions/general.php 2011-11-17 23:10:12 UTC (rev 3888)
@@ -899,66 +899,67 @@
$from_email_adress The eMail address of the sender,
e.g. in...@my...
*/
-function tep_mail($to_name, $to_email_address, $email_subject, $email_array, $from_email_name, $from_email_address) {
+function tep_post_prepare_email($gabarit_template,$language,$myarray,$print=false){
+ global $title_email,$messageStack,$page;
- if (!_cst_bool('SEND_EMAILS')) return false;
- // Instantiate a new mail object
- $message = new PHPMailer();
+ $gabarit_template=(tep_not_null($gabarit_template))? $gabarit_template : 'defaut.tpl' ;
- if (EMAIL_TRANSPORT == 'smtp'){
- $message->IsSMTP(); // telling the class to use SMTP
+ if ( ($template=page::TestFile(DIR_FS_ROOT_DOCS.DIR_MODELES . 'email/'.USE_MODELE_EMAIL.'/publicCustomers/'.$gabarit_template)) !=false)
+ $new_file=DIR_FS_ROOT_DOCS.DIR_MODELES . 'email/'.USE_MODELE_EMAIL.'/publicCustomers/'.$gabarit_template;
+ elseif ( ($template=page::TestFile(DIR_FS_CATALOG.$page->getPathTemplate().DIR_MODELES . 'email/'.$gabarit_template)) !=false)
+ $new_file=$page->getPathTemplate().DIR_MODELES . 'email/'.$gabarit_template;
+ elseif ( ($template=page::TestFile(DIR_FS_ROOT_DOCS.DIR_MODELES . 'email/'.USE_MODELE_EMAIL.'/publicCustomers/'.'defaut.tpl')) !=false)
+ $new_file=DIR_FS_ROOT_DOCS.DIR_MODELES . 'email/'.USE_MODELE_EMAIL.'/publicCustomers/'.'defaut.tpl';
+ elseif ( ($template=page::TestFile(DIR_FS_CATALOG.$page->getPathTemplate().DIR_MODELES . 'email/'.'defaut.tpl')) !=false)
+ $new_file=$page->getPathTemplate().DIR_MODELES . 'email/'.'defaut.tpl';
+ else
+ trigger_error(sprintf(__FUNCTION__.'Mailer template error no found : %s', $gabarit_template), E_USER_ERROR);
- if( !tep_not_null($from_email_address) ) $from_email_address = SMTP_SENDMAIL_FROM;
- if( !tep_not_null($from_email_name) ) $from_email_name = SMTP_FROMEMAIL_NAME;
- // Config
- $message->Host = SMTP_MAIL_SERVER; // SMTP server
- }else{
- $message->IsSendmail();
-// $mail->Sendmail ='/usr/sbin/sendmail';
- //////(EMAIL_TRANSPORT == 'sendmail')
- //////You need to implement here if you are using sendmail
- if(empty($from_email_address))$from_email_address=EMAIL_FROM;
- if(empty($from_email_name))$from_email_name=STORE_OWNER;
- }
+ $file = basename($new_file);
+ if ( ($fileLang=page::fix_file(DIR_FS_CATALOG.DIR_WS_LANGUAGES . $language .'/modeles/email/'.USE_MODELE_EMAIL.'/'.substr($file, 0, strlen($file)-4) .'.txt')) !=false)
+ include($fileLang);
+ elseif ( ($fileLang=page::fix_file(DIR_FS_CATALOG.$page->getPathTemplate().DIR_MODELES . 'email/'.substr($file, 0, strlen($file)-4) .'.txt')) !=false)
+ include($fileLang);
+ $title_email=$lang['EMAIL_TEXT_SUBJECT'];
+ if(!defined('EMAIL_TEXT_SUBJECT'))define('EMAIL_TEXT_SUBJECT',$lang['EMAIL_TEXT_SUBJECT']);
- $message->From = $from_email_address;
- $message->FromName = $from_email_name;
+ $tpl = &Template::singleton();
- $message->CharSet = strtoupper(CHARSET );
+ $myarray['br']="\n";
+ if (!empty($tpl->error)) {
+ trigger_error(sprintf(__FUNCTION__.'Mailer template error: %s', $message->ErrorInfo), E_USER_ERROR);
+ return false;
+ }
+ $tpl->template_dir = dirname($new_file).'/';
+ $tpl->assign("STORE_LOGO_PRINT",STORE_LOGO_PRINT);
+ $tpl->assign("DIR_WS_CATALOG", DIR_WS_CATALOG);
+ $tpl->assign("HTTP_SERVER", HTTP_SERVER);
+ $tpl->assign("DIR_WS_IMAGES", DIR_WS_IMAGES.'mail/');
+ $tpl->assign("DIR_WS_LANGUAGES", DIR_WS_LANGUAGES);
+ $tpl->assign("CHARSET", CHARSET);
+ $tpl->assign("STORE_NAME", STORE_NAME);
+ $tpl->assign("myarray", $myarray);
+ $tpl->assign("TPL_CONTENT", addslashes($myarray['message']));
+ if (isset($lang) && is_array($lang))$tpl->assign("lg", $lang);
- if( !tep_not_null($to_name) ) $to_name = '';
+ if (!empty($tpl->error)) {
+ trigger_error(sprintf(__FUNCTION__.'Mailer template error: %s', $message->ErrorInfo), E_USER_ERROR);
+ return false;
+ }
- if( !tep_not_null($to_email_address) ) return false;
+ if(!$print) {
+ $mess['html']=$tpl->get($file);
+ // force calcul txt
+ $myarray['email_use_html']=false;
+ $tpl->assign("myarray", $myarray);
- $message->AddAddress($to_email_address, $to_name);
- $message->Subject = $email_subject;
+ $mess['text']=$tpl->get($file);
- ///retro compatibilité
- if(!is_array($email_array)) $email_array=array('text'=>$email_array, 'html'=>$email_array);
-
- // Build the text version
- $text = str_replace( array('<br>','<br />','<br/>', ' ','€'), array("\n","\n",' ','euro'),$email_array['text']);
- $text = strip_tags(html_entity_decode($text ,ENT_QUOTES ));
-// $text = iconv ( 'ISO-8859-1',strtoupper(CHARSET ), strip_tags(html_entity_decode($text ,ENT_QUOTES, strtoupper(CHARSET ) ) ,"\n\r"));
-
- if (EMAIL_USE_HTML == 'true') {
- $message->Body = $email_array['html'];// tep_convert_linefeeds(array("\r\n", "\n", "\r"), '<br>', $email_text);
- $message->AltBody = $text;
- $message->IsHTML(true);
- } else {
- $message->Body = $text;
- $message->IsHTML(false);
- }
-
- // Send message
- if(!$message->Send()){
- trigger_error(sprintf(__FUNCTION__.'Mailer error: %s', $message->ErrorInfo), E_USER_ERROR);
- return false;
- }
- else return true;
-
+ return $mess;
+ }
+ else return $tpl->display($file);
}
/**
Modified: trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/includes/content/login.php
===================================================================
--- trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/includes/content/login.php 2011-11-17 15:37:26 UTC (rev 3887)
+++ trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/includes/content/login.php 2011-11-17 23:10:12 UTC (rev 3888)
@@ -28,7 +28,7 @@
?>
-<!-- <h3><?php echo HEADING_RETURNING_CUSTOMER; ?></h3> -->
+<!-- <h3><?php //echo HEADING_RETURNING_CUSTOMER; ?></h3> -->
<?php echo tep_draw_form('login_form', tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?>
Modified: trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/template.php
===================================================================
--- trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/template.php 2011-11-17 15:37:26 UTC (rev 3887)
+++ trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/template.php 2011-11-17 23:10:12 UTC (rev 3888)
@@ -104,7 +104,7 @@
<?php endwhile; ?>
</article>
<?php endif; ?>
- <hr class="clear" />
+ <br class="clear" />
</div>
</div>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <os...@us...> - 2011-11-17 15:08:31
|
Revision: 3886
http://oscss.svn.sourceforge.net/oscss/?rev=3886&view=rev
Author: oscim
Date: 2011-11-17 15:08:16 +0000 (Thu, 17 Nov 2011)
Log Message:
-----------
Evolution structurel sur la position hierarchique du nouveau dossier modeles, qui rassemble les modeles de document / pdf / emails
Ajout d'un choix de modele dans la configuration des emails
Deport des fichiers ex template_email et template_pdf vers leur nouveau dossier
Ajustement structurel de la class emailUtility de l'admin pour la prise en charge de cette nouvelle forme
Ajout variable de configuration supplementaire et ajustement modconfiguration
Ajout d'un DIR_MODELES dans les configures
Ajout d'un modele "mouton" modele par defaut des emails
Deplacement des fichiers de langue dans un dossier modeles , dans les dossiers de langues principaux (admin et public) et report de "mouton" et "harry"
Ajout d'un modele pour les pdf "harry" modele par default des pdf
Modified Paths:
--------------
trunk/catalog/admin/includes/classes/emailUtility.php
trunk/catalog/admin/includes/functions/lib.configuration.php
trunk/catalog/admin/includes/gabarit/configuration/modmail.listing.gab
trunk/catalog/admin/includes/languages/fr_FR/modules/configuration/modmail.txt
trunk/catalog/admin/includes/modules/configuration/modmail.php
trunk/catalog/install/includes/modele/admin_configure.txt
trunk/catalog/install/includes/modele/configure.txt
trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql
Added Paths:
-----------
trunk/catalog/Documents/modeles/
trunk/catalog/Documents/modeles/email/
trunk/catalog/Documents/modeles/email/mouton/
trunk/catalog/Documents/modeles/email/mouton/adminUser/
trunk/catalog/Documents/modeles/email/mouton/adminUser/admin_account.tpl
trunk/catalog/Documents/modeles/email/mouton/adminUser/admin_members.tpl
trunk/catalog/Documents/modeles/email/mouton/adminUser/admin_members_new.tpl
trunk/catalog/Documents/modeles/email/mouton/adminUser/cron_relance_order.tpl
trunk/catalog/Documents/modeles/email/mouton/adminUser/cron_update_order.tpl
trunk/catalog/Documents/modeles/email/mouton/adminUser/footer.inc
trunk/catalog/Documents/modeles/email/mouton/adminUser/header.inc
trunk/catalog/Documents/modeles/email/mouton/adminUser/headernologo.inc
trunk/catalog/Documents/modeles/email/mouton/publicCustomers/
trunk/catalog/Documents/modeles/email/mouton/publicCustomers/add_customer.tpl
trunk/catalog/Documents/modeles/email/mouton/publicCustomers/checkout_process.tpl
trunk/catalog/Documents/modeles/email/mouton/publicCustomers/create_account.tpl
trunk/catalog/Documents/modeles/email/mouton/publicCustomers/create_account_confirm.tpl
trunk/catalog/Documents/modeles/email/mouton/publicCustomers/defaut.tpl
trunk/catalog/Documents/modeles/email/mouton/publicCustomers/footer.inc
trunk/catalog/Documents/modeles/email/mouton/publicCustomers/header.inc
trunk/catalog/Documents/modeles/email/mouton/publicCustomers/held_orders.tpl
trunk/catalog/Documents/modeles/email/mouton/publicCustomers/mail.tpl
trunk/catalog/Documents/modeles/email/mouton/publicCustomers/newsletter.tpl
trunk/catalog/Documents/modeles/email/mouton/publicCustomers/orders.tpl
trunk/catalog/Documents/modeles/email/mouton/publicCustomers/password_forgotten.tpl
trunk/catalog/Documents/modeles/email/mouton/publicCustomers/recover_cart_sales.tpl
trunk/catalog/Documents/modeles/pdf/
trunk/catalog/Documents/modeles/pdf/harry/
trunk/catalog/Documents/modeles/pdf/harry/adminUser/
trunk/catalog/Documents/modeles/pdf/harry/publicCustomers/
trunk/catalog/Documents/modeles/pdf/harry/publicCustomers/.htaccess
trunk/catalog/Documents/modeles/pdf/harry/publicCustomers/index.html
trunk/catalog/Documents/modeles/pdf/harry/publicCustomers/invoice.php
trunk/catalog/Documents/modeles/pdf/harry/publicCustomers/packingslip.php
trunk/catalog/admin/includes/languages/fr_FR/modeles/
trunk/catalog/admin/includes/languages/fr_FR/modeles/email/
trunk/catalog/admin/includes/languages/fr_FR/modeles/email/mouton/
trunk/catalog/admin/includes/languages/fr_FR/modeles/email/mouton/add_customer.txt
trunk/catalog/admin/includes/languages/fr_FR/modeles/email/mouton/admin_account.txt
trunk/catalog/admin/includes/languages/fr_FR/modeles/email/mouton/admin_members.txt
trunk/catalog/admin/includes/languages/fr_FR/modeles/email/mouton/admin_members_new.txt
trunk/catalog/admin/includes/languages/fr_FR/modeles/email/mouton/defaut.txt
trunk/catalog/admin/includes/languages/fr_FR/modeles/email/mouton/held_orders.txt
trunk/catalog/admin/includes/languages/fr_FR/modeles/email/mouton/index.html
trunk/catalog/admin/includes/languages/fr_FR/modeles/email/mouton/mail.txt
trunk/catalog/admin/includes/languages/fr_FR/modeles/email/mouton/newsletter.txt
trunk/catalog/admin/includes/languages/fr_FR/modeles/email/mouton/orders.txt
trunk/catalog/admin/includes/languages/fr_FR/modeles/email/mouton/recover_cart_sales.txt
trunk/catalog/includes/languages/fr_FR/modeles/
trunk/catalog/includes/languages/fr_FR/modeles/email/
trunk/catalog/includes/languages/fr_FR/modeles/email/mouton/
trunk/catalog/includes/languages/fr_FR/modeles/pdf/
trunk/catalog/includes/languages/fr_FR/modeles/pdf/harry/
Removed Paths:
-------------
trunk/catalog/admin/includes/languages/fr_FR/modules/template_email/
trunk/catalog/admin/includes/modules/template_email/add_customer.tpl
trunk/catalog/admin/includes/modules/template_email/admin_account.tpl
trunk/catalog/admin/includes/modules/template_email/admin_members.tpl
trunk/catalog/admin/includes/modules/template_email/admin_members_new.tpl
trunk/catalog/admin/includes/modules/template_email/cron_relance_order.tpl
trunk/catalog/admin/includes/modules/template_email/cron_update_order.tpl
trunk/catalog/admin/includes/modules/template_email/footer.inc
trunk/catalog/admin/includes/modules/template_email/header.inc
trunk/catalog/admin/includes/modules/template_email/headernologo.inc
trunk/catalog/admin/includes/modules/template_email/held_orders.tpl
trunk/catalog/admin/includes/modules/template_email/mail.tpl
trunk/catalog/admin/includes/modules/template_email/newsletter.tpl
trunk/catalog/admin/includes/modules/template_email/recover_cart_sales.tpl
trunk/catalog/includes/languages/fr_FR/modules/template_email/
trunk/catalog/includes/languages/fr_FR/modules/template_pdf/
trunk/catalog/includes/modules/template_email/checkout_process.tpl
trunk/catalog/includes/modules/template_email/create_account.tpl
trunk/catalog/includes/modules/template_email/create_account_confirm.tpl
trunk/catalog/includes/modules/template_email/defaut.tpl
trunk/catalog/includes/modules/template_email/footer.inc
trunk/catalog/includes/modules/template_email/header.inc
trunk/catalog/includes/modules/template_email/orders.tpl
trunk/catalog/includes/modules/template_email/password_forgotten.tpl
trunk/catalog/includes/modules/template_pdf/
Added: trunk/catalog/Documents/modeles/email/mouton/adminUser/admin_account.tpl
===================================================================
--- trunk/catalog/Documents/modeles/email/mouton/adminUser/admin_account.tpl (rev 0)
+++ trunk/catalog/Documents/modeles/email/mouton/adminUser/admin_account.tpl 2011-11-17 15:08:16 UTC (rev 3886)
@@ -0,0 +1,36 @@
+{if $myarray.email_use_html}
+ {include "header.inc"}
+ <div id="content">
+ <p>{$lg.ADMIN_EMAIL_TEXT_BONOUR} : {$myarray.admin_firstname}</p>
+ <br />
+<p>{$lg.ADMIN_EMAIL_TEXT} </p>
+<br />
+ <a href="{$myarray.links}">{$lg.ADMIN_EMAIL_TEXT_WWW}</a>
+<br />
+<br />
+<p>{$lg.ADMIN_EMAIL_TEXT_LOGIN} : {$myarray.admin_firstname}</p>
+<p>{$lg.ADMIN_EMAIL_TEXT_MDP} : {$myarray.hiddenPassword}</p>
+<p>{$lg.ADMIN_EMAIL_TEXT_EMAIL} : {$myarray.admin_email_address}</p>
+ {$TPL_CONTENT}
+ </div>
+ {include "footer.inc"}
+
+{else}
+
+ {$lg.STORE_NAME}
+
+ {$lg.EMAIL_SEPARATOR}
+ {$lg.ADMIN_EMAIL_TEXT_BONOUR} : {$myarray.admin_firstname}
+
+{$lg.ADMIN_EMAIL_TEXT}
+
+ {$lg.ADMIN_EMAIL_TEXT_WWW} : {$myarray.links}
+
+
+{$lg.ADMIN_EMAIL_TEXT_LOGIN} : {$myarray.admin_firstname}
+{$lg.ADMIN_EMAIL_TEXT_MDP} : {$myarray.hiddenPassword}
+{$lg.ADMIN_EMAIL_TEXT_EMAIL} : {$myarray.admin_email_address}
+ {$TPL_CONTENT}
+ {$lg.EMAIL_SEPARATOR}
+
+{/if}
\ No newline at end of file
Added: trunk/catalog/Documents/modeles/email/mouton/adminUser/admin_members.tpl
===================================================================
--- trunk/catalog/Documents/modeles/email/mouton/adminUser/admin_members.tpl (rev 0)
+++ trunk/catalog/Documents/modeles/email/mouton/adminUser/admin_members.tpl 2011-11-17 15:08:16 UTC (rev 3886)
@@ -0,0 +1,39 @@
+{if $myarray.email_use_html}
+ {include "header.inc"}
+
+ <div id="content">
+ <p>{$lg.ADMIN_EMAIL_TEXT_BONJOUR} : {$myarray.admin_firstname}</p>
+ <br />
+ <p>{$lg.ADMIN_EMAIL_TEXT} </p>
+ <br />
+ <a href="{$myarray.links}">{$lg.ADMIN_EMAIL_TEXT_WWW}</a>
+ <br />
+ <br />
+ <p>{$lg.ADMIN_EMAIL_TEXT_LOGIN} : {$myarray.admin_firstname}</p>
+ <p>{$lg.ADMIN_EMAIL_TEXT_MDP} : {$myarray.hiddenPassword}</p>
+ <p>{$lg.ADMIN_EMAIL_TEXT_EMAIL} : {$myarray.admin_email_address}</p>
+ <p>{$lg.ADMIN_EMAIL_URL_OPENID} : {$myarray.url_openid}</p>
+ {$TPL_CONTENT}
+ </div>
+
+ {include "footer.inc"}
+
+{else}
+
+ {$lg.STORE_NAME}
+
+ {$lg.EMAIL_SEPARATOR}
+ {$lg.ADMIN_EMAIL_TEXT_BONJOUR} : {$myarray.admin_firstname}
+
+ {$lg.ADMIN_EMAIL_TEXT}
+
+ {$lg.ADMIN_EMAIL_TEXT_WWW} : {$myarray.links}
+
+
+ {$lg.ADMIN_EMAIL_TEXT_LOGIN} : {$myarray.admin_firstname}
+ {$lg.ADMIN_EMAIL_TEXT_MDP} : {$myarray.hiddenPassword}
+ {$lg.ADMIN_EMAIL_TEXT_EMAIL} : {$myarray.admin_email_address}
+ {$TPL_CONTENT}
+ {$lg.EMAIL_SEPARATOR}
+
+{/if}
\ No newline at end of file
Added: trunk/catalog/Documents/modeles/email/mouton/adminUser/admin_members_new.tpl
===================================================================
--- trunk/catalog/Documents/modeles/email/mouton/adminUser/admin_members_new.tpl (rev 0)
+++ trunk/catalog/Documents/modeles/email/mouton/adminUser/admin_members_new.tpl 2011-11-17 15:08:16 UTC (rev 3886)
@@ -0,0 +1,36 @@
+{if $myarray.email_use_html}
+ {include "header.inc"}
+ <div id="content">
+ <p>{$lg.ADMIN_EMAIL_TEXT_BONOUR} : {$myarray.admin_firstname}</p>
+ <br />
+<p>{$lg.ADMIN_EMAIL_TEXT} </p>
+<br />
+ <a href="{$myarray.links}">{$lg.ADMIN_EMAIL_TEXT_WWW}</a>
+<br />
+<br />
+<p>{$lg.ADMIN_EMAIL_TEXT_LOGIN} : {$myarray.admin_firstname}</p>
+<p>{$lg.ADMIN_EMAIL_TEXT_MDP} : {$myarray.hiddenPassword}</p>
+<p>{$lg.ADMIN_EMAIL_TEXT_EMAIL} : {$myarray.admin_email_address}</p>
+ {$TPL_CONTENT}
+ </div>
+ {include "footer.inc"}
+
+{else}
+
+ {$lg.STORE_NAME}
+
+ {$lg.EMAIL_SEPARATOR}
+ {$lg.ADMIN_EMAIL_TEXT_BONOUR} : {$myarray.admin_firstname}
+
+{$lg.ADMIN_EMAIL_TEXT}
+
+ {$lg.ADMIN_EMAIL_TEXT_WWW} : {$myarray.links}
+
+
+{$lg.ADMIN_EMAIL_TEXT_LOGIN} : {$myarray.admin_firstname}
+{$lg.ADMIN_EMAIL_TEXT_MDP} : {$myarray.hiddenPassword}
+{$lg.ADMIN_EMAIL_TEXT_EMAIL} : {$myarray.admin_email_address}
+ {$TPL_CONTENT}
+ {$lg.EMAIL_SEPARATOR}
+
+{/if}
\ No newline at end of file
Added: trunk/catalog/Documents/modeles/email/mouton/adminUser/cron_relance_order.tpl
===================================================================
--- trunk/catalog/Documents/modeles/email/mouton/adminUser/cron_relance_order.tpl (rev 0)
+++ trunk/catalog/Documents/modeles/email/mouton/adminUser/cron_relance_order.tpl 2011-11-17 15:08:16 UTC (rev 3886)
@@ -0,0 +1,16 @@
+{if $myarray.email_use_html}
+
+ {include "header.inc"}
+ <div id="content">
+ {$TPL_CONTENT}
+ </div>
+ {include "footer.inc"}
+
+{else}
+
+ {$lg.STORE_NAME}
+
+ {$lg.EMAIL_SEPARATOR}
+
+ {$TPL_CONTENT}
+{/if}
Added: trunk/catalog/Documents/modeles/email/mouton/adminUser/cron_update_order.tpl
===================================================================
--- trunk/catalog/Documents/modeles/email/mouton/adminUser/cron_update_order.tpl (rev 0)
+++ trunk/catalog/Documents/modeles/email/mouton/adminUser/cron_update_order.tpl 2011-11-17 15:08:16 UTC (rev 3886)
@@ -0,0 +1,16 @@
+{if $myarray.email_use_html}
+
+ {include "header.inc"}
+ <div id="content">
+ {$TPL_CONTENT}
+ </div>
+ {include "footer.inc"}
+
+{else}
+
+ {$lg.STORE_NAME}
+
+ {$lg.EMAIL_SEPARATOR}
+
+ {$TPL_CONTENT}
+{/if}
Added: trunk/catalog/Documents/modeles/email/mouton/adminUser/footer.inc
===================================================================
--- trunk/catalog/Documents/modeles/email/mouton/adminUser/footer.inc (rev 0)
+++ trunk/catalog/Documents/modeles/email/mouton/adminUser/footer.inc 2011-11-17 15:08:16 UTC (rev 3886)
@@ -0,0 +1,14 @@
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <p style="text-align:center;">{$lg.EMAIL_TEXT_FOOTER_LG1}</p>
+ <div id="usage"></div>
+ <div id="lience"></div>
+ </td>
+ </tr>
+</table>
+</div>
\ No newline at end of file
Added: trunk/catalog/Documents/modeles/email/mouton/adminUser/header.inc
===================================================================
--- trunk/catalog/Documents/modeles/email/mouton/adminUser/header.inc (rev 0)
+++ trunk/catalog/Documents/modeles/email/mouton/adminUser/header.inc 2011-11-17 15:08:16 UTC (rev 3886)
@@ -0,0 +1,13 @@
+<div style="color:#2f2f2f; font:11px/1.35em Verdana, Arial, Helvetica, sans-serif;margin:0;padding:0;">
+<table cellspacing="0" cellpadding="0" border="0" width="98%" style="margin-top:10px; font:11px/1.35em Verdana, Arial, Helvetica, sans-serif; margin-bottom:10px;">
+ <tr>
+ <td align="center" valign="top"><!-- [ header starts here] -->
+ <table cellspacing="0" cellpadding="0" border="0" width="650">
+ <tr>
+ <td valign="top"><a href="{$HTTP_CATALOG_SERVER}{$DIR_WS_CATALOG}" ><img src="{$HTTP_CATALOG_SERVER}{$DIR_WS_CATALOG}{$STORE_LOGO_PRINT}" alt="{$STORE_NAME}" /></a> </td>
+ </tr>
+ </table>
+<!-- [ middle starts here] -->
+ <table cellspacing="0" cellpadding="0" border="0" width="650">
+ <tr>
+ <td valign="top">
\ No newline at end of file
Added: trunk/catalog/Documents/modeles/email/mouton/adminUser/headernologo.inc
===================================================================
--- trunk/catalog/Documents/modeles/email/mouton/adminUser/headernologo.inc (rev 0)
+++ trunk/catalog/Documents/modeles/email/mouton/adminUser/headernologo.inc 2011-11-17 15:08:16 UTC (rev 3886)
@@ -0,0 +1,8 @@
+<div style="color:#2f2f2f; font:11px/1.35em Verdana, Arial, Helvetica, sans-serif;margin:0;padding:0;">
+<table cellspacing="0" cellpadding="0" border="0" width="98%" style="margin-top:10px; font:11px/1.35em Verdana, Arial, Helvetica, sans-serif; margin-bottom:10px;">
+ <tr>
+ <td align="center" valign="top"><!-- [ header starts here] -->
+<!-- [ middle starts here] -->
+ <table cellspacing="0" cellpadding="0" border="0" width="650">
+ <tr>
+ <td valign="top">
\ No newline at end of file
Added: trunk/catalog/Documents/modeles/email/mouton/publicCustomers/add_customer.tpl
===================================================================
--- trunk/catalog/Documents/modeles/email/mouton/publicCustomers/add_customer.tpl (rev 0)
+++ trunk/catalog/Documents/modeles/email/mouton/publicCustomers/add_customer.tpl 2011-11-17 15:08:16 UTC (rev 3886)
@@ -0,0 +1,36 @@
+{if $myarray.email_use_html}
+ {include "header.inc"}
+ <div id="content">
+ <p>{$lg.ADMIN_EMAIL_TEXT_BONOUR} : {$myarray.admin_firstname}</p>
+ <br />
+<p>{$lg.ADMIN_EMAIL_TEXT} </p>
+<br />
+ <a href="{$myarray.links}">{$lg.ADMIN_EMAIL_TEXT_WWW}</a>
+<br />
+<br />
+<p>{$lg.ADMIN_EMAIL_TEXT_LOGIN} : {$myarray.admin_firstname}</p>
+<p>{$lg.ADMIN_EMAIL_TEXT_MDP} : {$myarray.hiddenPassword}</p>
+<p>{$lg.ADMIN_EMAIL_TEXT_EMAIL} : {$myarray.admin_email_address}</p>
+ {$TPL_CONTENT}
+ </div>
+ {include "footer.inc"}
+
+{else}
+
+ {$lg.STORE_NAME}
+
+ {$lg.EMAIL_SEPARATOR}
+ {$lg.ADMIN_EMAIL_TEXT_BONOUR} : {$myarray.admin_firstname}
+
+{$lg.ADMIN_EMAIL_TEXT}
+
+ {$lg.ADMIN_EMAIL_TEXT_WWW} : {$myarray.links}
+
+
+{$lg.ADMIN_EMAIL_TEXT_LOGIN} : {$myarray.admin_firstname}
+{$lg.ADMIN_EMAIL_TEXT_MDP} : {$myarray.hiddenPassword}
+{$lg.ADMIN_EMAIL_TEXT_EMAIL} : {$myarray.admin_email_address}
+ {$TPL_CONTENT}
+ {$lg.EMAIL_SEPARATOR}
+
+{/if}
\ No newline at end of file
Added: trunk/catalog/Documents/modeles/email/mouton/publicCustomers/checkout_process.tpl
===================================================================
--- trunk/catalog/Documents/modeles/email/mouton/publicCustomers/checkout_process.tpl (rev 0)
+++ trunk/catalog/Documents/modeles/email/mouton/publicCustomers/checkout_process.tpl 2011-11-17 15:08:16 UTC (rev 3886)
@@ -0,0 +1,116 @@
+{if $myarray.email_use_html}
+{include "header.inc"}
+ <p> <strong>{$lg.EMAIL_TEXT_HELLO}</strong>,<br/>
+ {$lg.EMAIL_TEXT_INTRO}
+ {$lg.EMAIL_TEXT_INTRO_2} <a href="{$HTTP_SERVER}{$DIR_WS_CATALOG}/login.php"> {$lg.EMAIL_TEXT_ACCOUNT}</a> <br />
+ <a href="mailto:{$STORE_OWNER}" style="color:#1E7EC8;">{$STORE_OWNER}</a>
+ </p>
+ <h3 style="border-bottom:2px solid #eee; font-size:1.05em; padding-bottom:1px; ">{$lg.EMAIL_TEXT_ORDER_NUMBER} {$myarray._oID} </h3><small> {$myarray.date_purchased}</small>
+
+ <table cellspacing="0" cellpadding="0" border="0" width="100%">
+ <thead>
+ <tr>
+ <th align="left" width="48.5%" bgcolor="#d9e5ee" style="padding:5px 9px 6px 9px; border:1px solid #bebcb7; border-bottom:none; line-height:1em;"> {$lg.EMAIL_TEXT_BILLING_ADDRESS}</th>
+ <th width="3%"></th>
+ <th align="left" width="48.5%" bgcolor="#d9e5ee" style="padding:5px 9px 6px 9px; border:1px solid #bebcb7; border-bottom:none; line-height:1em;">{$lg.EMAIL_TEXT_DELIVERY_ADDRESS}</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td valign="top" style="padding:7px 9px 9px 9px; border:1px solid #bebcb7; border-top:0; background:#f8f7f5;"> {$myarray.billToFormatted} </td>
+ <td> </td>
+ <td valign="top" style="padding:7px 9px 9px 9px; border:1px solid #bebcb7; border-top:0; background:#f8f7f5;">{$myarray.sendToFormatted}</td>
+ </tr>
+ </tbody>
+ </table>
+ <br/>
+ <table cellspacing="0" cellpadding="0" border="0" width="100%">
+ <thead>
+ <tr>
+ <th align="left" width="48.5%" bgcolor="#d9e5ee" style="padding:5px 9px 6px 9px; border:1px solid #bebcb7; border-bottom:none; line-height:1em;"> {$lg.EMAIL_TEXT_PAYMENT_METHOD}</th>
+ <th width="3%"></th>
+ <th align="left" width="48.5%" bgcolor="#d9e5ee" style="padding:5px 9px 6px 9px; border:1px solid #bebcb7; border-bottom:none; line-height:1em;">{$lg.EMAIL_TEXT_SHIPPING_METHOD}</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td valign="top" style="padding:7px 9px 9px 9px; border:1px solid #bebcb7; border-top:0; background:#f8f7f5;"> {$myarray.payment_} </td>
+ <td> </td>
+ <td valign="top" style="padding:7px 9px 9px 9px; border:1px solid #bebcb7; border-top:0; background:#f8f7f5;">{$myarray.shipping_}</td>
+ </tr>
+ </tbody>
+ </table>
+ <br/>
+ <table cellspacing="0" cellpadding="0" border="0" width="100%" style="border:1px solid #bebcb7; background:#f8f7f5;">
+ <thead>
+ <tr>
+ <th align="left" bgcolor="#d9e5ee" style="padding:3px 9px">{$lg.EMAIL_TEXT_PRODUCTS}</th>
+ <th align="left" bgcolor="#d9e5ee" style="padding:3px 9px">{$lg.EMAIL_TEXT_MODEL}</th>
+ <th align="center" bgcolor="#d9e5ee" style="padding:3px 9px">{$lg.EMAIL_TEXT_QTY}</th>
+ <th align="right" bgcolor="#d9e5ee" style="padding:3px 9px">{$lg.EMAIL_TEXT_PRICE}</th>
+ <th align="right" bgcolor="#d9e5ee" style="padding:3px 9px">{$lg.EMAIL_TEXT_SUBTOTAL}</th>
+ </tr>
+ </thead>
+ <tbody bgcolor="#eeeded">
+ {loop $iterator=$myarray.order_products}
+ <tr>
+ <td align="left" valign="top" style="padding:3px 9px"> <strong>{$iterator.name}</strong> </td>
+ <td align="left" valign="top" style="padding:3px 9px">{$iterator.model}</td>
+ <td align="center" valign="top" style="padding:3px 9px">{$iterator.qty}</td>
+ <td align="right" valign="top" style="padding:3px 9px"><span class="price">{$iterator.final_price_ttc}</span></td>
+ <td align="right" valign="top" style="padding:3px 9px"><span class="price">{$iterator.total_line_ttc}</span></td>
+ </tr>
+ {/loop}
+ </tbody>
+ <tfoot>
+ {loop $iterator=$myarray.order_totals}
+ <tr>
+ <td colspan="4" align="right" style="padding:3px 9px">{$iterator.title}</td>
+ <td align="right" style="padding:3px 9px"><span class="price">{$iterator.text}</span></td>
+ </tr>
+ {/loop}
+ </tfoot>
+ </table>
+ {include "footer.inc"}
+{else}
+
+ {$lg.STORE_NAME}
+ {$lg.EMAIL_SEPARATOR}{$myarray.br}{$myarray.br}
+
+ {$lg.EMAIL_TEXT_ORDER_NUMBER} : {$myarray._oID} {$myarray.br}
+ {$lg.EMAIL_TEXT_INVOICE_URL} {$myarray._oLinks} {$myarray.br}
+ {$lg.EMAIL_TEXT_DATE_ORDERED} {$myarray.date_purchased} {$myarray.br}
+
+
+ {$lg.EMAIL_SEPARATOR}{$myarray.br}{$myarray.br}
+
+ {$lg.EMAIL_TEXT_DELIVERY_ADDRESS} {$myarray.billToFormatted} {$myarray.br}
+ {$lg.EMAIL_TEXT_PAYMENT_METHOD} {$myarray.payment_} {$myarray.br}
+
+ {$lg.EMAIL_SEPARATOR} {$myarray.br}{$myarray.br}
+
+ {loop $iterator=$myarray.order_products}
+ {$lg.EMAIL_TEXT_PRODUCTS} : {$iterator.name} {$myarray.br}
+ {$lg.EMAIL_TEXT_MODEL} : {$iterator.model}{$myarray.br}
+ {$lg.EMAIL_TEXT_QTY} : {$iterator.qty}{$myarray.br}
+ {$lg.EMAIL_TEXT_SUBTOTAL} : {$iterator.final_price}{$myarray.br}
+ {/loop}
+
+{$myarray.br}
+ {$lg.EMAIL_SEPARATOR}{$myarray.br}{$myarray.br}
+
+ {loop $iterator=$myarray.order_totals}
+ {$iterator.title} {$iterator.text} {$myarray.br}
+ </tr>
+ {/loop}
+
+ {$lg.EMAIL_SEPARATOR}{$myarray.br}
+
+ {$myarray._comments} {$myarray.br}
+ {$lg.EMAIL_SEPARATOR}
+ {$lg.EMAIL_TEXT_INVOICE_FOOTER_LG1}
+{/if}
+
+
+
+
Added: trunk/catalog/Documents/modeles/email/mouton/publicCustomers/create_account.tpl
===================================================================
--- trunk/catalog/Documents/modeles/email/mouton/publicCustomers/create_account.tpl (rev 0)
+++ trunk/catalog/Documents/modeles/email/mouton/publicCustomers/create_account.tpl 2011-11-17 15:08:16 UTC (rev 3886)
@@ -0,0 +1,15 @@
+{if $myarray.email_use_html}
+{include "header.inc"}
+ <div id="content" style="margin:0;padding:0;">
+ <p>{$lg.EMAIL_WELCOME} {$myarray.db.entry_firstname} {$myarray.db.entry_lastname}</p>
+ <p>{$lg.EMAIL_TEXT}</p>
+ <p>{$lg.EMAIL_WARNING} </p>
+ </div>
+ {include "footer.inc"}
+{else}
+ {$lg.EMAIL_WELCOME} {$myarray.db.entry_firstname} {$myarray.db.entry_lastname}
+ {$lg.EMAIL_TEXT}
+ {$lg.$myarray._oLinks}
+ {$lg.EMAIL_WARNING}
+{/if}
+
Added: trunk/catalog/Documents/modeles/email/mouton/publicCustomers/create_account_confirm.tpl
===================================================================
--- trunk/catalog/Documents/modeles/email/mouton/publicCustomers/create_account_confirm.tpl (rev 0)
+++ trunk/catalog/Documents/modeles/email/mouton/publicCustomers/create_account_confirm.tpl 2011-11-17 15:08:16 UTC (rev 3886)
@@ -0,0 +1,19 @@
+{if $myarray.email_use_html}
+{include "header.inc"}
+ <div id="content" style="margin:0;padding:0;">
+
+ <p>{$lg.EMAIL_WELCOME} {$myarray.db.entry_firstname} {$myarray.db.entry_lastname}</p>
+ <p><a href="{$myarray._oLinks}">{$lg.EMAIL_TEXT_LINK_CONFIRM} {$myarray._oLinks}</a>
+ <p>{$lg.EMAIL_TEXT}</p>
+ <p>{$lg.EMAIL_WARNING} </p>
+ </div>
+ {include "footer.inc"}
+{else}
+
+ {$lg.EMAIL_WELCOME} {$myarray.db.entry_firstname} {$myarray.db.entry_lastname}
+ {$myarray._oLinks}
+ {$lg.EMAIL_TEXT}
+ {$lg.$myarray._oLinks}
+ {$lg.EMAIL_WARNING}
+{/if}
+
Added: trunk/catalog/Documents/modeles/email/mouton/publicCustomers/defaut.tpl
===================================================================
--- trunk/catalog/Documents/modeles/email/mouton/publicCustomers/defaut.tpl (rev 0)
+++ trunk/catalog/Documents/modeles/email/mouton/publicCustomers/defaut.tpl 2011-11-17 15:08:16 UTC (rev 3886)
@@ -0,0 +1,11 @@
+{if $myarray.email_use_html}
+
+{include "header.inc"}
+<div id="content">
+{$myarray.message}
+</div>
+{include "footer.inc"}
+
+{else}
+{$myarray.message}
+{/if}
\ No newline at end of file
Property changes on: trunk/catalog/Documents/modeles/email/mouton/publicCustomers/defaut.tpl
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/catalog/Documents/modeles/email/mouton/publicCustomers/footer.inc
===================================================================
--- trunk/catalog/Documents/modeles/email/mouton/publicCustomers/footer.inc (rev 0)
+++ trunk/catalog/Documents/modeles/email/mouton/publicCustomers/footer.inc 2011-11-17 15:08:16 UTC (rev 3886)
@@ -0,0 +1,11 @@
+ <br/>
+ <p><a href="http://www.oscss.org">Get your <strong>osCSS team</strong></a><br>
+ By <a href="http://www.oscim.fr">Oscim</a> for <strong>osCSS team</strong>
+ <p>Thank you again,<br/> Supporté par <strong><a href="http://www.oscss.org">osCSS-2</a></strong></p>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+</div>
\ No newline at end of file
Property changes on: trunk/catalog/Documents/modeles/email/mouton/publicCustomers/footer.inc
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/catalog/Documents/modeles/email/mouton/publicCustomers/header.inc
===================================================================
--- trunk/catalog/Documents/modeles/email/mouton/publicCustomers/header.inc (rev 0)
+++ trunk/catalog/Documents/modeles/email/mouton/publicCustomers/header.inc 2011-11-17 15:08:16 UTC (rev 3886)
@@ -0,0 +1,15 @@
+<style type="text/css">body,td { color:#2f2f2f; font:11px/1.35em Verdana, Arial, Helvetica, sans-serif; }</style>
+<div style="font:11px/1.35em Verdana, Arial, Helvetica, sans-serif;">
+ <table cellspacing="0" cellpadding="0" border="0" width="98%" style="margin-top:10px; font:11px/1.35em Verdana, Arial, Helvetica, sans-serif; margin-bottom:10px;">
+ <tr>
+ <td align="center" valign="top">
+ <!-- [ header starts here] -->
+ <table cellspacing="0" cellpadding="0" border="0" width="650">
+ <tr>
+ <td valign="top"><a href="{$HTTP_SERVER}{$DIR_WS_CATALOG}" ><img src="{$HTTP_SERVER}{$DIR_WS_CATALOG}{$STORE_LOGO_PRINT}" alt="{$STORE_NAME}" style="margin-bottom:10px;" border="0" /></a></td>
+ </tr>
+ </table>
+ <!-- [ middle starts here] -->
+ <table cellspacing="0" cell="0" padding="0" border="0" width="650">
+ <tr>
+ <td valign="top">
\ No newline at end of file
Property changes on: trunk/catalog/Documents/modeles/email/mouton/publicCustomers/header.inc
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/catalog/Documents/modeles/email/mouton/publicCustomers/held_orders.tpl
===================================================================
--- trunk/catalog/Documents/modeles/email/mouton/publicCustomers/held_orders.tpl (rev 0)
+++ trunk/catalog/Documents/modeles/email/mouton/publicCustomers/held_orders.tpl 2011-11-17 15:08:16 UTC (rev 3886)
@@ -0,0 +1,32 @@
+{if $myarray.email_use_html}
+
+ {include "header.inc"}
+ <div id="content">
+ <p>{$lg.EMAIL_TEXT_ORDER_NUMBER} {$myarray._oID}</p>
+ <p>{$lg.EMAIL_TEXT_INVOICE_URL_VIEW} <a href="{$myarray._oLinks}"> {$lg.EMAIL_TEXT_INVOICE}</a></p>
+ <br />
+ <p>{$lg.EMAIL_TEXT_ORDER_NUMBER} {$myarray._oID}</p>
+ <p>{$lg.EMAIL_TEXT_DATE_ORDERED} {$myarray.date_purchased}</p>
+ <p>{$myarray.notify_comments}</p>
+ </div>
+ {include "footer.inc"}
+
+{else}
+
+ {$lg.STORE_NAME}
+
+ {$lg.EMAIL_SEPARATOR}
+
+ {$lg.EMAIL_TEXT_ORDER_NUMBER}{$myarray._oID}
+
+ {$lg.EMAIL_TEXT_INVOICE_URL} {$myarray._oLinks}
+
+ {$lg.EMAIL_TEXT_DATE_ORDERED} {$myarray.date_purchased}
+
+ {$lg.EMAIL_TEXT_STATUS_UPDATE} {$myarray._ostatus}
+
+ {$myarray.notify_comments}
+
+ {$lg.EMAIL_SEPARATOR}
+ {$lg.EMAIL_TEXT_INVOICE_FOOTER_LG1}
+{/if}
Added: trunk/catalog/Documents/modeles/email/mouton/publicCustomers/mail.tpl
===================================================================
--- trunk/catalog/Documents/modeles/email/mouton/publicCustomers/mail.tpl (rev 0)
+++ trunk/catalog/Documents/modeles/email/mouton/publicCustomers/mail.tpl 2011-11-17 15:08:16 UTC (rev 3886)
@@ -0,0 +1,18 @@
+{if $myarray.email_use_html}
+ {include "header.inc"}
+ <div id="content">
+ <p> {$lg.STORE_NAME}</p>
+ <div> {$myarray.message}</div>
+ </div>
+ {include "footer.inc"}
+
+{else}
+
+ {$lg.STORE_NAME}
+
+ {$lg.EMAIL_SEPARATOR}
+ {$myarray.message}
+
+ {$lg.EMAIL_SEPARATOR}
+
+{/if}
\ No newline at end of file
Added: trunk/catalog/Documents/modeles/email/mouton/publicCustomers/newsletter.tpl
===================================================================
--- trunk/catalog/Documents/modeles/email/mouton/publicCustomers/newsletter.tpl (rev 0)
+++ trunk/catalog/Documents/modeles/email/mouton/publicCustomers/newsletter.tpl 2011-11-17 15:08:16 UTC (rev 3886)
@@ -0,0 +1,21 @@
+{if $myarray.email_use_html}
+ {$myarray.tpl_link_trace}
+ {$myarray.email_use_link_online}
+ {include "headernologo.inc"}
+
+ <div id="content">
+ {$TPL_CONTENT}
+ </div>
+ {include "footer.inc"}
+
+{else}
+
+ {$lg.STORE_NAME}
+
+ {$lg.EMAIL_SEPARATOR}
+
+ {$TPL_CONTENT}
+
+ {$lg.EMAIL_SEPARATOR}
+
+{/if}
Added: trunk/catalog/Documents/modeles/email/mouton/publicCustomers/orders.tpl
===================================================================
--- trunk/catalog/Documents/modeles/email/mouton/publicCustomers/orders.tpl (rev 0)
+++ trunk/catalog/Documents/modeles/email/mouton/publicCustomers/orders.tpl 2011-11-17 15:08:16 UTC (rev 3886)
@@ -0,0 +1,33 @@
+{if $myarray.email_use_html}
+
+ {include "header.inc"}
+ <div id="content">
+ <p>{$lg.EMAIL_TEXT_ORDER_NUMBER} {$mya...
[truncated message content] |
|
From: <os...@us...> - 2011-11-19 08:47:57
|
Revision: 3890
http://oscss.svn.sourceforge.net/oscss/?rev=3890&view=rev
Author: oscim
Date: 2011-11-19 08:47:50 +0000 (Sat, 19 Nov 2011)
Log Message:
-----------
correction erreur
modification format adresse pour la france
Modified Paths:
--------------
trunk/catalog/admin/includes/content/configuration.central.inc
trunk/catalog/admin/includes/content/configuration.top.inc
trunk/catalog/admin/includes/functions/general.php
trunk/catalog/install/includes/sql/mysql/data/20_osc_countries.sql
Modified: trunk/catalog/admin/includes/content/configuration.central.inc
===================================================================
--- trunk/catalog/admin/includes/content/configuration.central.inc 2011-11-18 14:53:33 UTC (rev 3889)
+++ trunk/catalog/admin/includes/content/configuration.central.inc 2011-11-19 08:47:50 UTC (rev 3890)
@@ -1,59 +1,227 @@
<?php
/**
- @licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
- @portion code Copyright (c) 2002 osCommerce
- @package osCSS-2 <www http://www.oscss.org>
- @version 2.1.1
- @date 22/09/11, 22:00
+ @licence GPL 2005-2009 The osCSS developers - osCSS Open Source E-commerce
+ @package oscss-2 <www http://www.oscss.org>
+ @version Rc-3
+ @date 07/04/10, 22:11
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
- @encode UTF-8
- @brief content for pages configuration
+ @encode UTF-8
*/
?>
<!-- body //-->
+<?php if($action=='list') { ?>
+<h3><?php echo HEADING_TITLE; ?></h3>
+<h4><?php echo HEADING_TITLE_COUNTRY_ZONE; ?></h4>
+ <div class="button_nav">
+ <?php echo '<a class="button" href="' . tep_href_link(FILENAME_COUNTRIES, tep_get_all_get_params(array('page_admin')) . 'saction=new') . '">' . tep_image(DIR_WS_ICONS . 'icon_add_new.png',IMAGE_INSERT) . IMAGE_NEW_ZONE . '</a>'; ?>
+ <?php echo '<a class="button" href="' . tep_href_link(FILENAME_COUNTRIES, tep_get_all_get_params(array('rID','action','saction'))) . '">' . IMAGE_BACK . '</a>'; ?>
+ </div>
-<br style="clear:both" />
-<!-- body_text //-->
-<?php if( isset($mID) ): ?>
+<div class="box_left">
+ <table width="100%" class="dataTable">
+ <thead>
+ <tr>
+ <th><?php echo TABLE_HEADING_COUNTRY_NAME.tep_link_sort_by(FILENAME_COUNTRIES,'c.countries_name'); ?></th>
+ <th><?php echo TABLE_HEADING_ZONE_NAME.tep_link_sort_by(FILENAME_COUNTRIES,'z.zone_name'); ?></th>
+ <th class="tcenter"><?php echo TABLE_HEADING_ZONE_CODE.tep_link_sort_by(FILENAME_COUNTRIES,'z.zone_code'); ?></th>
+ <th class="tright" style="width:100px"><?php echo TABLE_HEADING_ACTION; ?></th>
+ </tr>
+ </thead>
+ <tfoot>
+ <tr>
+ <td><?php echo $zones_split->display_count($zones_query_numrows, MAX_DISPLAY_ROW_BY_PAGE, $page, TEXT_DISPLAY_NUMBER_OF_ZONES); ?></td>
+ <td><?php echo row_by_page(FILENAME_COUNTRIES, $row_bypage_array, $row_by_page, "fleft"); ?></td>
+ <td colspan="2"><?php echo $zones_split->display_links($zones_query_numrows, MAX_DISPLAY_ROW_BY_PAGE, MAX_DISPLAY_PAGE_LINKS, $page,tep_get_all_get_params(array('page', 'oID'))); ?></td>
+ </tr>
+ </tfoot>
+ <tbody>
+ <?php foreach($list_z as $zones) { ?>
+ <tr class="view parent dataTableRow <?php if(( $rID ==$zones['zone_id'])) echo 'Selected' ?>" >
+ <td><?php echo $zones['countries_name']; ?></td>
+ <td><?php echo $zones['zone_name']; ?></td>
+ <td class="tcenter"><?php echo $zones['zone_code']; ?></td>
+ <td>
+ <span class="view fils fleft">
+ <?php echo '<a class="buttonimg" href="' . tep_href_link(FILENAME_COUNTRIES, tep_get_all_get_params(array('page','rID')) .'rID=' . $zones['zone_id']. '&saction=edit') . '">' . tep_image(DIR_WS_ICONS . 'icon_edit.png',IMAGE_EDIT ) . '</a> <a class="buttonimg" href="' . tep_href_link(FILENAME_COUNTRIES, tep_get_all_get_params(array('page','rID')). 'rID=' . $zones['zone_id'] . '&saction=delete') . '">' . tep_image(DIR_WS_ICONS . 'icon_delete.png',IMAGE_DELETE ) . '</a>';
+ ?>
+ </span>
+ <span class="fright">
+ <?php if (isset($cInfo) && is_object($cInfo) && ($zones['zone_id'] == $cInfo->zone_id) ) { echo tep_image(DIR_WS_ICONS . 'icon_arrow_right.gif', ''); } else { echo '<a href="' . tep_href_link(FILENAME_COUNTRIES,tep_get_all_get_params(array('page','rID')). 'rID=' . $zones['zone_id']) . '">' . tep_image(DIR_WS_ICONS . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>'; } ?>
+ </span>
+ </td>
+ </tr>
+ <?php } ?>
+ </tbody>
+ </table>
+</div>
- <?php echo $cfg->draw(); ?>
+<?php } else { ?>
+<h3><?php echo HEADING_TITLE; ?></h3>
+<h4><?php echo HEADING_TITLE_COUNTRY; ?></h4>
+ <div class="button_nav">
+ <?php echo '<a class="button" href="' . tep_href_link(FILENAME_COUNTRIES,tep_get_all_get_params(array('page_admin')). 'action=new') . '">' . tep_image(DIR_WS_ICONS.'icon_add_new.png' , IMAGE_NEW_COUNTRY) . IMAGE_NEW_COUNTRY . '</a>'; ?>
+ </div>
+<div class="box_uniq">
+ <div class="box_left">
+ <table width="100%" class="dataTable">
+ <thead>
+ <tr>
+ <th><?php echo TABLE_HEADING_COUNTRY_NAME.tep_link_sort_by(FILENAME_COUNTRIES,'countries_name'); ?></th>
+ <th><?php echo TABLE_HEADING_COUNTRY_LOCALNAME.tep_link_sort_by(FILENAME_COUNTRIES,'countries_localname' ); ?></th>
+ <th style="width:40px"><?php echo TABLE_HEADING_COUNTRY_CODE_2.tep_link_sort_by(FILENAME_COUNTRIES,'countries_iso_code_2'); ?></th>
+ <th style="width:40px"><?php echo TABLE_HEADING_COUNTRY_CODE_3.tep_link_sort_by(FILENAME_COUNTRIES,'countries_iso_code_3'); ?></th>
+ <th><?php echo TABLE_HEADING_COUNTRY_VISIBLE.tep_link_sort_by(FILENAME_COUNTRIES,'country_visible'); ?></th>
+ <th class="tright" style="width:100px"><?php echo TABLE_HEADING_ACTION; ?></th>
+ </tr>
+ </thead>
+ <tfoot>
+ <tr>
+ <td colspan="1"><?php echo $countries_split->display_count($countries_query_numrows, MAX_DISPLAY_ROW_BY_PAGE, $page, TEXT_DISPLAY_NUMBER_OF_COUNTRIES); ?></td>
+ <td colspan="3"><?php echo row_by_page(FILENAME_COUNTRIES, $row_bypage_array, $row_by_page, "fleft"); ?></td>
+ <td colspan="2"><?php echo $countries_split->display_links($countries_query_numrows, MAX_DISPLAY_ROW_BY_PAGE, MAX_DISPLAY_PAGE_LINKS,$page, tep_get_all_get_params(array('page_admin','page','cID'))); ?></td>
+ </tr>
+ </tfoot>
+ <tbody>
+ <?php foreach($list_c as $countries) { ?>
+ <tr class="view parent dataTableRow <?php if(isset($cID) && $cID==$countries['countries_id']) echo 'Selected' ?>">
+ <td class="tleft"><?php echo $countries['countries_name']; ?></td>
+ <td class="tleft"><?php echo $countries['countries_localname']; ?></td>
+ <td class="tcenter"><?php echo $countries['countries_iso_code_2']; ?></td>
+ <td class="tcenter"><?php echo $countries['countries_iso_code_3']; ?></td>
+ <td class="tcenter">
+ <?php if ($countries['country_visible'] == '1') echo tep_image(DIR_WS_ICONS . 'icon_status_green.gif', IMAGE_ICON_STATUS_GREEN) . ' <a href="' . tep_href_link(FILENAME_COUNTRIES, 'action=update&country_visible=0&cID=' . $countries['countries_id'] . '&page=' . $page) . '">' . tep_image(DIR_WS_ICONS . 'icon_status_red_light.gif', IMAGE_ICON_STATUS_RED_LIGHT) . '</a>';
+ else echo '<a href="' . tep_href_link(FILENAME_COUNTRIES, 'action=update&country_visible=1&cID=' . $countries['countries_id'] . '&page=' . $page) . '">' . tep_image(DIR_WS_ICONS . 'icon_status_green_light.gif', IMAGE_ICON_STATUS_GREEN_LIGHT) . '</a> ' . tep_image(DIR_WS_ICONS . 'icon_status_red.gif', IMAGE_ICON_STATUS_RED); ?>
+ </td>
+ <td class="row_action">
+ <span class="view fils fleft">
+ <?php
+ echo '<a href="' . tep_href_link(FILENAME_COUNTRIES, tep_get_all_get_params(array('action','cID')).'cID=' .$countries['countries_id'] . '&action=list') . '">' . tep_image(DIR_WS_ICONS . 'icon_plus.gif', ICON_FOLDER) . '</a>';
+ echo '<a class="buttonimg" href="' . tep_href_link(FILENAME_COUNTRIES, 'page=' . $page . '&cID=' . $countries['countries_id'] . '&row_by_page='.$row_by_page.'&action=edit') . '">' . tep_image(DIR_WS_ICONS . 'icon_edit.png',IMAGE_EDIT ) . '</a> <a class="buttonimg" href="' . tep_href_link(FILENAME_COUNTRIES, 'page=' . $page . '&cID=' . $countries['countries_id'] .'&row_by_page='.$row_by_page. '&action=delete') . '">' . tep_image(DIR_WS_ICONS . 'icon_delete.png',IMAGE_DELETE ) . '</a> ';
+ ?>
+ </span>
+ <span class="fright">
+ <?php if (isset($cInfo) && is_object($cInfo) && ($countries['countries_id'] == $cInfo->countries_id) ) { echo tep_image(DIR_WS_ICONS . 'icon_arrow_right.gif', ''); }
+ else { echo '<a href="' . tep_href_link(FILENAME_COUNTRIES, 'page=' . $page . '&cID=' . $countries['countries_id'].'&row_by_page='.$row_by_page) . '">' . tep_image(DIR_WS_ICONS . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>'; } ?>
+ </span>
+ </td>
+ </tr>
+ <?php } ?>
+ </tbody>
+ </table>
+ </div>
+<?php } ?>
+<?php
+ $heading = array();
+ $contents = array();
-<?php elseif($action=='' && tep_not_null($gID) && is_numeric($gID) ): ?>
+if($action=='list'){
+ switch ($saction) {
+ case 'new':
+ $heading[] = array('text' => TEXT_INFO_HEADING_NEW_ZONE );
+ $contents = array('form' => tep_draw_form('zones', FILENAME_COUNTRIES, tep_get_all_get_params(array('saction')).'saction=insert'));
+ $contents[] = array('text' => TEXT_INFO_INSERT_INTRO);
+ $contents[] = array('class' => 'block_input', 'text' => TEXT_INFO_ZONES_NAME . tep_draw_input_field('zone_name'));
+ $contents[] = array('class' => 'block_input', 'text' => TEXT_INFO_ZONES_CODE . tep_draw_input_field('zone_code'));
+ $contents[] = array('class' => 'block_input', 'text' => TEXT_INFO_COUNTRY_NAME . tep_draw_pull_down_menu('zone_country_id', tep_get_countries(), $cID));
+ $contents[] = array('class' => 'button_nav', 'text' => tep_image_submit('button_insert.gif', IMAGE_INSERT) . ' <a class="button" href="' . tep_href_link(FILENAME_COUNTRIES, tep_get_all_get_params(array('page_admin','saction')) ) . '">' . IMAGE_CANCEL . '</a>');
+ break;
+ case 'edit':
+ $heading[] = array('text' => TEXT_INFO_HEADING_EDIT_ZONE );
+ $contents = array('form' => tep_draw_form('zones', FILENAME_COUNTRIES, tep_get_all_get_params(array('saction','rID')).'rID=' . $cInfo->zone_id.'&saction=save'));
+ $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
+ $contents[] = array('class' => 'block_input', 'text' => TEXT_INFO_ZONES_NAME . tep_draw_input_field('zone_name','', $cInfo->zone_name));
+ $contents[] = array('class' => 'block_input', 'text' => TEXT_INFO_ZONES_CODE . tep_draw_input_field('zone_code','', $cInfo->zone_code));
+ $contents[] = array('class' => 'block_input', 'text' => TEXT_INFO_COUNTRY_NAME . tep_draw_pull_down_menu('zone_country_id', tep_get_countries(), $cInfo->countries_id));
+ $contents[] = array('class' => 'button_nav', 'text' => tep_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a class="button" href="' . tep_href_link(FILENAME_COUNTRIES, tep_get_all_get_params(array('saction')).'rID=' . $cInfo->zone_id) . '">' . IMAGE_CANCEL . '</a>');
+ break;
+ case 'delete':
+ $heading[] = array('text' => TEXT_INFO_HEADING_DELETE_ZONE );
+ $contents = array('form' => tep_draw_form('zones', FILENAME_COUNTRIES, tep_get_all_get_params(array('saction','rID')).'rID=' . $cInfo->zone_id.'&action=deleteconfirm'));
+ $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
+ $contents[] = array('text' => '<strong>' . $cInfo->zone_name . '</strong>');
+ $contents[] = array('class' => 'button_nav', 'text' => tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a class="button" href="' . tep_href_link(FILENAME_COUNTRIES, tep_get_all_get_params(array('saction','rID')).'rID=' . $cInfo->zone_id) . '">' . IMAGE_CANCEL . '</a>');
+ break;
+ default:
+ if (isset($cInfo) && is_object($cInfo)) {
+ $heading[] = array('text' => $cInfo->zone_name);
+ $contents[] = array('text' => TEXT_INFO_ZONES_NAME . $cInfo->zone_name . ' (' . $cInfo->zone_code . ')');
+ $contents[] = array('text' => TEXT_INFO_COUNTRY_NAME . $cInfo->countries_name);
+ }
+// break;
+ }
+}else {
+ if (isset($cInfo) && is_object($cInfo) && ($countries['countries_id'] == $cInfo->countries_id) ){
+ $country_visible = ($cInfo->country_visible == '1') ? VISIBLE_YES : VISIBLE_NO;
+ $country_visible_Y = ($cInfo->country_visible == '1') ? true : false;
+ $country_visible_N = ($cInfo->country_visible == '0') ? true : false;
+ } else {
+ $country_visible = VISIBLE_YES ;
+ $country_visible_Y = true ;
+ $country_visible_N = false;
+ }
-<div id="ssmenu">
- <?php echo tep_ssmenu_configuration($gparentID); ?>
-</div>
-<h3 class="main-title"><?php echo tep_cst_menu_conf($cfg_group['configuration_group_title']); ?></h3>
-<h4><?php echo tep_cst_menu_conf('TITLE_'.$cfg_group['configuration_group_title']); ?></h4>
+ switch ($action) {
+ case 'new':
+ $heading[] = array('text' => TEXT_INFO_HEADING_NEW_COUNTRY );
+ $contents = array('form' => tep_draw_form('countries', FILENAME_COUNTRIES, 'page=' . $page .'&row_by_page='.$row_by_page. '&action=insert'));
+ $contents[] = array('text' => TEXT_INFO_INSERT_INTRO);
+ $contents[] = array('class' => 'block_input','text' => TEXT_INFO_COUNTRY_NAME . tep_draw_input_field('countries_name'));
+ $contents[] = array('class' => 'block_input','text' => TEXT_INFO_COUNTRY_LOCALNAME . tep_draw_input_field('countries_localname'));
+ $contents[] = array('class' => 'block_input','text' => TEXT_INFO_COUNTRY_CODE_2 . tep_draw_input_field('countries_iso_code_2'));
+ $contents[] = array('class' => 'block_input','text' => TEXT_INFO_COUNTRY_CODE_3 . tep_draw_input_field('countries_iso_code_3'));
+ $contents[] = array('class' => 'block_input','text' => TEXT_INFO_ADDRESS_FORMAT . tep_draw_pull_down_menu('address_format_id', tep_get_address_formats()));
+ $contents[] = array('class' => 'block_input','text' => TEXT_INFO_COUNTRY_VISIBLE . tep_draw_radio_field('country_visible', 'country_visible_1', '1', $country_visible_Y) . ' ' . VISIBLE_YES . ' ' . tep_draw_radio_field('country_visible', 'country_visible_0', '0', $country_visible_N) . ' ' . VISIBLE_NO);
+ $contents[] = array('class' => 'button_nav', 'text' => tep_image_submit('button_insert.gif', IMAGE_INSERT) . ' <a class="button" href="' . tep_href_link(FILENAME_COUNTRIES, tep_get_all_get_params(array('page_admin', 'action'))) . '">' . IMAGE_CANCEL . '</a>');
+ break;
+ case 'edit':
+ $heading[] = array('text' => TEXT_INFO_HEADING_EDIT_COUNTRY );
+ $contents = array('form' => tep_draw_form('countries', FILENAME_COUNTRIES, 'page=' . $page . '&cID=' . $cInfo->countries_id .'&row_by_page='.$row_by_page. '&action=save'));
+ $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
+ $contents[] = array('class' => 'block_input','text' => TEXT_INFO_COUNTRY_NAME . tep_draw_input_field('countries_name', '', $cInfo->countries_name));
+ $contents[] = array('class' => 'block_input','text' => TEXT_INFO_COUNTRY_LOCALNAME . tep_draw_input_field('countries_localname', '', $cInfo->countries_localname));
+ $contents[] = array('class' => 'block_input','text' => TEXT_INFO_COUNTRY_CODE_2 . tep_draw_input_field('countries_iso_code_2', '', $cInfo->countries_iso_code_2));
+ $contents[] = array('class' => 'block_input','text' => TEXT_INFO_COUNTRY_CODE_3 . tep_draw_input_field('countries_iso_code_3', '', $cInfo->countries_iso_code_3));
+ $contents[] = array('class' => 'block_input','text' => TEXT_INFO_ADDRESS_FORMAT . tep_draw_pull_down_menu('address_format_id', tep_get_address_formats(), $cInfo->address_format_id));
+ $contents[] = array('class' => 'block_input','text' => TEXT_INFO_COUNTRY_VISIBLE . tep_draw_radio_field('country_visible', 'country_visible_1', '1', $country_visible_Y) . ' ' . VISIBLE_YES . ' ' . tep_draw_radio_field('country_visible', 'country_visible_0', '0', $country_visible_N) . ' ' . VISIBLE_NO);
+ $contents[] = array('class' => 'button_nav','text' => tep_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a class="button" href="' . tep_href_link(FILENAME_COUNTRIES, 'page=' . $page . '&cID=' . $cInfo->countries_id .'&row_by_page='.$row_by_page) . '">' . IMAGE_CANCEL . '</a>');
+ break;
+ case 'delete':
+ $heading[] = array('text' => TEXT_INFO_HEADING_DELETE_COUNTRY );
+ $contents = array('form' => tep_draw_form('countries', FILENAME_COUNTRIES, 'page=' . $page . '&cID=' . $cInfo->countries_id .'&row_by_page='.$row_by_page. '&action=deleteconfirm'));
+ $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
+ $contents[] = array('text' => '<strong>' . $cInfo->countries_name . '</strong>');
+ $contents[] = array('class' => 'button_nav','text' => tep_image_submit('button_delete.gif', IMAGE_UPDATE) . ' <a class="button" href="' . tep_href_link(FILENAME_COUNTRIES, 'page=' . $page . '&cID=' . $cInfo->countries_id) . '">' . IMAGE_CANCEL . '</a>');
+ break;
- <?php echo tep_draw_form('configuration', FILENAME_CONFIGURATION, 'gparentID=' . $gparentID.'&gID=' . $gID . '&action=save_mutli') ?>
- <div class="box_left">
- <ul class="block_form">
- <?php foreach($list_edit as $row) { ?>
- <li id="nav_<?php echo $row->key ?>"><h5 title="<?php echo '('.$row->key.' - ' . $row->set . ')'; ?>"><?php echo __($row->title). tep_image(DIR_WS_ICONS . 'icon_help.gif'); ?></h5>
+ default:
+ if (isset($cInfo) && is_object($cInfo)) {
+ $heading[] = array('text' => $cInfo->countries_name );
+ $contents[] = array('text' => TEXT_INFO_COUNTRY_NAME . $cInfo->countries_name);
+ $contents[] = array('text' => TEXT_INFO_COUNTRY_LOCALNAME . $cInfo->countries_localname);
+ $contents[] = array('text' => TEXT_INFO_COUNTRY_CODE_2 . $cInfo->countries_iso_code_2);
+ $contents[] = array('text' => TEXT_INFO_COUNTRY_CODE_3 . $cInfo->countries_iso_code_3);
+ $contents[] = array('text' => TEXT_INFO_ADDRESS_FORMAT . $cInfo->address_format_id .
+'<br />'.
+'<div class="ViewAddress ViewAddress-format">'.
+str_replace('\n','<br />',$address_format_array[$cInfo->address_format_id]).
+'</div>'
+);
- <div class="block_input tirroir">
- <label><?php if (tep_not_null(__($row->description)))echo __($row->description); ?></label>
- <p>
- <?php echo $row->value_field ; ?>
- </p>
- </div>
- </li>
- <?php } ?>
- </ul>
- </div>
- <div class="box_right">
- <ul>
- <div class="button_nav">
- <?php print tep_image_submit('button_copy.gif', IMAGE_UPDATE) .tep_js_back(tep_href_link(FILENAME_CONFIGURATION, 'gparentID=' . $gparentID.'&gID=' . $gID )) ; ?>
- </div>
- </li>
- </ul>
- </div>
- </form>
-<?php endif; ?>
-<!-- body_text_eof //-->
-<!-- body_eof //-->
\ No newline at end of file
+ $contents[] = array('text' => TEXT_INFO_COUNTRY_VISIBLE . $country_visible);
+ }
+ break;
+ }
+ }
+?>
+<div class="box_right">
+<?php
+ if ( (tep_not_null($heading)) && (tep_not_null($contents)) ) {
+ $box = new box;
+ echo $box->infoBox($heading, $contents);
+ }
+?>
+</div>
+</div>
\ No newline at end of file
Modified: trunk/catalog/admin/includes/content/configuration.top.inc
===================================================================
--- trunk/catalog/admin/includes/content/configuration.top.inc 2011-11-18 14:53:33 UTC (rev 3889)
+++ trunk/catalog/admin/includes/content/configuration.top.inc 2011-11-19 08:47:50 UTC (rev 3890)
@@ -1,169 +1,125 @@
<?php
/**
- @licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
- @portion code Copyright (c) 2002 osCommerce
- @package osCSS-2 <www http://www.oscss.org>
- @version 2.1.1
- @date 22/09/11, 22:00
+ @licence GPL 2005-2009 The osCSS developers - osCSS Open Source E-commerce
+ @package oscss-2 <www http://www.oscss.org>
+ @version Rc-3
+ @date 08/04/10, 22:41
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
- @encode UTF-8
- @brief generic page for configuration in confuguration_table
- This page is replaced by module type configuration if exists
- For replace this page by module configurtaion type, name new module cfg_xx, and xx is gID (configuration_group_id)
+ @encode UTF-8
*/
+ $rID=(isset($_GET['rID'])) ? $_GET['rID'] : '';
+ $cID=(isset($_GET['cID'])) ? $_GET['cID'] : '';
- // clef de groupe (configuration_group_id)
- $gID = (isset($_GET['gID'])) ? $_GET['gID'] : 1;
- // groupe parent
- $gparentID = (isset($_GET['gparentID'])) ? $_GET['gparentID'] : 0;
+ $saction=(isset($_GET['saction'])) ? $_GET['saction'] : '';
- /**
- @remarks Adjust name child module
- Old : cfg_21 >> 21 == configuration_group_id
- New : template >> [cg_]template == configuration_group_key
- */
+ switch ($action) {
+ case 'insert':
+ $countries_name = tep_db_prepare_input($_POST['countries_name']);
+ $countries_localname = tep_db_prepare_input($_POST['countries_localname']);
+ $countries_iso_code_2 = tep_db_prepare_input($_POST['countries_iso_code_2']);
+ $countries_iso_code_3 = tep_db_prepare_input($_POST['countries_iso_code_3']);
+ $address_format_id = tep_db_prepare_input($_POST['address_format_id']);
+ $country_visible = tep_db_prepare_input($_POST['country_visible']);
- if(file_exists(DIR_WS_MODULES.'configuration/cfg_'.$gID.'.php'))
- $class='cfg_'.$gID;
- else {
- $_query = tep_db_query("SELECT configuration_group_key AS childmodule FROM " . TABLE_CONFIGURATION_GROUP . " WHERE configuration_group_id = '" . (int)$gID . "' ORDER BY sort_order");
- $conf = tep_db_fetch_array($_query);
+ tep_db_query("insert into " . TABLE_COUNTRIES . " (countries_name, countries_localname, countries_iso_code_2, countries_iso_code_3, address_format_id, country_visible) values ('" . tep_db_input($countries_name) . "', '" . tep_db_input($countries_localname) . "', '" . tep_db_input($countries_iso_code_2) . "', '" . tep_db_input($countries_iso_code_3) . "', '" . (int)$address_format_id . "', '" . (int)$country_visible . "')");
- $class= trim(strtolower($conf['childmodule']));
+ tep_redirect(tep_href_link(FILENAME_COUNTRIES));
+ break;
- if(substr($class,0,3) =='cg_') $class = substr($class,3);
- }
+ case 'update':
+ $countries_id = tep_db_prepare_input($_GET['cID']);
+ $country_visible = tep_db_prepare_input($_GET['country_visible']);
- /**
- @remarks Call child modules configuration in /modules/configuration folder
- */
+ tep_db_query("update " . TABLE_COUNTRIES . " set country_visible = '" . (int)$country_visible . "' where countries_id = '" . (int)$countries_id . "'");
- if(file_exists(DIR_WS_MODULES.'configuration/'.$class.'.php') && !class_exists($class)) {
- require(DIR_WS_MODULES.'configuration/'.$class.'.php');
- // module key precis
- $mID=$gID;
+ tep_redirect(tep_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $countries_id.'&row_by_page='.$row_by_page));
+ break;
- $cfg =new $class();
- }
- else {
- $oscss->pile_file_lang(DIR_FS_ADMIN.DIR_WS_LANGUAGES.$language.'/modules/configuration/cfg_'.$gID.'.txt');
- }
+ case 'save':
+ $countries_id = tep_db_prepare_input($_GET['cID']);
+ $countries_name = tep_db_prepare_input($_POST['countries_name']);
+ $countries_localname = tep_db_prepare_input($_POST['countries_localname']);
+ $countries_iso_code_2 = tep_db_prepare_input($_POST['countries_iso_code_2']);
+ $countries_iso_code_3 = tep_db_prepare_input($_POST['countries_iso_code_3']);
+ $address_format_id = tep_db_prepare_input($_POST['address_format_id']);
+ $country_visible = tep_db_prepare_input($_POST['country_visible']);
+ tep_db_query("update " . TABLE_COUNTRIES . " set countries_name = '" . tep_db_input($countries_name) . "', countries_localname = '" . tep_db_input($countries_localname) . "', countries_iso_code_2 = '" . tep_db_input($countries_iso_code_2) . "', countries_iso_code_3 = '" . tep_db_input($countries_iso_code_3) . "', address_format_id = '" . (int)$address_format_id . "', country_visible = '" . (int)$country_visible . "' where countries_id = '" . (int)$countries_id . "'");
- if(isset($mID) && class_exists($class)) $cfg->draw_action();
- else
- switch ($action) {
+ tep_redirect(tep_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $countries_id.'&row_by_page='.$row_by_page));
+ break;
+ case 'deleteconfirm':
+ $countries_id = tep_db_prepare_input($_GET['cID']);
- /**
- @brief save unique ligne
- */
- case 'save':
- $configuration_value = tep_db_prepare_input($_POST['configuration_value']);
- $cID = tep_db_prepare_input($_GET['cID']);
+ tep_db_query("delete from " . TABLE_COUNTRIES . " where countries_id = '" . (int)$countries_id . "'");
- if( ($res=sqlconfiguration::update(array('key'=>(int)$cID , 'value'=>tep_db_input($configuration_value) ))) == false)
- $messageStack->add(SAVE_CONFIG_OK, 'success');
- else
- $messageStack->add(SAVE_CONFIG_NOT_OK, 'error');
-
- tep_redirect(tep_href_link(FILENAME_CONFIGURATION, 'gparentID=' . $gparentID.'&gID=' . $_GET['gID'] . '&cID=' . $cID));
+ tep_redirect(tep_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'].'&row_by_page='.$row_by_page));
break;
+ case 'list':
+ break;
+ default:
- /**
- @brief save page groupe
- */
- case 'save_mutli':
- if(tep_not_null($gID) ){
+ $address_format_query = tep_db_query("select address_format_id, address_example from " . TABLE_ADDRESS_FORMAT . " order by address_format_id");
+ $address_format_array = array();
+ while ($address_format_values = tep_db_fetch_array($address_format_query)) {
+ $address_format_array[$address_format_values['address_format_id']] = $address_format_values['address_example'] ;
+ }
+// return $address_format_array;
- $list=sqlconfiguration::fetch(array('group_id'=> (int)$gID), true);
- if(is_object($list))
- $liste[]=$list;
- else
- $liste=$list;
- foreach($liste as $row) {
-
- if(isset($_POST['configuration'][$row->key])) {
- $configuration_value = tep_db_prepare_input($_POST['configuration'][$row->key]);
-
- if( ($res=sqlconfiguration::update(array('key'=>$row->key , 'value'=>tep_db_input($configuration_value) ))) == false)$erreur[]=false;
- else $erreur[]=true;
-
- }
-
- }
-
- if(!in_array(false,$erreur)) $messageStack->add_session(SAVE_CONFIG_OK, 'success');
- else $messageStack->add_session(SAVE_CONFIG_NOT_OK, 'error');
-
+ $countries_query_raw = "select countries_id, countries_name, countries_localname, countries_iso_code_2, countries_iso_code_3, address_format_id, country_visible from " . TABLE_COUNTRIES . " order by ".((isset($_GET['sort_by'])) ? $_GET['sort_by'] : 'countries_name ASC, country_visible DESC');
+ $countries_split = new splitPageResults($page, MAX_DISPLAY_ROW_BY_PAGE, $countries_query_raw, $countries_query_numrows);
+ $countries_query = tep_db_query($countries_query_raw);
+ $list_c=array();
+ while ($countries = tep_db_fetch_array($countries_query)) {
+ if ($cID == $countries['countries_id']) $cInfo = new objectInfo($countries);
+ $list_c[]=$countries;
}
- tep_redirect(tep_href_link(FILENAME_CONFIGURATION, 'gparentID=' . $gparentID.'&gID=' . $_GET['gID'] . '&cID=' . $cID));
- break;
+}
+ switch ($saction) {
+ case 'insert':
+ $zone_country_id = tep_db_prepare_input($_POST['zone_country_id']);
+ $zone_code = tep_db_prepare_input($_POST['zone_code']);
+ $zone_name = tep_db_prepare_input($_POST['zone_name']);
- case 'save_grp':
- $new_grp_id = tep_db_prepare_input($_POST['new_grp_id']);
- $cID = tep_db_prepare_input($_GET['cID']);
+ tep_db_query("insert into " . TABLE_ZONES . " (zone_country_id, zone_code, zone_name) values ('" . (int)$zone_country_id . "', '" . tep_db_input($zone_code) . "', '" . tep_db_input($zone_name) . "')");
- if( ($res=sqlconfiguration::update(array('id'=>(int)$cID , 'group_id'=>tep_db_input($new_grp_id) ))) == false)
- $messageStack->add_session(SAVE_CONFIG_NOT_OK, 'error');
- else
- $messageStack->add_session(SAVE_CONFIG_OK, 'success');
+ tep_redirect(tep_href_link(FILENAME_ZONES, 'page=' . $_GET['page'].'&row_by_page='.$row_by_page));
+ break;
+ case 'save':
+ $zone_id = tep_db_prepare_input($_GET['cID']);
+ $zone_country_id = tep_db_prepare_input($_POST['zone_country_id']);
+ $zone_code = tep_db_prepare_input($_POST['zone_code']);
+ $zone_name = tep_db_prepare_input($_POST['zone_name']);
- tep_redirect(tep_href_link(FILENAME_CONFIGURATION, 'gparentID=' . $gparentID.'&gID=' . $new_grp_id . '&cID=' . $cID));
- break;
+ tep_db_query("update " . TABLE_ZONES . " set zone_country_id = '" . (int)$zone_country_id . "', zone_code = '" . tep_db_input($zone_code) . "', zone_name = '" . tep_db_input($zone_name) . "' where zone_id = '" . (int)$zone_id . "'");
+ tep_redirect(tep_href_link(FILENAME_ZONES, 'page=' . $_GET['page'] . '&cID=' . $zone_id.'&row_by_page='.$row_by_page));
+ break;
+ case 'deleteconfirm':
+ $zone_id = tep_db_prepare_input($_GET['cID']);
- case 'delete_confirm':
+ tep_db_query("delete from " . TABLE_ZONES . " where zone_id = '" . (int)$zone_id . "'");
- if( ($res=sqlconfiguration::del...
[truncated message content] |
|
From: <os...@us...> - 2011-11-19 09:41:24
|
Revision: 3891
http://oscss.svn.sourceforge.net/oscss/?rev=3891&view=rev
Author: oscim
Date: 2011-11-19 09:41:18 +0000 (Sat, 19 Nov 2011)
Log Message:
-----------
AJout dans la table format d'une colonne exemple contenant un apercu de la mise en forme
Ajout dans les page countrie de l'affichage de cette mise en forme
Ajustement element installation
Correction et amelioration class customerUtility et ajout commentaire dans le code
Modified Paths:
--------------
trunk/catalog/admin/includes/classes/customerUtility.php
trunk/catalog/admin/includes/content/configuration.central.inc
trunk/catalog/admin/includes/template/oscss/stylesheet-1.css
trunk/catalog/install/includes/sql/mysql/data/20_osc_address_format.sql
trunk/catalog/install/includes/sql/mysql/tables/osc_address_format.sql
Modified: trunk/catalog/admin/includes/classes/customerUtility.php
===================================================================
--- trunk/catalog/admin/includes/classes/customerUtility.php 2011-11-19 08:47:50 UTC (rev 3890)
+++ trunk/catalog/admin/includes/classes/customerUtility.php 2011-11-19 09:41:18 UTC (rev 3891)
@@ -1,9 +1,10 @@
<?php if (!defined('HTTP_SERVER')) die('You can not access this file directly!');
/**
- @licence GPL 2005-2010 The osCSS developers - osCSS Open Source E-commerce
- @package oscss-2 <www http://www.oscss.org>
- @version 2.0.9
- @date 22/08/10, 09:26
+ @licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
+ @portion code Copyright (c) 2002 osCommerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.1.1
+ @date 18/11/11, 13:41
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
@class customerUtility
@@ -13,8 +14,8 @@
/**
- @author OscssTeam
- @version 1.6
+ @fn customers_name($customers_id)
+ @brief retrun name customers
@note Utilisé par des contrib !!!
*/
public static function customers_name($customers_id) {
@@ -26,9 +27,9 @@
/**
- Get list of address_format_id's
- @package oscss
- @author OscssTeam
+ @brief Get list of address_format_id's
+ @note specific for coutry chosse format adresse
+ @return array(array('id'=>'','value'=>''))
*/
public static function get_address_formats() {
$address_format_query = tep_db_query("select address_format_id from " . TABLE_ADDRESS_FORMAT . " order by address_format_id");
@@ -41,44 +42,78 @@
}
/**
- @package oscss
- @author OscssTeam
- @note Constructeur l'adrresse (facturation, livrairson)
+ @fn address_format($address_format_id, $address, $html, $boln, $eoln)
+ @brief Constructeur l'adrresse (facturation, livrairson)
+ @param $address_format_id int id format
+ @param $address array content adresse book detail
+ array(
+ [company]
+ firstname
+ lastname
+ // or
+ [name]
+ street_address
+ suburb
+ city
+ state
+
+ country_id
+ zone_id
+
+ // or
+ [country]
+
+ postcode
+ )
+ @param $html (bool)
+ @param $boln
+ @param $eoln
*/
public static function address_format($address_format_id, $address, $html, $boln, $eoln) {
+
+ if(!is_array($address) && !is_object($address) )
+ return false;
+
+ /// get format adresse modele
$address_format_query = tep_db_query("select address_format as format from " . TABLE_ADDRESS_FORMAT . " where address_format_id = '" . (int)$address_format_id . "'");
$address_format = tep_db_fetch_array($address_format_query);
- $company = tep_output_string_protected($address['company']);
- if (isset($address['firstname']) && tep_not_null($address['firstname'])) {
- $firstname = tep_output_string_protected($address['firstname']);
- $lastname = tep_output_string_protected($address['lastname']);
- } elseif (isset($address['name']) && tep_not_null($address['name'])) {
- $firstname = tep_output_string_protected($address['name']);
+ if(is_array($address) && count($address)>0 )
+ $objad = new objectInfo($address);
+ elseif(is_object($address))
+ $objad = $address;
+
+ $company = ( (_cst_bool('ACCOUNT_COMPANY')) ? tep_output_string_protected($objad->company) : '' );
+
+ if (isset($objad->firstname) && tep_not_null($objad->firstname)) {
+ $firstname = tep_output_string_protected($objad->firstname);
+ $lastname = tep_output_string_protected($objad->lastname);
+ } elseif (isset($objad->name) && tep_not_null($objad->name)) {
+ $firstname = tep_output_string_protected($objad->name);
$lastname = '';
} else {
$firstname = '';
$lastname = '';
}
- $street = tep_output_string_protected($address['street_address']);
- $suburb = tep_output_string_protected($address['suburb']);
- $city = tep_output_string_protected($address['city']);
- $state = tep_output_string_protected($address['state']);
- if (isset($address['country_id']) && tep_not_null($address['country_id'])) {
- $country = tep_get_country_name($address['country_id']);
+ $street = tep_output_string_protected($objad->street_address);
+ $suburb = tep_output_string_protected($objad->suburb);
+ $city = tep_output_string_protected($objad->city);
+ $state = tep_output_string_protected($objad->state);
+ if (isset($objad->country_id) && tep_not_null($objad->country_id)) {
+ $country = tep_get_country_name($objad->country_id);
- if (isset($address['zone_id']) && tep_not_null($address['zone_id'])) {
- $state = tep_get_zone_code($address['country_id'], $address['zone_id'], $state);
+ if (isset($objad->zone_id) && tep_not_null($objad->zone_id)) {
+ $state = tep_get_zone_code($objad->country_id, $objad->zone_id, $state);
}
- } elseif (isset($address['country']) && tep_not_null($address['country'])) {
- $country = tep_output_string_protected($address['country']);
+ } elseif (isset($objad->country) && tep_not_null($objad->country)) {
+ $country = tep_output_string_protected($objad->country);
} else {
$country = '';
}
- $postcode = tep_output_string_protected($address['postcode']);
+ $postcode = tep_output_string_protected($objad->postcode);
$zip = $postcode;
- if ($html) {
+ if ($html==1) {
// HTML Mode
$HR = '<hr>';
$hr = '<hr>';
@@ -90,7 +125,8 @@
$CR = $eoln . $boln;
$cr = $CR;
}
- } else {
+ }
+ else {
// Text Mode
$CR = $eoln;
$cr = $CR;
@@ -101,13 +137,13 @@
$statecomma = '';
$streets = $street;
if ($suburb != '') $streets = $street . $cr . $suburb;
- if ($country == '') $country = tep_output_string_protected($address['country']);
+ if ($country == '') $country = tep_output_string_protected($objad->country);
if ($state != '') $statecomma = $state . ', ';
$fmt = $address_format['format'];
eval("\$address = \"$fmt\";");
- if ( (_cst_bool('ACCOUNT_COMPANY')) && (tep_not_null($company)) ) {
+ if ( (tep_not_null($company)) ) {
$address = $company . $cr . $address;
}
@@ -117,8 +153,8 @@
/**
@author oscim <mail os...@os...> <www http://www.oscim.fr>
- @version 1.2
- @note Fournis un standard d'action pour la colonne client
+ @brief Fournis un standard d'action pour la colonne client
+ @param $customers_id
@param array $opt
origin string :: href de la page appelante
format string for printf :: format de sortie
Modified: trunk/catalog/admin/includes/content/configuration.central.inc
===================================================================
--- trunk/catalog/admin/includes/content/configuration.central.inc 2011-11-19 08:47:50 UTC (rev 3890)
+++ trunk/catalog/admin/includes/content/configuration.central.inc 2011-11-19 09:41:18 UTC (rev 3891)
@@ -1,11 +1,12 @@
<?php
/**
- @licence GPL 2005-2009 The osCSS developers - osCSS Open Source E-commerce
- @package oscss-2 <www http://www.oscss.org>
- @version Rc-3
- @date 07/04/10, 22:11
+ @licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
+ @portion code Copyright (c) 2002 osCommerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.1.1
+ @date 19/11/11, 10:38
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
- @encode UTF-8
+ @encode UTF-8
*/
?>
<!-- body //-->
Modified: trunk/catalog/admin/includes/template/oscss/stylesheet-1.css
===================================================================
--- trunk/catalog/admin/includes/template/oscss/stylesheet-1.css 2011-11-19 08:47:50 UTC (rev 3890)
+++ trunk/catalog/admin/includes/template/oscss/stylesheet-1.css 2011-11-19 09:41:18 UTC (rev 3891)
@@ -448,6 +448,10 @@
#salesStats .BarGraph li.p0{margin:0 0 -3px 16px;color:#FFF;}
+ /* Adress */
+ .ViewAddress {padding:5px; }
+
+
/* Widget */
#customerStats ul{min-height:70px; background:transparent url(img/1/header_stats.png) no-repeat bottom right;}
#orderStats ul{min-height:70px;background:transparent url(img/1/header_orders.png) no-repeat bottom right;}
Modified: trunk/catalog/install/includes/sql/mysql/data/20_osc_address_format.sql
===================================================================
--- trunk/catalog/install/includes/sql/mysql/data/20_osc_address_format.sql 2011-11-19 08:47:50 UTC (rev 3890)
+++ trunk/catalog/install/includes/sql/mysql/data/20_osc_address_format.sql 2011-11-19 09:41:18 UTC (rev 3891)
@@ -11,11 +11,9 @@
--| http://www.oscss.org/ |
--+######################################################################--+
-insert into osc_address_format (address_format_id, address_format, address_summary) values ('1', '$firstname $lastname$cr$streets$cr$city, $postcode$cr$statecomma$country', '$city / $country');
-insert into osc_address_format (address_format_id, address_format, address_summary) values ('2', '$firstname $lastname$cr$streets$cr$city, $state $postcode$cr$country', '$city, $state / $country');
-insert into osc_address_format (address_format_id, address_format, address_summary) values ('3', '$firstname $lastname$cr$streets$cr$city$cr$postcode - $statecomma$country', '$state / $country');
-insert into osc_address_format (address_format_id, address_format, address_summary) values ('4', '$firstname $lastname$cr$streets$cr$city ($postcode)$cr$country', '$postcode / $country');
-insert into osc_address_format (address_format_id, address_format, address_summary) values ('5', '$firstname $lastname$cr$streets$cr$postcode $city$cr$country', '$city / $country');
-
-
+INSERT INTO osc_address_format (address_format_id, address_format, address_summary, address_example) VALUES(1, '$firstname $lastname$cr$streets$cr$city, $postcode$cr$statecomma$country', '$city / $country', 'Jean-Claude Duce \\n Rue des Bronzés \\n Paris, 75000 FR, \\n France');
+INSERT INTO osc_address_format (address_format_id, address_format, address_summary, address_example) VALUES(2, '$firstname $lastname$cr$streets$cr$city, $state $postcode$cr$country', '$city, $state / $country', 'Jean-Claude Duce Rue des Bronzés Paris, FR 75000 France');
+INSERT INTO osc_address_format (address_format_id, address_format, address_summary, address_example) VALUES(3, '$firstname $lastname$cr$streets$cr$city$cr$postcode - $statecomma$country', '$state / $country', 'Jean-Claude Duce Rue des Bronzés Paris 75000 - FR, France');
+INSERT INTO osc_address_format (address_format_id, address_format, address_summary, address_example) VALUES(4, '$firstname $lastname$cr$streets$cr$city ($postcode)$cr$country', '$postcode / $country', 'Jean-Claude Duce Rue des Bronzés Paris (75000) France');
+INSERT INTO osc_address_format (address_format_id, address_format, address_summary, address_example) VALUES(5, '$firstname $lastname$cr$streets$cr$postcode $city$cr$country', '$city / $country', 'Jean-Claude Duce \\n Rue des Bronzés \\n 75000 Paris \\n France');
Modified: trunk/catalog/install/includes/sql/mysql/tables/osc_address_format.sql
===================================================================
--- trunk/catalog/install/includes/sql/mysql/tables/osc_address_format.sql 2011-11-19 08:47:50 UTC (rev 3890)
+++ trunk/catalog/install/includes/sql/mysql/tables/osc_address_format.sql 2011-11-19 09:41:18 UTC (rev 3891)
@@ -16,6 +16,7 @@
address_format_id int(11) NOT NULL auto_increment,
address_format varchar(128) NOT NULL default '',
address_summary varchar(48) NOT NULL default '',
+ address_example varchar(250) NOT NULL,
PRIMARY KEY (address_format_id)
) DEFAULT CHARSET=utf8;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <os...@us...> - 2011-11-21 08:33:12
|
Revision: 3909
http://oscss.svn.sourceforge.net/oscss/?rev=3909&view=rev
Author: oscim
Date: 2011-11-21 08:33:02 +0000 (Mon, 21 Nov 2011)
Log Message:
-----------
pettite coquille et erreur lors commit precedent
Modified Paths:
--------------
trunk/catalog/admin/includes/content/configuration.central.inc
trunk/catalog/admin/includes/content/configuration.top.inc
trunk/catalog/admin/includes/content/countries.central.inc
trunk/catalog/admin/includes/content/countries.top.inc
trunk/catalog/admin/includes/languages/fr_FR/modules/pages/orders.txt
trunk/catalog/includes/functions/general.php
trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/cfg/init.php
trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql
Modified: trunk/catalog/admin/includes/content/configuration.central.inc
===================================================================
--- trunk/catalog/admin/includes/content/configuration.central.inc 2011-11-20 22:16:57 UTC (rev 3908)
+++ trunk/catalog/admin/includes/content/configuration.central.inc 2011-11-21 08:33:02 UTC (rev 3909)
@@ -4,225 +4,56 @@
@portion code Copyright (c) 2002 osCommerce
@package osCSS-2 <www http://www.oscss.org>
@version 2.1.1
- @date 19/11/11, 10:38
+ @date 22/09/11, 22:00
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
+ @brief content for pages configuration
*/
?>
<!-- body //-->
-<?php if($action=='list') { ?>
-<h3><?php echo HEADING_TITLE; ?></h3>
-<h4><?php echo HEADING_TITLE_COUNTRY_ZONE; ?></h4>
- <div class="button_nav">
- <?php echo '<a class="button" href="' . tep_href_link(FILENAME_COUNTRIES, tep_get_all_get_params(array('page_admin')) . 'saction=new') . '">' . tep_image(DIR_WS_ICONS . 'icon_add_new.png',IMAGE_INSERT) . IMAGE_NEW_ZONE . '</a>'; ?>
- <?php echo '<a class="button" href="' . tep_href_link(FILENAME_COUNTRIES, tep_get_all_get_params(array('rID','action','saction'))) . '">' . IMAGE_BACK . '</a>'; ?>
- </div>
-<div class="box_left">
- <table width="100%" class="dataTable">
- <thead>
- <tr>
- <th><?php echo TABLE_HEADING_COUNTRY_NAME.tep_link_sort_by(FILENAME_COUNTRIES,'c.countries_name'); ?></th>
- <th><?php echo TABLE_HEADING_ZONE_NAME.tep_link_sort_by(FILENAME_COUNTRIES,'z.zone_name'); ?></th>
- <th class="tcenter"><?php echo TABLE_HEADING_ZONE_CODE.tep_link_sort_by(FILENAME_COUNTRIES,'z.zone_code'); ?></th>
- <th class="tright" style="width:100px"><?php echo TABLE_HEADING_ACTION; ?></th>
- </tr>
- </thead>
- <tfoot>
- <tr>
- <td><?php echo $zones_split->display_count($zones_query_numrows, MAX_DISPLAY_ROW_BY_PAGE, $page, TEXT_DISPLAY_NUMBER_OF_ZONES); ?></td>
- <td><?php echo row_by_page(FILENAME_COUNTRIES, $row_bypage_array, $row_by_page, "fleft"); ?></td>
- <td colspan="2"><?php echo $zones_split->display_links($zones_query_numrows, MAX_DISPLAY_ROW_BY_PAGE, MAX_DISPLAY_PAGE_LINKS, $page,tep_get_all_get_params(array('page', 'oID'))); ?></td>
- </tr>
- </tfoot>
- <tbody>
- <?php foreach($list_z as $zones) { ?>
- <tr class="view parent dataTableRow <?php if(( $rID ==$zones['zone_id'])) echo 'Selected' ?>" >
- <td><?php echo $zones['countries_name']; ?></td>
- <td><?php echo $zones['zone_name']; ?></td>
- <td class="tcenter"><?php echo $zones['zone_code']; ?></td>
- <td>
- <span class="view fils fleft">
- <?php echo '<a class="buttonimg" href="' . tep_href_link(FILENAME_COUNTRIES, tep_get_all_get_params(array('page','rID')) .'rID=' . $zones['zone_id']. '&saction=edit') . '">' . tep_image(DIR_WS_ICONS . 'icon_edit.png',IMAGE_EDIT ) . '</a> <a class="buttonimg" href="' . tep_href_link(FILENAME_COUNTRIES, tep_get_all_get_params(array('page','rID')). 'rID=' . $zones['zone_id'] . '&saction=delete') . '">' . tep_image(DIR_WS_ICONS . 'icon_delete.png',IMAGE_DELETE ) . '</a>';
- ?>
- </span>
- <span class="fright">
- <?php if (isset($cInfo) && is_object($cInfo) && ($zones['zone_id'] == $cInfo->zone_id) ) { echo tep_image(DIR_WS_ICONS . 'icon_arrow_right.gif', ''); } else { echo '<a href="' . tep_href_link(FILENAME_COUNTRIES,tep_get_all_get_params(array('page','rID')). 'rID=' . $zones['zone_id']) . '">' . tep_image(DIR_WS_ICONS . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>'; } ?>
- </span>
- </td>
- </tr>
- <?php } ?>
- </tbody>
- </table>
-</div>
+<br style="clear:both" />
+<!-- body_text //-->
+<?php if( isset($mID) ): ?>
-<?php } else { ?>
-<h3><?php echo HEADING_TITLE; ?></h3>
-<h4><?php echo HEADING_TITLE_COUNTRY; ?></h4>
- <div class="button_nav">
- <?php echo '<a class="button" href="' . tep_href_link(FILENAME_COUNTRIES,tep_get_all_get_params(array('page_admin')). 'action=new') . '">' . tep_image(DIR_WS_ICONS.'icon_add_new.png' , IMAGE_NEW_COUNTRY) . IMAGE_NEW_COUNTRY . '</a>'; ?>
- </div>
-<div class="box_uniq">
- <div class="box_left">
- <table width="100%" class="dataTable">
- <thead>
- <tr>
- <th><?php echo TABLE_HEADING_COUNTRY_NAME.tep_link_sort_by(FILENAME_COUNTRIES,'countries_name'); ?></th>
- <th><?php echo TABLE_HEADING_COUNTRY_LOCALNAME.tep_link_sort_by(FILENAME_COUNTRIES,'countries_localname' ); ?></th>
- <th style="width:40px"><?php echo TABLE_HEADING_COUNTRY_CODE_2.tep_link_sort_by(FILENAME_COUNTRIES,'countries_iso_code_2'); ?></th>
- <th style="width:40px"><?php echo TABLE_HEADING_COUNTRY_CODE_3.tep_link_sort_by(FILENAME_COUNTRIES,'countries_iso_code_3'); ?></th>
- <th><?php echo TABLE_HEADING_COUNTRY_VISIBLE.tep_link_sort_by(FILENAME_COUNTRIES,'country_visible'); ?></th>
- <th class="tright" style="width:100px"><?php echo TABLE_HEADING_ACTION; ?></th>
- </tr>
- </thead>
- <tfoot>
- <tr>
- <td colspan="1"><?php echo $countries_split->display_count($countries_query_numrows, MAX_DISPLAY_ROW_BY_PAGE, $page, TEXT_DISPLAY_NUMBER_OF_COUNTRIES); ?></td>
- <td colspan="3"><?php echo row_by_page(FILENAME_COUNTRIES, $row_bypage_array, $row_by_page, "fleft"); ?></td>
- <td colspan="2"><?php echo $countries_split->display_links($countries_query_numrows, MAX_DISPLAY_ROW_BY_PAGE, MAX_DISPLAY_PAGE_LINKS,$page, tep_get_all_get_params(array('page_admin','page','cID'))); ?></td>
- </tr>
- </tfoot>
- <tbody>
- <?php foreach($list_c as $countries) { ?>
- <tr class="view parent dataTableRow <?php if(isset($cID) && $cID==$countries['countries_id']) echo 'Selected' ?>">
- <td class="tleft"><?php echo $countries['countries_name']; ?></td>
- <td class="tleft"><?php echo $countries['countries_localname']; ?></td>
- <td class="tcenter"><?php echo $countries['countries_iso_code_2']; ?></td>
- <td class="tcenter"><?php echo $countries['countries_iso_code_3']; ?></td>
- <td class="tcenter">
- <?php if ($countries['country_visible'] == '1') echo tep_image(DIR_WS_ICONS . 'icon_status_green.gif', IMAGE_ICON_STATUS_GREEN) . ' <a href="' . tep_href_link(FILENAME_COUNTRIES, 'action=update&country_visible=0&cID=' . $countries['countries_id'] . '&page=' . $page) . '">' . tep_image(DIR_WS_ICONS . 'icon_status_red_light.gif', IMAGE_ICON_STATUS_RED_LIGHT) . '</a>';
- else echo '<a href="' . tep_href_link(FILENAME_COUNTRIES, 'action=update&country_visible=1&cID=' . $countries['countries_id'] . '&page=' . $page) . '">' . tep_image(DIR_WS_ICONS . 'icon_status_green_light.gif', IMAGE_ICON_STATUS_GREEN_LIGHT) . '</a> ' . tep_image(DIR_WS_ICONS . 'icon_status_red.gif', IMAGE_ICON_STATUS_RED); ?>
- </td>
- <td class="row_action">
- <span class="view fils fleft">
- <?php
- echo '<a href="' . tep_href_link(FILENAME_COUNTRIES, tep_get_all_get_params(array('action','cID')).'cID=' .$countries['countries_id'] . '&action=list') . '">' . tep_image(DIR_WS_ICONS . 'icon_plus.gif', ICON_FOLDER) . '</a>';
- echo '<a class="buttonimg" href="' . tep_href_link(FILENAME_COUNTRIES, 'page=' . $page . '&cID=' . $countries['countries_id'] . '&row_by_page='.$row_by_page.'&action=edit') . '">' . tep_image(DIR_WS_ICONS . 'icon_edit.png',IMAGE_EDIT ) . '</a> <a class="buttonimg" href="' . tep_href_link(FILENAME_COUNTRIES, 'page=' . $page . '&cID=' . $countries['countries_id'] .'&row_by_page='.$row_by_page. '&action=delete') . '">' . tep_image(DIR_WS_ICONS . 'icon_delete.png',IMAGE_DELETE ) . '</a> ';
- ?>
- </span>
- <span class="fright">
- <?php if (isset($cInfo) && is_object($cInfo) && ($countries['countries_id'] == $cInfo->countries_id) ) { echo tep_image(DIR_WS_ICONS . 'icon_arrow_right.gif', ''); }
- else { echo '<a href="' . tep_href_link(FILENAME_COUNTRIES, 'page=' . $page . '&cID=' . $countries['countries_id'].'&row_by_page='.$row_by_page) . '">' . tep_image(DIR_WS_ICONS . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>'; } ?>
- </span>
- </td>
- </tr>
- <?php } ?>
- </tbody>
- </table>
- </div>
-<?php } ?>
-<?php
- $heading = array();
- $contents = array();
+ <?php echo $cfg->draw(); ?>
-if($action=='list'){
- switch ($saction) {
- case 'new':
- $heading[] = array('text' => TEXT_INFO_HEADING_NEW_ZONE );
- $contents = array('form' => tep_draw_form('zones', FILENAME_COUNTRIES, tep_get_all_get_params(array('saction')).'saction=insert'));
- $contents[] = array('text' => TEXT_INFO_INSERT_INTRO);
- $contents[] = array('class' => 'block_input', 'text' => TEXT_INFO_ZONES_NAME . tep_draw_input_field('zone_name'));
- $contents[] = array('class' => 'block_input', 'text' => TEXT_INFO_ZONES_CODE . tep_draw_input_field('zone_code'));
- $contents[] = array('class' => 'block_input', 'text' => TEXT_INFO_COUNTRY_NAME . tep_draw_pull_down_menu('zone_country_id', tep_get_countries(), $cID));
- $contents[] = array('class' => 'button_nav', 'text' => tep_image_submit('button_insert.gif', IMAGE_INSERT) . ' <a class="button" href="' . tep_href_link(FILENAME_COUNTRIES, tep_get_all_get_params(array('page_admin','saction')) ) . '">' . IMAGE_CANCEL . '</a>');
- break;
- case 'edit':
- $heading[] = array('text' => TEXT_INFO_HEADING_EDIT_ZONE );
- $contents = array('form' => tep_draw_form('zones', FILENAME_COUNTRIES, tep_get_all_get_params(array('saction','rID')).'rID=' . $cInfo->zone_id.'&saction=save'));
- $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
- $contents[] = array('class' => 'block_input', 'text' => TEXT_INFO_ZONES_NAME . tep_draw_input_field('zone_name','', $cInfo->zone_name));
- $contents[] = array('class' => 'block_input', 'text' => TEXT_INFO_ZONES_CODE . tep_draw_input_field('zone_code','', $cInfo->zone_code));
- $contents[] = array('class' => 'block_input', 'text' => TEXT_INFO_COUNTRY_NAME . tep_draw_pull_down_menu('zone_country_id', tep_get_countries(), $cInfo->countries_id));
- $contents[] = array('class' => 'button_nav', 'text' => tep_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a class="button" href="' . tep_href_link(FILENAME_COUNTRIES, tep_get_all_get_params(array('saction')).'rID=' . $cInfo->zone_id) . '">' . IMAGE_CANCEL . '</a>');
- break;
- case 'delete':
- $heading[] = array('text' => TEXT_INFO_HEADING_DELETE_ZONE );
- $contents = array('form' => tep_draw_form('zones', FILENAME_COUNTRIES, tep_get_all_get_params(array('saction','rID')).'rID=' . $cInfo->zone_id.'&action=deleteconfirm'));
- $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
- $contents[] = array('text' => '<strong>' . $cInfo->zone_name . '</strong>');
- $contents[] = array('class' => 'button_nav', 'text' => tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a class="button" href="' . tep_href_link(FILENAME_COUNTRIES, tep_get_all_get_params(array('saction','rID')).'rID=' . $cInfo->zone_id) . '">' . IMAGE_CANCEL . '</a>');
- break;
- default:
- if (isset($cInfo) && is_object($cInfo)) {
- $heading[] = array('text' => $cInfo->zone_name);
- $contents[] = array('text' => TEXT_INFO_ZONES_NAME . $cInfo->zone_name . ' (' . $cInfo->zone_code . ')');
- $contents[] = array('text' => TEXT_INFO_COUNTRY_NAME . $cInfo->countries_name);
- }
-// break;
- }
-}else {
+<?php elseif($action=='' && tep_not_null($gID) && is_numeric($gID) ): ?>
- if (isset($cInfo) && is_object($cInfo) && ($countries['countries_id'] == $cInfo->countries_id) ){
- $country_visible = ($cInfo->country_visible == '1') ? VISIBLE_YES : VISIBLE_NO;
- $country_visible_Y = ($cInfo->country_visible == '1') ? true : false;
- $country_visible_N = ($cInfo->country_visible == '0') ? true : false;
- } else {
- $country_visible = VISIBLE_YES ;
- $country_visible_Y = true ;
- $country_visible_N = false;
- }
+<div id="ssmenu">
+ <?php echo tep_ssmenu_configuration($gparentID); ?>
+</div>
- switch ($action) {
- case 'new':
- $heading[] = array('text' => TEXT_INFO_HEADING_NEW_COUNTRY );
- $contents = array('form' => tep_draw_form('countries', FILENAME_COUNTRIES, 'page=' . $page .'&row_by_page='.$row_by_page. '&action=insert'));
- $contents[] = array('text' => TEXT_INFO_INSERT_INTRO);
- $contents[] = array('class' => 'block_input','text' => TEXT_INFO_COUNTRY_NAME . tep_draw_input_field('countries_name'));
- $contents[] = array('class' => 'block_input','text' => TEXT_INFO_COUNTRY_LOCALNAME . tep_draw_input_field('countries_localname'));
- $contents[] = array('class' => 'block_input','text' => TEXT_INFO_COUNTRY_CODE_2 . tep_draw_input_field('countries_iso_code_2'));
- $contents[] = array('class' => 'block_input','text' => TEXT_INFO_COUNTRY_CODE_3 . tep_draw_input_field('countries_iso_code_3'));
- $contents[] = array('class' => 'block_input','text' => TEXT_INFO_ADDRESS_FORMAT . tep_draw_pull_down_menu('address_format_id', tep_get_address_formats()));
- $contents[] = array('class' => 'block_input','text' => TEXT_INFO_COUNTRY_VISIBLE . tep_draw_radio_field('country_visible', 'country_visible_1', '1', $country_visible_Y) . ' ' . VISIBLE_YES . ' ' . tep_draw_radio_field('country_visible', 'country_visible_0', '0', $country_visible_N) . ' ' . VISIBLE_NO);
- $contents[] = array('class' => 'button_nav', 'text' => tep_image_submit('button_insert.gif', IMAGE_INSERT) . ' <a class="button" href="' . tep_href_link(FILENAME_COUNTRIES, tep_get_all_get_params(array('page_admin', 'action'))) . '">' . IMAGE_CANCEL . '</a>');
- break;
- case 'edit':
- $heading[] = array('text' => TEXT_INFO_HEADING_EDIT_COUNTRY );
- $contents = array('form' => tep_draw_form('countries', FILENAME_COUNTRIES, 'page=' . $page . '&cID=' . $cInfo->countries_id .'&row_by_page='.$row_by_page. '&action=save'));
- $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
- $contents[] = array('class' => 'block_input','text' => TEXT_INFO_COUNTRY_NAME . tep_draw_input_field('countries_name', '', $cInfo->countries_name));
- $contents[] = array('class' => 'block_input','text' => TEXT_INFO_COUNTRY_LOCALNAME . tep_draw_input_field('countries_localname', '', $cInfo->countries_localname));
- $contents[] = array('class' => 'block_input','text' => TEXT_INFO_COUNTRY_CODE_2 . tep_draw_input_field('countries_iso_code_2', '', $cInfo->countries_iso_code_2));
- $contents[] = array('class' => 'block_input','text' => TEXT_INFO_COUNTRY_CODE_3 . tep_draw_input_field('countries_iso_code_3', '', $cInfo->countries_iso_code_3));
- $contents[] = array('class' => 'block_input','text' => TEXT_INFO_ADDRESS_FORMAT . tep_draw_pull_down_menu('address_format_id', tep_get_address_formats(), $cInfo->address_format_id));
- $contents[] = array('class' => 'block_input','text' => TEXT_INFO_COUNTRY_VISIBLE . tep_draw_radio_field('country_visible', 'country_visible_1', '1', $country_visible_Y) . ' ' . VISIBLE_YES . ' ' . tep_draw_radio_field('country_visible', 'country_visible_0', '0', $country_visible_N) . ' ' . VISIBLE_NO);
- $contents[] = array('class' => 'button_nav','text' => tep_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a class="button" href="' . tep_href_link(FILENAME_COUNTRIES, 'page=' . $page . '&cID=' . $cInfo->countries_id .'&row_by_page='.$row_by_page) . '">' . IMAGE_CANCEL . '</a>');
- break;
- case 'delete':
- $heading[] = array('text' => TEXT_INFO_HEADING_DELETE_COUNTRY );
- $contents = array('form' => tep_draw_form('countries', FILENAME_COUNTRIES, 'page=' . $page . '&cID=' . $cInfo->countries_id .'&row_by_page='.$row_by_page. '&action=deleteconfirm'));
- $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
- $contents[] = array('text' => '<strong>' . $cInfo->countries_name . '</strong>');
- $contents[] = array('class' => 'button_nav','text' => tep_image_submit('button_delete.gif', IMAGE_UPDATE) . ' <a class="button" href="' . tep_href_link(FILENAME_COUNTRIES, 'page=' . $page . '&cID=' . $cInfo->countries_id) . '">' . IMAGE_CANCEL . '</a>');
- break;
+<h3 class="main-title"><?php echo tep_cst_menu_conf($cfg_group['configuration_group_title']); ?></h3>
+<h4><?php echo tep_cst_menu_conf('TITLE_'.$cfg_group['configuration_group_title']); ?></h4>
- default:
- if (isset($cInfo) && is_object($cInfo)) {
- $heading[] = array('text' => $cInfo->countries_name );
- $contents[] = array('text' => TEXT_INFO_COUNTRY_NAME . $cInfo->countries_name);
- $contents[] = array('text' => TEXT_INFO_COUNTRY_LOCALNAME . $cInfo->countries_localname);
- $contents[] = array('text' => TEXT_INFO_COUNTRY_CODE_2 . $cInfo->countries_iso_code_2);
- $contents[] = array('text' => TEXT_INFO_COUNTRY_CODE_3 . $cInfo->countries_iso_code_3);
- $contents[] = array('text' => TEXT_INFO_ADDRESS_FORMAT . $cInfo->address_format_id .
-'<br />'.
-'<div class="ViewAddress ViewAddress-format">'.
-str_replace('\n','<br />',$address_format_array[$cInfo->address_format_id]).
-'</div>'
-);
+ <?php echo tep_draw_form('configuration', FILENAME_CONFIGURATION, 'gparentID=' . $gparentID.'&gID=' . $gID . '&action=save_mutli') ?>
+ <div class="box_left">
+ <ul class="block_form">
+ <?php foreach($list_edit as $row) { ?>
+ <li id="nav_<?php echo $row->key ?>"><h5 title="<?php echo '('.$row->key.' - ' . $row->set . ')'; ?>"><?php echo __($row->title). tep_image(DIR_WS_ICONS . 'icon_help.gif'); ?></h5>
- $contents[] = array('text' => TEXT_INFO_COUNTRY_VISIBLE . $country_visible);
- }
- break;
- }
- }
-?>
-<div class="box_right">
-<?php
- if ( (tep_not_null($heading)) && (tep_not_null($contents)) ) {
- $box = new box;
- echo $box->infoBox($heading, $contents);
- }
-?>
-</div>
-</div>
\ No newline at end of file
+ <div class="block_input tirroir">
+ <label><?php if (tep_not_null(__($row->description)))echo __($row->description); ?></label>
+ <p>
+ <?php echo $row->value_field ; ?>
+ </p>
+ </div>
+ </li>
+ <?php } ?>
+ </ul>
+ </div>
+ <div class="box_right">
+ <ul>
+ <div class="button_nav">
+ <?php print tep_image_submit('button_copy.gif', IMAGE_UPDATE) .tep_js_back(tep_href_link(FILENAME_CONFIGURATION, 'gparentID=' . $gparentID.'&gID=' . $gID )) ; ?>
+ </div>
+ </li>
+ </ul>
+ </div>
+ </form>
+<?php endif; ?>
+<!-- body_text_eof //-->
+<!-- body_eof //-->
\ No newline at end of file
Modified: trunk/catalog/admin/includes/content/configuration.top.inc
===================================================================
--- trunk/catalog/admin/includes/content/configuration.top.inc 2011-11-20 22:16:57 UTC (rev 3908)
+++ trunk/catalog/admin/includes/content/configuration.top.inc 2011-11-21 08:33:02 UTC (rev 3909)
@@ -1,125 +1,169 @@
<?php
/**
- @licence GPL 2005-2009 The osCSS developers - osCSS Open Source E-commerce
- @package oscss-2 <www http://www.oscss.org>
- @version Rc-3
- @date 08/04/10, 22:41
+ @licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
+ @portion code Copyright (c) 2002 osCommerce
+ @package osCSS-2 <www http://www.oscss.org>
+ @version 2.1.1
+ @date 22/09/11, 22:00
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
- @encode UTF-8
+ @encode UTF-8
+ @brief generic page for configuration in confuguration_table
+ This page is replaced by module type configuration if exists
+ For replace this page by module configurtaion type, name new module cfg_xx, and xx is gID (configuration_group_id)
*/
- $rID=(isset($_GET['rID'])) ? $_GET['rID'] : '';
- $cID=(isset($_GET['cID'])) ? $_GET['cID'] : '';
- $saction=(isset($_GET['saction'])) ? $_GET['saction'] : '';
+ // clef de groupe (configuration_group_id)
+ $gID = (isset($_GET['gID'])) ? $_GET['gID'] : 1;
+ // groupe parent
+ $gparentID = (isset($_GET['gparentID'])) ? $_GET['gparentID'] : 0;
- switch ($action) {
- case 'insert':
- $countries_name = tep_db_prepare_input($_POST['countries_name']);
- $countries_localname = tep_db_prepare_input($_POST['countries_localname']);
- $countries_iso_code_2 = tep_db_prepare_input($_POST['countries_iso_code_2']);
- $countries_iso_code_3 = tep_db_prepare_input($_POST['countries_iso_code_3']);
- $address_format_id = tep_db_prepare_input($_POST['address_format_id']);
- $country_visible = tep_db_prepare_input($_POST['country_visible']);
+ /**
+ @remarks Adjust name child module
+ Old : cfg_21 >> 21 == configuration_group_id
+ New : template >> [cg_]template == configuration_group_key
+ */
- tep_db_query("insert into " . TABLE_COUNTRIES . " (countries_name, countries_localname, countries_iso_code_2, countries_iso_code_3, address_format_id, country_visible) values ('" . tep_db_input($countries_name) . "', '" . tep_db_input($countries_localname) . "', '" . tep_db_input($countries_iso_code_2) . "', '" . tep_db_input($countries_iso_code_3) . "', '" . (int)$address_format_id . "', '" . (int)$country_visible . "')");
+ if(file_exists(DIR_WS_MODULES.'configuration/cfg_'.$gID.'.php'))
+ $class='cfg_'.$gID;
+ else {
+ $_query = tep_db_query("SELECT configuration_group_key AS childmodule FROM " . TABLE_CONFIGURATION_GROUP . " WHERE configuration_group_id = '" . (int)$gID . "' ORDER BY sort_order");
+ $conf = tep_db_fetch_array($_query);
- tep_redirect(tep_href_link(FILENAME_COUNTRIES));
- break;
+ $class= trim(strtolower($conf['childmodule']));
- case 'update':
- $countries_id = tep_db_prepare_input($_GET['cID']);
- $country_visible = tep_db_prepare_input($_GET['country_visible']);
+ if(substr($class,0,3) =='cg_') $class = substr($class,3);
+ }
- tep_db_query("update " . TABLE_COUNTRIES . " set country_visible = '" . (int)$country_visible . "' where countries_id = '" . (int)$countries_id . "'");
+ /**
+ @remarks Call child modules configuration in /modules/configuration folder
+ */
- tep_redirect(tep_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $countries_id.'&row_by_page='.$row_by_page));
- break;
+ if(file_exists(DIR_WS_MODULES.'configuration/'.$class.'.php') && !class_exists($class)) {
+ require(DIR_WS_MODULES.'configuration/'.$class.'.php');
+ // module key precis
+ $mID=$gID;
+ $cfg =new $class();
+ }
+ else {
+ $oscss->pile_file_lang(DIR_FS_ADMIN.DIR_WS_LANGUAGES.$language.'/modules/configuration/cfg_'.$gID.'.txt');
+ }
- case 'save':
- $countries_id = tep_db_prepare_input($_GET['cID']);
- $countries_name = tep_db_prepare_input($_POST['countries_name']);
- $countries_localname = tep_db_prepare_input($_POST['countries_localname']);
- $countries_iso_code_2 = tep_db_prepare_input($_POST['countries_iso_code_2']);
- $countries_iso_code_3 = tep_db_prepare_input($_POST['countries_iso_code_3']);
- $address_format_id = tep_db_prepare_input($_POST['address_format_id']);
- $country_visible = tep_db_prepare_input($_POST['country_visible']);
- tep_db_query("update " . TABLE_COUNTRIES . " set countries_name = '" . tep_db_input($countries_name) . "', countries_localname = '" . tep_db_input($countries_localname) . "', countries_iso_code_2 = '" . tep_db_input($countries_iso_code_2) . "', countries_iso_code_3 = '" . tep_db_input($countries_iso_code_3) . "', address_format_id = '" . (int)$address_format_id . "', country_visible = '" . (int)$country_visible . "' where countries_id = '" . (int)$countries_id . "'");
- tep_redirect(tep_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'] . '&cID=' . $countries_id.'&row_by_page='.$row_by_page));
- break;
- case 'deleteconfirm':
- $countries_id = tep_db_prepare_input($_GET['cID']);
+ if(isset($mID) && class_exists($class)) $cfg->draw_action();
+ else
+ switch ($action) {
- tep_db_query("delete from " . TABLE_COUNTRIES . " where countries_id = '" . (int)$countries_id . "'");
+ /**
+ @brief save unique ligne
+ */
+ case 'save':
+ $configuration_value = tep_db_prepare_input($_POST['configuration_value']);
+ $cID = tep_db_prepare_input($_GET['cID']);
- tep_redirect(tep_href_link(FILENAME_COUNTRIES, 'page=' . $_GET['page'].'&row_by_page='.$row_by_page));
+ if( ($res=sqlconfiguration::update(array('key'=>(int)$cID , 'value'=>tep_db_input($configuration_value) ))) == false)
+ $messageStack->add(SAVE_CONFIG_OK, 'success');
+ else
+ $messageStack->add(SAVE_CONFIG_NOT_OK, 'error');
+
+ tep_redirect(tep_href_link(FILENAME_CONFIGURATION, 'gparentID=' . $gparentID.'&gID=' . $_GET['gID'] . '&cID=' . $cID));
break;
- case 'list':
- break;
- default:
- $address_format_query = tep_db_query("select address_format_id, address_example from " . TABLE_ADDRESS_FORMAT . " order by address_format_id");
- $address_format_array = array();
- while ($address_format_values = tep_db_fetch_array($address_format_query)) {
- $address_format_array[$address_format_values['address_format_id']] = $address_format_values['address_example'] ;
- }
-// return $address_format_array;
+ /**
+ @brief save page groupe
+ */
+ case 'save_mutli':
+ if(tep_not_null($gID) ){
+ $list=sqlconfiguration::fetch(array('group_id'=> (int)$gID), true);
+ if(is_object($list))
+ $liste[]=$list;
+ else
+ $liste=$list;
- $countries_query_raw = "select countries_id, countries_name, countries_localname, countries_iso_code_2, countries_iso_code_3, address_format_id, country_visible from " . TABLE_COUNTRIES . " order by ".((isset($_GET['sort_by'])) ? $_GET['sort_by'] : 'countries_name ASC, country_visible DESC');
- $countries_split = new splitPageResults($page, MAX_DISPLAY_ROW_BY_PAGE, $countries_query_raw, $countries_query_numrows);
- $countries_query = tep_db_query($countries_query_raw);
- $list_c=array();
- while ($countries = tep_db_fetch_array($countries_query)) {
- if ($cID == $countries['countries_id']) $cInfo = new objectInfo($countries);
- $list_c[]=$countries;
+ foreach($liste as $row) {
+
+ if(isset($_POST['configuration'][$row->key])) {
+ $configuration_value = tep_db_prepare_input($_POST['configuration'][$row->key]);
+
+ if( ($res=sqlconfiguration::update(array('key'=>$row->key , 'value'=>tep_db_input($configuration_value) ))) == false)$erreur[]=false;
+ else $erreur[]=true;
+
+ }
+
+ }
+
+ if(!in_array(false,$erreur)) $messageStack->add_session(SAVE_CONFIG_OK, 'success');
+ else $messageStack->add_session(SAVE_CONFIG_NOT_OK, 'error');
+
}
-}
+ tep_redirect(tep_href_link(FILENAME_CONFIGURATION, 'gparentID=' . $gparentID.'&gID=' . $_GET['gID'] . '&cID=' . $cID));
+ break;
- switch ($saction) {
- case 'insert':
- $zone_country_id = tep_db_prepare_input($_POST['zone_country_id']);
- $zone_code = tep_db_prepare_input($_POST['zone_code']);
- $zone_name = tep_db_prepare_input($_POST['zone_name']);
- tep_db_query("insert into " . TABLE_ZONES . " (zone_country_id, zone_code, zone_name) values ('" . (int)$zone_country_id . "', '" . tep_db_input($zone_code) . "', '" . tep_db_input($zone_name) . "')");
+ case 'save_grp':
+ $new_grp_id = tep_db_prepare_input($_POST['new_grp_id']);
+ $cID = tep_db_prepare_input($_GET['cID']);
- tep_redirect(tep_href_link(FILENAME_ZONES, 'page=' . $_GET['page'].'&row_by_page='.$row_by_page));
- break;
- case 'save':
- $zone_id = tep_db_prepare_input($_GET['cID']);
- $zone_country_id = tep_db_prepare_input($_POST['zone_country_id']);
- $zone_code = tep_db_prepare_input($_POST['zone_code']);
- $zone_name = tep_db_prepare_input($_POST['zone_name']);
+ if( ($res=sqlconfiguration::update(array('id'=>(int)$cID , 'group_id'=>tep_db_input($new_grp_id) ))) == false)
+ $messageStack->add_session(SAVE_CONFIG_NOT_OK, 'error');
+ else
+ $messageStack->add_session(SAVE_CONFIG_OK, 'success');
- tep_db_query("update " . TABLE_ZONES . " set zone_country_id = '" . (int)$zone_country_id . "', zone_code = '" . tep_db_input($zone_code) . "', zone_name = '" . tep_db_input($zone_name) . "' where zone_id = '" . (int)$zone_id . "'");
+ tep_redirect(tep_href_link(FILENAME_CONFIGURATION, 'gparentID=' . $gparentID.'&gID=' . $new_grp_id . '&cID=' . $cID));
+ break;
- tep_redirect(tep_href_link(FILENAME_ZONES, 'page=' . $_GET['page'] . '&cID=' . $zone_id.'&row_by_page='.$row_by_page));
- break;
- case 'deleteconfirm':
- $zone_id = tep_db_prepare_input($_GET['cID']);
- tep_db_query("delete from " . TABLE_ZONES . " where zone_id = '" . (int)$zone_id . "'");
+ case 'delete_confirm':
- tep_redir...
[truncated message content] |
|
From: <os...@us...> - 2011-11-21 13:59:42
|
Revision: 3910
http://oscss.svn.sourceforge.net/oscss/?rev=3910&view=rev
Author: oscim
Date: 2011-11-21 13:59:30 +0000 (Mon, 21 Nov 2011)
Log Message:
-----------
correction coquille et suite travail evolution process
Correction erreur suppression d'un function dans general.php
Modified Paths:
--------------
trunk/catalog/includes/classes/checkout_process.php
trunk/catalog/includes/content/checkout_shipping.php
trunk/catalog/includes/functions/general.php
trunk/catalog/install/includes/sql/mysql/tables/osc_holding_orders.sql
Removed Paths:
-------------
trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/Css/Bottom.css
Modified: trunk/catalog/includes/classes/checkout_process.php
===================================================================
--- trunk/catalog/includes/classes/checkout_process.php 2011-11-21 08:33:02 UTC (rev 3909)
+++ trunk/catalog/includes/classes/checkout_process.php 2011-11-21 13:59:30 UTC (rev 3910)
@@ -551,8 +551,9 @@
$order=new order($order_id);
- if (isset($$payment) && is_object($$payment)) {
- $payment_class = $$payment;
+ $payment_mod=payment::getInstance($payment);
+ if (isset($payment_mod->modules[$payment]) && is_object($payment_mod->modules[$payment])) {
+ $payment_class = $payment_mod->modules[$payment];
$payment_= $payment_class->title;
$email_footer = (isset($payment_class->email_footer)) ? $payment_class->email_footer . "\n\n" : '';
}
Modified: trunk/catalog/includes/content/checkout_shipping.php
===================================================================
--- trunk/catalog/includes/content/checkout_shipping.php 2011-11-21 08:33:02 UTC (rev 3909)
+++ trunk/catalog/includes/content/checkout_shipping.php 2011-11-21 13:59:30 UTC (rev 3910)
@@ -3,8 +3,8 @@
@licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
@portion code Copyright (c) 2002 osCommerce
@package osCSS-2 <www http://www.oscss.org>
- @version 2.1.0
- @date 23/01/11, 16:28
+ @version 2.1.1
+ @date 21/11/11, 14:48
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
*/
@@ -15,7 +15,7 @@
<h2 class="content title <?php echo $language ;?>"><?php echo HEADING_TITLE; ?></h2>
- <?php echo tep_draw_form('checkout_address', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')) . '<p>' . tep_draw_hidden_field('action', 'process') . '</p>'; ?>
+ <?php echo tep_draw_form('checkout_address', tep_href_link('checkout.php'/*FILENAME_CHECKOUT_SHIPPING*/, '', 'SSL')) . '<p>' . tep_draw_hidden_field('action', 'process') . '</p>'; ?>
<div class="contentBox shippingAddress">
Modified: trunk/catalog/includes/functions/general.php
===================================================================
--- trunk/catalog/includes/functions/general.php 2011-11-21 08:33:02 UTC (rev 3909)
+++ trunk/catalog/includes/functions/general.php 2011-11-21 13:59:30 UTC (rev 3910)
@@ -899,6 +899,78 @@
$from_email_adress The eMail address of the sender,
e.g. in...@my...
*/
+function tep_mail($to_name, $to_email_address, $email_subject, $email_array, $from_email_name, $from_email_address) {
+
+ if (!_cst_bool('SEND_EMAILS')) return false;
+ // Instantiate a new mail object
+ $message = new PHPMailer();
+
+ if (EMAIL_TRANSPORT == 'smtp'){
+ $message->IsSMTP(); // telling the class to use SMTP
+
+ if( !tep_not_null($from_email_address) ) $from_email_address = SMTP_SENDMAIL_FROM;
+ if( !tep_not_null($from_email_name) ) $from_email_name = SMTP_FROMEMAIL_NAME;
+ // Config
+ $message->Host = SMTP_MAIL_SERVER; // SMTP server
+ }else{
+ $message->IsSendmail();
+// $mail->Sendmail ='/usr/sbin/sendmail';
+ //////(EMAIL_TRANSPORT == 'sendmail')
+ //////You need to implement here if you are using sendmail
+ if(empty($from_email_address))$from_email_address=EMAIL_FROM;
+ if(empty($from_email_name))$from_email_name=STORE_OWNER;
+ }
+
+
+ $message->From = $from_email_address;
+ $message->FromName = $from_email_name;
+
+ $message->CharSet = strtoupper(CHARSET );
+
+ if( !tep_not_null($to_name) ) $to_name = '';
+
+ if( !tep_not_null($to_email_address) ) return false;
+
+
+ $message->AddAddress($to_email_address, $to_name);
+ $message->Subject = $email_subject;
+
+ ///retro compatibilité
+ if(!is_array($email_array)) $email_array=array('text'=>$email_array, 'html'=>$email_array);
+
+ // Build the text version
+ $text = str_replace( array('<br>','<br />','<br/>', ' ','€'), array("\n","\n",' ','euro'),$email_array['text']);
+ $text = strip_tags(html_entity_decode($text ,ENT_QUOTES ));
+// $text = iconv ( 'ISO-8859-1',strtoupper(CHARSET ), strip_tags(html_entity_decode($text ,ENT_QUOTES, strtoupper(CHARSET ) ) ,"\n\r"));
+
+ if (EMAIL_USE_HTML == 'true') {
+ $message->Body = $email_array['html'];// tep_convert_linefeeds(array("\r\n", "\n", "\r"), '<br>', $email_text);
+ $message->AltBody = $text;
+ $message->IsHTML(true);
+ } else {
+ $message->Body = $text;
+ $message->IsHTML(false);
+ }
+
+ // Send message
+ if(!$message->Send()){
+ trigger_error(sprintf(__FUNCTION__.'Mailer error: %s', $message->ErrorInfo), E_USER_ERROR);
+ return false;
+ }
+ else return true;
+
+}
+
+/**
+ @package oscss-Rv
+ @author oscim - OscssTeam
+ @version 2.0
+ Construteur de mise en forme des email avant envoi; remplace les code raccouris et ajoute si necessaire l'entete html
+ @param string nom du template
+ @param string path du language utilis pour le mail
+ @param array $myarray key/value des var perso
+ @param boolean return / print
+*/
function tep_post_prepare_email($gabarit_template,$language,$myarray,$print=false){
global $title_email,$messageStack,$page;
Deleted: trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/Css/Bottom.css
===================================================================
--- trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/Css/Bottom.css 2011-11-21 08:33:02 UTC (rev 3909)
+++ trunk/catalog/install/data/templates/appareil_photo/2cShopHtml5Oscim/Css/Bottom.css 2011-11-21 13:59:30 UTC (rev 3910)
@@ -1,43 +0,0 @@
-/**
- @licence GPL 2005-2011 The osCSS developers - osCSS Open Source E-commerce
- @subpackage Template 2cShopHtml5Oscim
- @package osCSS-2 <www http://www.oscss.org>
- @author oscim <mail aur...@os...> <www http://www.oscim.fr>
- @encode UTF-8
-*/
-
-
-/* footer */
-footer {
- clear: both;
- background: #222;
- width: 960px;
- height:80px;
- color: #fff;
- margin-bottom: 10px;
-
- /* curved border radius */
- -moz-border-radius: 10px;
- -webkit-border-radius: 10px;
- }
-
-footer p {
- text-align: right;
- font-size: 11px;
- padding-right: 20px;
- }
-
-footer a {
- color: #999;
- }
-
-footer a:hover {
- color: #FFF;
- text-decoration: none;
- }
-
-footer div {margin:0; padding:0; width:33%; float:left; display:block; height:100%; text-align:left;}
-
-footer div.center_footer{
-text-align:center;
-}
\ No newline at end of file
Modified: trunk/catalog/install/includes/sql/mysql/tables/osc_holding_orders.sql
===================================================================
--- trunk/catalog/install/includes/sql/mysql/tables/osc_holding_orders.sql 2011-11-21 08:33:02 UTC (rev 3909)
+++ trunk/catalog/install/includes/sql/mysql/tables/osc_holding_orders.sql 2011-11-21 13:59:30 UTC (rev 3910)
@@ -59,6 +59,8 @@
currency_value decimal(14,6) default NULL,
ip_address varchar(50) NOT NULL,
total_weight varchar(5) default NULL,
+ class_payment VARCHAR( 30 ) NULL ,
+ class_shipping VARCHAR( 30 ) NULL ,
PRIMARY KEY (orders_id)
) DEFAULT CHARSET=utf8 ;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <os...@us...> - 2011-11-26 13:06:28
|
Revision: 3913
http://oscss.svn.sourceforge.net/oscss/?rev=3913&view=rev
Author: oscim
Date: 2011-11-26 13:06:22 +0000 (Sat, 26 Nov 2011)
Log Message:
-----------
correction coquille
public renforcement control GET/POST/REQUEST
Ajout function et control global sur application top
Ajout protect sur le htaccess
Modified Paths:
--------------
trunk/catalog/admin/includes/application_top.php
trunk/catalog/includes/application_top.php
trunk/catalog/includes/functions/general.php
trunk/catalog/install/includes/modele/admin_htaccess.txt
trunk/catalog/install/includes/modele/htaccess.txt
trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql
Modified: trunk/catalog/admin/includes/application_top.php
===================================================================
--- trunk/catalog/admin/includes/application_top.php 2011-11-24 09:58:03 UTC (rev 3912)
+++ trunk/catalog/admin/includes/application_top.php 2011-11-26 13:06:22 UTC (rev 3913)
@@ -53,9 +53,8 @@
$action = (isset($_GET['action'])) ? tep_sanitize_string($_GET['action']) : '';
//! set php_self in the local scope
- $PHP_SELF = (isset($_SERVER['PHP_SELF']) ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME']);
+ $PHP_SELF = (isset($_SERVER['PHP_SELF']) ? tep_sanitize_string($_SERVER['PHP_SELF']) : tep_sanitize_string($_SERVER['SCRIPT_NAME']) );
-
/// make a connection to the database... now
$DB=Database::getInstance();
@@ -103,7 +102,8 @@
}
/// set the session cookie parameters
- if (function_exists('session_set_cookie_params')) session_set_cookie_params(0, DIR_WS_ADMIN);
+ if (function_exists('session_set_cookie_params'))
+ session_set_cookie_params(0, DIR_WS_ADMIN);
elseif (function_exists('ini_set')) {
ini_set('session.cookie_lifetime', '0');
ini_set('session.cookie_path', DIR_WS_ADMIN);
@@ -198,7 +198,7 @@
///this is for admin themes
- if (!isset($_GET['menu_theme']) && isset($_COOKIE['menu_theme'])) $current_theme = $_COOKIE['menu_theme'] ;
+ if (!isset($_GET['menu_theme']) && isset($_COOKIE['menu_theme'])) $current_theme = tep_sanitize_string($_COOKIE['menu_theme']) ;
else {
$current_theme = (isset($_GET['menu_theme']) ? tep_sanitize_string($_GET['menu_theme']) : get_info_core(DIR_FS_CATALOG. DIR_WS_COMMON.'oscss.version.xml','template_admin'));
setcookie('menu_theme', $current_theme , time()+31536000);
@@ -241,8 +241,9 @@
//! specific quick search in BO
if(isset($_POST['SearchSpeed'])){
- if($_REQUEST['sSearch'] !='') tep_redirect(tep_href_link($_REQUEST['SearchSpeed'].'.php','sSearch='.$_REQUEST['sSearch']));
- else tep_redirect(tep_href_link($_REQUEST['SearchSpeed'].'.php'));
+ $SearchSpeed=tep_sanitize_string($_REQUEST['SearchSpeed']);
+ if($_REQUEST['sSearch'] !='') tep_redirect(tep_href_link($SearchSpeed.'.php','sSearch='.tep_sanitize_string($_REQUEST['sSearch']) ));
+ else tep_redirect(tep_href_link($SearchSpeed.'.php'));
}
///
Modified: trunk/catalog/includes/application_top.php
===================================================================
--- trunk/catalog/includes/application_top.php 2011-11-24 09:58:03 UTC (rev 3912)
+++ trunk/catalog/includes/application_top.php 2011-11-26 13:06:22 UTC (rev 3913)
@@ -108,10 +108,19 @@
}
}
-//! control get
+
+/**
+ @remarks Protect Var GET/POST/REQUEST
+ @note if vou want to allow specific fields, added an exclusion in the loop in question
+*/
if(isset($_GET))
foreach($_GET as $k=>$v) $_GET[$k]=tep_sanitize_string($v);
+ if(isset($_POST))
+ foreach($_POST as $k=>$v) $_POST[$k]=tep_sanitize_string($v);
+ if(isset($_REQUEST))
+ foreach($_REQUEST as $k=>$v) $_REQUEST[$k]=tep_sanitize_string($v);
+
/// Constructeur de page
$page= page::getInstance($FileRegistered);
$page->add_var_page('request_type',$request_type);
Modified: trunk/catalog/includes/functions/general.php
===================================================================
--- trunk/catalog/includes/functions/general.php 2011-11-24 09:58:03 UTC (rev 3912)
+++ trunk/catalog/includes/functions/general.php 2011-11-26 13:06:22 UTC (rev 3913)
@@ -87,7 +87,8 @@
\param string la chaîne à nettoyer
*/
function tep_sanitize_request($string) {
- return preg_replace("#(\./|\.\./|<|>|(\<|%3C).*script.*(\>|%3E))*#i",'',$string);
+ $string = htmlspecialchars(strip_tags($string));
+ return preg_replace("#(\./|\.\./|(\<|%3C)|(\>|%3E)|(\<|%3C).*script.*(\>|%3E))*#i",'',$string);
}
/**
Modified: trunk/catalog/install/includes/modele/admin_htaccess.txt
===================================================================
--- trunk/catalog/install/includes/modele/admin_htaccess.txt 2011-11-24 09:58:03 UTC (rev 3912)
+++ trunk/catalog/install/includes/modele/admin_htaccess.txt 2011-11-26 13:06:22 UTC (rev 3913)
@@ -47,6 +47,7 @@
RewriteBase %WS_ADMIN%
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
+ RewriteCond %{QUERY_STRING} (\<|%3C).*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule ^(.*)$ index.php [F,L]
Modified: trunk/catalog/install/includes/modele/htaccess.txt
===================================================================
--- trunk/catalog/install/includes/modele/htaccess.txt 2011-11-24 09:58:03 UTC (rev 3912)
+++ trunk/catalog/install/includes/modele/htaccess.txt 2011-11-26 13:06:22 UTC (rev 3913)
@@ -95,6 +95,7 @@
## Protection
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
+ RewriteCond %{QUERY_STRING} (\<|%3C).*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule ^(.*)$ index.php [F,L]
Modified: trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql
===================================================================
--- trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql 2011-11-24 09:58:03 UTC (rev 3912)
+++ trunk/catalog/install/includes/sql/mysql/data/91_osc_configuration.sql 2011-11-26 13:06:22 UTC (rev 3913)
@@ -80,7 +80,7 @@
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type ) values ('DEFAULT_RETURN_STATUS_ID_S', 'DEFAULT_RETURN_STATUS_ID', '1', 'DEFAULT_RETURN_STATUS_ID_L', '6', '4', '2003-02-28 07:10:04', '1000-01-01 00:00:00', NULL, NULL,4);
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type ) values ('DEFAULT_REFUND_METHOD_S', 'DEFAULT_REFUND_METHOD', '1', 'DEFAULT_REFUND_METHOD_L', '6', '5', '2003-03-01 16:46:12', '1000-01-01 00:00:00', NULL, NULL,4);
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ( 'MODULE_GENERIC_INSTALLED_S', 'MODULE_GENERIC_INSTALLED', '', 'MODULE_GENERIC_INSTALLED_L', '6', '6', NULL, NOW(), NULL, 'tep_cfg_Non_Edit(\';\',');
-insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type) values ('MODULE_GENERIC_INSTALLED_BO_S', 'MODULE_GENERIC_INSTALLED_BO', '', 'MODULE_GENERIC_INSTALLED_BO_L', '6', '7', NULL, NOW(), NULL, 'tep_cfg_Non_Edit(\';\',', '1');
+insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type) values ('MODULE_GENERIC_INSTALLED_BO_S', 'MODULE_GENERIC_INSTALLED_BO', 'CheckCore', 'MODULE_GENERIC_INSTALLED_BO_L', '6', '7', NULL, NOW(), NULL, 'tep_cfg_Non_Edit(\';\',', '1');
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('MODULE_ACAPRO_INSTALLED_S', 'MODULE_ACAPRO_INSTALLED', 'desc_base.php;', 'MODULE_ACAPRO_INSTALLED_L', '6', '8', NULL, NOW(), NULL, 'tep_cfg_Non_Edit(\';\',');
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function, configuration_type) values ('MODULE_ACAPRO_INSTALLED_BO_S', 'MODULE_ACAPRO_INSTALLED_BO', 'desc_base.php;', 'MODULE_ACAPRO_INSTALLED_BO_L', '6', '9', NULL, NOW(), NULL, 'tep_cfg_Non_Edit(\';\',', '1');
insert into osc_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('MODULE_CONTENT_INSTALLED_S', 'MODULE_CONTENT_INSTALLED', '', 'MODULE_CONTENT_INSTALLED_L', '6', '10', NULL, NOW(), NULL, 'tep_cfg_Non_Edit(\';\',');
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|