Adfab_Emailcampaign - Version 1.1.4

Version Notes

Bugs




Stories



  • [ECAMPAIGN-43] - Add a message zone for each campaign

  • [ECAMPAIGN-61] - internal communication sent for this module

  • [ECAMPAIGN-62] - Campaign Welcome reminder : Don't send email to those who have ordered once or more.

Download this release

Release Info

Developer Adfab
Extension Adfab_Emailcampaign
Version 1.1.4
Comparing to
See all releases


Code changes from version 1.1.2 to 1.1.4

Files changed (32) hide show
  1. app/code/community/Adfab/Emailcampaign/Model/Adminhtml/Observer.php +1 -1
  2. app/code/community/Adfab/Emailcampaign/Model/Campaign/AbandonedCart.php +1 -7
  3. app/code/community/Adfab/Emailcampaign/Model/Campaign/CustomerBirthday.php +1 -1
  4. app/code/community/Adfab/Emailcampaign/Model/Campaign/InscriptionAnniversary.php +0 -5
  5. app/code/community/Adfab/Emailcampaign/Model/Campaign/OrderSuccess.php +1 -6
  6. app/code/community/Adfab/Emailcampaign/Model/Campaign/WelcomeReminder.php +15 -10
  7. app/code/community/Adfab/Emailcampaign/Model/Campaign/WishlistReminder.php +1 -6
  8. app/code/community/Adfab/Emailcampaign/Model/Campaign/WishlistStockAlert.php +1 -6
  9. app/code/community/Adfab/Emailcampaign/Model/Connector/Magento.php +1 -1
  10. app/code/community/Adfab/Emailcampaign/etc/config.xml +1 -1
  11. app/code/community/Adfab/Emailcampaign/sql/adfab_emailcampaign_setup/mysql4-upgrade-0.1.3-1.1.4.php +42 -0
  12. app/etc/modules/Adfab_Emailcampaign.xml +1 -1
  13. app/locale/en_US/emailcampaign/Adfab_EmailCampaign_CustomerBirthday.csv +0 -1
  14. app/locale/en_US/emailcampaign/{Adfab_EmailCampaign.csv → Adfab_Emailcampaign.csv} +0 -0
  15. app/locale/en_US/emailcampaign/{Adfab_EmailCampaign_AbandonedCart.csv → Adfab_Emailcampaign_AbandonedCart.csv} +0 -0
  16. app/locale/en_US/emailcampaign/Adfab_Emailcampaign_CustomerBirthday.csv +3 -0
  17. app/locale/en_US/emailcampaign/{Adfab_EmailCampaign_InscriptionAnniversary.csv → Adfab_Emailcampaign_InscriptionAnniversary.csv} +0 -0
  18. app/locale/en_US/emailcampaign/{Adfab_EmailCampaign_OrderSuccess.csv → Adfab_Emailcampaign_OrderSuccess.csv} +0 -0
  19. app/locale/en_US/emailcampaign/{Adfab_EmailCampaign_WelcomeReminder.csv → Adfab_Emailcampaign_WelcomeReminder.csv} +0 -0
  20. app/locale/en_US/emailcampaign/{Adfab_EmailCampaign_WishlistReminder.csv → Adfab_Emailcampaign_WishlistReminder.csv} +0 -0
  21. app/locale/en_US/emailcampaign/{Adfab_EmailCampaign_WishlistStockAlert.csv → Adfab_Emailcampaign_WishlistStockAlert.csv} +0 -0
  22. app/locale/fr_FR/emailcampaign/Adfab_EmailCampaign_CustomerBirthday.csv +0 -1
  23. app/locale/fr_FR/emailcampaign/{Adfab_EmailCampaign.csv → Adfab_Emailcampaign.csv} +0 -0
  24. app/locale/fr_FR/emailcampaign/{Adfab_EmailCampaign_AbandonedCart.csv → Adfab_Emailcampaign_AbandonedCart.csv} +0 -0
  25. app/locale/fr_FR/emailcampaign/Adfab_Emailcampaign_CustomerBirthday.csv +3 -0
  26. app/locale/fr_FR/emailcampaign/{Adfab_EmailCampaign_InscriptionAnniversary.csv → Adfab_Emailcampaign_InscriptionAnniversary.csv} +0 -0
  27. app/locale/fr_FR/emailcampaign/{Adfab_EmailCampaign_OrderSuccess.csv → Adfab_Emailcampaign_OrderSuccess.csv} +0 -0
  28. app/locale/fr_FR/emailcampaign/{Adfab_EmailCampaign_WelcomeReminder.csv → Adfab_Emailcampaign_WelcomeReminder.csv} +0 -0
  29. app/locale/fr_FR/emailcampaign/{Adfab_EmailCampaign_WishlistReminder.csv → Adfab_Emailcampaign_WishlistReminder.csv} +0 -0
  30. app/locale/fr_FR/emailcampaign/{Adfab_EmailCampaign_WishlistStockAlert.csv → Adfab_Emailcampaign_WishlistStockAlert.csv} +0 -0
  31. package.xml +24 -6
  32. skin/adminhtml/default/default/js/emailcampaign.js +1 -0
app/code/community/Adfab/Emailcampaign/Model/Adminhtml/Observer.php CHANGED
@@ -14,7 +14,7 @@ class Adfab_Emailcampaign_Model_Adminhtml_Observer extends Mage_Core_Model_Abst
14
  */
15
  $launchdone = Mage::getModel('adfab_emailcampaign/flag')->loadSelf();
16
 
