Plugin Directory

Changeset 1792769


Ignore:
Timestamp:
12/26/2017 07:15:21 PM (8 years ago)
Author:
eewee
Message:

1.11

  • Add deadline on opportunity
Location:
eewee-sellsy/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • eewee-sellsy/trunk/controllers/InstallController.php

    r1791771 r1792769  
    9898              `contact_form_setting_opportunity_step` int(11) NOT NULL,
    9999              `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."',
    101101
    102102              `contact_form_company_name` int(11) NOT NULL,
     
    150150            ";
    151151
    152         for( $i=1; $i<=25; $i++ ){
     152        for ($i=1 ; $i<=25 ; $i++) {
    153153            $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', '');
    155155            ";
    156156        }
  • eewee-sellsy/trunk/css/style.css

    r1787929 r1792769  
    1313table th.c, table td.c{ text-align: center; }
    1414table.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 }
     15table.eewee-table tr th { background: #7c7c7c; color: #fff; font-size: 1.2em; padding: 5px 10px; }
    2116
    2217table.eewee-table tr:hover,table.eewee-table tr:nth-child(2n):hover { background: #7c7c7c; color: #fff; }
     
    4035.eewee-error{ border:1px solid red !important; }
    4136.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; }
    4438.eewee-error-message{ padding:10px; margin-top:5px; margin-bottom:5px; color:#c76d6b; border:1px solid #c76d6b; background-color:#f2dede; text-transform:uppercase; }
    4539.eewee-error-message li{ margin-left:1em; }
  • eewee-sellsy/trunk/forms/FContactFormEdit.php

    r1791779 r1792769  
    204204                                    <?php
    205205                                    // DEADLINE
    206                                     $deadline = 30;
     206                                    $deadline = EEWEE_DEADLINE;
    207207                                    if (isset($contactForm[0]->contact_form_setting_deadline) && !empty($contactForm[0]->contact_form_setting_deadline)) {
    208208                                        $deadline = $contactForm[0]->contact_form_setting_deadline;
  • eewee-sellsy/trunk/helpers/dbUpdate.php

    r1791779 r1792769  
    7878
    7979            $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`;
    8181            ";
    8282            $wpdb->query($sql);
  • eewee-sellsy/trunk/index.php

    r1791771 r1792769  
    1919 */
    2020global $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);
     21define('EEWEE_VERSION', '1.11' );
     22define('EEWEE_SELLSY_PLUGIN_DIR',       WP_PLUGIN_DIR . '/' . dirname( plugin_basename( __FILE__ ) ) );
     23define('EEWEE_SELLSY_PLUGIN_URL',       WP_PLUGIN_URL . '/' . dirname( plugin_basename( __FILE__ ) ) );
     24define('EEWEE_SELLSY_PREFIXE_BDD',      $wpdb->prefix.'eewee_sellsy_');
     25define('PLUGIN_NOM_LANG',              "eewee-sellsy");
     26define('EEWEE_SELLSY_DEBUG',           false);
    2727for( $i=1 ; $i<=3 ; $i++ ) {
    2828    define( 'EEWEE_SELLSY_URL_SOUS_MENU_'.$i,      admin_url().'admin.php?page=idSousMenu'.$i);
     
    3131
    3232load_plugin_textdomain(PLUGIN_NOM_LANG, false, dirname( plugin_basename( __FILE__ ) ) . '/lang');
     33define('EEWEE_DEADLINE', 30);
    3334
    3435/**
  • eewee-sellsy/trunk/view/manuel.php

    r1791771 r1792769  
    5555            echo '<u>'.__('Default setting', PLUGIN_NOM_LANG).' : </u><br>
    5656            - '.__('Prospect', PLUGIN_NOM_LANG).'<br>
    57             - '.__('Deadline: +30 days', PLUGIN_NOM_LANG).'<br>
     57            - '.__('Deadline (days):', PLUGIN_NOM_LANG).' '.EEWEE_DEADLINE.'<br>
    5858            - '.__('Name: website', PLUGIN_NOM_LANG).'<br>
    59             - '.__('Probability: 10%', PLUGIN_NOM_LANG).'<br>
     59            - '.__('Probability (%): ', PLUGIN_NOM_LANG).' 10<br>
    6060            - '.__('Tag: wordpress', PLUGIN_NOM_LANG).'<br>
    6161            ';
Note: See TracChangeset for help on using the changeset viewer.