?? findpwd.jsp
字號:
<%@ page contentType="text/html;charset=gbk" errorPage="error.jsp"%>
<%@ page import="com.hongshee.ejforum.util.PageUtils"%>
<%@ page import="com.hongshee.ejforum.common.ForumSetting"%>
<%
String ctxPath = request.getContextPath();
String forumName = ForumSetting.getInstance().getForumName();
String title = PageUtils.getTitle(forumName);
String[] menus = PageUtils.getHeaderMenu(request, null);
String homeUrl = ctxPath + "/index.jsp";
String forumStyle = PageUtils.getForumStyle(request, response, null);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<TITLE>找回密碼 - <%= title %></TITLE>
<LINK href="styles/<%= forumStyle %>/ejforum.css" type=text/css rel=stylesheet>
</HEAD>
<BODY onkeydown="if(event.keyCode==27) return false;">
<SCRIPT src="js/common.js" type=text/javascript></SCRIPT>
<SCRIPT src="js/member.js" type=text/javascript></SCRIPT>
<DIV class=wrap>
<DIV id=header>
<%= PageUtils.getHeader(request, title) %>
</DIV>
<%= menus[0] %>
<DIV id=nav><A href="<%= homeUrl %>"><%= forumName %></A> » 找回密碼</DIV>
<FORM name="findpwd" onsubmit="return checkfields();" action="perform.jsp?act=fdp" method="post">
<DIV class="mainbox formbox">
<H1>找回密碼</H1>
<TABLE cellSpacing=0 cellPadding=0>
<THEAD>
<TR>
<TH>請輸入用戶名或Email</TH>
<TD> </TD></TR></THEAD>
<TBODY>
<TR>
<TH><LABEL for=verifycode>驗證碼</LABEL></TH>
<TD>
<DIV id=verifycodeimage style="margin-bottom:3px"></DIV><INPUT id=verifycode onblur=checkverifycode()
tabIndex=1 maxLength=4 size=15 name=verifycode> <SPAN id=checkverifycode></SPAN></TD>
<SCRIPT type=text/javascript>
refreshVerifyCode(112,42);
</SCRIPT>
</TR>
<TR>
<TH><LABEL for=userID>用戶名</LABEL></TH>
<TD><INPUT id=userID onblur=checkuserID() tabIndex=2 maxLength=15
size=25 name=userID> <SPAN id=checkuserID> </SPAN> </TD></TR>
<TR>
<TH><LABEL for=email>Email</LABEL></TD>
<TD><INPUT id=email onblur=checkemail() tabIndex=6 size=25 maxLength=40 name=email>
<SPAN id=checkemail> </SPAN></TD></TR>
<TR>
<TH> </TH>
<TD height="30"><BUTTON class=submit tabIndex=100 name=findsubmit type=submit
value="true">提交</BUTTON></TD></TR></TBODY></TABLE></DIV></FORM>
<SCRIPT type=text/javascript>
var verifycode_invalid = '驗證碼輸入錯誤,請重新填寫';
var lastuserID = lastemail = '';
$('userID').focus();
function checkfields()
{
if (trim($('verifycode').value) == '')
{
warning($('checkverifycode'), '請輸入驗證碼');
return false;
}
if (trim($('userID').value) == '' && trim($('email').value) == '')
{
warning($('checkuserID'), '請輸入您的用戶名或Email其中至少一項');
return false;
}
findpwd.findsubmit.disabled = true;
}
function checkuserID() {
var userID = trim($('userID').value);
if(userID == lastuserID) {
return;
} else {
lastuserID = userID;
}
var cu = $('checkuserID');
var unlen = userID.replace(/[^\x00-\xff]/g, "**").length;
if(unlen < 3 && userID != '') {
warning(cu, '對不起,您輸入的用戶名小于3個字符, 請輸入一個較長的用戶名');
} else {
cu.style.display = 'none';
}
}
function checkemail() {
var email = trim($('email').value);
if(email == lastemail) {
return;
} else {
lastemail = email;
}
var ce = $('checkemail');
if(email != '' && !isLegalEmail(email)) {
warning(ce, 'Email 地址無效,請重新填寫');
} else {
ce.style.display = 'none';
}
}
</SCRIPT>
</DIV>
<%= menus[1]==null?"":menus[1] %>
<%= menus[2]==null?"":menus[2] %>
<%= PageUtils.getFooter(request, forumStyle) %>
</BODY></HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -