| 1 |
<?php |
| 2 |
$html = '<div id="memberpages"> |
| 3 |
|
| 4 |
<div class="whitebox">'; |
| 5 |
|
| 6 |
$html .= '<div class="header_explanation">'; |
| 7 |
$header = ''; |
| 8 |
$html .= apply_filters('usces_filter_login_page_header', $header); |
| 9 |
$html .= '</div>'; |
| 10 |
|
| 11 |
if ( usces_is_error_message() ) { |
| 12 |
$html .= '<div class="error_message">' . $this->error_message . '</div>'; |
| 13 |
} |
| 14 |
$html .= '<div class="loginbox"> |
| 15 |
<form name="loginform" id="loginform" action="' . apply_filters('usces_filter_login_form_action', USCES_MEMBER_URL) . '" method="post"> |
| 16 |
<p> |
| 17 |
<label>' . __('e-mail adress', 'usces') . '<br /> |
| 18 |
<input type="text" name="loginmail" id="loginmail" class="loginmail" value="' . esc_attr(usces_remembername('return')) . '" size="20" /></label> |
| 19 |
</p> |
| 20 |
<p> |
| 21 |
<label>' . __('password', 'usces') . '<br /> |
| 22 |
<input class="hidden" value=" " /> |
| 23 |
<input type="password" name="loginpass" id="loginpass" class="loginpass" size="20" autocomplete="off" /></label> |
| 24 |
</p> |
| 25 |
<p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" /> ' . __('memorize login information', 'usces') . '</label></p> |
| 26 |
<p class="submit">'; |
| 27 |
$loginbutton = '<input type="submit" name="member_login" id="member_login" value="' . __('Log-in', 'usces') . '" />'; |
| 28 |
$html .= apply_filters('usces_filter_login_button', $loginbutton); |
| 29 |
$html .= '</p>'; |
| 30 |
$html = apply_filters('usces_filter_login_inform', $html); |
| 31 |
$html .= '</form> |
| 32 |
|
| 33 |
<p id="nav"> |
| 34 |
<a href="' . USCES_LOSTMEMBERPASSWORD_URL . '" title="' . __('Did you forget your password?', 'usces') . '">' . __('Did you forget your password?', 'usces') . '</a> |
| 35 |
</p> |
| 36 |
<p id="nav">'; |
| 37 |
if ( ! usces_is_login() ) { |
| 38 |
$html .= '<a href="' . USCES_NEWMEMBER_URL . apply_filters('usces_filter_newmember_urlquery', NULL) . '" title="' . __('New enrollment for membership.', 'usces') . '">' . __('New enrollment for membership.', 'usces') . '</a>'; |
| 39 |
} |
| 40 |
$html .= '</p> |
| 41 |
|
| 42 |
</div>'; |
| 43 |
|
| 44 |
|
| 45 |
$html .= '<div class="footer_explanation">'; |
| 46 |
$footer = ''; |
| 47 |
$html .= apply_filters('usces_filter_login_page_footer', $footer); |
| 48 |
$html .= '</div>'; |
| 49 |
|
| 50 |
|
| 51 |
$html .= '</div> |
| 52 |
|
| 53 |
</div> |
| 54 |
|
| 55 |
<script type="text/javascript">'; |
| 56 |
if ( usces_is_login() ) { |
| 57 |
$html .= 'setTimeout( function(){ try{ |
| 58 |
d = document.getElementById(\'loginpass\'); |
| 59 |
d.value = \'\'; |
| 60 |
d.focus(); |
| 61 |
} catch(e){} |
| 62 |
}, 200);'; |
| 63 |
} else { |
| 64 |
$html .= 'try{document.getElementById(\'loginmail\').focus();}catch(e){}'; |
| 65 |
} |
| 66 |
$html .= '</script>'; |
| 67 |
?> |
| 68 |
|