block_login.html 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. __custom_html_before__
  2. <bx_if:show_auth>__content__</bx_if:show_auth>
  3. <bx_if:show_form>__content__</bx_if:show_form>
  4. __custom_html_after__
  5. <bx_if:show_join>
  6. <hr class="bx-def-hr bx-def-margin-sec-topbottom" />
  7. <div class="sys-lf-join">
  8. <a class="bx-btn bx-def-font-align-center" href="__url__"><bx_text:_sys_txt_login_description_action /></a>
  9. </div>
  10. </bx_if:show_join>
  11. <div class="sys-lf-agreement bx-def-margin-leftright-neg">
  12. <hr class="bx-def-hr bx-def-margin-top" />
  13. <div class="sys-jf-agreement-cnt bx-def-padding-top bx-def-padding-leftright bx-def-font-small bx-def-font-grayed">__agreement__</div>
  14. </div>
  15. <bx_if:show_js_code>
  16. <script>
  17. (bx_login_init_ajax_form = function () {
  18. $('#sys-form-login').ajaxForm({
  19. dataType: 'json',
  20. success: function (oData) {
  21. if ('undefined' !== typeof(oData['res']) && 'OK' == oData['res']) {
  22. location.reload();
  23. }
  24. else if ('undefined' !== typeof(oData['form'])) {
  25. $('#sys-form-login').replaceWith(oData['form']);
  26. bx_login_init_ajax_form();
  27. }
  28. }
  29. });
  30. })();
  31. </script>
  32. </bx_if:show_js_code>