1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- {extend name="default/base/base_member" /}
- {block name="member_main"}
- <div class="dsm-default-form">
- <form method="post" id="password_form" name="password_form" action="{:url('Membersecurity/modify_pwd')}">
- <dl>
- <dt><i class="required">*</i>{$Think.lang.set_new_password}:</dt>
- <dd>
- <input type="password" maxlength="40" class="password" name="password" id="password"/>
- <label for="password" generated="true" class="error"></label>
- <p class="hint">{$Think.lang.payment_password_instructions3}</p></dd>
- </dl>
- <dl>
- <dt><i class="required">*</i>{$Think.lang.confirm_new_password}:</dt>
- <dd>
- <input type="password" maxlength="40" class="password" name="confirm_password" id="confirm_password" />
- <label for="confirm_password" generated="true" class="error"></label>
- </dd>
- </dl>
- <dl class="bottom">
- <dt> </dt>
- <dd>
- <input type="submit" class="submit" value="{$Think.lang.ds_ok}" />
- </dd>
- </dl>
- </form>
- </div>
- <script type="text/javascript">
- $(function(){
- $('#password_form').validate({
- submitHandler:function(form){
- ds_ajaxpost('password_form','url',"{:url('membersecurity/index')}")
- },
- rules : {
- password : {
- required : true,
- minlength : 6,
- maxlength : 20
- },
- confirm_password : {
- required : true,
- equalTo : '#password'
- }
- },
- messages : {
- password : {
- required : '<i class="iconfont"></i>{$Think.lang.please_enter_password_correctly}',
- minlength : '<i class="iconfont"></i>{$Think.lang.please_enter_password_correctly}',
- maxlength : '<i class="iconfont"></i>{$Think.lang.please_enter_password_correctly}'
- },
- confirm_password : {
- required : '<i class="iconfont"></i>{$Think.lang.please_enter_password_correctly}',
- equalTo : '<i class="iconfont"></i>{$Think.lang.two_password_inconsistencies}'
- }
- }
- });
- });
- </script>
- {/block}
|