Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.79 KB | None | 0 0
  1. Mage_Customer_Block_Form_Register
  2.  
  3. <?php
  4. /**
  5. * Magento
  6. *
  7. * NOTICE OF LICENSE
  8. *
  9. * This source file is subject to the Academic Free License (AFL 3.0)
  10. * that is bundled with this package in the file LICENSE_AFL.txt.
  11. * It is also available through the world-wide-web at this URL:
  12. * http://opensource.org/licenses/afl-3.0.php
  13. * If you did not receive a copy of the license and are unable to
  14. * obtain it through the world-wide-web, please send an email
  15. * to license@magentocommerce.com so we can send you a copy immediately.
  16. *
  17. * DISCLAIMER
  18. *
  19. * Do not edit or add to this file if you wish to upgrade Magento to newer
  20. * versions in the future. If you wish to customize Magento for your
  21. * needs please refer to http://www.magentocommerce.com for more information.
  22. *
  23. * @category design
  24. * @package base_default
  25. * @copyright Copyright (c) 2013 Magento Inc. (http://www.magentocommerce.com)
  26. * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
  27. */
  28. ?>
  29. <?php
  30. /**
  31. * Create account form template
  32. *
  33. * @see app/design/frontend/base/default/template/customer/form/register.phtml
  34. */
  35. /** @var $this Mage_Customer_Block_Form_Register */
  36. ?>
  37. <?php //echo $this->getLayout()->createBlock('cms/block')->setBlockId('identification_top')->toHtml();?>
  38. <div class="middle-bottom-blk account-create">
  39. <div class="container">
  40. <div class="row">
  41. <div class="page-title">
  42. <h1><?php echo $this->__('Create an Account') ?></h1>
  43. </div>
  44. <?php echo $this->getChildHtml('form_fields_before')?>
  45. <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
  46. <form action="<?php echo $this->getPostActionUrl() ?>" method="post" id="form-validate">
  47. <?php echo $this->getBlockHtml('formkey') ?>
  48. <div class="dashboard-rt">
  49. <div class="panel panel-default">
  50. <input type="hidden" name="success_url" value="<?php echo $this->getSuccessUrl() ?>" />
  51. <input type="hidden" name="error_url" value="<?php echo $this->getErrorUrl() ?>" />
  52. <div class="panel-heading">
  53. <h2 class="pull-left"><?php echo $this->__('Personal Information') ?></h2>
  54. <div class="clearfix"></div>
  55. </div>
  56. <div class="panel-body">
  57. <?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getFormData())->setForceUseCustomerAttributes(true)->toHtml() ?>
  58. <div class="form-group">
  59. <label for="email_address" class="required"><?php echo $this->__('Email Address') ?><em>*</em></label>
  60. <input placeholder="Email" type="email" name="email" id="email_address" value="<?php echo $this->escapeHtml($this->getFormData()->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" class="form-control input-text validate-email required-entry" />
  61. </div>
  62.  
  63. <?php $_dob = $this->getLayout()->createBlock('customer/widget_dob') ?>
  64. <?php if ($_dob->isEnabled()): ?>
  65. <li><?php echo $_dob->setDate($this->getFormData()->getDob())->toHtml() ?></li>
  66. <?php endif ?>
  67. <?php $_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat') ?>
  68. <?php if ($_taxvat->isEnabled()): ?>
  69. <li><?php echo $_taxvat->setTaxvat($this->getFormData()->getTaxvat())->toHtml() ?></li>
  70. <?php endif ?>
  71. <?php $_gender = $this->getLayout()->createBlock('customer/widget_gender') ?>
  72. <?php if ($_gender->isEnabled()): ?>
  73. <li><?php echo $_gender->setGender($this->getFormData()->getGender())->toHtml() ?></li>
  74. <?php endif ?>
  75. </div>
  76. </div>
  77. <?php if($this->getShowAddressFields()): ?>
  78. <div class="fieldset">
  79. <input type="hidden" name="create_address" value="1" />
  80. <h2 class="legend"><?php echo $this->__('Address Information') ?></h2>
  81. <ul class="form-list">
  82. <li class="fields">
  83. <div class="field">
  84. <label for="company"><?php echo $this->__('Company') ?></label>
  85. <div class="input-box">
  86. <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') ?>" />
  87. </div>
  88. </div>
  89. <div class="field">
  90. <label for="telephone" class="required"><em>*</em><?php echo $this->__('Telephone') ?></label>
  91. <div class="input-box">
  92. <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') ?>" />
  93. </div>
  94. </div>
  95. </li>
  96. <?php $_streetValidationClass = $this->helper('customer/address')->getAttributeValidationClass('street'); ?>
  97. <li class="wide">
  98. <label for="street_1" class="required"><em>*</em><?php echo $this->__('Street Address') ?></label>
  99. <div class="input-box">
  100. <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 ?>" />
  101. </div>
  102. </li>
  103. <?php $_streetValidationClass = trim(str_replace('required-entry', '', $_streetValidationClass)); ?>
  104. <?php for ($_i = 2, $_n = $this->helper('customer/address')->getStreetLines(); $_i <= $_n; $_i++): ?>
  105. <li class="wide">
  106. <div class="input-box">
  107. <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 ?>" />
  108. </div>
  109. </li>
  110. <?php endfor; ?>
  111. <li class="fields">
  112. <div class="field">
  113. <label for="city" class="required"><em>*</em><?php echo $this->__('City') ?></label>
  114. <div class="input-box">
  115. <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" />
  116. </div>
  117. </div>
  118. <div class="field">
  119. <label for="region_id" class="required"><em>*</em><?php echo $this->__('State/Province') ?></label>
  120. <div class="input-box">
  121. <select id="region_id" name="region_id" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none;">
  122. <option value=""><?php echo $this->__('Please select region, state or province') ?></option>
  123. </select>
  124. <script type="text/javascript">
  125. //<![CDATA[
  126. $('region_id').setAttribute('defaultValue', "<?php echo $this->getFormData()->getRegionId() ?>");
  127. //]]>
  128. </script>
  129. <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;" />
  130. </div>
  131. </div>
  132. </li>
  133. <li class="fields">
  134. <div class="field">
  135. <label for="zip" class="required"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></label>
  136. <div class="input-box">
  137. <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') ?>" />
  138. </div>
  139. </div>
  140. <div class="field">
  141. <label for="country" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
  142. <div class="input-box">
  143. <?php echo $this->getCountryHtmlSelect() ?>
  144. </div>
  145. </div>
  146. </li>
  147. </ul>
  148. <input type="hidden" name="default_billing" value="1" />
  149. <input type="hidden" name="default_shipping" value="1" />
  150. </div>
  151. <?php endif; ?>
  152. <div class="panel panel-default">
  153. <div class="panel-heading">
  154. <h2 class="pull-left"><?php echo $this->__('Login Information') ?></h2>
  155. <div class="clearfix"></div>
  156. </div>
  157. <div class="panel-body">
  158. <div class="form-group">
  159. <label for="password" class="required"><?php echo $this->__('Password') ?><em>*</em></label>
  160. <input placeholder="Enter Password" type="password" name="password" id="password" title="<?php echo $this->__('Password') ?>" class="form-control input-text required-entry validate-password" />
  161. </div>
  162. <div class="form-group">
  163. <label for="confirmation" class="required"><?php echo $this->__('Confirm Password') ?><em>*</em></label>
  164. <input placeholder="Confirm Password" type="password" name="confirmation" title="<?php echo $this->__('Confirm Password') ?>" id="confirmation" class="form-control input-text required-entry validate-cpassword" />
  165. </div>
  166. <?php echo $this->getChildHtml('form.additional.info'); ?>
  167. <?php echo $this->getChildHtml('persistent.remember.me'); ?>
  168. </div>
  169. <?php echo $this->getChildHtml('persistent.remember.me.tooltip'); ?>
  170. </div>
  171. <div class="clearfix sve">
  172. <em>* Required Fields</em>
  173. </div>
  174. <a href="<?php echo $this->escapeUrl($this->getBackUrl()) ?>" class="btn btn-hdr btn-info reg"><?php echo $this->__('Back') ?></a>
  175. <button class=" btn btn-hdr btn-acard pull-right" type="submit" title="<?php echo $this->__('Submit') ?>"><?php echo $this->__('Submit') ?></button>
  176. <?php if (Mage::helper('checkout')->isContextCheckout()): ?>
  177. <input name="context" type="hidden" value="checkout" />
  178. <?php endif; ?>
  179. </div>
  180. </form>
  181. <script type="text/javascript">
  182. //<![CDATA[
  183. var dataForm = new VarienForm('form-validate', true);
  184. <?php if($this->getShowAddressFields()): ?>
  185. new RegionUpdater('country', 'region', 'region_id', <?php echo $this->helper('directory')->getRegionJson() ?>, undefined, 'zip');
  186. <?php endif; ?>
  187. //]]>
  188. </script>
  189. </div>
  190. </div>
  191. </div>
  192.  
  193. class Comp_Seller_Block_Account_Register extends Mage_Customer_Block_Form_Register
  194. {
  195.  
  196.  
  197. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement