Advertisement
Guest User

Untitled

a guest
Dec 16th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.87 KB | None | 0 0
  1. */
  2. ?>
  3. <?php
  4. /**
  5. * Create account form template
  6. *
  7. * @see app/design/frontend/base/default/template/customer/form/register.phtml
  8. */
  9. /** @var $this Mage_Customer_Block_Form_Register */
  10. ?>
  11. <div class="account-create">
  12. <div class="page-title">
  13. <h1><?php echo $this->__('Create an Account') ?></h1>
  14. </div>
  15. <?php echo $this->getChildHtml('form_fields_before')?>
  16. <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
  17. <form action="<?php echo $this->getPostActionUrl() ?>" method="post" id="form-validate">
  18. <div class="fieldset">
  19. <input type="hidden" name="success_url" value="<?php echo $this->getSuccessUrl() ?>" />
  20. <input type="hidden" name="error_url" value="<?php echo $this->getErrorUrl() ?>" />
  21. <h2 class="legend"><?php echo $this->__('Personal Information') ?></h2>
  22. <ul class="form-list">
  23. <li class="fields">
  24. <?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getFormData())->setForceUseCustomerAttributes(true)->toHtml() ?>
  25. </li>
  26. <li>
  27. <label for="email_address" class="required"><em>*</em><?php echo $this->__('Email Address') ?></label>
  28. <div class="input-box">
  29. <input type="text" name="email" id="email_address" value="<?php echo $this->escapeHtml($this->getFormData()->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" class="input-text validate-email required-entry" />
  30. </div>
  31. </li>
  32. <?php if ($this->isNewsletterEnabled()): ?>
  33. <li class="control">
  34. <div class="input-box">
  35. <input type="checkbox" name="is_subscribed" title="<?php echo $this->__('Sign Up for Newsletter') ?>" value="1" id="is_subscribed"<?php if($this->getFormData()->getIsSubscribed()): ?> checked="checked"<?php endif; ?> class="checkbox" />
  36. </div>
  37. <label for="is_subscribed"><?php echo $this->__('Sign Up for Newsletter') ?></label>
  38. </li>
  39. <?php endif ?>
  40. <?php $_dob = $this->getLayout()->createBlock('customer/widget_dob') ?>
  41. <?php if ($_dob->isEnabled()): ?>
  42. <li><?php echo $_dob->setDate($this->getFormData()->getDob())->toHtml() ?></li>
  43. <?php endif ?>
  44. <?php $_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat') ?>
  45. <?php if ($_taxvat->isEnabled()): ?>
  46. <li><?php echo $_taxvat->setTaxvat($this->getFormData()->getTaxvat())->toHtml() ?></li>
  47. <?php endif ?>
  48. <?php $_gender = $this->getLayout()->createBlock('customer/widget_gender') ?>
  49. <?php if ($_gender->isEnabled()): ?>
  50. <li><?php echo $_gender->setGender($this->getFormData()->getGender())->toHtml() ?></li>
  51. <?php endif ?>
  52. </ul>
  53. </div>
  54. <?php if($this->getShowAddressFields()): ?>
  55. <div class="fieldset">
  56. <input type="hidden" name="create_address" value="1" />
  57. <h2 class="legend"><?php echo $this->__('Address Information') ?></h2>
  58. <ul class="form-list">
  59. <li class="fields">
  60. <div class="field">
  61. <label for="company"><?php echo $this->__('Company') ?></label>
  62. <div class="input-box">
  63. <input type="text" name="company" id="company" value="<?php echo $this->escapeHtml($this->getFormData()->getCompany()) ?>" title="<?php echo $this->__('Company') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('company') ?>" />
  64. </div>
  65. </div>
  66. <div class="field">
  67. <label for="telephone" class="required"><em>*</em><?php echo $this->__('Telephone') ?></label>
  68. <div class="input-box">
  69. <input type="text" name="telephone" id="telephone" value="<?php echo $this->escapeHtml($this->getFormData()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('telephone') ?>" />
  70. </div>
  71. </div>
  72. </li>
  73. <?php $_streetValidationClass = $this->helper('customer/address')->getAttributeValidationClass('street'); ?>
  74. <li class="wide">
  75. <label for="street_1" class="required"><em>*</em><?php echo $this->__('Street Address') ?></label>
  76. <div class="input-box">
  77. <input type="text" name="street[]" value="<?php echo $this->escapeHtml($this->getFormData()->getStreet(1)) ?>" title="<?php echo $this->__('Street Address') ?>" id="street_1" class="input-text <?php echo $_streetValidationClass ?>" />
  78. </div>
  79. </li>
  80. <?php $_streetValidationClass = trim(str_replace('required-entry', '', $_streetValidationClass)); ?>
  81. <?php for ($_i = 2, $_n = $this->helper('customer/address')->getStreetLines(); $_i <= $_n; $_i++): ?>
  82. <li class="wide">
  83. <div class="input-box">
  84. <input type="text" name="street[]" value="<?php echo $this->escapeHtml($this->getFormData()->getStreet($_i)) ?>" title="<?php echo $this->__('Street Address %s', $_i) ?>" id="street_<?php echo $_i ?>" class="input-text <?php echo $_streetValidationClass ?>" />
  85. </div>
  86. </li>
  87. <?php endfor; ?>
  88. <li class="fields">
  89. <div class="field">
  90. <label for="city" class="required"><em>*</em><?php echo $this->__('City') ?></label>
  91. <div class="input-box">
  92. <input type="text" name="city" value="<?php echo $this->escapeHtml($this->getFormData()->getCity()) ?>" title="<?php echo $this->__('City') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('city') ?>" id="city" />
  93. </div>
  94. </div>
  95. <div class="field">
  96. <label for="region_id" class="required"><em>*</em><?php echo $this->__('State/Province') ?></label>
  97. <div class="input-box">
  98. <select id="region_id" name="region_id" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none;">
  99. <option value=""><?php echo $this->__('Please select region, state or province') ?></option>
  100. </select>
  101. <script type="text/javascript">
  102. //<![CDATA[
  103. $('region_id').setAttribute('defaultValue', "<?php echo $this->getFormData()->getRegionId() ?>");
  104. //]]>
  105. </script>
  106. <input type="text" id="region" name="region" value="<?php echo $this->escapeHtml($this->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('region') ?>" style="display:none;" />
  107. </div>
  108. </div>
  109. </li>
  110. <li class="fields">
  111. <div class="field">
  112. <label for="zip" class="required"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></label>
  113. <div class="input-box">
  114. <input type="text" name="postcode" value="<?php echo $this->escapeHtml($this->getFormData()->getPostcode()) ?>" title="<?php echo $this->__('Zip/Postal Code') ?>" id="zip" class="input-text validate-zip-international <?php echo $this->helper('customer/address')->getAttributeValidationClass('postcode') ?>" />
  115. </div>
  116. </div>
  117. <div class="field">
  118. <label for="country" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
  119. <div class="input-box">
  120. <?php echo $this->getCountryHtmlSelect() ?>
  121. </div>
  122. </div>
  123. </li>
  124. </ul>
  125. <input type="hidden" name="default_billing" value="1" />
  126. <input type="hidden" name="default_shipping" value="1" />
  127. </div>
  128. <?php endif; ?>
  129. <div class="fieldset">
  130. <h2 class="legend"><?php echo $this->__('Login Information') ?></h2>
  131. <ul class="form-list">
  132. <li class="fields">
  133. <div class="field">
  134. <label for="password" class="required"><em>*</em><?php echo $this->__('Password') ?></label>
  135. <div class="input-box">
  136. <input type="password" name="password" id="password" title="<?php echo $this->__('Password') ?>" class="input-text required-entry validate-password" />
  137. </div>
  138. </div>
  139. <div class="field">
  140. <label for="confirmation" class="required"><em>*</em><?php echo $this->__('Confirm Password') ?></label>
  141. <div class="input-box">
  142. <input type="password" name="confirmation" title="<?php echo $this->__('Confirm Password') ?>" id="confirmation" class="input-text required-entry validate-cpassword" />
  143. </div>
  144. </div>
  145. </li>
  146. <?php echo $this->getChildHtml('form.additional.info'); ?>
  147. <?php echo $this->getChildHtml('persistent.remember.me'); ?>
  148. </ul>
  149. <?php echo $this->getChildHtml('persistent.remember.me.tooltip'); ?>
  150. </div>
  151. <div class="buttons-set">
  152. <p class="required"><?php echo $this->__('* Required Fields') ?></p>
  153. <p class="back-link"><a href="<?php echo $this->escapeUrl($this->getBackUrl()) ?>" class="back-link"><small>&laquo; </small><?php echo $this->__('Back') ?></a></p>
  154. <button type="submit" title="<?php echo $this->__('Submit') ?>" class="button"><span><span><?php echo $this->__('Submit') ?></span></span></button>
  155. </div>
  156. <?php if (Mage::helper('checkout')->isContextCheckout()): ?>
  157. <input name="context" type="hidden" value="checkout" />
  158. <?php endif; ?>
  159. </form>
  160. <script type="text/javascript">
  161. //<![CDATA[
  162. var dataForm = new VarienForm('form-validate', true);
  163. <?php if($this->getShowAddressFields()): ?>
  164. new RegionUpdater('country', 'region', 'region_id', <?php echo $this->helper('directory')->getRegionJson() ?>, undefined, 'zip');
  165. <?php endif; ?>
  166. //]]>
  167. </script>
  168. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement