📄 login.ftl
字号:
<#-- * Copyright (C) 2006 Open Source Strategies, Inc. * * 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; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA--><#-- Copyright (c) 2005-2006 Open Source Strategies, Inc. --><#-- * Copyright (c) 2003 The Open For Business Project - www.ofbiz.org * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT * OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * *@author Andy Zeneski (jaz@ofbiz.org) *@author Olivier Heintz (olivier.heintz@nereide.biz) *@version $Rev: 1 $ *@since 2.1--><#assign previousParams = sessionAttributes._PREVIOUS_PARAMS_?if_exists><#if previousParams?has_content> <#assign previousParams = "?" + previousParams></#if><#assign username = requestParameters.USERNAME?default((sessionAttributes.autoUserLogin.userLoginId)?default(""))><#if username != ""> <#assign focusName = false><#else> <#assign focusName = true></#if><div class="form" style="padding-top: 150px; padding-bottom: 150px;"><table width='300' border='0' cellpadding='0' cellspacing='0' align='center'> <tr> <td width='100%' valign='top'> <table border='0' width='100%' cellspacing='0' cellpadding='0' class='boxoutside'> <tr> <td width='100%'> <table width='100%' border='0' cellspacing='0' cellpadding='0' class='boxtop'> <tr> <td valign='middle' align='center'> <div class="boxhead">${uiLabelMap.CommonRegistered}</div> </td> </tr> </table> </td> </tr> <tr> <td width='100%'> <table width='100%' border='0' cellspacing='0' cellpadding='0' class='boxbottom'> <tr> <td align="center" valign="middle" width='100%'> <form method="post" action="<@ofbizUrl>login${previousParams?if_exists}</@ofbizUrl>" name="loginform" style='margin: 0;'> <table width='100%' border='0' cellpadding='0' cellspacing='2'> <tr> <td align="right"> <span class="tabletext">${uiLabelMap.CommonUsername} </span> </td> <td align="left"> <input type="text" class="inputBox" name="USERNAME" value="${username}" size="20"> </td> </tr> <tr> <td align="right"> <span class="tabletext">${uiLabelMap.CommonPassword} </span> </td> <td align="left"> <input type="password" class="inputBox" name="PASSWORD" value="" size="20"> </td> </tr> <tr> <td colspan="2" align="center"> <input type="submit" value=${uiLabelMap.CommonLogin} class="loginButton"> </td> </tr> </table> </form> </td> </tr> </table> </td> </tr> </table> </td> </tr></table><div align="center"><div class="screenlet" style="width: 300px; margin-left: auto; margin-right: auto; margin-top: 20px;"> <div class="screenlet-header" style="background-color: #000099; text-align: center;"> <div class="boxhead">${uiLabelMap.CommonForgotYourPassword}?</div> </div> <div class="screenlet-body" style="text-align: center;"> <form method="post" action="<@ofbizUrl>forgotpassword${previousParams}</@ofbizUrl>" name="forgotpassword" style="margin: 0;"> <span class="tabletext">${uiLabelMap.CommonUsername} </span><input type="text" size="20" class="inputBox" name="USERNAME" value="<#if requestParameters.USERNAME?has_content>${requestParameters.USERNAME}<#elseif autoUserLogin?has_content>${autoUserLogin.userLoginId}</#if>"> <div style="margin-top: 3px;"><input type="submit" name="EMAIL_PASSWORD" class="loginButton" value="${uiLabelMap.CommonEmailPassword}"/></div> </form></div></div></div><script language="JavaScript" type="text/javascript"><!-- <#if focusName> document.loginform.USERNAME.focus(); <#else> document.loginform.PASSWORD.focus(); </#if>//--></script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -