/**
     * Basic tab
     *
     * @global type $wpdb
     * @param type $wpi_settings
     */
    static function basic($wpi_settings)
    {
        ?>

    <table class="form-table">
      <tr>
        <th width="200"><?php 
        _e("Business Name", WPI);
        ?>
</th>
        <td><?php 
        echo WPI_UI::input("type=text&name=business_name&group=wpi_settings&value={$wpi_settings['business_name']}");
        ?>
 </td>
      </tr>
      <tr>
        <th width="200"><?php 
        _e("Business Address", WPI);
        ?>
</th>
        <td><?php 
        echo WPI_UI::textarea("name=business_address&group=wpi_settings&value={$wpi_settings['business_address']}");
        ?>
 </td>
      </tr>
      <tr>
        <th width="200"><?php 
        _e("Business Phone", WPI);
        ?>
</th>
        <td><?php 
        echo WPI_UI::input("type=text&name=business_phone&group=wpi_settings&value={$wpi_settings['business_phone']}");
        ?>
 </td>
      </tr>
      <tr>
        <th width="200"><?php 
        _e("Email Address", WPI);
        ?>
</th>
        <td><?php 
        echo WPI_UI::input("type=text&name=email_address&group=wpi_settings&value={$wpi_settings['email_address']}");
        ?>
 </td>
      </tr>

      <tr>
        <th><?php 
        _e("Display Styles", WPI);
        ?>
</th>
        <td>
          <ul>
            <?php 
        if (WPI_Functions::has_theme_specific_stylesheet()) {
            ?>
              <li>
                <?php 
            echo WPI_UI::checkbox("name=wpi_settings[do_not_load_theme_specific_css]&value=yes&label=" . __('Do <b>not</b> load theme specific styles.', WPI), WPI_Functions::is_true($wpi_settings['do_not_load_theme_specific_css']));
            ?>
                <div class="description"><?php 
            echo sprintf(__("WP-Invoice is shipped with a custom stylesheet designed for <b>%s</b>", WPI), wp_get_theme());
            ?>
</div>
              </li>
            <?php 
        }
        ?>
            <li><?php 
        echo WPI_UI::checkbox("name=wpi_settings[use_css]&value=yes&label=" . __('Load default CSS styles on the front-end', WPI), WPI_Functions::is_true($wpi_settings['use_css']));
        ?>
</li>
          </ul>
        </td>
      </tr>

      <tr>
        <th><?php 
        _e("Tax Handling", WPI);
        ?>
</th>
        <td>
          <ul class="wpi_something_advanced_wrapper">
            <li><label for="wpi_tax_method"><?php 
        _e('Calculate Taxable Subtotal', WPI);
        ?>
 <?php 
        echo WPI_UI::select("name=tax_method&group=wpi_settings&values=" . serialize(array("after_discount" => __("After Discount", WPI), "before_discount" => __("Before Discount", WPI))) . "&current_value=" . (!empty($wpi_settings['tax_method']) ? $wpi_settings['tax_method'] : ""));
        ?>
 </label></li>
            <li><?php 
        echo WPI_UI::checkbox("name=use_global_tax&class=wpi_show_advanced&group=wpi_settings&value=true&label=" . __('Use global tax.', WPI), WPI_Functions::is_true(isset($wpi_settings['use_global_tax']) ? $wpi_settings['use_global_tax'] : false));
        ?>
</li>
            <li class="wpi_advanced_option">
              Tax value: <?php 
        echo WPI_UI::input("type=text&style=width:50px;&name=global_tax&group=wpi_settings&value={$wpi_settings['global_tax']}");
        ?>
%
              <div class="description wpi_advanced_option"><?php 
        _e("This will make all new invoices have default Tax value which can be changed for different invoice.", WPI);
        ?>
</div>
            </li>
          </ul>
        </td>
      </tr>

      <tr>
        <th><?php 
        _e("Advanced Settings", WPI);
        ?>
</th>
        <td>
          <ul class="wpi_settings_list wpi_something_advanced_wrapper">
            <li><?php 
        echo WPI_UI::checkbox("name=allow_deposits&class=wpi_show_advanced&group=wpi_settings&value=true&label=" . __('Allow partial payments.', WPI), $wpi_settings['allow_deposits']);
        ?>
</li>

            <li class="wpi_advanced_option"><?php 
        echo WPI_UI::checkbox("name=allow_deposits_by_default&group=wpi_settings&value=true&label=" . __('Partial payments allowed by default.', WPI), WPI_Functions::is_true(isset($wpi_settings['allow_deposits_by_default']) ? $wpi_settings['allow_deposits_by_default'] : false));
        ?>
</li>

            <li><?php 
        echo WPI_UI::checkbox("name=show_recurring_billing&group=wpi_settings&value=true&label=" . __('Show recurring billing options.', WPI), $wpi_settings['show_recurring_billing']);
        ?>
</li>
            <li><?php 
        echo WPI_UI::checkbox("name=force_https&group=wpi_settings&value=true&label=" . __('Enforce HTTPS on invoice pages, if available on this server.', WPI), $wpi_settings['force_https']);
        ?>
 </li>

            <li>
              <label for="wpi_user_level"><?php 
        _e("Minimum user level to manage WP-Invoice", WPI);
        ?>
 <?php 
        echo WPI_UI::select("name=user_level&group=wpi_settings&values=" . serialize(array("0" => __('Subscriber', WPI), "1" => __('Contributor', WPI), "2" => __('Author', WPI), "5" => __('Editor', WPI), "8" => __('Administrator', WPI))) . "&current_value={$wpi_settings['user_level']}");
        ?>
 </label>
            </li>
            <li>
              <?php 
        _e("Using Godaddy Hosting:", WPI);
        ?>
 <?php 
        echo WPI_UI::select("name=using_godaddy&group=wpi_settings&values=yon&current_value={$wpi_settings['using_godaddy']}");
        ?>
              <div class="description"><?php 
        _e("Special proxy must be used to process credit card transactions on GoDaddy servers.", WPI);
        ?>
</div>
            </li>

            <li>
              <?php 
        if (!file_exists($wpi_settings['frontend_template_path'])) {
            $no_template_folder = true;
        }
        echo WPI_UI::checkbox("class=use_custom_templates&name=wpi_settings[use_custom_templates]&value=yes&label=" . __("Use custom templates. If checked, WP-Invoice will use templates in the 'wpi' folder in your active theme's folder.", WPI), WPI_Functions::is_true($wpi_settings['use_custom_templates']));
        ?>
            </li>
            <li class="wpi_use_custom_template_settings" style="<?php 
        echo empty($wpi_settings['use_custom_templates']) || $wpi_settings['use_custom_templates'] == 'no' ? 'display:none;' : '';
        ?>
">
              <?php 
        if (!empty($no_template_folder)) {
            ?>
                <span class="wpi_red_notification"><?php 
            _e('Note: Currently there is no "wpi" folder in your active template\'s folder, WP-Invoice will attempt to create it after saving.', WPI);
            ?>
</span>
              <?php 
        } else {
            ?>
                <span class="wpi_green_notification"><?php 
            _e('A "wpi" folder has been found, any files with the proper file names will be used instead of the default template files.', WPI);
            ?>
</span>
    <?php 
        }
        ?>
            </li>
            <li><input class="button wpi_install_custom_templates" type="button" value="<?php 
        _e("Install", WPI);
        ?>
" /> <?php 
        _e("the custom templates inside the <b>wpi</b> folder in your active theme's folder.", WPI);
        ?>
</li>
            <li class="wpi_install_custom_templates_result" style="display:none;"></li>
            <li><?php 
        echo WPI_UI::checkbox("name=wpi_settings[disable_automatic_feature_update]&value=true&label=" . __("Disable automatic Premium Feature updates.", WPI), WPI_Functions::is_true(isset($wpi_settings['disable_automatic_feature_update']) ? $wpi_settings['disable_automatic_feature_update'] : false));
        ?>
</li>
            <li>
              <label for="wpi_thousands_separator_symbol">
                <?php 
        _e('Thousands Separator Symbol', WPI);
        ?>
                <?php 
        echo WPI_UI::select(array('name' => 'thousands_separator_symbol', 'group' => 'wpi_settings', 'values' => array('0' => __('None'), '.' => '.(period)', ',' => ',(comma)'), 'current_value' => !isset($wpi_settings['thousands_separator_symbol']) ? ',' : $wpi_settings['thousands_separator_symbol']));
        ?>
              </label>
            </li>
            <li>
              <?php 
        echo WPI_UI::checkbox("name=wpi_settings[logged_in_only]&value=true&label=" . __("Show invoices only for logged in recipients.", WPI), WPI_Functions::is_true(isset($wpi_settings['logged_in_only']) ? $wpi_settings['logged_in_only'] : false));
        ?>
            </li>
            <li>
              <?php 
        echo WPI_UI::checkbox("name=wpi_settings[send_password_to_new_users]&value=true&label=" . __("Send passwords to newly created recipients.", WPI), WPI_Functions::is_true(isset($wpi_settings['send_password_to_new_users']) ? $wpi_settings['send_password_to_new_users'] : false));
        ?>
            </li>
            <li>
              <?php 
        echo WPI_UI::checkbox("name=wpi_settings[turn_off_compatibility_mode]&value=true&label=" . __("Turn off compatibility mode.", WPI), WPI_Functions::is_true(isset($wpi_settings['turn_off_compatibility_mode']) ? $wpi_settings['turn_off_compatibility_mode'] : false));
        ?>
              <div class="description"><?php 
        _e('By default the Compatibility Mode is on. If you encounter problems displaying your invoices then turn it off.', WPI);
        ?>
</div>
            </li>
          </ul>
        </td>
      </tr>

    <?php 
        do_action('wpi_settings_page_basic_settings', $wpi_settings);
        ?>


    </table>

  <?php 
    }