Changeset 1792769
- Timestamp:
- 12/26/2017 07:15:21 PM (8 years ago)
- Location:
- eewee-sellsy/trunk
- Files:
-
- 6 edited
-
controllers/InstallController.php (modified) (2 diffs)
-
css/style.css (modified) (2 diffs)
-
forms/FContactFormEdit.php (modified) (1 diff)
-
helpers/dbUpdate.php (modified) (1 diff)
-
index.php (modified) (2 diffs)
-
view/manuel.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
eewee-sellsy/trunk/controllers/InstallController.php
r1791771 r1792769 98 98 `contact_form_setting_opportunity_step` int(11) NOT NULL, 99 99 `contact_form_setting_notification_email` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, 100 `contact_form_setting_deadline` int(11) NOT NULL DEFAULT ' 30',100 `contact_form_setting_deadline` int(11) NOT NULL DEFAULT '".EEWEE_DEADLINE."', 101 101 102 102 `contact_form_company_name` int(11) NOT NULL, … … 150 150 "; 151 151 152 for ( $i=1; $i<=25; $i++ ){152 for ($i=1 ; $i<=25 ; $i++) { 153 153 $sql[] = " 154 INSERT INTO `" . EEWEE_SELLSY_PREFIXE_BDD . "contact_form` VALUES (".$i.", '" . current_time('mysql') . "', '" . current_time('mysql') . "', 'Contact ".$i."', '0', 'Website form ".$i."', '0', '0', '0', '" . get_bloginfo('admin_email') . "', '1', '1', '1', '1', '0', '0', '0', '1', '1', '1', '0', '0', '0', '0', '');154 INSERT INTO `" . EEWEE_SELLSY_PREFIXE_BDD . "contact_form` VALUES (".$i.", '" . current_time('mysql') . "', '" . current_time('mysql') . "', 'Contact ".$i."', '0', 'Website form ".$i."', '0', '0', '0', '" . get_bloginfo('admin_email') . "', ".EEWEE_DEADLINE.", '1', '1', '1', '1', '0', '0', '0', '1', '1', '1', '0', '0', '0', '0', ''); 155 155 "; 156 156 } -
eewee-sellsy/trunk/css/style.css
r1787929 r1792769 13 13 table th.c, table td.c{ text-align: center; } 14 14 table.init-table td{ border: 0; } 15 table.eewee-table tr th { 16 background: #7c7c7c; 17 color: #fff; 18 font-size: 1.2em; 19 padding: 5px 10px; 20 } 15 table.eewee-table tr th { background: #7c7c7c; color: #fff; font-size: 1.2em; padding: 5px 10px; } 21 16 22 17 table.eewee-table tr:hover,table.eewee-table tr:nth-child(2n):hover { background: #7c7c7c; color: #fff; } … … 40 35 .eewee-error{ border:1px solid red !important; } 41 36 .eewee-required{ color:red; } 42 .eewee-success-message{ padding:10px; margin-top:5px; margin-bottom:5px; color:#468847; border:1px solid #468847; background-color:#dff0d8; text-transform:uppercase; 43 text-align:center; } 37 .eewee-success-message{ padding:10px; margin-top:5px; margin-bottom:5px; color:#468847; border:1px solid #468847; background-color:#dff0d8; text-transform:uppercase; text-align:center; } 44 38 .eewee-error-message{ padding:10px; margin-top:5px; margin-bottom:5px; color:#c76d6b; border:1px solid #c76d6b; background-color:#f2dede; text-transform:uppercase; } 45 39 .eewee-error-message li{ margin-left:1em; } -
eewee-sellsy/trunk/forms/FContactFormEdit.php
r1791779 r1792769 204 204 <?php 205 205 // DEADLINE 206 $deadline = 30;206 $deadline = EEWEE_DEADLINE; 207 207 if (isset($contactForm[0]->contact_form_setting_deadline) && !empty($contactForm[0]->contact_form_setting_deadline)) { 208 208 $deadline = $contactForm[0]->contact_form_setting_deadline; -
eewee-sellsy/trunk/helpers/dbUpdate.php
r1791779 r1792769 78 78 79 79 $table_name = EEWEE_SELLSY_PREFIXE_BDD . 'contact_form'; 80 $sql = "ALTER TABLE `".$table_name."` ADD `contact_form_setting_deadline` INT(11) NOT NULL DEFAULT ' 30' AFTER `contact_form_setting_notification_email`;80 $sql = "ALTER TABLE `".$table_name."` ADD `contact_form_setting_deadline` INT(11) NOT NULL DEFAULT '".EEWEE_DEADLINE."' AFTER `contact_form_setting_notification_email`; 81 81 "; 82 82 $wpdb->query($sql); -
eewee-sellsy/trunk/index.php
r1791771 r1792769 19 19 */ 20 20 global $wpdb; 21 define( 'EEWEE_VERSION', '1.11' );22 define( 'EEWEE_SELLSY_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . dirname( plugin_basename( __FILE__ ) ) );23 define( 'EEWEE_SELLSY_PLUGIN_URL', WP_PLUGIN_URL . '/' . dirname( plugin_basename( __FILE__ ) ) );24 define( 'EEWEE_SELLSY_PREFIXE_BDD', $wpdb->prefix.'eewee_sellsy_');25 define( 'PLUGIN_NOM_LANG', "eewee-sellsy");26 define( 'EEWEE_SELLSY_DEBUG', false);21 define('EEWEE_VERSION', '1.11' ); 22 define('EEWEE_SELLSY_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . dirname( plugin_basename( __FILE__ ) ) ); 23 define('EEWEE_SELLSY_PLUGIN_URL', WP_PLUGIN_URL . '/' . dirname( plugin_basename( __FILE__ ) ) ); 24 define('EEWEE_SELLSY_PREFIXE_BDD', $wpdb->prefix.'eewee_sellsy_'); 25 define('PLUGIN_NOM_LANG', "eewee-sellsy"); 26 define('EEWEE_SELLSY_DEBUG', false); 27 27 for( $i=1 ; $i<=3 ; $i++ ) { 28 28 define( 'EEWEE_SELLSY_URL_SOUS_MENU_'.$i, admin_url().'admin.php?page=idSousMenu'.$i); … … 31 31 32 32 load_plugin_textdomain(PLUGIN_NOM_LANG, false, dirname( plugin_basename( __FILE__ ) ) . '/lang'); 33 define('EEWEE_DEADLINE', 30); 33 34 34 35 /** -
eewee-sellsy/trunk/view/manuel.php
r1791771 r1792769 55 55 echo '<u>'.__('Default setting', PLUGIN_NOM_LANG).' : </u><br> 56 56 - '.__('Prospect', PLUGIN_NOM_LANG).'<br> 57 - '.__('Deadline : +30 days', PLUGIN_NOM_LANG).'<br>57 - '.__('Deadline (days):', PLUGIN_NOM_LANG).' '.EEWEE_DEADLINE.'<br> 58 58 - '.__('Name: website', PLUGIN_NOM_LANG).'<br> 59 - '.__('Probability : 10%', PLUGIN_NOM_LANG).'<br>59 - '.__('Probability (%): ', PLUGIN_NOM_LANG).' 10<br> 60 60 - '.__('Tag: wordpress', PLUGIN_NOM_LANG).'<br> 61 61 ';
Note: See TracChangeset
for help on using the changeset viewer.