text 改变passwrod弹出窗口
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 改变passwrod弹出窗口相关的知识,希望对你有一定的参考价值。
\!h /app/design/frontend/rwd/default/template/customer/form/edit.phtml
<a class="button button-secondary lightbox" href="#popup-change-password"><?php echo $this->__('Change password') ?></a>
<div class="popup-holder">
<div id="popup-change-password">
<a class="close" href="#">Close</a>
<form action="<?php echo $this->getUrl('customer/account/editPost') ?>" method="post" autocomplete="off" id="form-validate-popup" class="scaffold-form" enctype="multipart/form-data">
<?php echo $this->getBlockHtml('formkey')?>
<div class="title"><?php echo $this->__('Change Password') ?></div>
<ul class="form-list">
<li>
<label for="current_password" class="required"><em>*</em><?php echo Mage::helper('core')->quoteEscape($this->__('Current Password')) ?></label>
<div class="input-box">
<!-- This is a dummy hidden field to trick firefox from auto filling the password -->
<input type="text" class="input-text no-display" name="dummy" id="dummy" />
<input type="password" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Current Password')) ?>" class="input-text required-entry" name="current_password" id="current_password" />
</div>
<input type="checkbox" name="change_password" id="change_password" value="1" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Change Password')) ?>" checked="checked" class="checkbox no-display" />
</li>
<li>
<label for="password" class="required"><em>*</em><?php echo $this->__('New Password') ?></label>
<div class="input-box">
<input type="password" title="<?php echo Mage::helper('core')->quoteEscape($this->__('New Password')) ?>" class="input-text required-entry validate-password" name="password" id="password" />
<p><?php echo $this->__('8-20 characters, uppercase and lowercase and numbers.') ?></p>
</div>
</li>
<li>
<label for="confirmation" class="required"><em>*</em><?php echo $this->__('Confirm New Password') ?></label>
<div class="input-box">
<input type="password" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Confirm New Password')) ?>" class="input-text required-entry validate-cpassword" name="confirmation" id="confirmation" />
</div>
</li>
<li class="control">
<button type="submit" title="<?php echo Mage::helper('core')->quoteEscape($this->__('to confirm')) ?>" class="button"><span><span><?php echo $this->__('to confirm') ?></span></span></button>
</li>
</ul>
</form>
<script type="text/javascript">
//<![CDATA[
var dataForm = new VarienForm('form-validate-popup', true);
//]]>
</script>
</div>
</div>
以上是关于text 改变passwrod弹出窗口的主要内容,如果未能解决你的问题,请参考以下文章