📄 profileeditor.jsp
字号:
<%-- * CyberTester - J2EE Web application for creating, delivering and managing tests/exams/surveys. * Copyright (C) 2004 CyberDemia Research and Services Pty Ltd * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program (see the file COPYING); if not, write to the * Free Software Foundation, Inc., * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * See the COPYING file located in the top-level-directory of * the archive of this program for complete text of license.--%><%@ page errorPage="/exception.jsp" language="java" %><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %><%@ taglib uri="/WEB-INF/c.tld" prefix="c" %><%@ taglib uri="/WEB-INF/fmt.tld" prefix="fmt" %><%@ taglib uri="/WEB-INF/cd_core.tld" prefix="cyberdemia" %><html:html xhtml="true"> <head> <title><fmt:message key="title.testee.profile.profileeditor" /></title> <meta http-equiv="pragmas" content="no-cache" /> <meta http-equiv="cache-control" content="no-cache" /> <meta http-equiv="expires" content="0" /> <link rel="stylesheet" href="<%= request.getContextPath() %>/cybertester.css" type="text/css" /> <link rel="stylesheet" href="<%= request.getContextPath() %>/testee/testee.css" type="text/css" /> <script type="text/javascript" src="<%= request.getContextPath() %>/utils.js" ></script> <script type="text/javascript" > <!-- var cancelling = false; function cancelClicked() { cancelling = true; } function validateForm(form ) { if (cancelling) { return true; } if (form.elements["firstName"].value.trim().length ==0) { alert("<cyberdemia:jsString><fmt:message key="jstext.testee.profile.profileeditor.testeeProfileForm.error.missingFirstName" /></cyberdemia:jsString>"); form.elements["firstName"].focus(); return false; } if (form.elements["lastName"].value.trim().length ==0) { alert("<cyberdemia:jsString><fmt:message key="jstext.testee.profile.profileeditor.testeeProfileForm.error.missingLastName" /></cyberdemia:jsString>"); form.elements["lastName"].focus(); return false; } var password1 = form.elements["password"].value.trim(); if (password1.length > 0) { if (password1 != form.elements["password2"].value.trim()) { alert("<cyberdemia:jsString><fmt:message key="jstext.testee.profile.profileeditor.testeeProfileForm.error.mismatchPassword" /></cyberdemia:jsString>"); form.elements["password2"].focus(); return false; } } return true; } // --> </script> <html:base/> </head> <body> <%@ include file="/include/header.jsp" %> <html:errors/> <h1><html:img page="/images/user_big.gif" alt="Profile Editor" /> <fmt:message key="h1.testee.profile.profileeditor" /></h1> <html:form action="/testee/profile/saveProfile" method="post" onsubmit="return validateForm(this);" > <html:hidden property="id" /> <table width="95%" class="editor" > <tr> <th align="right"><fmt:message key="label.testee.profile.profileeditor.testeeProfileForm.login" /></th> <td align="left" nowrap="nowrap" > <html:text property="login" readonly="true" size="40" maxlength="40" /> </td> </tr> <tr> <th align="right"><fmt:message key="label.testee.profile.profileeditor.testeeProfileForm.title" /></th> <td align="left"> <html:select property="title"> <html:option value="none" ><fmt:message key="label.testee.profile.profileeditor.testeeProfileForm.titleOption.none" /></html:option> <html:option value="mr" ><fmt:message key="label.testee.profile.profileeditor.testeeProfileForm.titleOption.mr" /></html:option> <html:option value="mrs" ><fmt:message key="label.testee.profile.profileeditor.testeeProfileForm.titleOption.mrs" /></html:option> <html:option value="miss" ><fmt:message key="label.testee.profile.profileeditor.testeeProfileForm.titleOption.miss" /></html:option> <html:option value="ms" ><fmt:message key="label.testee.profile.profileeditor.testeeProfileForm.titleOption.ms" /></html:option> <html:option value="doc" ><fmt:message key="label.testee.profile.profileeditor.testeeProfileForm.titleOption.doc" /></html:option> </html:select> </td> </tr> <tr> <th align="right"><fmt:message key="label.testee.profile.profileeditor.testeeProfileForm.firstName" /></th> <td align="left" nowrap="nowrap" > <html:text property="firstName" size="40" maxlength="40" /> * </td> </tr> <tr> <th align="right"><fmt:message key="label.testee.profile.profileeditor.testeeProfileForm.lastName" /></th> <td align="left" nowrap="nowrap" > <html:text property="lastName" size="40" maxlength="40" /> * </td> </tr> <tr> <th align="right"><fmt:message key="label.testee.profile.profileeditor.testeeProfileForm.password" /></th> <td align="left" nowrap="nowrap" > <html:password property="password" size="20" maxlength="20" /> </td> </tr> <tr> <th align="right"><fmt:message key="label.testee.profile.profileeditor.testeeProfileForm.confirmPassword" /></th> <td align="left" nowrap="nowrap" > <html:password property="password2" size="20" maxlength="20" /> </td> </tr> </table> <p class="footnotes">* <fmt:message key="text.testee.profile.profileeditor.footnote.required" /></p> <div> <html:submit><fmt:message key="label.button.submit" /></html:submit> <html:cancel onclick="cancelClicked()" ><fmt:message key="label.button.cancel" /></html:cancel> </div> </html:form> <%@ include file="/include/footer.jsp" %> </body></html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -