[ Index ]
 

Code source de Zen Cart E-Commerce Shopping Cart 1.3.7.1

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/includes/templates/template_default/templates/ -> tpl_account_edit_default.php (source)

   1  <?php
   2  /**

   3   * Page Template

   4   *

   5   * Loaded automatically by index.php?main_page=account_edit.<br />

   6   * View or change Customer Account Information

   7   *

   8   * @package templateSystem

   9   * @copyright Copyright 2003-2005 Zen Cart Development Team

  10   * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0

  11   * @version $Id: tpl_account_edit_default.php 3848 2006-06-25 20:33:42Z drbyte $

  12   * @copyright Portions Copyright 2003 osCommerce

  13   */
  14  ?>
  15  <div class="centerColumn" id="accountEditDefault">
  16  <?php echo zen_draw_form('account_edit', zen_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL'), 'post', 'onsubmit="return check_form(account_edit);"') . zen_draw_hidden_field('action', 'process'); ?>
  17  
  18  <?php if ($messageStack->size('account_edit') > 0) echo $messageStack->output('account_edit'); ?>
  19  
  20  <fieldset>
  21  <legend><?php echo HEADING_TITLE; ?></legend>
  22  <div class="alert forward"><?php echo FORM_REQUIRED_INFORMATION; ?></div>
  23  <br class="clearBoth" />
  24  
  25  <?php
  26    if (ACCOUNT_GENDER == 'true') {
  27  ?>
  28  <?php echo zen_draw_radio_field('gender', 'm', $male, 'id="gender-male"') . '<label class="radioButtonLabel" for="gender-male">' . MALE . '</label>' . zen_draw_radio_field('gender', 'f', $female, 'id="gender-female"') . '<label class="radioButtonLabel" for="gender-female">' . FEMALE . '</label>' . (zen_not_null(ENTRY_GENDER_TEXT) ? '<span class="alert">' . ENTRY_GENDER_TEXT . '</span>': ''); ?>
  29  <br class="clearBoth" />
  30  <?php
  31    }
  32  ?>
  33  
  34  <label class="inputLabel" for="firstname"><?php echo ENTRY_FIRST_NAME; ?></label>
  35  <?php echo zen_draw_input_field('firstname', $account->fields['customers_firstname'], 'id="firstname"') . (zen_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="alert">' . ENTRY_FIRST_NAME_TEXT . '</span>': ''); ?>
  36  <br class="clearBoth" />
  37  
  38  <label class="inputLabel" for="lastname"><?php echo ENTRY_LAST_NAME; ?></label>
  39  <?php echo zen_draw_input_field('lastname', $account->fields['customers_lastname'], 'id="lastname"') . (zen_not_null(ENTRY_LAST_NAME_TEXT) ? '<span class="alert">' . ENTRY_LAST_NAME_TEXT . '</span>': ''); ?>
  40  <br class="clearBoth" />
  41  
  42  <?php
  43    if (ACCOUNT_DOB == 'true') {
  44  ?>
  45  <label class="inputLabel" for="dob"><?php echo ENTRY_DATE_OF_BIRTH; ?></label>
  46  <?php echo zen_draw_input_field('dob', zen_date_short($account->fields['customers_dob']), 'id="dob"') . (zen_not_null(ENTRY_DATE_OF_BIRTH_TEXT) ? '<span class="alert">' . ENTRY_DATE_OF_BIRTH_TEXT . '</span>': ''); ?>
  47  <br class="clearBoth" />
  48  <?php
  49    }
  50  ?>
  51  
  52  <label class="inputLabel" for="email-address"><?php echo ENTRY_EMAIL_ADDRESS; ?></label>
  53  <?php echo zen_draw_input_field('email_address', $account->fields['customers_email_address'], 'id="email-address"') . (zen_not_null(ENTRY_EMAIL_ADDRESS_TEXT) ? '<span class="alert">' . ENTRY_EMAIL_ADDRESS_TEXT . '</span>': ''); ?>
  54  <br class="clearBoth" />
  55  
  56  <label class="inputLabel" for="telephone"><?php echo ENTRY_TELEPHONE_NUMBER; ?></label>
  57  <?php echo zen_draw_input_field('telephone', $account->fields['customers_telephone'], 'id="telephone"') . (zen_not_null(ENTRY_TELEPHONE_NUMBER_TEXT) ? '<span class="alert">' . ENTRY_TELEPHONE_NUMBER_TEXT . '</span>': ''); ?>
  58  <br class="clearBoth" />
  59  
  60  <label class="inputLabel" for="fax"><?php echo ENTRY_FAX_NUMBER; ?></label>
  61  <?php echo zen_draw_input_field('fax', $account->fields['customers_fax'], 'id="fax"') . (zen_not_null(ENTRY_FAX_NUMBER_TEXT) ? '<span class="alert">' . ENTRY_FAX_NUMBER_TEXT . '</span>': ''); ?>
  62  <br class="clearBoth" />
  63  
  64  <?php
  65    if (CUSTOMERS_REFERRAL_STATUS == 2 and $customers_referral == '') {
  66  ?>
  67  <label class="inputLabel" for="customers-referral"><?php echo ENTRY_CUSTOMERS_REFERRAL; ?></label>
  68  <?php echo zen_draw_input_field('customers_referral', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_referral', 15), 'id="customers-referral"'); ?>
  69  <br class="clearBoth" />
  70  <?php } ?>
  71  
  72  <?php
  73    if (CUSTOMERS_REFERRAL_STATUS == 2 and $customers_referral != '') {
  74  ?>
  75  <label for="customers-referral-readonly"><?php echo ENTRY_CUSTOMERS_REFERRAL; ?></label>
  76  <?php echo $customers_referral; zen_draw_hidden_field('customers_referral', $customers_referral,'id="customers-referral-readonly"'); ?>
  77  <br class="clearBoth" />
  78  <?php } ?>
  79  </fieldset>
  80  
  81  <fieldset>
  82  <legend><?php echo ENTRY_EMAIL_PREFERENCE; ?></legend>
  83  <?php echo zen_draw_radio_field('email_format', 'HTML', $email_pref_html,'id="email-format-html"') . '<label class="radioButtonLabel" for="email-format-html">' . ENTRY_EMAIL_HTML_DISPLAY . '</label>' . zen_draw_radio_field('email_format', 'TEXT', $email_pref_text, 'id="email-format-text"') . '<label  class="radioButtonLabel" for="email-format-text">' . ENTRY_EMAIL_TEXT_DISPLAY . '</label>'; ?>
  84  <br class="clearBoth" />
  85  </fieldset>
  86  
  87  <div class="buttonRow back"><?php echo '<a href="' . zen_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_BACK , BUTTON_BACK_ALT) . '</a>'; ?></div>
  88  <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_UPDATE , BUTTON_UPDATE_ALT); ?></div>
  89  <br class="clearBoth" />
  90  
  91  </form>
  92  </div>


Généré le : Mon Nov 26 16:45:43 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics