+
+
-
-
-
+
+
+ - Etape 1 ok
+ - Etape 2 ok
+ - Etape 3
+ - Etape 4
+
+
+
+
+
+
+
-
+
getIncludeTradFilename())
{
echo '
'.lang('New features in PrestaShop v').INSTALL_VERSION.'
-
diff --git a/install-dev/langs/de.php b/install-dev/langs/de.php
index acc28cf86..251ce9043 100644
--- a/install-dev/langs/de.php
+++ b/install-dev/langs/de.php
@@ -92,7 +92,7 @@ $_LANG['Please set a database login'] = 'Geben Sie die SQL-Anmeldung ein';
$_LANG['Please set a database name'] = 'Geben Sie den Namen der Datenbank ein';
$_LANG['Please set a database server name'] = 'Geben Sie den Namen des Datenbank-Servers ein';
$_LANG['Port:'] = 'Port:';
-$_LANG['PrestaShop ".INSTALL_VERSION." Installer'] = 'Installation der PrestaShop-Version "INSTALL_VERSION."';
+$_LANG['PrestaShop %s Installer'] = 'Installation der PrestaShop-Version %s';
$_LANG['PrestaShop is ready!'] = 'PrestaShop ist fertig!';
$_LANG['Re-type to confirm:'] = 'Bestätigen Sie das Kennwort:';
$_LANG['Ready, set, go!'] = 'PrestaShop ist installiert!';
@@ -143,12 +143,12 @@ $_LANG['Verify system compatibility'] = 'Systemkompatibilität';
$_LANG['WARNING: For more security, you must delete the \'install\' folder and readme files (readme_fr.txt, readme_en.txt, readme_es.txt, readme_de.txt, readme_it.txt, CHANGELOG).'] = 'VORSICHT: Aus Sicherheitsgründen löschen Sie bitte den Ordner \'/install\' und die readme-Dateien (readme_fr.txt, readme_en.txt, readme_es.txt, readme_de.txt, readme_it.txt, CHANGELOG).';
$_LANG['Warning: a manual backup is HIGHLY recommended before continuing!'] = 'Vorsicht: eine manuelle Sicherung ist UNERLÄSSLICH, bevor mit der Aktualisierung der PrestaShop-Anwendung begonnen wird, um jeglichen versehentlichen Datenverlust zu verhindern';
$_LANG['Welcome'] = 'Willkommen';
-$_LANG['Welcome to the PrestaShop '.INSTALL_VERSION.' Installer.'] = 'Bienvenue dans l\'installation de PrestaShop '.INSTALL_VERSION;
+$_LANG['Welcome to the PrestaShop %s Installer.'] = 'Bienvenue dans l\'installation de PrestaShop %s';
$_LANG['When your files and database are saving in an other support, please certify that your shop is really backed up.'] = 'Sobald die Anwendungsdateien und Ihre Datenbank gesichert sind, werden wir Sie um Bestätigung bitten. Damit übernehmen Sie die gesamte Haftung eines möglichen Datenverlusts durch die Aktualisierung der PrestaShop-Anwendung.';
$_LANG['Write permissions on folders (and subfolders):'] = 'Schreibberechtigung für die Ordner (und deren Unterordner):';
$_LANG['Write permissions on files and folders:'] = 'Schreibberechtigung für die Dateien und Ordner:';
$_LANG['Write permissions on folders:'] = 'Schreibberechtigung für die Ordner';
-$_LANG['You already have the ".INSTALL_VERSION." version.'] = 'Sie besitzen bereits die Version. ".INSTALL_VERSION."';
+$_LANG['You already have the %s version.'] = 'Sie besitzen bereits die Version. %s';
$_LANG['You have just installed and configured PrestaShop as your online shop solution. We wish you all the best with the success of your online shop.'] = 'Sie haben gerade Ihren Online-Shop installiert und konfiguriert, wir danken Ihnen.';
$_LANG['You have just updated and configured PrestaShop as your online shop solution. We wish you all the best with the success of your online shop.'] = 'Sie haben gerade Ihren Online-Shop aktualisiert wir danken Ihnen.';
$_LANG['Your installation is finished!'] = 'Die Installation ist abgeschlossen!';
@@ -282,4 +282,4 @@ $_LANG['version'] = 'Version';
$_LANG['In this aim, use our'] = 'Verwenden Sie dazu unseren';
$_LANG['Additional Benefits'] = 'Exklusiv Angebot';
$_LANG['Exclusive offers dedicated to PrestaShop merchants'] = 'Exklusiv Angebot für die Verkäufer PrestaShop';
-$_LANG['PHP magic quotes option is off (recommended)'] = 'Die PHP-Option "magic quotes" ist deaktiviert (empfohlen)';
\ No newline at end of file
+$_LANG['PHP magic quotes option is off (recommended)'] = 'Die PHP-Option "magic quotes" ist deaktiviert (empfohlen)';
diff --git a/install-dev/langs/es.php b/install-dev/langs/es.php
index 5560c5a47..54d4f2d87 100644
--- a/install-dev/langs/es.php
+++ b/install-dev/langs/es.php
@@ -91,7 +91,7 @@ $_LANG['Please set a database login'] = 'Introduzca el inicio de sesión de SQL'
$_LANG['Please set a database name'] = 'Introduzca el nombre de la base de datos';
$_LANG['Please set a database server name'] = 'Introduzca el nombre del servidor de la base de datos';
$_LANG['Port:'] = 'Puerto:';
-$_LANG['PrestaShop ".INSTALL_VERSION." Installer'] = 'Instalación de PrestaShop ".INSTALL_VERSION."';
+$_LANG['PrestaShop %s Installer'] = 'Instalación de PrestaShop %s';
$_LANG['PrestaShop is ready!'] = '¡PrestaShop está listo!';
$_LANG['Re-type to confirm:'] = 'Confirmar la contraseña:';
$_LANG['Ready, set, go!'] = '¡PrestaShop está instalado!';
@@ -141,12 +141,12 @@ $_LANG['Verify system compatibility'] = 'Compatibilidad sistema';
$_LANG['WARNING: For more security, you must delete the \'install\' folder and readme files (readme_fr.txt, readme_en.txt, readme_es.txt, readme_de.txt, readme_it.txt, CHANGELOG).'] = 'ATENCION : para más seguridad, por favor suprima la carpeta \'/install\' y los archivos readme (readme_fr.txt, readme_en.txt, readme_es.txt, readme_de.txt, readme_it.txt, CHANGELOG)..';
$_LANG['Warning: a manual backup is HIGHLY recommended before continuing!'] = '¡Atención: se recomienda hacer una copia de seguridad manual antes de continuar!';
$_LANG['Welcome'] = 'Bienvenido';
-$_LANG['Welcome to the PrestaShop '.INSTALL_VERSION.' Installer.'] = 'Bienvenido a la instalación de PrestaShop '.INSTALL_VERSION;
+$_LANG['Welcome to the PrestaShop %s Installer.'] = 'Bienvenido a la instalación de PrestaShop %s';
$_LANG['When your files and database are saving in an other support, please certify that your shop is really backed up.'] = 'Una vez que los archivos de aplicación y su base de datos se hayan guardado, le pediremos que los certifique. Por lo tanto, usted asume plenamente su responsabilidad por cualquier pérdida de datos debido a la actualización de la aplicación PrestaShop.';
$_LANG['Write permissions on folders (and subfolders):'] = 'en escritura en las carpetas (y sus subcarpetas) :';
$_LANG['Write permissions on files and folders:'] = 'Derechos en escritura en los archivos y carpetas :';
$_LANG['Write permissions on folders:'] = 'Permiso de escritura en los archivos de';
-$_LANG['You already have the ".INSTALL_VERSION." version.'] = 'Ya está en posesión de la versión ".INSTALL_VERSION."';
+$_LANG['You already have the %s version.'] = 'Ya está en posesión de la versión %s';
$_LANG['You have just installed and configured PrestaShop as your online shop solution. We wish you all the best with the success of your online shop.'] = 'Acaba de instalar y de configurar su tienda en línea y se lo agradecemos.';
$_LANG['You have just updated and configured PrestaShop as your online shop solution. We wish you all the best with the success of your online shop.'] = 'Deba actualizar su tienda en línea. Se lo agradecemos.';
$_LANG['Your installation is finished!'] = '¡La instalación está terminada!';
@@ -282,4 +282,4 @@ $_LANG['version'] = 'versión';
$_LANG['In this aim, use our'] = 'En este objetivo, utilice nuestro';
$_LANG['Additional Benefits'] = 'Otros beneficios';
$_LANG['Exclusive offers dedicated to PrestaShop merchants'] = 'Ofertas exclusivas dedicadas a los comerciantes PrestaShop';
-$_LANG['PHP magic quotes option is off (recommended)'] = 'La opción PHP "magic quotes" está desactivada (aconsejable)';
\ No newline at end of file
+$_LANG['PHP magic quotes option is off (recommended)'] = 'La opción PHP "magic quotes" está desactivada (aconsejable)';
diff --git a/install-dev/langs/fr.php b/install-dev/langs/fr.php
index e0e28351f..c392486f3 100644
--- a/install-dev/langs/fr.php
+++ b/install-dev/langs/fr.php
@@ -63,7 +63,8 @@ $_LANG['Installation : complete install of the PrestaShop Solution'] = 'Installa
$_LANG['Installation is complete!'] = 'Installation terminée !';
$_LANG['Installation method'] = 'Méthode d\'installation';
$_LANG['Last name:'] = 'Nom :';
-$_LANG['License Agreement'] = 'Contrat de Licence';
+$_LANG['Licenses Agreement'] = 'Contrat de Licences';
+$_LANG['PrestaShop core is released under the OSL 3.0 while PrestaShop modules and themes are released under the AFL 3.0.'] = 'Le coeur de PrestaShop est publié sous licence OSL 3.0 tandis que les modules et thèmes sont publiés sous licence AFL 3.0.';
$_LANG['Login:'] = 'Identifiant :';
$_LANG['Merchant info'] = 'Informations à propos du vendeur';
$_LANG['Missing a temporary folder'] = 'Il manque le dossier temporaire de réception de vos envois de fichiers. Merci de consulter votre administrateur système.';
@@ -92,7 +93,7 @@ $_LANG['Please set a database login'] = 'Entrez le login SQL';
$_LANG['Please set a database name'] = 'Entrez le nom de la base de données';
$_LANG['Please set a database server name'] = 'Entrez le nom du serveur de la base de données';
$_LANG['Port:'] = 'Port :';
-$_LANG['PrestaShop ".INSTALL_VERSION." Installer'] = 'Installation de PrestaShop ".INSTALL_VERSION."';
+$_LANG['PrestaShop %s Installer'] = 'Installation de PrestaShop %s';
$_LANG['PrestaShop is ready!'] = 'PrestaShop est prêt!';
$_LANG['Re-type to confirm:'] = 'Confirmez le mot de passe :';
$_LANG['Ready, set, go!'] = 'PrestaShop est installé !';
@@ -143,12 +144,12 @@ $_LANG['Verify system compatibility'] = 'Compatibilité système';
$_LANG['WARNING: For more security, you must delete the \'install\' folder and readme files (readme_fr.txt, readme_en.txt, readme_es.txt, readme_de.txt, readme_it.txt, CHANGELOG).'] = 'ATTENTION : pour plus de sécurité, merci de supprimer le dossier \'/install\' et les fichiers readme (readme_fr.txt, readme_en.txt, readme_es.txt, readme_de.txt, readme_it.txt, CHANGELOG).';
$_LANG['Warning: a manual backup is HIGHLY recommended before continuing!'] = 'Attention : une sauvegarde manuelle est INDISPENSABLE avant de procéder à la mise à jour de l\'application PrestaShop, cela afin de prévenir toute perte de données accidentelle';
$_LANG['Welcome'] = 'Bienvenue';
-$_LANG['Welcome to the PrestaShop '.INSTALL_VERSION.' Installer.'] = 'Bienvenue dans l\'installation de PrestaShop '.INSTALL_VERSION;
+$_LANG['Welcome to the PrestaShop %s Installer.'] = 'Bienvenue dans l\'installation de PrestaShop %s';
$_LANG['When your files and database are saving in an other support, please certify that your shop is really backed up.'] = 'Une fois que les fichiers de l\'application et votre base de données seront sauvegardés, nous vous demanderons de le certifier. De ce fait, vous assumerez l\'entière responsabilité d\'une éventuelle perte de données liée à la mise à jour de l\'application PrestaShop.';
$_LANG['Write permissions on folders (and subfolders):'] = 'Droits en écriture sur les dossiers (et leurs sous-dossiers) :';
$_LANG['Write permissions on files and folders:'] = 'Droits en écriture sur les fichiers et dossiers:';
$_LANG['Write permissions on folders:'] = 'Droits en écriture sur les dossiers';
-$_LANG['You already have the ".INSTALL_VERSION." version.'] = 'Vous êtes déjà en possession de la version ".INSTALL_VERSION."';
+$_LANG['You already have the %s version.'] = 'Vous êtes déjà en possession de la version %s';
$_LANG['You have just installed and configured PrestaShop as your online shop solution. We wish you all the best with the success of your online shop.'] = 'Vous venez d\'installer et de configurer votre boutique en ligne, nous vous en remercions.';
$_LANG['You have just updated and configured PrestaShop as your online shop solution. We wish you all the best with the success of your online shop.'] = 'Vous venez de mettre à jour votre boutique en ligne. Nous vous en remercions.';
$_LANG['Your installation is finished!'] = 'L\'installation est terminée !';
@@ -177,8 +178,8 @@ $_LANG['Did you know?'] = 'Le saviez-vous ?';
$_LANG['Prestashop and community offers over 40 different languages for free download on'] = 'Prestashop et sa communauté propose plus de 40 langues différentes en téléchargement gratuit sur';
$_LANG['Default country:'] = 'Pays par défaut :';
$_LANG['Shop\'s timezone:'] = 'Fuseau horaire de la boutique :';
-$_LANG['Your configuration is valid, click next to continue!'] = 'Votre configuration est valide,
cliquez sur suivant pour continuer !';
-$_LANG['Your configuration is invalid. Please fix the issues below:'] = 'Votre configuration n\'est pas valide,
merci de corriger ces problèmes :';
+$_LANG['Your configuration is valid, click next to continue!'] = 'Votre configuration est valide, cliquez sur suivant pour continuer !';
+$_LANG['Your configuration is invalid. Please fix the issues below:'] = 'Votre configuration n\'est pas valide, merci de corriger ces problèmes :';
$_LANG['You have to create a database, help available in readme_en.txt'] = 'Vous devez au préalable créer une base de données (aide disponible dans le fichier readme.txt)';
$_LANG['If you check this box and your mail configuration is wrong, your installation might be blocked. If so, please uncheck the box to go to the next step.'] = 'Cette option peut être bloquante si votre configuration e-mail est erronée, merci de la désactiver si vous ne pouvez pas passer à l\'étape suivante.';
$_LANG['Mcrypt is available (recommended)'] = 'Mcrypt est disponible (recommandé)';
@@ -216,7 +217,7 @@ $_LANG['This information isn\'t required, it will be used for statistical purpos
$_LANG['Invalid shop name'] = 'Nom de boutique invalide';
$_LANG['Your firstname contains some invalid characters'] = 'Votre prénom contient des caractères invalides';
$_LANG['Your lastname contains some invalid characters'] = 'Votre nom contient des caractères invalides';
-$_LANG['PrestaShop '.INSTALL_VERSION.' Installer'] = '';
+$_LANG['PrestaShop %s Installer'] = '';
$_LANG['+33 (0)1.40.18.30.04'] = '+33 (0)1.40.18.30.04';
$_LANG['(FREE)'] = '(GRATUIT)';
$_LANG['(FREE too!)'] = '(GRATUIT AUSSI !)';
@@ -286,4 +287,5 @@ $_LANG['Warning, the installer was unable to detect what is your current PrestaS
$_LANG['However the installer has detected that the version stored in your configuration table is %1$s'] = "Cependant l'installeur a détecté que la version sauvée dans votre table de configuration est %1\$s";
$_LANG['Additional Benefits'] = 'Avantages exclusifs PrestaShop';
$_LANG['Exclusive offers dedicated to PrestaShop merchants'] = 'Offres réservées aux marchands PrestaShop';
-$_LANG['PHP magic quotes option is off (recommended)'] = 'L\'option PHP "magic quotes" est désactivée (recommandé)';
\ No newline at end of file
+$_LANG['PHP magic quotes option is off (recommended)'] = 'L\'option PHP "magic quotes" est désactivée (recommandé)';
+$_LANG['Dom extension loaded'] = 'L\'extension Dom est activée';
diff --git a/install-dev/langs/index.php b/install-dev/langs/index.php
new file mode 100644
index 000000000..4e2611d37
--- /dev/null
+++ b/install-dev/langs/index.php
@@ -0,0 +1,36 @@
+
+* @copyright 2007-2011 PrestaShop SA
+* @version Release: $Revision$
+* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*/
+
+header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
+header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
+
+header("Cache-Control: no-store, no-cache, must-revalidate");
+header("Cache-Control: post-check=0, pre-check=0", false);
+header("Pragma: no-cache");
+
+header("Location: ../");
+exit;
\ No newline at end of file
diff --git a/install-dev/langs/it.php b/install-dev/langs/it.php
index 1567ed525..dedbc8a81 100644
--- a/install-dev/langs/it.php
+++ b/install-dev/langs/it.php
@@ -92,7 +92,7 @@ $_LANG['Please set a database login'] = 'Inserire il login SQL';
$_LANG['Please set a database name'] = 'Inserire il nome del database.';
$_LANG['Please set a database server name'] = 'Inserire il nome del server del database.';
$_LANG['Port:'] = 'Porta:';
-$_LANG['PrestaShop ".INSTALL_VERSION." Installer'] = 'Installazione di PrestaShop ".INSTALL_VERSION."';
+$_LANG['PrestaShop %s Installer'] = 'Installazione di PrestaShop %s';
$_LANG['PrestaShop is ready!'] = 'PrestaShop è pronto!';
$_LANG['Re-type to confirm:'] = 'Conferma la password:';
$_LANG['Ready, set, go!'] = 'PrestaShop è installato!';
@@ -143,12 +143,12 @@ $_LANG['Verify system compatibility'] = 'Compatibilità sistema';
$_LANG['WARNING: For more security, you must delete the \'install\' folder and readme files (readme_fr.txt, readme_en.txt, readme_es.txt, readme_de.txt, readme_it.txt, CHANGELOG).'] = 'ATTENZIONE: per motivi di sicurezza, adesso devi cancellare la cartella \'install\' e i file readme (readme_fr.txt, readme_en.txt, readme_es.txt, readme_de.txt, readme_it.txt, CHANGELOG).';
$_LANG['Warning: a manual backup is HIGHLY recommended before continuing!'] = 'Attenzione: E\' FONDAMENTALE un backup manuale prima di continuare l\'aggiornamento dell\'applicazione Prestashop, al fine di evitare la perdita accidentale di dati.';
$_LANG['Welcome'] = 'Benvenuto';
-$_LANG['Welcome to the PrestaShop '.INSTALL_VERSION.' Installer.'] = 'Benvenuto nell\'installazione di PrestaShop '.INSTALL_VERSION;
+$_LANG['Welcome to the PrestaShop %s Installer.'] = 'Benvenuto nell\'installazione di PrestaShop %s';
$_LANG['When your files and database are saving in an other support, please certify that your shop is really backed up.'] = 'Una volta salvati i tuoi file applicazione e il database, ti chiederemo di certificarlo. Così facendo, ti assumerai tutte le responsabilità per qualsiasi perdita di dati dovuti ad un aggiornamento del software PrestaShop.';
$_LANG['Write permissions on folders (and subfolders):'] = 'Scrivi i permessi sulle cartelle (e le loro sottocartelle):';
$_LANG['Write permissions on files and folders:'] = 'Permessi di scrittura su file e cartelle:';
$_LANG['Write permissions on folders:'] = 'Permessi di scrittura sulle cartelle';
-$_LANG['You already have the ".INSTALL_VERSION." version.'] = 'Sei già in possesso della versione ".INSTALL_VERSION."';
+$_LANG['You already have the %s version.'] = 'Sei già in possesso della versione %s';
$_LANG['You have just installed and configured PrestaShop as your online shop solution. We wish you all the best with the success of your online shop.'] = 'Hai appena installato e configurato il tuo negozio online, grazie.';
$_LANG['You have just updated and configured PrestaShop as your online shop solution. We wish you all the best with the success of your online shop.'] = 'Hai appena aggiornato il tuo negozio online. Grazie.';
$_LANG['Your installation is finished!'] = 'Installazione terminata!';
@@ -269,4 +269,4 @@ $_LANG['New features in PrestaShop v'] = 'Nuove caratteristiche in PrestaShop v'
$_LANG['In this aim, use our'] = 'A questo scopo, utilizzare il nostro';
$_LANG['Additional Benefits'] = 'Ulteriori vantaggi';
$_LANG['Exclusive offers dedicated to PrestaShop merchants'] = 'Offerte esclusivo dedicato ai venditori PrestaShop';
-$_LANG['PHP magic quotes option is off (recommended)'] = 'Opzione magic quotes PHP è disattivata (consigliato)';
\ No newline at end of file
+$_LANG['PHP magic quotes option is off (recommended)'] = 'Opzione magic quotes PHP è disattivata (consigliato)';
diff --git a/install-dev/model.php b/install-dev/model.php
index 1d8798e14..08f5eea25 100644
--- a/install-dev/model.php
+++ b/install-dev/model.php
@@ -63,6 +63,7 @@ if ($tmp = strpos($_SERVER['REQUEST_URI'], '?'))
$_SERVER['REQUEST_URI'] = str_replace('//', '/', $_SERVER['REQUEST_URI']);
define('INSTALL_VERSION', '1.5.0.0');
+
define('PS_INSTALLATION_IN_PROGRESS', true);
include_once(INSTALL_PATH.'/classes/ToolsInstall.php');
define('SETTINGS_FILE', INSTALL_PATH.'/../config/settings.inc.php');
diff --git a/install-dev/php/add_missing_rewrite_value.php b/install-dev/php/add_missing_rewrite_value.php
index 214349f38..329d632b7 100644
--- a/install-dev/php/add_missing_rewrite_value.php
+++ b/install-dev/php/add_missing_rewrite_value.php
@@ -34,6 +34,7 @@ function add_missing_rewrite_value()
WHERE ml.`url_rewrite` = \'\'
AND m.`page` != "index"
');
+ if (sizeof($pages) && is_array($pages))
foreach ($pages as $page)
{
Db::getInstance()->Execute('
diff --git a/install-dev/php/add_order_state.php b/install-dev/php/add_order_state.php
new file mode 100644
index 000000000..7118a6a29
--- /dev/null
+++ b/install-dev/php/add_order_state.php
@@ -0,0 +1,63 @@
+
+* @copyright 2007-2011 PrestaShop SA
+* @version Release: $Revision$
+* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*/
+
+function add_order_state($conf_name, $name, $invoice, $send_email, $color, $unremovable, $logable, $delivery, $template = null)
+{
+ $name_lang = array();
+ $template_lang = array();
+ foreach (explode('|', $name) AS $item)
+ {
+ $temp = explode(':', $item);
+ $name_lang[$temp[0]] = $temp[1];
+ }
+
+ if ($template)
+ foreach (explode('|', $template) AS $item)
+ {
+ $temp = explode(':', $item);
+ $template_lang[$temp[0]] = $temp[1];
+ }
+
+ Db::getInstance()->Execute('
+ INSERT INTO `'._DB_PREFIX_.'order_state` (`invoice`, `send_email`, `color`, `unremovable`, `logable`, `delivery`)
+ VALUES ('.(int)$invoice.', '.(int)$send_email.', \''.pSQL($color).'\', '.(int)$unremovable.', '.(int)$logable.', '.(int)$delivery.')');
+
+ $id_order_state = Db::getInstance()->getValue('
+ SELECT MAX(`id_order_state`)
+ FROM `'._DB_PREFIX_.'order_state`
+ ');
+
+ foreach (Language::getLanguages() AS $lang)
+ {
+ Db::getInstance()->Execute('
+ INSERT IGNORE INTO `'._DB_PREFIX_.'order_state_lang` (`id_lang`, `id_order_state`, `name`, `template`)
+ VALUES ('.(int)$lang['id_lang'].', '.(int)$id_order_state.', \''.pSQL(isset($name_lang[$lang['iso_code']]) ? $name_lang[$lang['iso_code']] : $name_lang['en']).'\', \''.pSQL(isset($template_lang[$lang['iso_code']]) ? $template_lang[$lang['iso_code']] : (isset($template_lang['en']) ? $template_lang['en'] : '')).'\')
+ ');
+ }
+
+ Configuration::updateValue($conf_name, $id_order_state);
+}
\ No newline at end of file
diff --git a/install-dev/php/alter_productcomments_guest_index.php b/install-dev/php/alter_productcomments_guest_index.php
new file mode 100644
index 000000000..49babefc4
--- /dev/null
+++ b/install-dev/php/alter_productcomments_guest_index.php
@@ -0,0 +1,39 @@
+
+* @copyright 2007-2011 PrestaShop SA
+* @version Release: $Revision$
+* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*/
+
+function alter_productcomments_guest_index()
+{
+ Configuration::loadConfiguration();
+ $productcomments = Module::getInstanceByName('productcomments');
+ if (!$productcomments->id)
+ return;
+
+ DB::getInstance()->Execute('
+ ALTER TABLE `'._DB_PREFIX_.'product_comment` DROP INDEX `id_guest`,
+ ADD INDEX `id_guest` USING BTREE(`id_guest`);');
+}
+
diff --git a/install-dev/php/index.php b/install-dev/php/index.php
new file mode 100644
index 000000000..4e2611d37
--- /dev/null
+++ b/install-dev/php/index.php
@@ -0,0 +1,36 @@
+
+* @copyright 2007-2011 PrestaShop SA
+* @version Release: $Revision$
+* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*/
+
+header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
+header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
+
+header("Cache-Control: no-store, no-cache, must-revalidate");
+header("Cache-Control: post-check=0, pre-check=0", false);
+header("Pragma: no-cache");
+
+header("Location: ../");
+exit;
\ No newline at end of file
diff --git a/install-dev/php/utf8.php b/install-dev/php/utf8.php
index 759bdd348..b31b99fbb 100644
--- a/install-dev/php/utf8.php
+++ b/install-dev/php/utf8.php
@@ -24,6 +24,8 @@
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
+
+if(!defined('_PS_MAGIC_QUOTES_GPC_'))
define('_PS_MAGIC_QUOTES_GPC_', get_magic_quotes_gpc());
function latin1_database_to_utf8()
diff --git a/install-dev/sql/db.sql b/install-dev/sql/db.sql
index dc86ed16b..d8385834a 100644
--- a/install-dev/sql/db.sql
+++ b/install-dev/sql/db.sql
@@ -61,7 +61,7 @@ CREATE TABLE `PREFIX_attachment` (
`id_attachment` int(10) unsigned NOT NULL auto_increment,
`file` varchar(40) NOT NULL,
`file_name` varchar(128) NOT NULL,
- `mime` varchar(64) NOT NULL,
+ `mime` varchar(128) NOT NULL,
PRIMARY KEY (`id_attachment`)
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
@@ -290,6 +290,16 @@ CREATE TABLE `PREFIX_cms_category_lang` (
KEY `category_name` (`name`)
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
+CREATE TABLE `PREFIX_compare_product` (
+ `id_compare_product` int(10) unsigned NOT NULL AUTO_INCREMENT,
+ `id_product` int(10) unsigned NOT NULL,
+ `id_guest` int(10) unsigned NOT NULL,
+ `id_customer` int(10) unsigned NOT NULL,
+ `date_add` datetime NOT NULL,
+ `date_upd` datetime NOT NULL,
+ PRIMARY KEY (`id_compare_product`)
+) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
+
CREATE TABLE `PREFIX_configuration` (
`id_configuration` int(10) unsigned NOT NULL auto_increment,
`id_group_shop` INT(11) UNSIGNED DEFAULT NULL,
@@ -739,7 +749,7 @@ CREATE TABLE `PREFIX_hook_module_exceptions` (
CREATE TABLE `PREFIX_image` (
`id_image` int(10) unsigned NOT NULL auto_increment,
`id_product` int(10) unsigned NOT NULL,
- `position` tinyint(2) unsigned NOT NULL default '0',
+ `position` smallint(2) unsigned NOT NULL default '0',
`cover` tinyint(1) unsigned NOT NULL default '0',
PRIMARY KEY (`id_image`),
KEY `image_product` (`id_product`),
@@ -776,6 +786,7 @@ CREATE TABLE `PREFIX_lang` (
`active` tinyint(3) unsigned NOT NULL default '0',
`iso_code` char(2) NOT NULL,
`language_code` char(5) NOT NULL,
+ `is_rtl` TINYINT(1) NOT NULL default '0',
PRIMARY KEY (`id_lang`),
KEY `lang_iso_code` (`iso_code`)
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
diff --git a/install-dev/sql/db_settings_extends.sql b/install-dev/sql/db_settings_extends.sql
index 8f8e9e8a8..d9baa4e14 100644
--- a/install-dev/sql/db_settings_extends.sql
+++ b/install-dev/sql/db_settings_extends.sql
@@ -45,6 +45,7 @@ INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VAL
('CHECKUP_STOCK_GT', '3', NOW(), NOW()),
('FOOTER_CMS', '0_3|0_4', NOW(), NOW()),
('FOOTER_BLOCK_ACTIVATION', '0_3|0_4', NOW(), NOW()),
+ ('FOOTER_POWEREDBY', 1, NOW(), NOW()),
('BLOCKADVERT_LINK', 0, NOW(), NOW()),
('BLOCKSTORE_IMG', 'store.jpg', NOW(), NOW());
@@ -109,7 +110,7 @@ CREATE TABLE `PREFIX_cms_block` (
`name` varchar(40) NOT NULL,
`location` tinyint(1) unsigned NOT NULL,
`position` int(10) unsigned NOT NULL default '0',
- `display_store` tinyint(1) NOT NULL DEFAULT '1',
+ `display_store` tinyint(1) unsigned NOT NULL DEFAULT '1',
PRIMARY KEY (`id_cms_block`)
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
diff --git a/install-dev/sql/db_settings_lite.sql b/install-dev/sql/db_settings_lite.sql
index 3db4af89c..2a7dafeb7 100644
--- a/install-dev/sql/db_settings_lite.sql
+++ b/install-dev/sql/db_settings_lite.sql
@@ -185,7 +185,24 @@ INSERT INTO `PREFIX_configuration` (`id_configuration`, `name`, `value`, `date_a
(114, 'PS_CANONICAL_REDIRECT', '1', NOW(), NOW()),
(115, 'PS_IMG_UPDATE_TIME', UNIX_TIMESTAMP(), NOW(), NOW()),
(116, 'PS_BACKUP_DROP_TABLE', 1, NOW(), NOW()),
-(117, 'PS_LEGACY_IMAGES', '1', NOW(), NOW());
+(117, 'PS_OS_CHEQUE', '1', NOW(), NOW()),
+(118, 'PS_OS_PAYMENT', '2', NOW(), NOW()),
+(119, 'PS_OS_PREPARATION', '3', NOW(), NOW()),
+(120, 'PS_OS_SHIPPING', '4', NOW(), NOW()),
+(121, 'PS_OS_DELIVERED', '5', NOW(), NOW()),
+(122, 'PS_OS_CANCELED', '6', NOW(), NOW()),
+(123, 'PS_OS_REFUND', '7', NOW(), NOW()),
+(124, 'PS_OS_ERROR', '8', NOW(), NOW()),
+(125, 'PS_OS_OUTOFSTOCK', '9', NOW(), NOW()),
+(126, 'PS_OS_BANKWIRE', '10', NOW(), NOW()),
+(127, 'PS_OS_PAYPAL', '11', NOW(), NOW()),
+(128, 'PS_OS_WS_PAYMENT', '12', NOW(), NOW()),
+(129, 'PS_LEGACY_IMAGES', '1', NOW(), NOW()),
+(130, 'PS_IMAGE_QUALITY', 'jpg', NOW(), NOW()),
+(131, 'PS_PNG_QUALITY', '7', NOW(), NOW()),
+(132, 'PS_JPEG_QUALITY', '90', NOW(), NOW()),
+(133, 'PS_COOKIE_LIFETIME_FO', '480', NOW(), NOW()),
+(134, 'PS_COOKIE_LIFETIME_BO', '480', NOW(), NOW());
INSERT INTO `PREFIX_configuration_lang` (`id_configuration`, `id_lang`, `value`, `date_upd`) VALUES
(36, 1, 'IN', NOW()),(36, 2, 'FA', NOW()),(36, 3, 'CU', NOW()),(36, 4, 'FA', NOW()),(36, 5, 'FA', NOW()),
@@ -712,8 +729,8 @@ INSERT INTO `PREFIX_tab` (`id_tab`, `class_name`, `id_parent`, `position`) VALUE
(53, 'AdminBackup', 9, 8),(57, 'AdminCMSContent', 9, 9),(64, 'AdminGenerator', 9, 10),(43, 'AdminSearch', -1, 0),(69, 'AdminInformation', 9, 11),
(70, 'AdminPerformance', 8, 11),(71, 'AdminCustomerThreads', 29, 4),(72, 'AdminWebservice', 9, 12),(73, 'AdminStockMvt', 1, 9),
(80, 'AdminAddonsCatalog', 7, 1),(81, 'AdminAddonsMyAccount', 7, 2),(83, 'AdminThemes', 7, 3),(84, 'AdminGeolocation', 8, 12),
-(85, 'AdminTaxRulesGroup', 4, 3),(86, 'AdminLogs', 9, 13), (87, 'AdminCounty', 5, 4),(88,'AdminHome',-1,0),(89,'AdminShop', 0, 11), (90,'AdminGroupShop', 89, 1),
-(91, 'AdminShopUrl', 89, 2);
+(85, 'AdminTaxRulesGroup', 4, 3),(86, 'AdminLogs', 9, 13), (87, 'AdminCounty', 5, 4),(88,'AdminHome',-1,0),(89,'AdminUpgrade',9,14),
+(90,'AdminShop', 0, 11), (91,'AdminGroupShop', 90, 1),(92, 'AdminShopUrl', 90, 2);
INSERT INTO `PREFIX_access` (`id_profile`, `id_tab`, `view`, `add`, `edit`, `delete`) (SELECT 1, id_tab, 1, 1, 1, 1 FROM PREFIX_tab);
@@ -723,29 +740,29 @@ INSERT INTO `PREFIX_tab_lang` (`id_lang`, `id_tab`, `name`) VALUES
(1, 12, 'Addresses'),(1, 13, 'Statuses'),(1, 14, 'Vouchers'),(1, 15, 'Currencies'),(1, 16, 'Taxes'),(1, 17, 'Carriers'),(1, 18, 'Countries'),
(1, 19, 'Zones'),(1, 20, 'Price Ranges'),(1, 21, 'Weight Ranges'),(1, 22, 'Positions'),(1, 23, 'Database'),(1, 24, 'E-mail'),(1, 26, 'Image'),
(1, 27, 'Products'),(1, 28, 'Contacts'),(1, 29, 'Employees'),(1, 30, 'Profiles'),(1, 31, 'Permissions'),(1, 32, 'Languages'),(1, 33, 'Translations'),
-(1, 34, 'Suppliers'),(1, 35, 'Tabs'),(1, 36, 'Features'),(1, 37, 'Quick Access'),(1, 38, 'Appearance'),(1, 39, 'Contact Information'),(1, 40, 'Aliases'),
+(1, 34, 'Suppliers'),(1, 35, 'Tabs'),(1, 36, 'Features'),(1, 37, 'Quick Access'),(1, 38, 'Appearance'),(1, 39, 'Contact Information'),(1, 40, 'Alias Research'),
(1, 41, 'Import'),(1, 42, 'Invoices'),(1, 43, 'Search'),(1, 44, 'Localization'),(1, 46, 'States'),(1, 47, 'Merchandise Returns'),(1, 48, 'PDF'),
(1, 49, 'Credit Slips'),(1, 51, 'Settings'),(1, 52, 'Subdomains'),(1, 53, 'DB backup'),(1, 54, 'Order Messages'),
(1, 55, 'Delivery Slips'),(1, 56, 'SEO & URLs'),(1, 57, 'CMS'),(1, 58, 'Image Mapping'),(1, 59, 'Customer Messages'),(1, 60, 'Tracking'),
(1, 61, 'Search Engines'),(1, 62, 'Referrers'),(1, 63, 'Groups'),(1, 64, 'Generators'),(1, 65, 'Shopping Carts'),(1, 66, 'Tags'),(1, 67, 'Search'),
(1, 68, 'Attachments'),(1, 69, 'Configuration Information'),(1, 70, 'Performance'),(1, 71, 'Customer Service'),(1, 72, 'Webservice'),(1, 73, 'Stock Movements'),
(1, 80, 'Modules & Themes Catalog'),(1, 81, 'My Account'),(1, 82, 'Stores'),(1, 83, 'Themes'),(1, 84, 'Geolocation'),(1, 85, 'Tax Rules'),(1, 86, 'Log'),
-(1, 87, 'Counties'),(1, 88, 'Home'), (1, 89, 'Shops'), (1, 90, 'Group Shops'), (1, 91, 'Shop Urls');
+(1, 87, 'Counties'),(1, 88, 'Home'),(1, 89, 'Upgrade'), (1, 90, 'Shops'), (1, 91, 'Group Shops'), (1, 92, 'Shop Urls');
INSERT INTO `PREFIX_tab_lang` (`id_lang`, `id_tab`, `name`) VALUES
(2, 1, 'Catalogue'),(2, 2, 'Clients'),(2, 3, 'Commandes'),(2, 4, 'Paiement'),(2, 5, 'Transport'),
-(2, 6, 'Stats'),(2, 7, 'Modules'),(2, 8, 'Préférences'),(2, 9, 'Outils'),(2, 10, 'Fabricants'),(2, 11, 'Attributs et groupes'),(2, 12, 'Adresses'),(2, 13, 'Statuts'),
+(2, 6, 'Stats'),(2, 7, 'Modules'),(2, 8, 'Préférences'),(2, 9, 'Outils'),(2, 10, 'Marques'),(2, 11, 'Attributs et groupes'),(2, 12, 'Adresses'),(2, 13, 'Statuts'),
(2, 14, 'Bons de réduction'),(2, 15, 'Devises'),(2, 16, 'Taxes'),(2, 17, 'Transporteurs'),(2, 18, 'Pays'),(2, 19, 'Zones'),(2, 20, 'Tranches de prix'),
(2, 21, 'Tranches de poids'),(2, 22, 'Positions'),(2, 23, 'Base de données'),(2, 24, 'Emails'),(2, 26, 'Images'),(2, 27, 'Produits'),(2, 28, 'Contacts'),
(2, 29, 'Employés'),(2, 30, 'Profils'),(2, 31, 'Permissions'),(2, 32, 'Langues'),(2, 33, 'Traductions'),(2, 34, 'Fournisseurs'),(2, 35, 'Onglets'),
-(2, 36, 'Caractéristiques'),(2, 37, 'Accès rapide'),(2, 38, 'Apparence'),(2, 39, 'Coordonnées'),(2, 40, 'Alias'),(2, 41, 'Import'),(2, 42, 'Factures'),
+(2, 36, 'Caractéristiques'),(2, 37, 'Accès rapide'),(2, 38, 'Apparence'),(2, 39, 'Coordonnées'),(2, 40, 'Alias de recherche'),(2, 41, 'Import'),(2, 42, 'Factures'),
(2, 43, 'Recherche'),(2, 44, 'Localisation'),(2, 46, 'Etats'),(2, 47, 'Retours produits'),(2, 48, 'PDF'),(2, 49, 'Avoirs'),
(2, 51, 'Configuration'),(2, 52, 'Sous domaines'),(2, 53, 'Sauvegarde BDD'),(2, 54, 'Messages prédéfinis'),(2, 55, 'Bons de livraison'),
(2, 56, 'SEO & URLs'),(2, 57, 'CMS'),(2, 58, 'Scènes'),(2, 59, 'Messages clients'),(2, 60, 'Suivi'),(2, 61, 'Moteurs de recherche'),
(2, 62, 'Sites affluents'),(2, 63, 'Groupes'),(2, 64, 'Générateurs'),(2, 65, 'Paniers'),(2, 66, 'Tags'),(2, 67, 'Recherche'),
(2, 68, 'Documents joints'),(2, 69, 'Informations'),(2, 70, 'Performances'),(2, 71, 'SAV'),(2, 72, 'Service web'),(2, 73, 'Mouvements de Stock'),
(2, 80, 'Catalogue de modules et thèmes'),(2, 81, 'Mon compte'),(2, 82, 'Magasins'),(2, 83, 'Thèmes'),(2, 84, 'Géolocalisation'),(2, 85, 'Règles de taxes'),(2, 86, 'Log'),
-(2, 87, 'Comtés'),(2,88,'Accueil'), (2, 89, 'Boutiques'), (2, 90, 'Groupes de boutique'), (2, 91, 'URLs de boutique');
+(2, 87, 'Comtés'),(2,88,'Accueil'),(2, 89, 'Mise à jour'), (2, 90, 'Boutiques'), (2, 91, 'Groupes de boutique'), (2, 92, 'URLs de boutique');
INSERT INTO `PREFIX_tab_lang` (`id_lang`, `id_tab`, `name`) VALUES
(3, 1, 'Catálogo'),(3, 2, 'Clientes'),(3, 3, 'Pedidos'),(3, 4, 'Pago'),(3, 5, 'Transporte'),
@@ -753,13 +770,13 @@ INSERT INTO `PREFIX_tab_lang` (`id_lang`, `id_tab`, `name`) VALUES
(3, 13, 'Estados'),(3, 14, 'Vales de descuento'),(3, 15, 'Divisas'),(3, 16, 'Impuestos'),(3, 17, 'Transportistas'),(3, 18, 'Países'),(3, 19, 'Zonas'),
(3, 20, 'Franja de precios'),(3, 21, 'Franja de pesos'),(3, 22, 'Posiciones'),(3, 23, 'Base de datos'),(3, 24, 'Emails'),(3, 26, 'Imágenes'),
(3, 27, 'Productos'),(3, 28, 'Contactos'),(3, 29, 'Empleados'),(3, 30, 'Perfiles'),(3, 31, 'Permisos'),(3, 32, 'Idiomas'),(3, 33, 'Traducciones'),
-(3, 34, 'Proovedores'),(3, 35, 'Pestañas'),(3, 36, 'Características'),(3, 37, 'Acceso rápido'),(3, 38, 'Aspecto'),(3, 39, 'Datos'),(3, 40, 'Alias'),
+(3, 34, 'Proveedores'),(3, 35, 'Pestañas'),(3, 36, 'Características'),(3, 37, 'Acceso rápido'),(3, 38, 'Aspecto'),(3, 39, 'Datos'),(3, 40, 'Alias de Investigación'),
(3, 41, 'Importar'),(3, 42, 'Facturas'),(3, 43, 'Búsqueda'),(3, 44, 'Ubicación'),(3, 46, 'Estados'),(3, 47, 'Devolución productos'),(3, 48, 'PDF'),
(3, 49, 'Vales'),(3, 51, 'Configuración'),(3, 52, 'Subcampos'),(3, 53, 'Copia de seguridad'),(3, 54, 'Mensajes de Orden'),
(3, 55, 'Albaranes de entrega'),(3, 56, 'SEO & URLs'),(3, 57, 'CMS'),(3, 58, 'Mapeo de la imagen'),(3, 59, 'Mensajes del cliente'),(3, 60, 'Rastreo'),
(3, 61, 'Motores de búsqueda'),(3, 62, 'Referido'),(3, 63, 'Grupos'),(3, 64, 'Generadores'),(3, 65, 'Carritos'),(3, 66, 'Etiquetas'),(3, 67, 'Búsqueda'),(3, 68, 'Adjuntos'),
-(3, 69, 'Informations'),(3, 70, 'Rendimiento'),(3, 72, 'Web service'),(3, 71, 'Servicio al cliente'),(3, 73, 'Movimiento de Stock'), (3, 82, 'Tiendas'),(3, 83, 'Temas'),(3, 84, 'Geolocalización'),(3, 85, 'Reglas de Impuestos'),(3, 86, 'Log'),
-(3, 87, 'Condados'),(3,88,'Home'), (3, 89, 'Shops'), (3, 90, 'Group Shops'), (3, 91, 'Shop Urls');
+(3, 69, 'Informaciones'),(3, 70, 'Rendimiento'),(3, 72, 'Web service'),(3, 71, 'Servicio al cliente'),(3, 73, 'Movimiento de Stock'), (3, 82, 'Tiendas'),(3, 83, 'Temas'),(3, 84, 'Geolocalización'),(3, 85, 'Reglas de Impuestos'),(3, 86, 'Log'),
+(3, 87, 'Condados'),(3,88,'Home'),(3, 89, 'Mejorar'), (3, 90, 'Shops'), (3, 91, 'Group Shops'), (3, 92, 'Shop Urls');
INSERT INTO `PREFIX_tab_lang` (`id_lang`, `id_tab`, `name`) VALUES
(4, 1, 'Katalog'),(4, 2, 'Kunden'),(4, 3, 'Bestellungen'),(4, 4, 'Zahlung'),
@@ -767,14 +784,14 @@ INSERT INTO `PREFIX_tab_lang` (`id_lang`, `id_tab`, `name`) VALUES
(4, 12, 'Adressen'),(4, 13, 'Status'),(4, 14, 'Gutscheine'),(4, 15, 'Währungen'),(4, 16, 'Steuern'),(4, 17, 'Lieferanten'),(4, 18, 'Länder'),
(4, 19, 'Zonen'),(4, 20, 'Preislagen'),(4, 21, 'Gewichtsklassen'),(4, 22, 'Positionen'),(4, 23, 'Datenbank'),(4, 24, 'E-Mail'),(4, 26, 'Bild'),
(4, 27, 'Produkte'),(4, 28, 'Kontakte'),(4, 29, 'Mitarbeiter'),(4, 30, 'Profile'),(4, 31, 'Berechtigungen'),(4, 32, 'Sprachen'),(4, 33, 'Übersetzungen'),
-(4, 34, 'Zulieferer'),(4, 35, 'Tabs'),(4, 36, 'Funktionen'),(4, 37, 'Schnellzugriff'),(4, 38, 'Aussehen'),(4, 39, 'Kontaktinformation'),(4, 40, 'Alias'),
+(4, 34, 'Zulieferer'),(4, 35, 'Tabs'),(4, 36, 'Funktionen'),(4, 37, 'Schnellzugriff'),(4, 38, 'Aussehen'),(4, 39, 'Kontaktinformation'),(4, 40, 'Suchname'),
(4, 41, 'Import'),(4, 42, 'Rechnungen'),(4, 43, 'Suche'),(4, 44, 'Lokalisierung'),(4, 46, 'Staaten'),(4, 47, 'Warenrücksendungen'),(4, 48, 'PDF'),
(4, 49, 'Gutscheine'),(4, 51, 'Einstellungen'),(4, 52, 'Subdomains'),(4, 53, 'DB-Backup'),(4, 54, 'Bestellnachrichten'),
(4, 55, 'Lieferscheine'),(4, 56, 'SEO & URLs'),(4, 57, 'CMS'),(4, 58, 'Image Mapping'),(4, 59, 'Kundennachrichten'),(4, 60, 'Tracking'),
(4, 61, 'Suchmaschinen'),(4, 62, 'Referrer'),(4, 63, 'Gruppen'),(4, 64, 'Generatoren'),(4, 65, 'Warenkörbe'),(4, 66, 'Tags'),(4, 67, 'Suche'),
(4, 68, 'Anhänge'),(4, 69, 'Konfigurationsinformationen'),(4, 70, 'Leistung'),(4, 71, 'Kundenservice'),(4, 72, 'Webservice'),(4, 73, 'Lagerbewegungen'),
(4, 80, 'Module und Themenkatalog'),(4, 81, 'Mein Konto'),(4, 82, 'Shops'),(4, 83, 'Themen'),(4, 84, 'Geotargeting'),(4, 85, 'Steuerregeln'),(4, 86, 'Log'),
-(4,87,'Counties'),(4,88,'Home'), (4, 89, 'Shops'), (4, 90, 'Group Shops'), (4, 91, 'Shop Urls');
+(4,87,'Counties'),(4,88,'Home'),(4, 89, 'Upgrade'), (4, 90, 'Shops'), (4, 91, 'Group Shops'), (4, 92, 'Shop Urls');
INSERT INTO `PREFIX_tab_lang` (`id_lang`, `id_tab`, `name`) VALUES
(5, 1, 'Catalogo'),(5, 2, 'Clienti'),(5, 3, 'Ordini'),(5, 4, 'Pagamento'),
@@ -782,14 +799,14 @@ INSERT INTO `PREFIX_tab_lang` (`id_lang`, `id_tab`, `name`) VALUES
(5, 12, 'Indirizzi'),(5, 13, 'Status'),(5, 14, 'Voucher'),(5, 15, 'Valute'),(5, 16, 'Tasse'),(5, 17, 'Corrieri'),(5, 18, 'Nazioni'),
(5, 19, 'Zone'),(5, 20, 'Fasce di prezzo'),(5, 21, 'Fasce di peso'),(5, 22, 'Posizioni'),(5, 23, 'Database'),(5, 24, 'E-mail'),(5, 26, 'Immagine'),
(5, 27, 'Prodotti'),(5, 28, 'Contatti'),(5, 29, 'Impiegati'),(5, 30, 'Profili'),(5, 31, 'Permessi'),(5, 32, 'Lingue'),(5, 33, 'Traduzioni'),
-(5, 34, 'Fornitori'),(5, 35, 'Tab'),(5, 36, 'Caratteristiche'),(5, 37, 'Accesso rapido'),(5, 38, 'Aspetto'),(5, 39, 'Informazioni di contatto'),(5, 40, 'Alias'),
+(5, 34, 'Fornitori'),(5, 35, 'Tab'),(5, 36, 'Caratteristiche'),(5, 37, 'Accesso rapido'),(5, 38, 'Aspetto'),(5, 39, 'Informazioni di contatto'),(5, 40, 'Alias di ricerca'),
(5, 41, 'Importa'),(5, 42, 'Fatture'),(5, 43, 'Cerca'),(5, 44, 'Localizzazione'),(5, 46, 'Stati'),(5, 47, 'Resi merci'),(5, 48, 'PDF'),
(5, 49, 'Note di credito'),(5, 51, 'Impostazioni'),(5, 52, 'Sottodomini'),(5, 53, 'DB backup'),(5, 54, 'Messaggi ordine'),
(5, 55, 'Note di consegna'),(5, 56, 'SEO & URLs'),(5, 57, 'CMS'),(5, 58, 'Mappatura immagine'),(5, 59, 'Messaggi cliente'),(5, 60, 'Rintracciare'),
(5, 61, 'Motori di ricerca'),(5, 62, 'Referenti'),(5, 63, 'Gruppi'),(5, 64, 'Generatori'),(5, 65, 'Carrelli shopping'),(5, 66, 'Tag'),(5, 67, 'Cerca'),
(5, 68, 'Allegati'),(5, 69, 'Informazioni di configurazione'),(5, 70, 'Performance'),(5, 71, 'Servizio clienti'),(5, 72, 'Webservice'),(5, 73, 'Movimenti magazzino'),
(5, 80, 'Moduli & Temi catalogo'),(5, 81, 'Il mio Account'),(5, 82, 'Negozi'),(5, 83, 'Temi'),(5, 84, 'Geolocalizzazione'),(5, 85, 'Regimi fiscali'),(5, 86, 'Log'),
-(5,87,'Counties'),(5,88,'Home'), (5, 89, 'Shops'), (5, 90, 'Group Shops'), (5, 91, 'Shop Urls');
+(5,87,'Counties'),(5,88,'Home'),(5, 89, 'Aggiornamento'), (5, 90, 'Shops'), (5, 91, 'Group Shops'), (5, 92, 'Shop Urls');
INSERT IGNORE INTO `PREFIX_tab_lang` (`id_tab`, `id_lang`, `name`)
(SELECT `id_tab`, id_lang, (SELECT tl.`name`
@@ -1160,10 +1177,10 @@ INSERT INTO `PREFIX_stock_mvt_reason_lang` (`id_stock_mvt_reason`, `id_lang`, `n
INSERT INTO `PREFIX_address_format` (`id_country`, `format`)
(SELECT `id_country` as id_country, 'firstname lastname\ncompany\nvat_number\naddress1\naddress2\npostcode city\nCountry:name\nphone' as format FROM `PREFIX_country`);
-UPDATE `PREFIX_address_format` set `format`='company
-firstname lastname
+UPDATE `PREFIX_address_format` set `format`='firstname lastname
+company
address1 address2
-city State:name postcode
+city, State:name postcode
Country:name
phone' where `id_country`=21;
diff --git a/install-dev/sql/index.php b/install-dev/sql/index.php
new file mode 100644
index 000000000..4e2611d37
--- /dev/null
+++ b/install-dev/sql/index.php
@@ -0,0 +1,36 @@
+
+* @copyright 2007-2011 PrestaShop SA
+* @version Release: $Revision$
+* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*/
+
+header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
+header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
+
+header("Cache-Control: no-store, no-cache, must-revalidate");
+header("Cache-Control: post-check=0, pre-check=0", false);
+header("Pragma: no-cache");
+
+header("Location: ../");
+exit;
\ No newline at end of file
diff --git a/install-dev/sql/upgrade/1.4.0.15.sql b/install-dev/sql/upgrade/1.4.0.15.sql
index 7a0227965..f58669a52 100644
--- a/install-dev/sql/upgrade/1.4.0.15.sql
+++ b/install-dev/sql/upgrade/1.4.0.15.sql
@@ -1,7 +1,7 @@
/* PHP:add_new_tab(AdminCounty, fr:Comtés|es:Condados|en:Counties|de:Counties|it:Counties, 5); */;
ALTER TABLE `PREFIX_tax_rule` ADD `county_behavior` INT NOT NULL AFTER `state_behavior`;
-ALTER TABLE `PREFIX_tax_rule` ADD `id_county` INT NOT NULL AFTER `state_behavior`;
+ALTER TABLE `PREFIX_tax_rule` ADD `id_county` INT NOT NULL AFTER `id_country`;
ALTER TABLE `PREFIX_tax_rule` ADD UNIQUE (
`id_tax_rules_group` ,
diff --git a/install-dev/sql/upgrade/1.4.0.17.sql b/install-dev/sql/upgrade/1.4.0.17.sql
index dc6af7ab0..bf8cb320f 100644
--- a/install-dev/sql/upgrade/1.4.0.17.sql
+++ b/install-dev/sql/upgrade/1.4.0.17.sql
@@ -1,6 +1,6 @@
SET NAMES 'utf8';
-ALTER TABLE `PREFIX_stock_mvt_reason` ADD `sign` TINYINT(1) NOT NULL AFTER `id_stock_mvt_reason`;
+ALTER TABLE `PREFIX_stock_mvt_reason` ADD `sign` TINYINT(1) NOT NULL DEFAULT '1' AFTER `id_stock_mvt_reason`;
UPDATE `PREFIX_stock_mvt_reason` SET `sign`=-1;
UPDATE `PREFIX_stock_mvt_reason` SET `sign`=1 WHERE `id_stock_mvt_reason`=3;
UPDATE `PREFIX_stock_mvt_reason` SET `id_stock_mvt_reason`=`id_stock_mvt_reason`+2 ORDER BY `id_stock_mvt_reason` DESC;
diff --git a/install-dev/sql/upgrade/1.4.2.0.sql b/install-dev/sql/upgrade/1.4.2.0.sql
index d4b66a53e..2034dcf8e 100644
--- a/install-dev/sql/upgrade/1.4.2.0.sql
+++ b/install-dev/sql/upgrade/1.4.2.0.sql
@@ -12,15 +12,7 @@ ALTER TABLE `PREFIX_orders` ADD INDEX `date_add`(`date_add`);
INSERT IGNORE INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES
('PS_STOCK_MVT_REASON_DEFAULT', 3, NOW(), NOW());
-INSERT IGNORE INTO `PREFIX_order_state` (`id_order_state`, `invoice`, `send_email`, `color`, `unremovable`, `logable`, `delivery`) VALUES (12, 0, 0, 'lightblue', 1, 0, 0);
-
-INSERT IGNORE INTO `PREFIX_order_state_lang` (`id_order_state`, `id_lang`, `name`, `template`) VALUES
-(12, 1, 'Payment remotely accepted', ''),
-(12, 2, 'Paiement à distance accepté', ''),
-(12, 3, 'Payment remotely accepted', ''),
-(12, 4, 'Payment remotely accepted', ''),
-(12, 5, 'Payment remotely accepted', '');
-
+/* PHP:add_order_state(PS_OS_WS_PAYMENT, en:Payment remotely accepted|fr:Paiement à distance accepté, 0, 0, lightblue, 1, 0, 0); */;
/* PHP:alter_blocklink(); */;
/* PHP:update_module_loyalty(); */;
/* PHP:remove_module_from_hook(blockcategories, afterCreateHtaccess); */;
diff --git a/install-dev/sql/upgrade/1.4.3.sql b/install-dev/sql/upgrade/1.4.3.0.sql
similarity index 70%
rename from install-dev/sql/upgrade/1.4.3.sql
rename to install-dev/sql/upgrade/1.4.3.0.sql
index fdef3a327..e5be50568 100644
--- a/install-dev/sql/upgrade/1.4.3.sql
+++ b/install-dev/sql/upgrade/1.4.3.0.sql
@@ -8,7 +8,7 @@ city
State:name
postcode
Country:name'
-WHERE id_country = (SELECT id_country FROM `PREFIX_country` WHERE `iso_code`='GB');
+WHERE `id_country` = (SELECT `id_country` FROM `PREFIX_country` WHERE `iso_code`='GB');
UPDATE `PREFIX_country` SET `contains_states` = 1 WHERE `id_country` = 145;
diff --git a/install-dev/sql/upgrade/1.4.4.0.sql b/install-dev/sql/upgrade/1.4.4.0.sql
new file mode 100644
index 000000000..4c20d78c6
--- /dev/null
+++ b/install-dev/sql/upgrade/1.4.4.0.sql
@@ -0,0 +1,80 @@
+SET NAMES 'utf8';
+
+ALTER TABLE `PREFIX_image` MODIFY COLUMN `position` SMALLINT(2) UNSIGNED NOT NULL DEFAULT 0;
+
+INSERT IGNORE INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES
+('PS_OS_CHEQUE', '1', NOW(), NOW()),
+('PS_OS_PAYMENT', '2', NOW(), NOW()),
+('PS_OS_PREPARATION', '3', NOW(), NOW()),
+('PS_OS_SHIPPING', '4', NOW(), NOW()),
+('PS_OS_DELIVERED', '5', NOW(), NOW()),
+('PS_OS_CANCELED', '6', NOW(), NOW()),
+('PS_OS_REFUND', '7', NOW(), NOW()),
+('PS_OS_ERROR', '8', NOW(), NOW()),
+('PS_OS_OUTOFSTOCK', '9', NOW(), NOW()),
+('PS_OS_BANKWIRE', '10', NOW(), NOW()),
+('PS_OS_PAYPAL', '11', NOW(), NOW()),
+('PS_OS_WS_PAYMENT', '12', NOW(), NOW()),
+('PS_IMAGE_QUALITY', 'jpg', NOW(), NOW()),
+('PS_PNG_QUALITY', '7', NOW(), NOW()),
+('PS_JPEG_QUALITY', '90', NOW(), NOW()),
+('PS_COOKIE_LIFETIME_FO', '480', NOW(), NOW()),
+('PS_COOKIE_LIFETIME_BO', '480', NOW(), NOW());
+
+ALTER TABLE `PREFIX_lang` ADD `is_rtl` TINYINT(1) NOT NULL DEFAULT '0';
+
+UPDATE `PREFIX_country_lang`
+SET `name` = 'United State'
+WHERE `name` = 'USA'
+AND `id_lang` = (
+ SELECT `id_lang`
+ FROM `PREFIX_lang`
+ WHERE `iso_code` = 'en'
+ LIMIT 1
+);
+
+UPDATE `PREFIX_hook`
+SET `live_edit` = 1
+WHERE `name` = 'leftColumn'
+OR `name` = 'home'
+OR `name` = 'rightColumn'
+OR `name` = 'productfooter'
+OR `name` = 'payment';
+
+ALTER TABLE `PREFIX_stock_mvt_reason` MODIFY `sign` TINYINT(1) NOT NULL DEFAULT '1' AFTER `id_stock_mvt_reason`;
+
+UPDATE `PREFIX_tab_lang`
+SET `name` = 'Geolocation'
+WHERE `name` = 'Geolocalization';
+
+UPDATE `PREFIX_tab_lang`
+SET `name` = 'Counties'
+WHERE `name` = 'County';
+
+ALTER TABLE `PREFIX_tax_rule` MODIFY `id_county` INT NOT NULL AFTER `id_country`;
+
+UPDATE `PREFIX_address_format` set `format`='firstname lastname
+company
+address1 address2
+city, State:name postcode
+Country:name
+phone'
+WHERE `id_country` = (SELECT `id_country` FROM `PREFIX_country` WHERE `iso_code`='US');
+
+ALTER TABLE `PREFIX_attachment` CHANGE `mime` `mime` VARCHAR(128) NOT NULL;
+
+CREATE TABLE IF NOT EXISTS `PREFIX_compare_product` (
+ `id_compare_product` int(10) unsigned NOT NULL AUTO_INCREMENT,
+ `id_product` int(10) unsigned NOT NULL,
+ `id_guest` int(10) unsigned NOT NULL,
+ `id_customer` int(10) unsigned NOT NULL,
+ `date_add` datetime NOT NULL,
+ `date_upd` datetime NOT NULL,
+ PRIMARY KEY (`id_compare_product`)
+) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
+
+DELETE FROM `PREFIX_configuration` WHERE name = 'PS_LAYERED_NAVIGATION_CHECKBOXES' LIMIT 1;
+
+/* PHP:add_new_tab(AdminUpgrade, en:Upgrade|fr:Mise à jour, 9); */;
+
+/* PHP:alter_productcomments_guest_index(); */;
diff --git a/install-dev/sql/upgrade/index.php b/install-dev/sql/upgrade/index.php
new file mode 100644
index 000000000..4e2611d37
--- /dev/null
+++ b/install-dev/sql/upgrade/index.php
@@ -0,0 +1,36 @@
+
+* @copyright 2007-2011 PrestaShop SA
+* @version Release: $Revision$
+* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*/
+
+header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
+header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
+
+header("Cache-Control: no-store, no-cache, must-revalidate");
+header("Cache-Control: post-check=0, pre-check=0", false);
+header("Pragma: no-cache");
+
+header("Location: ../");
+exit;
\ No newline at end of file
diff --git a/install-dev/view.css b/install-dev/view.css
index b610bfce0..09810edd1 100644
--- a/install-dev/view.css
+++ b/install-dev/view.css
@@ -1,594 +1,740 @@
@CHARSET "UTF-8";
-/*
-purple #d41958
+/* ****************************************************************************
+ reset
+**************************************************************************** */
+html{color:#000;background:#FFF;}
+body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td{margin:0;padding:0;}
+table{border-collapse:collapse;border-spacing:0;}
+fieldset,img{border:0;}
+address,caption,cite,code,dfn,em,th,var,optgroup{font-style:inherit;font-weight:inherit;}
+del,ins{text-decoration:none;}
+caption,th{text-align:left;}
+h1,h2,h3,h4,h5,h6{font-size:100%;}
+q:before,q:after{content:'';}
+abbr,acronym{border:0;font-variant:normal;}
+sup{vertical-align:baseline;}
+sub{vertical-align:baseline;}
+legend{color:#000;}
+input,button,textarea,select,optgroup,option{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;}
+input,button,textarea,select{font-size:100%;}
+a {cursor:pointer;}
-green #7eb423
-*/
-
-body{
- background-image : url(img/bg-body.png);
- font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;
+.installModuleList { display: none; }
+.installModuleList.selected { display: block; }
+.clearfix:before,
+.clearfix:after {
+ content: ".";
+ display: block;
+ height: 0;
+ overflow: hidden;
}
+.clearfix:after {clear: both;}
+.clearfix {zoom: 1;}
-a:link, a:active, a:visited{
- text-decoration:none;
- color:#d41958;
-}
-a:hover{
- color:#7eb423;
-}
+/* ****************************************************************************
+ structure
+**************************************************************************** */
#container{
- margin:1em auto 0 auto;
- width:930px;
- padding:10px 30px 0px 30px;
- font-size:0.8em;
- background : #456d01 url(img/bg-ctnr.png) top repeat-x;
+ position:relative;
display:none;
+ margin:0 auto;
+ padding:0;
+ width:990px;
+ background :#fff;
}
+ #header {
+ padding:6px 16px 16px 16px;
+ height:68px;/* 90 */
+ background:#394049;
+ }
#loaderSpace{
- height:24px;
+ display:none;
+ z-index: 100;
+ position: absolute;
+ top: 0;
+ left: 0;
+ height: 100%;
+ width: 100%;
+ background:transparent url(img/bg_loaderSpace.png) repeat 0 0;
}
div#loader{
- float:right;
- background-image:url(../img/loadingAnimation.gif);
- height:13px;
- width:208px;
- color:white;
display:none;
+ margin: 450px 0 0 440px;
+ height:128px;
+ width:128px;
+ color:#fff;
+ background-image:url(img/ajax-loader.gif);
}
div#leftpannel{
float:left;
- width:250px;
- margin-top: 15px;
+ margin:65px 30px 0 30px;
+ width:220px;
}
-div#leftpannel div#help{
- width:175px;
- height:129px;
- margin:20px 0;
- padding:5px;
- background:url('img/bg_help.png') no-repeat;
- font-family:Arial, sans-serif;
+ div#sheets {
+ float:left;
+ margin-top:65px;
+ min-height:400px;
+ width:700px;
+ background-color:#fff;
}
-div#leftpannel div#help img.ico_help{float:left; margin:5px;}
-div#leftpannel div#help div.content{
- float:right;
- width:125px;
+ * html div#sheets {
+ height: 400px;
}
-div#leftpannel div#help div.content p.title{color:#fff;font-weight:bold;font-size:10.5pt;margin:6pt 0 3px 0;}
-div#leftpannel div#help div.content p.title_down{color:#383838;font-size:8pt;margin:0;}
-div#leftpannel div#help div.content ul{margin:10px 0;padding:0;}
-div#leftpannel div#help div.content ul li{clear:both;padding-bottom:5px;list-style-type:none;}
-div#leftpannel div#help div.content ul li img,
- div#leftpannel div#help div.content ul li a{ float:left; }
-div#leftpannel div#help div.content ul li a{
- display:block;
- margin-left:6px;
+ #sheets div.sheet{
+ /*display:none;*/
+ padding:1em;
+ width:650px;
+}
+
+ div#buttons{
+ clear:both;
+ margin:0 0 0 295px;
+ height:70px;
+ width:650px;
+}
+ * html div#buttons {
+ margin-bottom:60px;
+ margin-top:-30px;
+ }
+ #btNext {float:right;}
+
+ul#footer{
+ margin-top:5px;
+ list-style-type:none;
+ text-align:center;
+ margin-bottom:2px;
color:#fff;
- font-weight:bold;
- line-height:17px;
- vertical-align:middle;
- text-decoration:underline;
}
+
+/* ****************************************************************************
+ generics styles
+**************************************************************************** */
+body{
+ font:normal 13px/18px Arial, Helvetica, sans-serif;
+ color:#333;
+ background:#e1e2e2;
+}
+
+/* title */
+h1 {font-size:24px;}
+h2 {
+ padding-bottom:20px;
+ font-size:18px;
+}
+h3 {
+ padding-bottom:20px;
+ font-size:16px;
+}
+h4 {
+ padding-bottom:20px;
+ font-size:14px;
+}
+
+/* text */
+p {padding-bottom:20px;}
+#sheets ul {
+ margin-left: 15px;
+ padding-bottom:20px;
+ list-style-type:square;
+}
+
+/* link */
+a, a:active, a:visited {
+ color:#d41958;
+ text-decoration:none;
+}
+ a:hover {text-decoration:underline;}
+
+sup.required {color: red;}
+
+/*buttons */
+
+
+/* form */
+input.button {
+ padding:0 30px;
+ height:31px;
+ line-height:31px;
+ color:#fff;
+ text-shadow:0 1px 0 #0d7903;
+ background:#039701 url(img/bt.png) repeat-x 0 0;
+ border:1px solid #ccc;
+ -moz-border-radius: 5px;
+ -webkit-border-radius:5px;
+ border-radius: 5px;
+ box-shadow:0 1px #666;
+}
+ input.button:hover {
+ background:#039701 url(img/bt-hover.png) repeat-x 0 0;
+ cursor:pointer;
+}
+ input#btBack {
+ color:#666;
+ text-shadow:0 1px 0 #fff;
+ background-image:url(img/bt_off.png);
+}
+ input#btBack:hover {background-image:url(img/bt_off_hover.png);}
+
+input.button.disabled {
+ color:#666;
+ text-shadow:0 1px 0 #fff;
+ background:#ccc url(img/bt-dsbl.png) repeat-x 0 0;
+}
+
+input.text {
+ padding:0 6px;
+ height:22px;
+ width:218px;/* 230 */
+ background:#fff img(img/bg-input-text.png) repeat-x 0 0;
+ border:1px solid #ccc;
+}
+select {
+ width: 232px;
+ border:1px solid #ccc;
+}
+
+div.field {
+ padding:10px 0;
+ border-bottom:1px solid #ccc;
+}
+ div.field label {
+ display:inline-block;
+ width:190px;
+ vertical-align: top;
+}
+ div.field label.radiolabel {width:auto;}
+ div.field span.contentinput {
+ display:inline-block;
+ width:245px;
+ vertical-align: top;
+}
+ div.field .userInfos {
+ display:inline-block;
+ width:200px;
+ font-size:11px;
+ font-style:italic;
+ color:#999;
+}
+
+.okBlock {
+ padding:20px 20px 20px 38px;
+ background:#b7e2a7 url(img/pict_ok.png) no-repeat 15px 21px;
+ border:1px solid #85c10c;
+}
+
+.errorBlock {
+ padding:20px 20px 20px 38px;
+ background:#ffebe8 url(img/pict_error.png) no-repeat 15px 21px;
+ border:1px solid #cc0000;
+}
+
+.infosBlock {
+ padding:14px 25px 14px 35px;
+ font-weight:normal;
+ font-size:13px;
+ line-height:18px;
+ background:#f8f8f8 url(img/pict_h3_infos.png) no-repeat 10px 13px;
+ border:1px solid #ccc;
+}
+
+.okBlock h1,
+.okBlock h2,
+.okBlock h3,
+.errorBlock h1,
+.errorBlock h2,
+.errorBlock h3,
+.infosBlock h1,
+.infosBlock h2,
+.infosBlock h3 {
+ padding-bottom:5px;
+}
+
+
+/* ****************************************************************************
+ HEADER
+**************************************************************************** */
+#header #headerLinks {float:right;}
+ #header #headerLinks li {
+ display:inline-block;
+ padding:0 12px;
+ vertical-align: top;
+ background:transparent url(img/bg-li-headerLinks.png) no-repeat right 2px;
+}
+ #header #headerLinks li.last {background:none;}
+ #header #headerLinks li a {
+ color:#fff;
+ text-decoration:none;
+}
+ #header #headerLinks li a:hover {text-decoration:underline;}
+ #header #headerLinks #phone_block {
+ padding:0 0 0 46px;
+ line-height:14px;
+ color:#fff;
+ text-shadow:0 1px 0 #333;
+ background:transparent url(img/bg-phone_block.png) no-repeat 0 0;
+}
+ #header #headerLinks #phone_block div {
+ padding:7px 15px 8px 0;
+ background:transparent url(img/bg-phone_block.png) no-repeat right top;
+}
+
+#header #PrestaShopLogo {
+ float:left;
+ margin:5px 0 0 10px;
+ height: 51px;
+ width: 192px;
+ text-indent: -5000px;
+ background:transparent url(img/logo.png) no-repeat 0 0;
+}
+
+#header #infosSup {
+ display:none;
+ float:left;
+ margin:10px 0 0 50px;
+}
+
+
+/* ****************************************************************************
+ LEFTPANEL
+**************************************************************************** */
+div#leftpannel div#help{display:none;}
+
ol#tabs{
list-style-type:none;
margin:0;
padding:0;
}
+ ol#tabs li{
+ padding:9px 0 9px 16px;
+ font-size:14px;
+ color:#adadad;
+ }
+ ol#tabs li.selected{
+ color:#000;
+ background : url(img/bg-li-tabs.png) no-repeat 1px 15px;
+ }
+ ol#tabs li.finished{
+ color:#78a531;
+ background : url(img/bg-li-tabs-finished.png) no-repeat 0 12px;
+ }
-ol#tabs li{
- background-color:#CFE5BD;
- font-size:1em;
- height:25px;
- padding-top:10px;
- clear:both;
- background-color:#699d0f;
- color:white;
+
+/* ****************************************************************************
+ FOOTER
+**************************************************************************** */
+ul#footer li {
+ display:inline;
font-weight:bold;
+ font-size:12px;
+ color:#666;
}
-ol#tabs li.selected{
- background : url(img/bg-tab.png) repeat-x;
- height:36px;
- padding-top:23px;
+ul#footer a:link, ul#footer a:active, ul#footer a:visited {
+ color:#666;
+ text-decoration:none;
}
-
-ol#tabs li.finished{
- font-weight:normal;
-}
-ol#tabs li span {
- display:block;
- padding-left:20px;
- margin-left:20px;
- height:18px;
-}
-
-ol#tabs li span.number1 {
- background:none;
- filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/01-gd100.png', sizingMethod='crop');
-}
-html>body ol#tabs li.selected span.number1 {
- filter: none;
- background: url('img/01-pt100.png') no-repeat;
+ ul#footer a:hover{
+ color:#333;
+ text-decoration:underline;
}
-ol#tabs li.selected span.number1 {
- background:none;
- filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/01-gd100.png', sizingMethod='crop');
+/* ****************************************************************************
+ SHEET
+**************************************************************************** */
+#sheets div.sheet {
+ display: none;
+ padding: 14px;
+ width: 650px;
}
-html>body ol#tabs li.selected span.number1 {
- filter: none;
- background: url('img/01-gd100.png') no-repeat;
-}
-
-
-
-ol#tabs li.finished span.number1 {
- background:none;
- filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/01-pt70.png', sizingMethod='crop');
-}
-html>body ol#tabs li.finished span.number1 {
- filter: none;
- background: url('img/01-pt70.png') no-repeat;
-}
-
-ol#tabs li span.number2 {
- background:none;
- filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/02-pt100.png', sizingMethod='crop');
-}
-html>body ol#tabs li span.number2 {
- filter: none;
- background: url('img/02-pt100.png') no-repeat;
-}
-
-
-
-ol#tabs li.selected span.number2 {
- background:none;
- filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/02-gd100.png', sizingMethod='crop');
-}
-html>body ol#tabs li.selected span.number2 {
- filter: none;
- background: url('img/02-gd100.png') no-repeat;
-}
-
-
-ol#tabs li.finished span.number2 {
- background:none;
- filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/02-pt70.png', sizingMethod='crop');
-}
-html>body ol#tabs li.finished span.number2 {
- filter: none;
- background: url('img/02-pt70.png') no-repeat;
-}
-
-ol#tabs li span.number3 {
- background:none;
- filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/03-pt100.png', sizingMethod='crop');
-}
-html>body ol#tabs li span.number3 {
- filter: none;
- background: url('img/03-pt100.png') no-repeat;
-}
-
-ol#tabs li.selected span.number3 {
- background:none;
- filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/03-gd100.png', sizingMethod='crop');
-}
-html>body ol#tabs li.selected span.number3 {
- filter: none;
- background: url('img/03-gd100.png') no-repeat;
-}
-
-ol#tabs li.finished span.number3 {
- background:none;
- filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/03-pt70.png', sizingMethod='crop');
-}
-html>body ol#tabs li.finished span.number3 {
- filter: none;
- background: url('img/03-pt70.png') no-repeat;
-}
-
-ol#tabs li span.number4 {
- background:none;
- filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/04-pt100.png', sizingMethod='crop');
-}
-html>body ol#tabs li span.number4 {
- filter: none;
- background: url('img/04-pt100.png') no-repeat;
-}
-
-ol#tabs li.selected span.number4 {
- background:none;
- filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/04-gd100.png', sizingMethod='crop');
-}
-html>body ol#tabs li.selected span.number4 {
- filter: none;
- background: url('img/04-gd100.png') no-repeat;
-}
-
-ol#tabs li.finished span.number4 {
- background:none;
- filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/04-pt70.png', sizingMethod='crop');
-}
-html>body ol#tabs li.finished span.number4 {
- filter: none;
- background: url('img/04-pt70.png') no-repeat;
-}
-
-ol#tabs li span.number5 {
- background:none;
- filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/05-pt100.png', sizingMethod='crop');
-}
-html>body ol#tabs li span.number5 {
- filter: none;
- background: url('img/05-pt100.png') no-repeat;
-}
-
-ol#tabs li.selected span.number5 {
- background:none;
- filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/05-gd100.png', sizingMethod='crop');
-}
-html>body ol#tabs li.selected span.number5 {
- filter: none;
- background: url('img/05-gd100.png') no-repeat;
-}
-
-ol#tabs li.finished span.number5 {
- background:none;
- filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/05-pt70.png', sizingMethod='crop');
-}
-html>body ol#tabs li.finished span.number5 {
- filter: none;
- background: url('img/05-pt70.png') no-repeat;
-}
-
-div#sheets {
- float:left;
- background-color:white;
- margin-top:15px;
- min-height:400px;
-
-}
-* html div#sheets {
- height: 400px;
-}
-
-#sheets div.sheet{
- display:none;
- width:650px;
- padding:1em;
-}
-
-h1{
- color:#7EB423;
- margin:0;
- text-align:center;
-}
-
-h2{
- color:#7EB423;
- font-size:1.3em;
- margin:0pt 0pt 0.5em;
- text-transform:uppercase;
- font-weight:bold;
-}
-
-h3{
- color:#d41958;
- margin:2em 0;
- font-size:0.9em;
-}
-p{
- margin : 0.5em 0;
-}
-
#sheets div#sheet_lang{
display:block;
}
-
-ul#langList {
- list-style-type:none;
+ .sheet .contentTitle {
+ position:absolute;
+ top:90px;
+ left:0;
+ padding:15px 25px 10px 38px;
+ height:28px;/* 53 */
+ width:927px;/* 990 */
+ background:transparent url(img/bg-contentTitle.png) repeat-x 0 0;
}
-
-ul#langList img {
- margin:0 2px;
+ .sheet .contentTitle .stepList {
+ position:absolute;
+ top:7px;
+ right:20px;
+ list-style-type:none !important;
}
+ .sheet .contentTitle .stepList li {
+ float:left;
+ height:42px;
+ width:42px;
+ text-indent:-5000px;
+ background:transparent url(img/bg_li_stepList.png) no-repeat 0 0;
+ }
+ .sheet .contentTitle .stepList li.ok {background-position:0 -50px;}
+ .sheet .contentTitle .stepList li.ko {background-position:0 -100px;}
-input.button {
- background:transparent url(img/bt.png) no-repeat scroll 0%;
- border:medium none;
- color:white;
- font-size:0.97em;
+ li.title {
+ margin:0;
font-weight:bold;
- margin:0pt 0.1em;
- height:26px;
- width:177px;
- padding-bottom:0.3em;
-}
-input.button.little{
- background : url(img/boutonpt-on.png) no-repeat;
- height:23px;
- width:102px;
}
-input.button:hover {
- background : url(img/bt-hover.png) no-repeat;
+/* INSTALLATION ***************************************************************************** */
+/* ETAPE 1 - lang ********************************************************** */
+#formSetMethod {padding-bottom:20px;}
+ #formSetMethod p {padding-bottom:0;}
+
+ul#langList {list-style-type:none;}
+
+/* ETAPE 2 - required ******************************************************* */
+#sheet_require #req_bt_refresh {float:right;}
+#sheet_require #btTestDB {float:right;}
+
+/*h3#resultConfig {
+ padding:20px 20px 20px 38px;
+ background:#ffebe8 url(img/pict_error.png) no-repeat 15px 21px;
+ border:1px solid #cc0000;
+}*/
+
+ul#required,
+ul#optional {list-style-type:none;}
+ ul#required li,
+ ul#optional li {
+ padding:6px 8px 4px 8px;
+ background:#f8f8f8;
}
-input.button.little:hover{
- background : url(img/boutonpt-over.png) no-repeat;
+ ul#required li.title,
+ ul#optional li.title {
+ margin-top: 20px;
+ padding:4px 8px;
+ background:#f8f8f8 url(img/bg_li_title.png) repeat-x 0 0;
+}
+ ul#required li.required ,
+ ul#optional li.optional{
+ border-top:1px solid #fff;
+ border-bottom:1px solid #ccc;
+}
+ ul#required li.ok,
+ ul#optional li.ok{
+ background:#f8f8f8 url(img/pict_ok.png) no-repeat 100% 10px;
+}
+ ul#required li.fail,
+ ul#optional li.fail {
+ background:#f8f8f8 url(img/pict_error.png) no-repeat 100% 8px;
}
-input.button.disabled {
- background : url(img/bt-dsbl.png) no-repeat;
-}
-input.button.little.disabled{
- background : url(img/boutonpt-disabled.png) no-repeat;
+/* ETAPE 3 - DB ************************************************************* */
+#sheet_db {
+ padding:0 !important;
+ width:678px !important;
}
-
-label.disabled, p.disabled{
- color:gray;
+#formCheckSQL p,
+#mailSMTPParam p {
+ /*
+ USELESS
+ padding:10px 0;
+ border-top:1px solid #fff;
+ border-bottom:1px solid #ccc;*/
+}
+#formCheckSQL p.first {border-top:none;}
+#formCheckSQL p.last {border-bottom:none;}
+/*USELESS #formCheckSQL p#dbResultCheck {border:none;}*/
+#formCheckSQL p label,
+#mailSMTPParam p label {
+ display:inline-block;
+ width:230px;
}
-input.text {
- border:1px gray solid;
- width:175px;
-}
-input.text.required {
- border-color:#D41958;
+#dbPart,
+#dbTableParam,
+#mailPart {
+ margin-bottom:15px;
+ padding:14px;
+ width:650px;
+ background:#f8f8f8;
}
-div#buttons{
- clear:both;
- margin-right:2px;
- margin-bottom:0px;
- margin-top:0px;
- text-align:right;
- height:70px;
-}
-
-* html div#buttons {
- margin-bottom:60px;
- margin-top:-30px;
-}
-
-div#buttons input{
- margin-top :5px;
- margin-left :5px;
-}
-
-div#sheet_require ul, div#sheet_require_update ul{
- list-style-type:none;
-}
-
-div#sheets .ok{
- padding-left: 20px;
- background: url(img/ok.gif) left no-repeat;
-}
-
-div#sheets .fail{
- font-weight:bold;
- padding-left: 20px;
- background: url(img/bad.gif) left no-repeat;
- color:#D41958;
-}
-
-.userInfos{
- color:gray;
+#mailSMTPParam {margin-bottom:10px;}
+ #mailSMTPParam #configsmtp span {
+ padding-left:15px;
+ font-size:11px;
font-style:italic;
- font-size:0.85em;
-}
-p.userInfos.aligned{
- margin-left:160px;
+ color:#999;
}
-div#mailSMTPParam{
- display:none;
-}
-
-img#uploadedImage{
- border:3px dashed #E0E0E0;
- margin:auto;
- padding:3px;
-}
-ul#footer{
- margin-top:5px;
- list-style-type:none;
- text-align:center;
- font-size:0.7em;
- margin-bottom:2px;
- color:white;
-}
-ul#footer li{
- display:inline;
-}
-
-ul#footer a:link, ul#footer a:active, ul#footer a:visited{
- text-decoration:none;
- color:white;
-}
-ul#footer a:hover{
- color:#7eb423;
+#mailPart .userInfos {
+ padding-left:18px;
+ font-size:11px;
+ font-style:italic;
+ color:#999;
}
-label.aligned{
- width:245px;
- float:left;
- display:block;
- text-align:right;
- margin-right:1em;
+/* ETAPE 4 - infos ********************************************************* */
+#sheet_infos {
+ padding:0 !important;
+ width:678px !important;
}
-input.aligned{
- margin-left:258px;
-}
-* html input.aligned{
- margin-left:0;
-}
-span.aligned{
- margin-left:258px;
-}
-div.field {
- margin-bottom:1.5em;
-}
-span.result{
- display:none;
-}
-div#disclaimerDivCertify{
- text-align:center;
-}
-div#updateLog{
- height:200px;
- width:100%;
- border:gray 1px dashed;
- overflow:auto;
- display:none;
-}
-
-table#resultInstall{
- width:100%;
- margin:10px auto 5px auto;
+#contentInfosNotification {
+ padding-left:190px;
border:none;
}
-table#resultInstall td{
- border-bottom:3px solid #FFF;
- background:#F5FFE4;
- padding:5px;
-}
-table#resultInstall td.label{
- width:35%;
- text-align:right;
-}
-table#resultInstall td.resultEnd{width:65%;color:#D41956;font-weight:bold;}
-p#alignedLogo{
- text-align:center;
+#contentInfosNotification label {
+ width:auto;
+ font-size:11px;
}
-form.aligned{
- border:1px dashed gray;
+#infosShopBlock,
+#benefitsBlock {
+ margin-bottom:15px;
+ padding:14px;
+ width:650px;
+ background:#f8f8f8;
+}
+
+#inputFileLogo {margin-left:190px;}
+
+.moduleTable {
+ padding: 5px;
+ width: 650px;
+ background:#fff;
+ border: 1px solid #CCC;
+ border-bottom:none;
+}
+ .moduleTable tr {
+ border-bottom: 1px solid #CCC;
+}
+ .moduleTable th {
+ font-size:13;
+ color:#000;
+ text-shadow:0 1px 0 #fff;
+ background:#cfcfcf url(img/bg_moduleTable_th.png) repeat-x 0 0;
+}
+ .moduleTable .field {
+ padding:10px 0;
+ border-bottom:none;
+}
+ .moduleTable .field label {
+ display:inline-block;
+ padding-left:10px;
+ width:180px;/* 190 */
+}
+ .moduleTable .field label.radiolabel {width:auto;}
+ .moduleTable .field span.contentinput {
+ display:inline-block;
+ width:245px;
+ font-size: 11px;
+ font-style:italic;
+ color:#999;
+}
+
+#paypal_uk_form_form_dateOfEstablishment_year,
+#paypal_de_form_dateOfEstablishment_year,
+#paypal_es_form_dateOfEstablishment_year,
+#paypal_it_form_dateOfEstablishment_year,
+#paypal_gb_form_dateOfEstablishment_year,
+#paypal_se_form_dateOfEstablishment_year,
+#paypal_fr_form_dateOfEstablishment_year
+
+#moneybookers_uk_form_dateOfBirth_year,
+#moneybookers_de_form_dateOfBirth_year,
+#moneybookers_es_form_dateOfBirth_year,
+#moneybookers_it_form_dateOfBirth_year,
+#moneybookers_gb_form_dateOfBirth_year,
+#moneybookers_se_form_dateOfBirth_year,
+#moneybookers_fr_form_dateOfBirth_year {
+ margin-right:10px;
+ width:60px !important;
+}
+
+#paypal_uk_form_dateOfEstablishment_month,
+#paypal_uk_form_dateOfEstablishment_day,
+#paypal_de_form_dateOfEstablishment_month,
+#paypal_de_form_dateOfEstablishment_day,
+#paypal_es_form_dateOfEstablishment_month,
+#paypal_es_form_dateOfEstablishment_day,
+#paypal_it_form_dateOfEstablishment_month,
+#paypal_it_form_dateOfEstablishment_day,
+#paypal_gb_form_dateOfEstablishment_month,
+#paypal_gb_form_dateOfEstablishment_day,
+#paypal_se_form_dateOfEstablishment_month,
+#paypal_se_form_dateOfEstablishment_day,
+
+#moneybookers_uk_form_dateOfBirth_month,
+#moneybookers_uk_form_dateOfBirth_day,
+#moneybookers_de_form_dateOfBirth_month,
+#moneybookers_de_form_dateOfBirth_day,
+#moneybookers_es_form_dateOfBirth_month,
+#moneybookers_es_form_dateOfBirth_day,
+#moneybookers_it_form_dateOfBirth_month,
+#moneybookers_it_form_dateOfBirth_day,
+#moneybookers_gb_form_dateOfBirth_month,
+#moneybookers_gb_form_dateOfBirth_day,
+#moneybookers_se_form_dateOfBirth_month,
+#moneybookers_se_form_dateOfBirth_day,
+#moneybookers_fr_form_dateOfBirth_month,
+#moneybookers_fr_form_dateOfBirth_day {
+ margin-right:10px;
+ width:45px !important;
+}
+
+#resultInfosPasswordRepeat {color:#cc0000;}
+
+/* ETAPE 5 - end *********************************************************** */
+#resultInstall {margin-bottom:25px;}
+ #resultInstall td {padding:7px 6px;}
+ #resultInstall tr.odd {background:#f8f8f8;}
+ #resultInstall td.resultEnd {color:#666;}
+
+.blockInfoEnd {
+ float:left;
+ margin:34px 20px 22px 0;
padding:10px;
- width:60%;
+ width:292px;/* 312 */
+ background:#fff url(img/bg_blockInfoEnd.png) repeat-x 0 0;
+ border:1px solid #ccc;
+ -moz-border-radius: 5px;
+ -webkit-border-radius:5px;
+ border-radius: 5px;
+ box-shadow:0 1px #d9d9d9;
+}
+.blockInfoEnd.last {margin-right:0;}
+ .blockInfoEnd p {
+ font:italic 11px/14px Georgia, Arial, Sans-serif;
+ color:#666;
+}
+ .blockInfoEnd img {
+ float:left;
+ margin:0 14px 5px 0;
+}
+ .blockInfoEnd a.BO,
+ .blockInfoEnd a.FO {
+ float:right;
+ padding:0 0 0 12px;
+ height:33px;
+ line-height:33px;
+ color:#fff;
+ background:#039701 url(img/bg_bt_blockInfoEnd.png) no-repeat 0 0;
+ border:1px solid #019700;
+ -moz-border-radius: 5px;
+ -webkit-border-radius:5px;
+ border-radius: 5px;
+}
+ .blockInfoEnd a.BO span ,
+ .blockInfoEnd a.FO span {
+ display:inline-block;
+ padding:0 32px 0 0;
+ height:33px;
+ line-height:33px;
+ color:#fff;
+ background:#039701 url(img/bg_bt_blockInfoEnd.png) no-repeat 100% 0;
+ }
+
+#prestastore,
+#prestastore_update {
+ height:170px;
+ width:645px;
+ border:1px solid #ccc;
+ -moz-border-radius: 5px;
+ -webkit-border-radius:5px;
+ border-radius: 5px
+}
+
+/* MISE A JOUR ********************************************************************************* */
+
+/* ETAPE 1 - disclaimer **************************************************** */
+
+/* ETAPE 2 - require_update ************************************************ */
+#disclaimerDivCertify {margin-bottom:20px;}
+
+#upgradeProcess table {
+ padding: 5px;
+ width: 650px;
+ background:#fff;
+ border: 1px solid #CCC;
+ border-bottom:none;
+}
+ #upgradeProcess tr {
+ border-bottom: 1px solid #CCC;
+}
+ #upgradeProcess th,
+ #upgradeProcess td{padding:3px 5px;}
+ #upgradeProcess th {
+ font-size:13;
+ color:#000;
+ text-shadow:0 1px 0 #fff;
+ background:#cfcfcf url(img/bg_moduleTable_th.png) repeat-x 0 0;
+}
+
+#upgradeProcess .infosBlock {
margin:20px 0;
-}
-form.aligned p{
-height:30px;
-}
-form.aligned label {
- display:block;
- width:150px;
- float:left;
-}
-form.aligned input.text {
- display:block;
- width:150px;
- float:left;
+ padding:14px 25px;
+ background:#F8F8F8;
}
-p.aligned{
- text-align:center;
+ul#required_update,
+ul#optional_update {list-style-type:none;}
+ ul#required_update li,
+ ul#optional_update li {
+ padding:6px 8px 4px 8px;
+ background:#f8f8f8;
}
-li.title{
+ ul#required_update li.title,
+ ul#optional_update li.title {
+ margin-top: 20px;
+ padding:4px 8px;
+ background:#f8f8f8 url(img/bg_li_title.png) repeat-x 0 0;
+}
+ ul#required_update li.required ,
+ ul#optional_update li.optional{
+ border-top:1px solid #fff;
+ border-bottom:1px solid #ccc;
+}
+ ul#required_update li.fail,
+ ul#optional_update li.fail {
+ background:#f8f8f8 url(img/pict_error.png) no-repeat 100% 8px;
+ }
+ ul#required_update li.ok,
+ ul#optional_update li.ok{
+ background:#f8f8f8 url(img/pict_ok.png) no-repeat 100% 10px;
+ }
+#sheet_require_update #req_bt_refresh_update {float:right;}
+
+/* ETAPE 3 - updateErrors ************************************************** */
+
+/* ETAPE 4 - end_update **************************************************** */
+#updateLog {
+ height: 200px;
+ overflow: scroll;
+ border: 1px solid #E1E2E2;
+}
+#updateLog .fail {
font-weight:bold;
- margin:0.5em 0;
+ color: red;
}
-#infosFirstname{
- text-transform:capitalize;
-}
-div.request{
- border-top:1px gray dotted;
- margin-top:10px;
- padding-top:10px;
-}
-div#PrestaShopLogo{
- background:none;
- width:233px;
- height:68px;
- text-indent:-1000px;
- margin:0 auto;
- filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/logo.png', sizingMethod='crop');
-}
-html>body div#PrestaShopLogo {
- filter: none;
- background: url(img/logo.png) left no-repeat;
+.request {
+ border-bottom: 1px solid #E1E2E2;
}
-div.installerVersion, div.updaterVersion {
- color:#FFFFFF;
- font-size:14px;
- text-align:left;
- padding:10px;
- text-transform:uppercase;
-}
-p#dbResultCheck{
- height:auto;
-}
-div#resultEnd{
- clear:both;
-}
+/* ****************************************************************************
+ xxxxx
+**************************************************************************** */
+
+
+
+
+
-div#noJavaScript{
- margin: 100px 200px 20px 200px;
- padding: 100px 30px;
- background-color: white;
- text-align: center;
-}
-a#access, a#access_update, span#box_admin{
- display:block;
- width:300px;
- height:150px;
- background:url('img/btn-installeur.png') top left;
- font-family:Arial, sans-serif;
-}
-a#access:hover,a#access_update:hover{background:url('img/btn-installeur.png') bottom left;}
-a#access.BO{float:left;}
-a#access.FO{float:right;}
-a#access span{display:block;}
-a#access span.title{margin:5px 15px;font-size:18pt;font-weight:bold;color:#FFF;}
-a#access span.description{margin:10px 20px;color:#FFF;height:63px;}
-a#access span.message{margin-left:20px;font-weight:bold;color:#FFF;}
-a#access_update{float:left;}
-a#access_update span{display:block;}
-a#access_update span.title{margin:5px 15px;font-size:18pt;font-weight:bold;color:#FFF;}
-a#access_update span.description{margin:10px 20px;color:#FFF;height:63px;}
-a#access_update span.message{margin-left:20px;font-weight:bold;color:#FFF;}
-h3.no-margin{margin:0;}
-iframe#prestastore{width:100%;height:430px;border:none;margin:0px;}
-iframe#prestastore_update{clear:both;width:100%;height:430px;border:none;margin-top:15px;}
-p#php5_nok {
- color:#fff;
-}
-p#php5_nok a {
- color:#fff;
- font-weight:bold;
- text-decoration:underline;
-}
-#resultConfigHelper a{
- text-decoration:underline;
-}
-#phone_block{
- font-size: 16px;
- color: #fff;
- height: 25px;
- width: 225px;
- margin-left: 3px;
-}
-#phone_block span{
- font-size: 11px;
- display: block;
- width: 185px;
-}
-.versionInfo{
- color: #D41958;
-}
\ No newline at end of file
diff --git a/install-dev/xml/checkConfig.php b/install-dev/xml/checkConfig.php
index 1b4ce6068..3b098eebd 100644
--- a/install-dev/xml/checkConfig.php
+++ b/install-dev/xml/checkConfig.php
@@ -26,7 +26,7 @@
*/
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date dans le passé
-include_once(INSTALL_PATH.'/classes/ConfigurationTest.php');
+include_once(INSTALL_PATH.'/../classes/ConfigurationTest.php');
// Functions list to test with 'test_system'
$funcs = array('fopen', 'fclose', 'fread', 'fwrite', 'rename', 'file_exists', 'unlink', 'rmdir', 'mkdir', 'getcwd', 'chdir', 'chmod');
@@ -60,6 +60,7 @@ $tests_op = array(
'gz' => false,
'mcrypt' => false,
'magicquotes' => false,
+ 'dom' => false,
);
// Execute tests
diff --git a/install-dev/xml/doUpgrade.php b/install-dev/xml/doUpgrade.php
index 127a29573..dbf90cf7d 100644
--- a/install-dev/xml/doUpgrade.php
+++ b/install-dev/xml/doUpgrade.php
@@ -31,8 +31,15 @@ $engineType = 'ENGINE_TYPE';
if (function_exists('date_default_timezone_set'))
date_default_timezone_set('Europe/Paris');
-define('_PS_MODULE_DIR_', realpath(INSTALL_PATH).'/../modules/');
-define('_PS_INSTALLER_PHP_UPGRADE_DIR_', realpath(INSTALL_PATH).'/php/');
+// if _PS_ROOT_DIR_ is defined, use it instead of "guessing" the module dir.
+if (defined('_PS_ROOT_DIR_') AND !defined('_PS_MODULE_DIR_'))
+ define('_PS_MODULE_DIR_', _PS_ROOT_DIR_.'/modules/');
+else if (!defined('_PS_MODULE_DIR_'))
+ define('_PS_MODULE_DIR_', INSTALL_PATH.'/../modules/');
+
+if(!defined('_PS_INSTALLER_PHP_UPGRADE_DIR_'))
+ define('_PS_INSTALLER_PHP_UPGRADE_DIR_', INSTALL_PATH.DIRECTORY_SEPARATOR.'php/');
+
// Only if loyalty module is installed
require_once(_PS_INSTALLER_PHP_UPGRADE_DIR_.'update_module_loyalty.php');
// desactivate non-native module
@@ -104,6 +111,8 @@ require_once(_PS_INSTALLER_PHP_UPGRADE_DIR_.'alter_cms_block.php');
require_once(_PS_INSTALLER_PHP_UPGRADE_DIR_.'alter_blocklink.php');
+require_once(_PS_INSTALLER_PHP_UPGRADE_DIR_.'alter_productcomments_guest_index.php');
+
require_once(_PS_INSTALLER_PHP_UPGRADE_DIR_.'update_module_loyalty.php');
require_once(_PS_INSTALLER_PHP_UPGRADE_DIR_.'update_module_followup.php');
@@ -122,6 +131,8 @@ require_once(_PS_INSTALLER_PHP_UPGRADE_DIR_.'migrate_block_info_to_cms_block.php
require_once(_PS_INSTALLER_PHP_UPGRADE_DIR_.'create_multistore.php');
+require_once(_PS_INSTALLER_PHP_UPGRADE_DIR_.'add_order_state.php');
+
//old version detection
global $oldversion, $logger;
$oldversion = false;
@@ -133,14 +144,14 @@ if (file_exists(SETTINGS_FILE) AND file_exists(DEFINES_FILE))
}
else
{
- die('
'."\n");
$logger->logError('The config/settings.inc.php file was not found.');
+ die('
'."\n");
}
if (!file_exists(DEFINES_FILE))
{
- die('
'."\n");
$logger->logError('The config/settings.inc.php file was not found.');
+ die('
'."\n");
}
include_once(SETTINGS_FILE);
@@ -156,7 +167,8 @@ include_once(DEFINES_FILE);
$oldversion = _PS_VERSION_;
-$versionCompare = version_compare(INSTALL_VERSION, _PS_VERSION_);
+$versionCompare = version_compare(INSTALL_VERSION, $oldversion);
+
if ($versionCompare == '-1')
{
$logger->logError('This installer is too old.');
@@ -164,7 +176,7 @@ if ($versionCompare == '-1')
}
elseif ($versionCompare == 0)
{
- $logger->logError('You already have the '.INSTALL_VERSION.' version.');
+ $logger->logError(sprintf('You already have the %s version.',INSTALL_VERSION));
die('
'."\n");
}
elseif ($versionCompare === false)
@@ -198,9 +210,27 @@ if (empty($upgradeFiles))
}
natcasesort($upgradeFiles);
$neededUpgradeFiles = array();
+
+// fix : complete version number if there is not all 4 numbers
+// for example replace 1.4.3 by 1.4.3.0
+// consequences : file 1.4.3.0.sql will be skipped if oldversion = 1.4.3
+// @since 1.4.4.0
+$arrayVersion = preg_split('#\.#', $oldversion);
+$versionNumbers = sizeof($arrayVersion);
+
+if ($versionNumbers != 4)
+ $arrayVersion = array_pad($arrayVersion, 4, '0');
+
+$oldversion = implode('.', $arrayVersion);
+// end of fix
+
foreach ($upgradeFiles AS $version)
- if (version_compare($version, _PS_VERSION_) == 1 AND version_compare(INSTALL_VERSION, $version) != -1)
+{
+
+ if (version_compare($version, $oldversion) == 1 AND version_compare(INSTALL_VERSION, $version) != -1)
$neededUpgradeFiles[] = $version;
+}
+
if (empty($neededUpgradeFiles))
{
$logger->logError('No upgrade is possible.');
diff --git a/install-dev/xml/index.php b/install-dev/xml/index.php
new file mode 100644
index 000000000..4e2611d37
--- /dev/null
+++ b/install-dev/xml/index.php
@@ -0,0 +1,36 @@
+
+* @copyright 2007-2011 PrestaShop SA
+* @version Release: $Revision$
+* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*/
+
+header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
+header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
+
+header("Cache-Control: no-store, no-cache, must-revalidate");
+header("Cache-Control: post-check=0, pre-check=0", false);
+header("Pragma: no-cache");
+
+header("Location: ../");
+exit;
\ No newline at end of file
diff --git a/js/admin-categories-tree.js b/js/admin-categories-tree.js
new file mode 100755
index 000000000..53a1dbdb4
--- /dev/null
+++ b/js/admin-categories-tree.js
@@ -0,0 +1,246 @@
+/*
+* 2007-2011 PrestaShop
+*
+* NOTICE OF LICENSE
+*
+* This source file is subject to the Open Software License (OSL 3.0)
+* that is bundled with this package in the file LICENSE.txt.
+* It is also available through the world-wide-web at this URL:
+* http://opensource.org/licenses/osl-3.0.php
+* If you did not receive a copy of the license and are unable to
+* obtain it through the world-wide-web, please send an email
+* to license@prestashop.com so we can send you a copy immediately.
+*
+* DISCLAIMER
+*
+* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
+* versions in the future. If you wish to customize PrestaShop for your
+* needs please refer to http://www.prestashop.com for more information.
+*
+* @author PrestaShop SA
+* @copyright 2007-2011 PrestaShop SA
+* @version Release: $Revision$
+* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*/
+
+var readyToExpand = true;
+var needCheckAll = false;
+var needUncheckAll = false;
+var interval = null;
+var id = 0;
+var arrayCatToExpand = new Array();
+
+$(document).ready(function(){
+ $("#categories-treeview").treeview({
+ url : 'ajax.php',
+ toggle: function () { callbackToggle($(this)); },
+ ajax : {
+ type: 'POST',
+ async: true,
+ data: {
+ getChildrenCategories : true,
+ selectedCat: selectedCat
+ }
+ }
+ });
+
+ $('#categories-treeview li#1 span').trigger('click');
+
+ $('#expand_all').click( function () {
+ expandAllCategories();
+ return false;
+ });
+
+ $('#collapse_all').click( function () {
+ collapseAllCategories();
+ return false;
+ });
+
+ $('#check_all').click( function () {
+ needCheckAll = true;
+ checkAllCategories();
+ return false;
+ });
+
+ $('#uncheck_all').click( function () {
+ needUncheckAll = true;
+ uncheckAllCategories();
+ return false;
+ });
+});
+
+function callbackToggle(element)
+{
+ if (!element.is('.expandable'))
+ return false;
+
+ if (element.children('ul').children('li.collapsable').length != 0)
+ closeChildrenCategories(element);
+}
+
+function closeChildrenCategories(element)
+{
+ var arrayLevel = new Array();
+
+ if (element.children('ul').find('li.collapsable').length == 0)
+ return false;
+
+ element.children('ul').find('li.collapsable').each(function() {
+ var level = $(this).children('span.category_level').html();
+ if (arrayLevel[level] == undefined)
+ arrayLevel[level] = new Array();
+
+ arrayLevel[level].push($(this).attr('id'));
+ });
+
+ for(i=arrayLevel.length-1;i!=0;i--)
+ if (arrayLevel[i] != undefined)
+ for(j=0;j= arrayCatToExpand.length && readyToExpand)
+ {
+ if (!setCategoryToExpand())
+ {
+ clearInterval(interval);
+ // delete interval value
+ interval = null;
+ readyToExpand = false;
+ if (needCheckAll)
+ {
+ checkAllCategories();
+ needCheckAll = false;
+ }
+ else if (needUncheckAll)
+ {
+ uncheckAllCategories();
+ needUncheckAll = false;
+ }
+ }
+ else
+ readyToExpand = true;
+ }
+
+ if (readyToExpand)
+ {
+ if ($('li#'+arrayCatToExpand[id]+'.hasChildren').length > 0)
+ readyToExpand = false;
+ $('li#'+arrayCatToExpand[id]+'.expandable:visible span.category_label').trigger('click');
+ id++;
+ }
+}
+
+function collapseAllCategories()
+{
+ closeChildrenCategories($('li#1'));
+}
+
+function checkAllCategories()
+{
+ if (needExpandAllCategories())
+ expandAllCategories();
+ else
+ {
+ $('input[name="categoryBox[]"]').not(':checked').each(function () {
+ $(this).attr('checked', 'checked');
+ clickOnCategoryBox($(this));
+ });
+ }
+}
+
+function uncheckAllCategories()
+{
+ if (needExpandAllCategories())
+ expandAllCategories();
+ else
+ {
+ $('input[name="categoryBox[]"]:checked').each(function () {
+ $(this).removeAttr('checked');
+ clickOnCategoryBox($(this));
+ });
+ }
+}
+
+function clickOnCategoryBox(category)
+{
+ if (category.is(':checked'))
+ {
+ $('select#id_category_default').append('');
+ updateNbSubCategorySelected(category, true);
+ if ($('select#id_category_default option').length > 0)
+ {
+ $('select#id_category_default').show();
+ $('#no_default_category').hide();
+ }
+ }
+ else
+ {
+ $('select#id_category_default option[value='+category.val()+']').remove();
+ updateNbSubCategorySelected(category, false);
+ if ($('select#id_category_default option').length == 0)
+ {
+ $('select#id_category_default').hide();
+ $('#no_default_category').show();
+ }
+ }
+}
+
+function updateNbSubCategorySelected(category, add)
+{
+ var currentSpan = category.parent().parent().parent().children('.nb_sub_cat_selected');
+ var parentNbSubCategorySelected = currentSpan.children('.nb_sub_cat_selected_value').html();
+
+ if (add)
+ var newValue = parseInt(parentNbSubCategorySelected)+1;
+ else
+ var newValue = parseInt(parentNbSubCategorySelected)-1;
+
+ currentSpan.children('.nb_sub_cat_selected_value').html(newValue);
+ currentSpan.children('.nb_sub_cat_selected_word').html(selectedLabel);
+
+ if (newValue == 0)
+ currentSpan.hide();
+ else
+ currentSpan.show();
+
+ if (currentSpan.parent().children('.nb_sub_cat_selected').length != 0)
+ updateNbSubCategorySelected(currentSpan.parent().children('input'), add);
+}
\ No newline at end of file
diff --git a/js/admin-scene-cropping.js b/js/admin-scene-cropping.js
index 26654efee..fdb599b95 100644
--- a/js/admin-scene-cropping.js
+++ b/js/admin-scene-cropping.js
@@ -32,7 +32,7 @@ valueOfZoneEdited = null;
// Last item is used to save the current zone and
// allow to replace it if user cancel the editing
-lastItemEdited = null;
+lastEditedItem = null;
/* functions called by cropping events */
diff --git a/js/admin.js b/js/admin.js
index 1ae411879..be38bddce 100644
--- a/js/admin.js
+++ b/js/admin.js
@@ -307,7 +307,7 @@ function delAccessory(id)
var inputCut = input.value.split('-');
var nameCut = name.value.split('¤');
- if (inputCut.lenght != nameCut.lenght)
+ if (inputCut.length != nameCut.length)
return alert('Bad size');
// Reset all hidden fields
diff --git a/js/jquery/accordion/index.php b/js/jquery/accordion/index.php
new file mode 100644
index 000000000..4e2611d37
--- /dev/null
+++ b/js/jquery/accordion/index.php
@@ -0,0 +1,36 @@
+
+* @copyright 2007-2011 PrestaShop SA
+* @version Release: $Revision$
+* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*/
+
+header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
+header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
+
+header("Cache-Control: no-store, no-cache, must-revalidate");
+header("Cache-Control: post-check=0, pre-check=0", false);
+header("Pragma: no-cache");
+
+header("Location: ../");
+exit;
\ No newline at end of file
diff --git a/js/jquery/fancybox/index.php b/js/jquery/fancybox/index.php
new file mode 100644
index 000000000..4e2611d37
--- /dev/null
+++ b/js/jquery/fancybox/index.php
@@ -0,0 +1,36 @@
+
+* @copyright 2007-2011 PrestaShop SA
+* @version Release: $Revision$
+* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+* International Registered Trademark & Property of PrestaShop SA
+*/
+
+header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
+header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
+
+header("Cache-Control: no-store, no-cache, must-revalidate");
+header("Cache-Control: post-check=0, pre-check=0", false);
+header("Pragma: no-cache");
+
+header("Location: ../");
+exit;
\ No newline at end of file
diff --git a/js/jquery/jquery-colorpicker.js b/js/jquery/jquery-colorpicker.js
index 7f4189458..b2f0c8469 100644
--- a/js/jquery/jquery-colorpicker.js
+++ b/js/jquery/jquery-colorpicker.js
@@ -1,34 +1,12 @@
/*
mColorPicker
- Version: 1.0 r21
+ Version: 1.0 r34
Copyright (c) 2010 Meta100 LLC.
+ http://www.meta100.com/
- Permission is hereby granted, free of charge, to any person
- obtaining a copy of this software and associated documentation
- files (the "Software"), to deal in the Software without
- restriction, including without limitation the rights to use,
- copy, modify, merge, publish, distribute, sublicense, and/or sell
- copies of the Software, and to permit persons to whom the
- Software is furnished to do so, subject to the following
- conditions:
-
- The above copyright notice and this permission notice shall be
- included in all copies or substantial portions of the Software.
-
- Except as contained in this notice, the name(s) of the above
- copyright holders shall not be used in advertising or otherwise
- to promote the sale, use or other dealings in this Software
- without prior written authorization.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- OTHER DEALINGS IN THE SOFTWARE.
+ Licensed under the MIT license
+ http://www.opensource.org/licenses/mit-license.php
*/
// After this script loads set:
@@ -49,6 +27,8 @@
(function($){
+ var $o;
+
$.fn.mColorPicker = function(options) {
$o = $.extend($.fn.mColorPicker.defaults, options);
@@ -56,13 +36,10 @@
if ($o.swatches.length < 10) $o.swatches = $.fn.mColorPicker.defaults.swatches
if ($("div#mColorPicker").length < 1) $.fn.mColorPicker.drawPicker();
- this.each(function () {
+ if ($('#css_disabled_color_picker').length < 1) $('head').prepend('');
- $.fn.mColorPicker.drawPickerTriggers($(this));
- });
+ $('.mColorPicker').live('keyup', function () {
- $('.mColorPickerInput').unbind().bind('keyup', function () {
-
try {
$(this).css({
@@ -72,6 +49,18 @@
}).trigger('change');
} catch (r) {}
});
+
+ $('.mColorPickerTrigger').live('click', function () {
+
+ $.fn.mColorPicker.colorShow($(this).attr('id').replace('icp_', ''));
+ });
+
+ this.each(function () {
+
+ $.fn.mColorPicker.drawPickerTriggers($(this));
+ });
+
+ return this;
};
$.fn.mColorPicker.currentColor = false;
@@ -80,9 +69,12 @@
$.fn.mColorPicker.init = {
replace: '[type=color]',
+ index: 0,
enhancedSwatches: true,
- allowTransparency: true,
- showLogo: true
+ allowTransparency: false,
+ checkRedraw: 'DOMUpdated', // Change to 'ajaxSuccess' for ajax only or false if not needed
+ liveEvents: false,
+ showLogo: false
};
$.fn.mColorPicker.defaults = {
@@ -101,18 +93,29 @@
]
};
+ $.fn.mColorPicker.liveEvents = function() {
+
+ $.fn.mColorPicker.init.liveEvents = true;
+
+ if ($.fn.mColorPicker.init.checkRedraw && $.fn.mColorPicker.init.replace) {
+
+ $(document).bind($.fn.mColorPicker.init.checkRedraw + '.mColorPicker', function () {
+
+ $('input[data-mcolorpicker!="true"]').filter(function() {
+
+ return ($.fn.mColorPicker.init.replace == '[type=color]')? this.getAttribute("type") == 'color': $(this).is($.fn.mColorPicker.init.replace);
+ }).mColorPicker();
+ });
+ }
+ };
+
$.fn.mColorPicker.drawPickerTriggers = function ($t) {
- if ($t[0].nodeName.toLowerCase() != 'input') return false
- if ($t.data('mColorPicker') == 'true') return false
+ if ($t[0].nodeName.toLowerCase() != 'input') return false;
- var id = $t.attr('id'),
- currentTime = new Date(),
+ var id = $t.attr('id') || 'color_' + $.fn.mColorPicker.init.index++,
hidden = false;
- if (id == '') id = $t.attr('name');
- if (id == '') id = 'color_' + Math.round(Math.random() * currentTime.getTime());
-
$t.attr('id', id);
if ($t.attr('text') == 'hidden' || $t.attr('data-text') == 'hidden') hidden = true;
@@ -126,7 +129,7 @@
$('body').append('');
$('span#color_work_area').append($t.clone(true));
- colorPicker = $('span#color_work_area').html().replace(/type=[^a-z]*color[^a-z]*/gi, (hidden)? 'type="hidden"': 'type="text"');
+ colorPicker = $('span#color_work_area').html().replace(/type="color"/gi, '').replace(/input /gi, (hidden)? 'input type="hidden"': 'input type="text"');
$('span#color_work_area').html('').remove();
$t.after(
(hidden)? ' ': ''
@@ -138,7 +141,11 @@
'background-color': color,
'background-image': image,
'display': 'inline-block'
- });
+ }).attr(
+ 'class', $('#' + id).attr('class')
+ ).addClass(
+ 'mColorPickerTrigger'
+ );
} else {
$('#' + id).css({
@@ -147,14 +154,15 @@
}).css({
'color': $.fn.mColorPicker.textColor($('#' + id).css('background-color'))
}).after(
- '
'
+ '
'
).addClass('mColorPickerInput');
}
- $('#icp_' + id).bind('click', function () {
+ $('#icp_' + id).attr('data-mcolorpicker', 'true');
- $.fn.mColorPicker.colorShow(id, hidden);
- }).data('mColorPicker', 'true');
+ $('#' + id).addClass('mColorPicker');
+
+ return $('#' + id);
};
$.fn.mColorPicker.drawPicker = function () {
@@ -164,7 +172,7 @@
).css(
'display','none'
).html(
- ''
+ ''
).appendTo("body");
$(document.createElement("div")).attr("id","mColorPickerBg").css({
@@ -186,7 +194,7 @@
'color':'#fff',
'z-index':999998,
'width':'194px',
- 'height':'157px',
+ 'height':'184px',
'font-size':'12px',
'font-family':'times'
});
@@ -259,19 +267,13 @@
if ($.fn.mColorPicker.init.allowTransparency) $('#mColorPickerFooter').prepend('transparent');
if ($.fn.mColorPicker.init.showLogo) $('#mColorPickerFooter').prepend('
');
- $("#mColorPickerBg").click(function() {
+ $("#mColorPickerBg").click($.fn.mColorPicker.closePicker);
- $("#mColorPickerBg").hide();
- $("#mColorPicker").fadeOut()
- });
-
- var swatch = ($.fn.mColorPicker.init.enhancedSwatches)? $.fn.mColorPicker.getCookie('swatches'): $o.swatches,
+ var swatch = $.fn.mColorPicker.getCookie('swatches'),
i = 0;
- if (swatch == null) swatch = $o.swatches;
- else swatch = swatch.split('||');
-
- if (swatch.length < 10) swatch = $o.swatches;
+ if (typeof swatch == 'string') swatch = swatch.split('||');
+ if (swatch == null || $.fn.mColorPicker.init.enhancedSwatches || swatch.length < 10) swatch = $o.swatches;
$(".mPastColor").each(function() {
@@ -279,7 +281,14 @@
});
};
- $.fn.mColorPicker.colorShow = function (id, updateInput) {
+ $.fn.mColorPicker.closePicker = function () {
+
+ $(".mColor, .mPastColor, #mColorPickerInput, #mColorPickerWrapper").unbind();
+ $("#mColorPickerBg").hide();
+ $("#mColorPicker").fadeOut()
+ };
+
+ $.fn.mColorPicker.colorShow = function (id) {
var $e = $("#icp_" + id);
pos = $e.offset(),
@@ -290,6 +299,8 @@
$d = $(document),
$m = $("#mColorPicker");
+ if ($i.attr('disabled')) return false;
+
// KEEP COLOR PICKER IN VIEWPORT
if (pickerTop + $m.height() > $d.height()) pickerTop = pos.top - $m.height();
if (pickerLeft + $m.width() > $d.width()) pickerLeft = pos.left - $m.width() + $e.outerWidth();
@@ -317,12 +328,13 @@
$('#colorPreview').css('background', def);
$('#color').val(def);
- if (updateInput) $.fn.mColorPicker.currentColor = $e.css('background-color');
+ if ($('#' + id).attr('data-text')) $.fn.mColorPicker.currentColor = $e.css('background-color');
else $.fn.mColorPicker.currentColor = $i.css('background-color');
if (hex == 'true') $.fn.mColorPicker.currentColor = $.fn.mColorPicker.RGBtoHex($.fn.mColorPicker.currentColor);
$("#mColorPickerInput").val($.fn.mColorPicker.currentColor);
+
$('.mColor, .mPastColor').bind('mousemove', function(e) {
var offset = $(this).offset();
@@ -334,7 +346,7 @@
else if ($(this).attr('id') == 'mColorPickerTransparent') $.fn.mColorPicker.color = 'transparent';
else if (!$(this).hasClass('mPastColor')) $.fn.mColorPicker.color = $.fn.mColorPicker.whichColor(e.pageX - offset.left, e.pageY - offset.top + (($(this).attr('id') == 'mColorPickerImgGray')? 128: 0), hex);
- $.fn.mColorPicker.setInputColor(id, $.fn.mColorPicker.color, updateInput);
+ $.fn.mColorPicker.setInputColor(id, $.fn.mColorPicker.color);
}).click(function() {
$.fn.mColorPicker.colorPicked(id);
@@ -345,32 +357,29 @@
try {
$.fn.mColorPicker.color = $('#mColorPickerInput').val();
- $.fn.mColorPicker.setInputColor(id, $.fn.mColorPicker.color, updateInput);
+ $.fn.mColorPicker.setInputColor(id, $.fn.mColorPicker.color);
- if (e.which == 13) {
- $.fn.mColorPicker.colorPicked(id);
- }
+ if (e.which == 13) $.fn.mColorPicker.colorPicked(id);
} catch (r) {}
+
}).bind('blur', function () {
- $.fn.mColorPicker.setInputColor(id, $.fn.mColorPicker.currentColor, updateInput);
+ $.fn.mColorPicker.setInputColor(id, $.fn.mColorPicker.currentColor);
});
$('#mColorPickerWrapper').bind('mouseleave', function () {
- $.fn.mColorPicker.setInputColor(id, $.fn.mColorPicker.currentColor, updateInput);
+ $.fn.mColorPicker.setInputColor(id, $.fn.mColorPicker.currentColor);
});
};
- $.fn.mColorPicker.setInputColor = function (id, color, updateInput) {
+ $.fn.mColorPicker.setInputColor = function (id, color) {
var image = (color == 'transparent')? "url('" + $o.imageFolder + "grid.gif')": '',
textColor = $.fn.mColorPicker.textColor(color);
- if (updateInput) $("#icp_" + id).css({'background-color': color, 'background-image': image});
+ if ($('#' + id).attr('data-text') || $('#' + id).attr('text')) $("#icp_" + id).css({'background-color': color, 'background-image': image});
$("#" + id).val(color).css({'background-color': color, 'background-image': image, 'color' : textColor}).trigger('change');
- if(typeof(employeePage) != 'undefined')
- $('body').css('background-color', color);
$("#mColorPickerInput").val(color);
};
@@ -401,9 +410,7 @@
$.fn.mColorPicker.colorPicked = function (id) {
- $(".mColor, .mPastColor, #mColorPickerInput, #mColorPickerWrapper").unbind();
- $("#mColorPickerBg").hide();
- $("#mColorPicker").fadeOut();
+ $.fn.mColorPicker.closePicker();
if ($.fn.mColorPicker.init.enhancedSwatches) $.fn.mColorPicker.addToSwatch();
@@ -539,35 +546,18 @@
if (c.length < 6) c = c.substr(0, 1) + c.substr(0, 1) + c.substr(1, 1) + c.substr(1, 1) + c.substr(2, 1) + c.substr(2, 1);
return 'rgb(' + parseInt(c.substr(0, 2), 16) + ', ' + parseInt(c.substr(2, 2), 16) + ', ' + parseInt(c.substr(4, 2), 16) + ')';
- }
-
- if ($.fn.mColorPicker.init.replace == '[type=color]') {
+ };
$(document).ready(function () {
- $('input').filter(function(index) {
+ if ($.fn.mColorPicker.init.replace) {
- return this.getAttribute("type") == 'color';
- }).mColorPicker();
+ $('input[data-mcolorpicker!="true"]').filter(function() {
- $(document).bind('ajaxSuccess', function () {
-
- $('input').filter(function(index) {
-
- return this.getAttribute("type") == 'color';
+ return ($.fn.mColorPicker.init.replace == '[type=color]')? this.getAttribute("type") == 'color': $(this).is($.fn.mColorPicker.init.replace);
}).mColorPicker();
- });
- });
- } else if ($.fn.mColorPicker.init.replace) {
- $(document).ready(function () {
-
- $('input' + $.fn.mColorPicker.init.replace).mColorPicker();
-
- $(document).bind('ajaxSuccess', function () {
-
- $('input' + $.fn.mColorPicker.init.replace).mColorPicker();
- });
- });
+ $.fn.mColorPicker.liveEvents();
}
-})(jQuery);
+ });
+})(jQuery);
\ No newline at end of file
diff --git a/js/jquery/jquery.cluetip.js b/js/jquery/jquery.cluetip.js
index fa7cc0725..dd4a4752c 100644
--- a/js/jquery/jquery.cluetip.js
+++ b/js/jquery/jquery.cluetip.js
@@ -15,7 +15,7 @@
;(function($){var $cluetip,$cluetipInner,$cluetipOuter,$cluetipTitle,$cluetipArrows,$dropShadow,imgCount;$.fn.cluetip=function(js,options){if(typeof js=='object'){options=js;js=null;}
return this.each(function(index){var $this=$(this);var opts=$.extend(false,{},$.fn.cluetip.defaults,options||{},$.metadata?$this.metadata():$.meta?$this.data():{});var cluetipContents=false;var cluezIndex=parseInt(opts.cluezIndex,10)-1;var isActive=false,closeOnDelay=0;if(!$('#cluetip').length){$cluetipInner=$('');$cluetipTitle=$('');$cluetipOuter=$('').append($cluetipInner).prepend($cluetipTitle);$cluetip=$('').css({zIndex:opts.cluezIndex}).append($cluetipOuter).append('')[insertionType](insertionElement).hide();$('').css({position:'absolute',zIndex:cluezIndex-1}).insertBefore('#cluetip').hide();$cluetip.css({position:'absolute',zIndex:cluezIndex});$cluetipOuter.css({position:'relative',zIndex:cluezIndex+1});$cluetipArrows=$('').css({zIndex:cluezIndex+1}).appendTo('#cluetip');}
-var dropShadowSteps=(opts.dropShadow)?+opts.dropShadowSteps:0;if(!$dropShadow){$dropShadow=$([]);for(var i=0;i').css({zIndex:cluezIndex-i-1,opacity:.1,top:1+i,left:1+i}));};$dropShadow.css({position:'absolute',backgroundColor:'#000'}).prependTo($cluetip);}
+var dropShadowSteps=(opts.dropShadow)?+opts.dropShadowSteps:0;if(!$dropShadow){$dropShadow=$([]);for(var i=0;i