public static function getInstance() { if (self::$instance === null) { self::$instance = new BootstrapForms(); } return self::$instance; }
<label class="control-label col-sm-4" for="telephone"> <?php echo BootstrapForms::required_text(ENTRY_TELEPHONE_NUMBER_TEXT) . ENTRY_TELEPHONE_NUMBER; ?> </label> <div class='col-sm-8'> <?php echo zen_draw_input_field('telephone', $account->fields['customers_telephone'], 'id="telephone" class="form-control"'); ?> </div> </div> <div class='form-group'> <label class="control-label col-sm-4" for="fax"> <?php echo BootstrapForms::required_text(ENTRY_FAX_NUMBER_TEXT) . ENTRY_FAX_NUMBER; ?> </label> <div class='col-sm-8'> <?php echo zen_draw_input_field('fax', $account->fields['customers_fax'], 'id="fax" class="form-control"'); ?> </div> </div><?php if (CUSTOMERS_REFERRAL_STATUS == 2 and $customers_referral == '') { ?> <div class='form-group'> <label class="control-label col-sm-4" for="customers-referral"> <?php echo ENTRY_CUSTOMERS_REFERRAL; ?>
<?php /** * Module Template * * Allows entry of new addresses during checkout stages * * @package templateSystem * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: tpl_modules_checkout_new_address.php 4683 2006-10-07 06:11:53Z drbyte $ */ ?> <div class="centerColumnModule" id="checkoutNewAddress"> <fieldset> <legend><?php echo TITLE_PLEASE_SELECT; ?> </legend> <?php BootstrapForms::echo_shipping_address_form(); ?> </fieldset> </div>
<div class='form-group'> <label class="inputLabel" for="email-address"><?php echo ENTRY_EMAIL . BootstrapForms::required_text(ENTRY_REQUIRED_SYMBOL); ?> </label> <?php echo zen_draw_input_field('email', $_POST['email'], 'size="40" class="form-control" id="email-address"'); if ($error) { echo $error_email; } ?> </div> <div class='form-group'> <label class="inputLabel" for="amount"><?php echo ENTRY_AMOUNT . BootstrapForms::required_text(ENTRY_REQUIRED_SYMBOL); ?> </label> <?php echo zen_draw_input_field('amount', $_POST['amount'], 'class="form-control" id="amount"', 'text', false); if ($error) { echo $error_amount; } ?> </div> <div class='form-group'> <label for="message-area"><?php echo ENTRY_MESSAGE; ?> </label>
</div> <div class='form-group'> <label class="control-label col-sm-4" for="password-new"><?php echo BootstrapForms::required_text(ENTRY_PASSWORD_NEW_TEXT) . ENTRY_PASSWORD_NEW; ?> </label> <div class='col-sm-8'><?php echo zen_draw_password_field('password_new', '', 'id="password-new" class="form-control"'); ?> </div> </div> <div class='form-group'> <label class="control-label col-sm-4" for="password-confirm"><?php echo BootstrapForms::required_text(ENTRY_PASSWORD_CONFIRMATION_TEXT) . ENTRY_PASSWORD_CONFIRMATION; ?> </label> <div class='col-sm-8'><?php echo zen_draw_password_field('password_confirmation', '', 'id="password-confirm" class="form-control"'); ?> </div> </div> </fieldset> <div class='clearfix'> <div class="pull-right"><button type='submit' class='btn btn-primary'> <?php echo BUTTON_SUBMIT_ALT; ?> </button></div>
<div class='form-group'> <label class="control-label col-sm-4" for="email-address"><?php echo BootstrapForms::required_text(ENTRY_REQUIRED_SYMBOL) . ENTRY_EMAIL; ?> </label> <div class='col-sm-8'> <?php echo zen_draw_input_field('email', $email_address, ' size="40" class="form-control" id="email-address"'); ?> </div> </div> <div class='form-group'> <label class="control-label col-sm-4" for="enquiry"><?php echo BootstrapForms::required_text(ENTRY_REQUIRED_SYMBOL) . ENTRY_ENQUIRY; ?> </label> <div class='col-sm-8'> <?php echo zen_draw_textarea_field('enquiry', '30', '7', $enquiry, 'class="form-control" id="enquiry"'); ?> </div> </div> </fieldset> <p class='clearfix'> <button class='btn btn-primary pull-right' type='submit'><?php echo BUTTON_SEND_ALT; ?>
echo "</div></div>"; } ?> </fieldset> <?php if (ACCOUNT_NEWSLETTER_STATUS != 0) { ?> <fieldset> <legend><?php echo ENTRY_EMAIL_PREFERENCE; ?> </legend> <div class='form-group'> <?php echo '<label class="col-sm-6 col-md-4 control-label" for="newsletter-checkbox">' . BootstrapForms::required_text(ENTRY_NEWSLETTER_TEXT) . ENTRY_NEWSLETTER . '</label><div class="col-sm-6 col-md-8">' . zen_draw_checkbox_field('newsletter', '1', $newsletter, 'id="newsletter-checkbox" class="form-control" checked') . '</div>'; ?> </div> </fieldset> <?php } if (CUSTOMERS_REFERRAL_STATUS == 2) { ?> <fieldset> <legend><?php echo TABLE_HEADING_REFERRAL_DETAILS; ?> </legend> <div class='form-group'> <label class="control-label col-sm-4" for="customers_referral"><?php