member_qqbind.html 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. {extend name="default/base/base_member" /}
  2. {block name="member_main"}
  3. {if $Think.config.ds_config.qq_isuse == 1}
  4. <div class="dsm-bind">
  5. {notempty name="member_info.member_qqopenid"}
  6. <div class="alert">
  7. <h4>{$Think.lang.prompt_information}:</h4>
  8. <ul>
  9. <li>{$Think.lang.member_qqconnect_binding_tip_1}<em>“{:session('member_nickname')}”</em>
  10. {$Think.lang.member_qqconnect_binding_tip_2}<em>“{$member_info.member_qqinfoarr.nickname}”</em>
  11. {$Think.lang.member_qqconnect_binding_tip_3}</li>
  12. <li>{$Think.lang.member_qqconnect_modpw_tip_1}<em>“{:session('member_nickname')}”</em>{$Think.lang.member_qqconnect_modpw_tip_2}</li>
  13. </ul>
  14. </div>
  15. <div class="relieve">
  16. <form method="post" id="editbind_form" name="editbind_form" action="{:url('Memberconnect/qqunbind')}">
  17. <input type='hidden' id="is_editpw" name="is_editpw" value='no'/>
  18. <div class="ico-qq"></div>
  19. <p>{$Think.lang.member_qqconnect_unbind_click}</p>
  20. <div class="bottom">
  21. <input class="submit" type="submit" value="{$Think.lang.member_qqconnect_unbind_submit}" />
  22. </div>
  23. </form>
  24. </div>
  25. <div class="revise dsm-default-form ">
  26. <form method="post" id="editpw_form" name="editpw_form" action="{:url('Memberconnect/qqunbind')}">
  27. <input type='hidden' id="is_editpw" name="is_editpw" value='yes'/>
  28. <dl>
  29. <dt>{$Think.lang.member_qqconnect_modpw_newpw}{$Think.lang.ds_colon}</dt>
  30. <dd>
  31. <input type="password" name="new_password" id="new_password"/>
  32. <label for="new_password" generated="true" class="error"></label>
  33. </dd>
  34. </dl>
  35. <dl>
  36. <dt>{$Think.lang.member_qqconnect_modpw_two_password}{$Think.lang.ds_colon}</dt>
  37. <dd>
  38. <input type="password" name="confirm_password" id="confirm_password" />
  39. <label for="confirm_password" generated="true" class="error"></label>
  40. </dd>
  41. </dl>
  42. <dl class="bottom">
  43. <dt></dt>
  44. <dd>
  45. <input class="submit" type="submit" value="{$Think.lang.member_qqconnect_unbind_updatepw_submit}" />
  46. </dd>
  47. </dl>
  48. </form>
  49. </div>
  50. {else /}
  51. <div class="relieve pt50">
  52. <p class="ico">
  53. <a href="{:url('Api/oa_qq')}"><img src="{$Think.HOME_SITE_ROOT}/images/qq_bind_small.gif"></a>
  54. <p class="hint">{$Think.lang.member_qqconnect_binding_click}</p>
  55. </div>
  56. <div class="revise pt50">
  57. <p class="qq">{$Think.lang.member_qqconnect_binding_goodtip_1}</p>
  58. <p>{$Think.lang.member_qqconnect_binding_goodtip_2}</p>
  59. <p class="hint">{$Think.lang.member_qqconnect_binding_goodtip_3}</p>
  60. </div>
  61. {/notempty}
  62. </div>
  63. {else /}
  64. <div class="warning-option"><i>&nbsp;</i><span>{$Think.lang.member_qqconnect_unavailable}</span></div>
  65. {/if}
  66. <script type="text/javascript">
  67. $(function(){
  68. $("#unbind").hide();
  69. $('#editpw_form').validate({
  70. errorPlacement: function(error, element){
  71. var error_td = element.parent('td').next('td');
  72. error_td.find('.field_notice').hide();
  73. error_td.append(error);
  74. },
  75. rules : {
  76. new_password : {
  77. required : true,
  78. minlength : 6,
  79. maxlength : 20
  80. },
  81. confirm_password : {
  82. required : true,
  83. equalTo : '#new_password'
  84. }
  85. },
  86. messages : {
  87. new_password : {
  88. required : "<i class='iconfont'>&#xe64c;</i>{$Think.lang.member_qqconnect_new_password_null}",
  89. minlength : "<i class='iconfont'>&#xe64c;</i>{$Think.lang.member_qqconnect_password_range}"
  90. },
  91. confirm_password : {
  92. required : "<i class='iconfont'>&#xe64c;</i>{$Think.lang.member_qqconnect_ensure_password_null}",
  93. equalTo : "<i class='iconfont'>&#xe64c;</i>{$Think.lang.member_qqconnect_input_two_password_again}"
  94. }
  95. }
  96. });
  97. });
  98. function showunbind(){
  99. $("#unbind").show();
  100. }
  101. function showpw(){
  102. $("#is_editpw").val('yes');
  103. $("#editbinddiv").hide();
  104. $("#editpwul").show();
  105. }
  106. </script>
  107. {/block}