17
- if (Mage::getSingleton('admin/session')->isFirstPageAfterLogin() && $launchdone->getState()){
18
 
19
  $layout = $controller->getLayout();
20
  $layout->getBlock('notification_window')->setTemplate('emailcampaign/notification/window.phtml');
14
  */
15
  $launchdone = Mage::getModel('adfab_emailcampaign/flag')->loadSelf();
16
 
17
+ if (Mage::getSingleton('admin/session')->isFirstPageAfterLogin() && (!$launchdone || !$launchdone->getState())){
18
 
19
  $layout = $controller->getLayout();
20
  $layout->getBlock('notification_window')->setTemplate('emailcampaign/notification/window.phtml');
app/code/community/Adfab/Emailcampaign/Model/Campaign/AbandonedCart.php CHANGED
@@ -80,11 +80,5 @@ class Adfab_Emailcampaign_Model_Campaign_AbandonedCart extends Adfab_Emailcampai
80
  public function getCampaignUsage()
81
  {
82
  return Mage::helper('adfab_emailcampaign')->__('notice_abandoned_cart');
83
- }
84
-
85
- public function getCampaignWarning()
86
- {
87
- return Mage::helper('adfab_emailcampaign')->__('warning_abandoned_cart');
88
- }
89
-
90
  }
80
  public function getCampaignUsage()
81
  {
82
  return Mage::helper('adfab_emailcampaign')->__('notice_abandoned_cart');
83
+ }
 
 
 
 
 
 
84
  }
app/code/community/Adfab/Emailcampaign/Model/Campaign/CustomerBirthday.php CHANGED
@@ -70,7 +70,7 @@ class Adfab_Emailcampaign_Model_Campaign_CustomerBirthday extends Adfab_Emailcam
70
 
71
  switch ($configDob) {
72
  case 'req':
73
- return Mage::helper('adfab_emailcampaign')->__('warning_customer_birthday_cart_req');
74
  break;
75
  case 'opt':
76
  return Mage::helper('adfab_emailcampaign')->__('warning_customer_birthday_cart_opt');
70
 
71
  switch ($configDob) {
72
  case 'req':
73
+ return "";
74
  break;
75
  case 'opt':
76
  return Mage::helper('adfab_emailcampaign')->__('warning_customer_birthday_cart_opt');
app/code/community/Adfab/Emailcampaign/Model/Campaign/InscriptionAnniversary.php CHANGED
@@ -60,11 +60,6 @@ class Adfab_Emailcampaign_Model_Campaign_InscriptionAnniversary extends Adfab_Em
60
  {
61
  return Mage::helper('adfab_emailcampaign')->__('notice_inscription_anniversary');
62
  }
63
-
64
- public function getCampaignWarning()
65
- {
66
- return Mage::helper('adfab_emailcampaign')->__('warning_inscription_anniversary');
67
- }
68
 
69
  /**
70
  * manually set cron expr to schedule campaign every days
60
  {
61
  return Mage::helper('adfab_emailcampaign')->__('notice_inscription_anniversary');
62
  }
 
 
 
 
 
63
 
64
  /**
65
  * manually set cron expr to schedule campaign every days
app/code/community/Adfab/Emailcampaign/Model/Campaign/OrderSuccess.php CHANGED
@@ -56,10 +56,5 @@ class Adfab_Emailcampaign_Model_Campaign_OrderSuccess extends Adfab_Emailcampaig
56
  public function getCampaignUsage()
57
  {
58
  return Mage::helper('adfab_emailcampaign')->__('notice_order_success');
59
- }
60
-
61
- public function getCampaignWarning()
62
- {
63
- return Mage::helper('adfab_emailcampaign')->__('warning_order_success');
64
- }
65
  }
56
  public function getCampaignUsage()
57
  {
58
  return Mage::helper('adfab_emailcampaign')->__('notice_order_success');
59
+ }
 
 
 
 
 
60
  }
app/code/community/Adfab/Emailcampaign/Model/Campaign/WelcomeReminder.php CHANGED
@@ -55,12 +55,23 @@ class Adfab_Emailcampaign_Model_Campaign_WelcomeReminder extends Adfab_Emailcamp
55
  $dateFrom->add((-$olderThan), Zend_Date::DAY);
56
  $dateFrom->add($lastRun - $this->_processTime, Zend_Date::SECOND);
57
 
 
 
58
  $customers->addFieldToFilter('created_at', array(
59
  'gt' => date('Y-m-d H:i:s', $dateFrom->getTimestamp())
60
- ));
61
- $customers->addFieldToFilter('created_at', array(
62
  'lt' => date('Y-m-d H:i:s', $dateTo->getTimestamp())
63
- ));
 
 
 
 
 
 
 
 
 
64
 
65
  $this->sendMail(
66
  $customers,
@@ -73,11 +84,5 @@ class Adfab_Emailcampaign_Model_Campaign_WelcomeReminder extends Adfab_Emailcamp
73
  public function getCampaignUsage()
74
  {
75
  return Mage::helper('adfab_emailcampaign')->__('notice_welcome_reminder');
76
- }
77
-
78
-
79
- public function getCampaignWarning()
80
- {
81
- return Mage::helper('adfab_emailcampaign')->__('warning_welcome_reminder');
82
- }
83
  }
55
  $dateFrom->add((-$olderThan), Zend_Date::DAY);
56
  $dateFrom->add($lastRun - $this->_processTime, Zend_Date::SECOND);
57
 
58
+ $ressource = Mage::getSingleton('core/resource');
59
+
60
  $customers->addFieldToFilter('created_at', array(
61
  'gt' => date('Y-m-d H:i:s', $dateFrom->getTimestamp())
62
+ ))
63
+ ->addFieldToFilter('created_at', array(
64
  'lt' => date('Y-m-d H:i:s', $dateTo->getTimestamp())
65
+ ))
66
+ ->getSelect()->joinLeft(
67
+ array(
68
+ 'order' => $ressource->getTableName('sales/order')
69
+ ),
70
+ 'order.customer_id = e.entity_id',
71
+ array()
72
+ )
73
+ ->where('order.entity_id IS NULL')
74
+ ->distinct(true);
75
 
76
  $this->sendMail(
77
  $customers,
84
  public function getCampaignUsage()
85
  {
86
  return Mage::helper('adfab_emailcampaign')->__('notice_welcome_reminder');
87
+ }
 
 
 
 
 
 
88
  }
app/code/community/Adfab/Emailcampaign/Model/Campaign/WishlistReminder.php CHANGED
@@ -78,10 +78,5 @@ class Adfab_Emailcampaign_Model_Campaign_WishlistReminder extends Adfab_Emailcam
78
  public function getCampaignUsage()
79
  {
80
  return Mage::helper('adfab_emailcampaign')->__('notice_wishlist_reminder');
81
- }
82
-
83
- public function getCampaignWarning()
84
- {
85
- return Mage::helper('adfab_emailcampaign')->__('warning_wishlist_reminder');
86
- }
87
  }
78
  public function getCampaignUsage()
79
  {
80
  return Mage::helper('adfab_emailcampaign')->__('notice_wishlist_reminder');
81
+ }
 
 
 
 
 
82
  }
app/code/community/Adfab/Emailcampaign/Model/Campaign/WishlistStockAlert.php CHANGED
@@ -90,10 +90,5 @@ class Adfab_Emailcampaign_Model_Campaign_WishlistStockAlert extends Adfab_Emailc
90
  public function getCampaignUsage()
91
  {
92
  return Mage::helper('adfab_emailcampaign')->__('notice_wishlist_stock_alert');
93
- }
94
-
95
- public function getCampaignWarning()
96
- {
97
- return Mage::helper('adfab_emailcampaign')->__('warning_wishlist_stock_alert');
98
- }
99
  }
90
  public function getCampaignUsage()
91
  {
92
  return Mage::helper('adfab_emailcampaign')->__('notice_wishlist_stock_alert');
93
+ }
 
 
 
 
 
94
  }
app/code/community/Adfab/Emailcampaign/Model/Connector/Magento.php CHANGED
@@ -57,7 +57,7 @@ class Adfab_Emailcampaign_Model_Connector_Magento extends Adfab_Emailcampaign_Mo
57
  ->setReplyTo($customer->getEmail())
58
  ->setTemplateSubject('test')
59
  ->sendTransactional(
60
- (int)$campaign->getTemplateId(),
61
  array('email' => $customer->getEmail(), 'name' => $customer->getFirstname() . ' ' . $customer->getLastname()),
62
  $customer->getEmail(),
63
  $customer->getFirstname() . ' ' . $customer->getLastname(),
57
  ->setReplyTo($customer->getEmail())
58
  ->setTemplateSubject('test')
59
  ->sendTransactional(
60
+ (is_int($campaign->getTemplateId())) ? (int)$campaign->getTemplateId() : $campaign->getTemplateId(),
61
  array('email' => $customer->getEmail(), 'name' => $customer->getFirstname() . ' ' . $customer->getLastname()),
62
  $customer->getEmail(),
63
  $customer->getFirstname() . ' ' . $customer->getLastname(),
app/code/community/Adfab/Emailcampaign/etc/config.xml CHANGED
@@ -26,7 +26,7 @@
26
  <config>
27
  <modules>
28
  <Adfab_Emailcampaign>
29
- <version>0.1.3</version>
30
  </Adfab_Emailcampaign>
31
  </modules>
32
  <global>
26
  <config>
27
  <modules>
28
  <Adfab_Emailcampaign>
29
+ <version>1.1.4</version>
30
  </Adfab_Emailcampaign>
31
  </modules>
32
  <global>
app/code/community/Adfab/Emailcampaign/sql/adfab_emailcampaign_setup/mysql4-upgrade-0.1.3-1.1.4.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Adfab extension for Magento
4
+ *
5
+ * Long description of this file (if any...)
6
+ *
7
+ * NOTICE OF LICENSE
8
+ *
9
+ * This source file is subject to the Open Software License (OSL 3.0)
10
+ * that is bundled with this package in the file LICENSE.txt.
11
+ * It is also available through the world-wide-web at this URL:
12
+ * http://opensource.org/licenses/osl-3.0.php
13
+ *
14
+ * DISCLAIMER
15
+ *
16
+ * Do not edit or add to this file if you wish to upgrade
17
+ * the Adfab EmailCampaign module to newer versions in the future.
18
+ * If you wish to customize the Adfab EmailCampaign module for your needs
19
+ * please refer to http://www.magentocommerce.com for more information.
20
+ *
21
+ * @category Adfab
22
+ * @package Adfab_EmailCampaign
23
+ * @copyright Copyright (C) 2014 Adfab (http://www.adfab.fr/)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+
27
+ /**
28
+ * @var $this Mage_Core_Model_Resource_Setup
29
+ */
30
+
31
+ $installer = $this;
32
+ $installer->startSetup();
33
+ try {
34
+ $installer->getConnection()->modifyColumn(
35
+ $installer->getTable('adfab_emailcampaign/campaign'),
36
+ 'template_id',
37
+ 'varchar (64) NULL DEFAULT NULL'
38
+ );
39
+ } catch (Exception $e) {
40
+ Mage::logException($e);
41
+ }
42
+ $installer->endSetup();
app/etc/modules/Adfab_Emailcampaign.xml CHANGED
@@ -22,7 +22,7 @@
22
  * @copyright Copyright (C) 2014
23
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
24
  */
25
- -->
26
  <config>
27
  <modules>
28
  <Adfab_Emailcampaign>
22
  * @copyright Copyright (C) 2014
23
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
24
  */
25
+ -->
26
  <config>
27
  <modules>
28
  <Adfab_Emailcampaign>
app/locale/en_US/emailcampaign/Adfab_EmailCampaign_CustomerBirthday.csv DELETED
@@ -1 +0,0 @@
1
- "notice_customer_birthday","A mail is sent to the customers who have a birthday"
 
app/locale/en_US/emailcampaign/{Adfab_EmailCampaign.csv → Adfab_Emailcampaign.csv} RENAMED
File without changes
app/locale/en_US/emailcampaign/{Adfab_EmailCampaign_AbandonedCart.csv → Adfab_Emailcampaign_AbandonedCart.csv} RENAMED
File without changes
app/locale/en_US/emailcampaign/Adfab_Emailcampaign_CustomerBirthday.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ "notice_customer_birthday","A mail is sent to the customers who have a birthday"
2
+ "warning_customer_birthday_cart_opt","The birthday date is currently optional in the client configuration"
3
+ "warning_customer_birthday_cart_none","The birthday date is currently disabled in the client configuration"
app/locale/en_US/emailcampaign/{Adfab_EmailCampaign_InscriptionAnniversary.csv → Adfab_Emailcampaign_InscriptionAnniversary.csv} RENAMED
File without changes
app/locale/en_US/emailcampaign/{Adfab_EmailCampaign_OrderSuccess.csv → Adfab_Emailcampaign_OrderSuccess.csv} RENAMED
File without changes
app/locale/en_US/emailcampaign/{Adfab_EmailCampaign_WelcomeReminder.csv → Adfab_Emailcampaign_WelcomeReminder.csv} RENAMED
File without changes
app/locale/en_US/emailcampaign/{Adfab_EmailCampaign_WishlistReminder.csv → Adfab_Emailcampaign_WishlistReminder.csv} RENAMED
File without changes
app/locale/en_US/emailcampaign/{Adfab_EmailCampaign_WishlistStockAlert.csv → Adfab_Emailcampaign_WishlistStockAlert.csv} RENAMED
File without changes
app/locale/fr_FR/emailcampaign/Adfab_EmailCampaign_CustomerBirthday.csv DELETED
@@ -1 +0,0 @@
1
- "notice_customer_birthday","Cette campagne permet d'envoyer des mails planifiés chaque jour aux clients fêtant leur anniversaire"
 
app/locale/fr_FR/emailcampaign/{Adfab_EmailCampaign.csv → Adfab_Emailcampaign.csv} RENAMED
File without changes
app/locale/fr_FR/emailcampaign/{Adfab_EmailCampaign_AbandonedCart.csv → Adfab_Emailcampaign_AbandonedCart.csv} RENAMED
File without changes
app/locale/fr_FR/emailcampaign/Adfab_Emailcampaign_CustomerBirthday.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ "notice_customer_birthday","Cette campagne permet d'envoyer des mails planifiés chaque jour aux clients fêtant leur anniversaire"
2
+ "warning_customer_birthday_cart_opt","La date d'anniversaire est actuellement en optionel dans la configuration client"
3
+ "warning_customer_birthday_cart_none","La date d'anniversaire n'est actuellement pas activée dans la configuration client"
app/locale/fr_FR/emailcampaign/{Adfab_EmailCampaign_InscriptionAnniversary.csv → Adfab_Emailcampaign_InscriptionAnniversary.csv} RENAMED
File without changes
app/locale/fr_FR/emailcampaign/{Adfab_EmailCampaign_OrderSuccess.csv → Adfab_Emailcampaign_OrderSuccess.csv} RENAMED
File without changes
app/locale/fr_FR/emailcampaign/{Adfab_EmailCampaign_WelcomeReminder.csv → Adfab_Emailcampaign_WelcomeReminder.csv} RENAMED
File without changes
app/locale/fr_FR/emailcampaign/{Adfab_EmailCampaign_WishlistReminder.csv → Adfab_Emailcampaign_WishlistReminder.csv} RENAMED
File without changes
app/locale/fr_FR/emailcampaign/{Adfab_EmailCampaign_WishlistStockAlert.csv → Adfab_Emailcampaign_WishlistStockAlert.csv} RENAMED
File without changes
package.xml CHANGED
@@ -1,9 +1,9 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Adfab_Emailcampaign</name>
4
- <version>1.1.2</version>
5
  <stability>stable</stability>
6
- <license uri="http://opensource.org/licenses/AFL-3.0">AFL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Email Campaign let you create scheduled email campaigns to initiate dialog with your prospects and customers. Boost your ROI and take care of your customers !</summary>
@@ -20,11 +20,29 @@ We've decided to offer you this incredibly efficient tool ! &#xD;
20
  - Registration anniversary&#xD;
21
  - Wishlist reminder&#xD;
22
  - Wishlist stock alert</description>
23
- <notes>This version fixes a bug with empty value</notes>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  <authors><author><name>Adfab</name><user>Connect</user><email>dev@adfab.fr</email></author><author><name>Arnaud</name><user>Hours</user><email>arnaud.hours@adfab.fr</email></author><author><name>Gr&#xE9;gory</name><user>Besson</user><email>gregory.besson@adfab.fr</email></author><author><name>Fabien</name><user>Logarinho</user><email>fabien.logarinho@adfab.fr</email></author></authors>
25
- <date>2014-08-08</date>
26
- <time>16:52:40</time>
27
- <contents><target name="magecommunity"><dir name="Adfab"><dir name="Emailcampaign"><dir name="Block"><dir name="Adminhtml"><dir name="Campaign"><dir name="Edit"><file name="Form.php" hash="17b3141fda07951f72d06341f960dc54"/><dir name="Tab"><file name="Cron.php" hash="dbaf7601d04aae4c5d6972bd4333838a"/><file name="Form.php" hash="a5aceaae136b4e53f428644a2848fdc6"/></dir><file name="Tabs.php" hash="a5ab15e699aab8dde3bdf70ddd4379e2"/></dir><file name="Edit.php" hash="0db1b26f82e8151706bb6e7cf08baa99"/><dir name="Forms"><file name="AbandonedCart.php" hash="79e7018381e3e8de0a2be018eea2981b"/><file name="Abstract.php" hash="3bbf50b440d5216f14a6e23cd3a4316d"/><file name="CustomerBirthday.php" hash="3e075965149631fc95e498b54586d66b"/><file name="WelcomeReminder.php" hash="d55577f9e38001dbc68ecab75dfbb451"/><file name="WishlistReminder.php" hash="b20ac7a287d8bbb1e3fa5429bb0fd91c"/><file name="WishlistStockAlert.php" hash="45cb38386e6816aec2a078d3567a258c"/></dir><file name="Grid.php" hash="c0659f431119f6fd454c84b6540bac7e"/></dir><file name="Campaign.php" hash="17b1361fe6bd0cbcae614e3d47c5581c"/><dir name="Form"><dir name="Edit"><dir name="Renderer"><file name="Cron.php" hash="f2e66687504b3980e12b217a53d59a5e"/></dir></dir></dir><dir name="Notification"><file name="Toolbar.php" hash="be40e4dba0ccd9b93e689dc7b210dd60"/></dir><dir name="Recipient"><file name="Grid.php" hash="9bbb6bf0ea8b5acb3db524b3df258a75"/></dir><file name="Recipient.php" hash="7b06927116341c82586a8b416c70f4a3"/></dir></dir><dir name="Helper"><file name="Connector.php" hash="7dcf9487bfed13013c854ed585ac4f45"/><file name="Data.php" hash="4631fc49592697385cbe63497181197b"/></dir><dir name="Model"><dir name="Adminhtml"><file name="Notification.php" hash="3b1e2cf2d1811a7908ed5a93b5ca9ded"/><file name="Observer.php" hash="fa46ebaf4eea5ad4388394bdc58ad927"/></dir><dir name="Campaign"><file name="AbandonedCart.php" hash="64ab3df40466c0d0cb933baf60352c37"/><file name="Abstract.php" hash="ff0da3e18c92f5c342160c30187975ea"/><file name="Cron.php" hash="d6f2086c2d036a04ce39771102aef995"/><file name="CustomerBirthday.php" hash="fe679efcb28553b939c3eefd971d79fa"/><file name="InscriptionAnniversary.php" hash="aa0645a1b8e0e38e8113e43477ea2666"/><file name="Observer.php" hash="a788652786bfbfc9a34ec61eb76a51b9"/><file name="OrderSuccess.php" hash="efdc12cb22d9736aae968e2384dd2295"/><dir name="State"><file name="Abstract.php" hash="96c8a99efe9ad64563a2ad85541be148"/><file name="Production.php" hash="b8d1caf82586cf5f920eba995218f105"/><file name="Test.php" hash="114099329a96cba468027a153b074913"/><file name="TestAllEmail.php" hash="11964da8f2db503c14f66fbc33b14f5f"/></dir><file name="WelcomeReminder.php" hash="86723aab551338cdfa63067594527ab5"/><file name="WishlistReminder.php" hash="9f279bd38530780ab27cc2bdf3d61716"/><file name="WishlistStockAlert.php" hash="98c804c7567b1dddb07147bca9b3e535"/></dir><file name="Campaign.php" hash="ac20316047cb7c57fb774ca9792ebe14"/><dir name="Connector"><file name="Abstract.php" hash="1e011fddfc80a8a47cfbebf3ac4e7428"/><file name="Magento.php" hash="df16665526e8857512b4999d35b6e69c"/><file name="Void.php" hash="5f4b6da600618d513c9aa28f67a05885"/></dir><dir name="Cron"><file name="Observer.php" hash="fcc919aff07af27a3e05f44dfef03e8c"/></dir><file name="Cron.php" hash="be087bcc8adc875b744cd655c3cfc45c"/><file name="Flag.php" hash="f0b2123724d6ba31e4740d1ab8a9f293"/><file name="Observer.php" hash="8b56d3812ad59eef9e39eaad0eb66836"/><dir name="Resource"><dir name="Adminhtml"><dir name="Notification"><file name="Collection.php" hash="cadae2e35cd3df4d4b054b2aca25bae8"/></dir><file name="Notification.php" hash="8b9e5eaf96ece9bf184b19e2e8ee7c53"/></dir><dir name="Campaign"><file name="Collection.php" hash="2fb20db254a502f8a2776714e0326faa"/></dir><file name="Campaign.php" hash="7816e85906c384b54ce903feec7a9eac"/></dir><dir name="Source"><file name="Campaign.php" hash="3f68de176fd1915c01a89f5728a7ff98"/><file name="Connector.php" hash="9a2e4743e8abdce16fc70b0a571e0584"/><file name="Mode.php" hash="b2594ab728f6ca4e9511887f0bf06b13"/><file name="Template.php" hash="53f81f70bba6b27c0efae344258f7cf1"/></dir><file name="Status.php" hash="666bfc12e1beba81c7f90b6fd4940ef5"/></dir><dir name="Test"><dir name="Model"><dir name="Campaign"><dir name="State"><file name="Config.php" hash="d7db829c3f727d97b3795f88fd900dbf"/></dir></dir><file name="Campaign.php" hash="712f6cef45d3afbac1817260c0d1c085"/><file name="Config.php" hash="51660acdb18f5edd0758398ce30f0f08"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="CampaignController.php" hash="c7f32fd1c40e563a623b7d6cd3845cbb"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="329ebfedd1e70abfad1292e8fac1c758"/><file name="config.xml" hash="3ca46037bcf3676e01c43fc242eaad49"/><file name="system.xml" hash="50c56b8ac3d5a469e39c15d696c5ac54"/></dir><dir name="sql"><dir name="adfab_emailcampaign_setup"><file name="mysql4-install-0.1.0.php" hash="092aefa58169dae54b748068f1166664"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="32499400d3ce2cd954f99658d9e12432"/><file name="mysql4-upgrade-0.1.1-0.1.2.php" hash="d86f2097978904afd8f397498b188886"/><file name="mysql4-upgrade-0.1.2-0.1.3.php" hash="ff8cac3085d9bb774a6dffa6b99707fc"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="css"><file name="jquery-cron.css" hash="cb5a119e0ea73442fd20dda1ea210334"/></dir><dir name="js"><file name="emailcampaign.js" hash="93d4c1b7a32df8912d48ba3262550ece"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="emailcampaign.xml" hash="e39336df778af319ce028dd061db41ca"/></dir><dir name="template"><dir name="emailcampaign"><dir name="notification"><file name="toolbar.phtml" hash="d34f7ad086c70032c9fb1486d9fb0ed1"/><file name="window.phtml" hash="9c9c48d9855cbe13efef37170c565162"/></dir><dir name="system"><dir name="email"><dir name="template"><file name="edit.phtml" hash="cf9dfae96dd8ba9fd62fed537dc46af5"/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Adfab_Emailcampaign.xml" hash="28ca10d36911d1aacc4592e31d343f52"/></dir></target><target name="magelocale"><dir name="en_US"><dir name="emailcampaign"><file name="Adfab_EmailCampaign.csv" hash="8b7bb7916608dadeddd50952297df175"/><file name="Adfab_EmailCampaign_AbandonedCart.csv" hash="ee4435a37b05062c23c088c137c32cc0"/><file name="Adfab_EmailCampaign_CustomerBirthday.csv" hash="54c7d1860ac81be27c3b007db25d794d"/><file name="Adfab_EmailCampaign_InscriptionAnniversary.csv" hash="befaa0fa1f6fce97d8571407e94f7d9f"/><file name="Adfab_EmailCampaign_OrderSuccess.csv" hash="e3ff726605dd139054ffe6e7f91ab1d8"/><file name="Adfab_EmailCampaign_WelcomeReminder.csv" hash="8edb549e7b5cf31718361d6d1885340e"/><file name="Adfab_EmailCampaign_WishlistReminder.csv" hash="bd615da4bfcf92fe312bcb366d5a3baf"/><file name="Adfab_EmailCampaign_WishlistStockAlert.csv" hash="00ecd662351382621701eb876e0aa504"/></dir><dir name="template"><dir name="email"><dir name="emailcampaign"><file name="abandoned_cart.html" hash="4aeba2686af64de18dc7889cc1ee7f08"/><file name="customer_birthday.html" hash="3ddc1e77440af5d55357117b4d668bf0"/><file name="inscription_anniversary.html" hash="adcee0bce9d9d53e72f5ab0e62c512e8"/><file name="order_success.html" hash="27f50eb0f7dc590b1a775aed6232f24c"/><file name="welcome_reminder.html" hash="71874766623132765a88de43e1405f5e"/><file name="wishlist_reminder.html" hash="741d80736b53325dbd9483559ce3576a"/><file name="wishlist_stock_alert.html" hash="d08af25d00badc73c60e018e9aef901a"/></dir></dir></dir></dir><dir name="fr_FR"><dir name="emailcampaign"><file name="Adfab_EmailCampaign.csv" hash="04f84b4080c0eb56120a82a7215e1295"/><file name="Adfab_EmailCampaign_AbandonedCart.csv" hash="962c2f9b0b13302b5c910bd776a0e177"/><file name="Adfab_EmailCampaign_CustomerBirthday.csv" hash="de370aaffa47c3bd003f92163546b826"/><file name="Adfab_EmailCampaign_InscriptionAnniversary.csv" hash="32314f7b43a6431890c196f7ac0b9dea"/><file name="Adfab_EmailCampaign_OrderSuccess.csv" hash="6b1cd6e24298331c4a3e317e24695d1c"/><file name="Adfab_EmailCampaign_WelcomeReminder.csv" hash="de057c50c853f81ed0f2bc10a7565f6a"/><file name="Adfab_EmailCampaign_WishlistReminder.csv" hash="f4071c638993793d001d6902d1cbca44"/><file name="Adfab_EmailCampaign_WishlistStockAlert.csv" hash="0aa97b28c6e1dfbcfa9816a5bd4a5766"/></dir></dir></target><target name="mageweb"><dir name="js"><dir name="jquery"><file name="jquery.min.js" hash="941baad892cc00de1c928a0d5321ec3e"/><file name="jquery-cron.min.js" hash="7102f517bb2ffb5d6d5f4d9f4ccb5a1e"/></dir></dir></target></contents>
28
  <compatible/>
29
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
30
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Adfab_Emailcampaign</name>
4
+ <version>1.1.4</version>
5
  <stability>stable</stability>
6
+ <license uri="http://opensource.org/licenses/MIT">MIT</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Email Campaign let you create scheduled email campaigns to initiate dialog with your prospects and customers. Boost your ROI and take care of your customers !</summary>
20
  - Registration anniversary&#xD;
21
  - Wishlist reminder&#xD;
22
  - Wishlist stock alert</description>
23
+ <notes>&lt;h2&gt; Bugs&#xD;
24
+ &lt;/h2&gt;&#xD;
25
+ &lt;ul&gt;&#xD;
26
+ &lt;li&gt;[&lt;a href='http://support.adfab.fr/support/browse/ECAMPAIGN-68'&gt;ECAMPAIGN-68&lt;/a&gt;] - Installation bug in some cases&#xD;
27
+ &lt;/li&gt;&#xD;
28
+ &lt;li&gt;[&lt;a href='http://support.adfab.fr/support/browse/ECAMPAIGN-69'&gt;ECAMPAIGN-69&lt;/a&gt;] - Default email templates are not saved&#xD;
29
+ &lt;/li&gt;&#xD;
30
+ &lt;/ul&gt;&#xD;
31
+ &#xD;
32
+ &lt;h2&gt; Stories&#xD;
33
+ &lt;/h2&gt;&#xD;
34
+ &lt;ul&gt;&#xD;
35
+ &lt;li&gt;[&lt;a href='http://support.adfab.fr/support/browse/ECAMPAIGN-43'&gt;ECAMPAIGN-43&lt;/a&gt;] - Add a message zone for each campaign&#xD;
36
+ &lt;/li&gt;&#xD;
37
+ &lt;li&gt;[&lt;a href='http://support.adfab.fr/support/browse/ECAMPAIGN-61'&gt;ECAMPAIGN-61&lt;/a&gt;] - internal communication sent for this module&#xD;
38
+ &lt;/li&gt;&#xD;
39
+ &lt;li&gt;[&lt;a href='http://support.adfab.fr/support/browse/ECAMPAIGN-62'&gt;ECAMPAIGN-62&lt;/a&gt;] - Campaign Welcome reminder : Don't send email to those who have ordered once or more.&#xD;
40
+ &lt;/li&gt;&#xD;
41
+ &lt;/ul&gt;</notes>
42
  <authors><author><name>Adfab</name><user>Connect</user><email>dev@adfab.fr</email></author><author><name>Arnaud</name><user>Hours</user><email>arnaud.hours@adfab.fr</email></author><author><name>Gr&#xE9;gory</name><user>Besson</user><email>gregory.besson@adfab.fr</email></author><author><name>Fabien</name><user>Logarinho</user><email>fabien.logarinho@adfab.fr</email></author></authors>
43
+ <date>2014-08-17</date>
44
+ <time>13:20:25</time>
45
+ <contents><target name="magecommunity"><dir name="Adfab"><dir name="Emailcampaign"><dir name="Block"><dir name="Adminhtml"><dir name="Campaign"><dir name="Edit"><file name="Form.php" hash="17b3141fda07951f72d06341f960dc54"/><dir name="Tab"><file name="Cron.php" hash="dbaf7601d04aae4c5d6972bd4333838a"/><file name="Form.php" hash="a5aceaae136b4e53f428644a2848fdc6"/></dir><file name="Tabs.php" hash="a5ab15e699aab8dde3bdf70ddd4379e2"/></dir><file name="Edit.php" hash="0db1b26f82e8151706bb6e7cf08baa99"/><dir name="Forms"><file name="AbandonedCart.php" hash="79e7018381e3e8de0a2be018eea2981b"/><file name="Abstract.php" hash="3bbf50b440d5216f14a6e23cd3a4316d"/><file name="CustomerBirthday.php" hash="3e075965149631fc95e498b54586d66b"/><file name="WelcomeReminder.php" hash="d55577f9e38001dbc68ecab75dfbb451"/><file name="WishlistReminder.php" hash="b20ac7a287d8bbb1e3fa5429bb0fd91c"/><file name="WishlistStockAlert.php" hash="45cb38386e6816aec2a078d3567a258c"/></dir><file name="Grid.php" hash="c0659f431119f6fd454c84b6540bac7e"/></dir><file name="Campaign.php" hash="17b1361fe6bd0cbcae614e3d47c5581c"/><dir name="Form"><dir name="Edit"><dir name="Renderer"><file name="Cron.php" hash="f2e66687504b3980e12b217a53d59a5e"/></dir></dir></dir><dir name="Notification"><file name="Toolbar.php" hash="be40e4dba0ccd9b93e689dc7b210dd60"/></dir><dir name="Recipient"><file name="Grid.php" hash="9bbb6bf0ea8b5acb3db524b3df258a75"/></dir><file name="Recipient.php" hash="7b06927116341c82586a8b416c70f4a3"/></dir></dir><dir name="Helper"><file name="Connector.php" hash="7dcf9487bfed13013c854ed585ac4f45"/><file name="Data.php" hash="4631fc49592697385cbe63497181197b"/></dir><dir name="Model"><dir name="Adminhtml"><file name="Notification.php" hash="3b1e2cf2d1811a7908ed5a93b5ca9ded"/><file name="Observer.php" hash="1428842dae1f9f602f944dcf3553873e"/></dir><dir name="Campaign"><file name="AbandonedCart.php" hash="d8f8ba41c01e1e62e843e87b4209c18b"/><file name="Abstract.php" hash="ff0da3e18c92f5c342160c30187975ea"/><file name="Cron.php" hash="d6f2086c2d036a04ce39771102aef995"/><file name="CustomerBirthday.php" hash="8db49bf8118cd5bf1fc2d059938114ec"/><file name="InscriptionAnniversary.php" hash="b48da68642ab3ceacae2446983c62cde"/><file name="Observer.php" hash="a788652786bfbfc9a34ec61eb76a51b9"/><file name="OrderSuccess.php" hash="ae2d7cc1b7140588f98d54caefd82d9c"/><dir name="State"><file name="Abstract.php" hash="96c8a99efe9ad64563a2ad85541be148"/><file name="Production.php" hash="b8d1caf82586cf5f920eba995218f105"/><file name="Test.php" hash="114099329a96cba468027a153b074913"/><file name="TestAllEmail.php" hash="11964da8f2db503c14f66fbc33b14f5f"/></dir><file name="WelcomeReminder.php" hash="699aceb20c49642d6f0c4a09d4da41c7"/><file name="WishlistReminder.php" hash="e7fe2b8bce9b54f323b8e7a4fa1f4d0d"/><file name="WishlistStockAlert.php" hash="12a0191a1d855e9b0357ae9950c54625"/></dir><file name="Campaign.php" hash="ac20316047cb7c57fb774ca9792ebe14"/><dir name="Connector"><file name="Abstract.php" hash="1e011fddfc80a8a47cfbebf3ac4e7428"/><file name="Magento.php" hash="0f64b88c2897693236ddb0638b583909"/><file name="Void.php" hash="5f4b6da600618d513c9aa28f67a05885"/></dir><dir name="Cron"><file name="Observer.php" hash="fcc919aff07af27a3e05f44dfef03e8c"/></dir><file name="Cron.php" hash="be087bcc8adc875b744cd655c3cfc45c"/><file name="Flag.php" hash="f0b2123724d6ba31e4740d1ab8a9f293"/><file name="Observer.php" hash="8b56d3812ad59eef9e39eaad0eb66836"/><dir name="Resource"><dir name="Adminhtml"><dir name="Notification"><file name="Collection.php" hash="cadae2e35cd3df4d4b054b2aca25bae8"/></dir><file name="Notification.php" hash="8b9e5eaf96ece9bf184b19e2e8ee7c53"/></dir><dir name="Campaign"><file name="Collection.php" hash="2fb20db254a502f8a2776714e0326faa"/></dir><file name="Campaign.php" hash="7816e85906c384b54ce903feec7a9eac"/></dir><dir name="Source"><file name="Campaign.php" hash="3f68de176fd1915c01a89f5728a7ff98"/><file name="Connector.php" hash="9a2e4743e8abdce16fc70b0a571e0584"/><file name="Mode.php" hash="b2594ab728f6ca4e9511887f0bf06b13"/><file name="Template.php" hash="53f81f70bba6b27c0efae344258f7cf1"/></dir><file name="Status.php" hash="666bfc12e1beba81c7f90b6fd4940ef5"/></dir><dir name="Test"><dir name="Model"><dir name="Campaign"><dir name="State"><file name="Config.php" hash="d7db829c3f727d97b3795f88fd900dbf"/></dir></dir><file name="Campaign.php" hash="712f6cef45d3afbac1817260c0d1c085"/><file name="Config.php" hash="51660acdb18f5edd0758398ce30f0f08"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="CampaignController.php" hash="c7f32fd1c40e563a623b7d6cd3845cbb"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="329ebfedd1e70abfad1292e8fac1c758"/><file name="config.xml" hash="c493ddd160587e3419ac24b57cd2626a"/><file name="system.xml" hash="50c56b8ac3d5a469e39c15d696c5ac54"/></dir><dir name="sql"><dir name="adfab_emailcampaign_setup"><file name="mysql4-install-0.1.0.php" hash="092aefa58169dae54b748068f1166664"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="32499400d3ce2cd954f99658d9e12432"/><file name="mysql4-upgrade-0.1.1-0.1.2.php" hash="d86f2097978904afd8f397498b188886"/><file name="mysql4-upgrade-0.1.2-0.1.3.php" hash="ff8cac3085d9bb774a6dffa6b99707fc"/><file name="mysql4-upgrade-0.1.3-1.1.4.php" hash="492117b92dc270696aa752108f3c4aab"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="css"><file name="jquery-cron.css" hash="cb5a119e0ea73442fd20dda1ea210334"/></dir><dir name="js"><file name="emailcampaign.js" hash="0e95fdd9d472d23fcccd19c099224a48"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="emailcampaign.xml" hash="e39336df778af319ce028dd061db41ca"/></dir><dir name="template"><dir name="emailcampaign"><dir name="notification"><file name="toolbar.phtml" hash="d34f7ad086c70032c9fb1486d9fb0ed1"/><file name="window.phtml" hash="9c9c48d9855cbe13efef37170c565162"/></dir><dir name="system"><dir name="email"><dir name="template"><file name="edit.phtml" hash="cf9dfae96dd8ba9fd62fed537dc46af5"/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Adfab_Emailcampaign.xml" hash="02e862051404b3752622f72d3d6186a0"/></dir></target><target name="magelocale"><dir name="en_US"><dir name="emailcampaign"><file name="Adfab_Emailcampaign.csv" hash="8b7bb7916608dadeddd50952297df175"/><file name="Adfab_Emailcampaign_AbandonedCart.csv" hash="ee4435a37b05062c23c088c137c32cc0"/><file name="Adfab_Emailcampaign_CustomerBirthday.csv" hash="4d7ed9316e7b33da1f2fa7f64714865f"/><file name="Adfab_Emailcampaign_InscriptionAnniversary.csv" hash="befaa0fa1f6fce97d8571407e94f7d9f"/><file name="Adfab_Emailcampaign_OrderSuccess.csv" hash="e3ff726605dd139054ffe6e7f91ab1d8"/><file name="Adfab_Emailcampaign_WelcomeReminder.csv" hash="8edb549e7b5cf31718361d6d1885340e"/><file name="Adfab_Emailcampaign_WishlistReminder.csv" hash="bd615da4bfcf92fe312bcb366d5a3baf"/><file name="Adfab_Emailcampaign_WishlistStockAlert.csv" hash="00ecd662351382621701eb876e0aa504"/></dir><dir name="template"><dir name="email"><dir name="emailcampaign"><file name="abandoned_cart.html" hash="4aeba2686af64de18dc7889cc1ee7f08"/><file name="customer_birthday.html" hash="3ddc1e77440af5d55357117b4d668bf0"/><file name="inscription_anniversary.html" hash="adcee0bce9d9d53e72f5ab0e62c512e8"/><file name="order_success.html" hash="27f50eb0f7dc590b1a775aed6232f24c"/><file name="welcome_reminder.html" hash="71874766623132765a88de43e1405f5e"/><file name="wishlist_reminder.html" hash="741d80736b53325dbd9483559ce3576a"/><file name="wishlist_stock_alert.html" hash="d08af25d00badc73c60e018e9aef901a"/></dir></dir></dir></dir><dir name="fr_FR"><dir name="emailcampaign"><file name="Adfab_Emailcampaign.csv" hash="04f84b4080c0eb56120a82a7215e1295"/><file name="Adfab_Emailcampaign_AbandonedCart.csv" hash="962c2f9b0b13302b5c910bd776a0e177"/><file name="Adfab_Emailcampaign_CustomerBirthday.csv" hash="5c4011cc15e2cba9c5d2920eea3bde9d"/><file name="Adfab_Emailcampaign_InscriptionAnniversary.csv" hash="32314f7b43a6431890c196f7ac0b9dea"/><file name="Adfab_Emailcampaign_OrderSuccess.csv" hash="6b1cd6e24298331c4a3e317e24695d1c"/><file name="Adfab_Emailcampaign_WelcomeReminder.csv" hash="de057c50c853f81ed0f2bc10a7565f6a"/><file name="Adfab_Emailcampaign_WishlistReminder.csv" hash="f4071c638993793d001d6902d1cbca44"/><file name="Adfab_Emailcampaign_WishlistStockAlert.csv" hash="0aa97b28c6e1dfbcfa9816a5bd4a5766"/></dir></dir></target><target name="mageweb"><dir name="js"><dir name="jquery"><file name="jquery.min.js" hash="941baad892cc00de1c928a0d5321ec3e"/><file name="jquery-cron.min.js" hash="7102f517bb2ffb5d6d5f4d9f4ccb5a1e"/></dir></dir></target><target name="magelocal"><dir name="fr_FR"><dir name="template"><dir name="email"><file name="emailcampaign" hash=""/></dir></dir></dir></target></contents>
46
  <compatible/>
47
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
48
  </package>
skin/adminhtml/default/default/js/emailcampaign.js CHANGED
@@ -8,6 +8,7 @@ document.observe("dom:loaded", function() {
8
  var warning = $('emailcampaign_warning_' + $F(select)).up(1);
9
 
10
  usage.show();
 
11
  $('emailcampaign_warning_' + $F(select)).setStyle({color:'#FF0000'});
12
 
13
  select.observe('change', function(event, element) {
8
  var warning = $('emailcampaign_warning_' + $F(select)).up(1);
9
 
10
  usage.show();
11
+ warning.show();
12
  $('emailcampaign_warning_' + $F(select)).setStyle({color:'#FF0000'});
13
 
14
  select.observe('change', function(event, element) {