Reverted revision 1042196 as suggested by Adam.
This change introduces framework dependencies from applications. More work is needed to the patch in https://issues.apache.org/jira/browse/OFBIZ-4037 before committing again. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1042250 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1108,14 +1108,6 @@
|
||||
<value xml:lang="zh">无法找到</value>
|
||||
<value xml:lang="zh_TW">無法找到</value>
|
||||
</property>
|
||||
<property key="CommonCaptchaMissingError">
|
||||
<value xml:lang="en">Verify code captcha is missing or wrong</value>
|
||||
<value xml:lang="fr">Vérifier le code captcha, il est absent ou erroné</value>
|
||||
<value xml:lang="it">Verifica il codice captcha, è mancante o errato</value>
|
||||
<value xml:lang="th">รหัสตัวเลขที่ท่านกรอกมีข้อผิดพลาด</value>
|
||||
<value xml:lang="zh">缺少验证码或验证码错误</value>
|
||||
<value xml:lang="zh_TW">沒有驗證碼或是錯誤</value>
|
||||
</property>
|
||||
<property key="CommonChange">
|
||||
<value xml:lang="ar">تغيير</value>
|
||||
<value xml:lang="de">Verändern</value>
|
||||
@@ -2869,25 +2861,6 @@
|
||||
<value xml:lang="zh">第一个</value>
|
||||
<value xml:lang="zh_TW">第一個</value>
|
||||
</property>
|
||||
<property key="CommonFirstName">
|
||||
<value xml:lang="cs">Jméno</value>
|
||||
<value xml:lang="de">Vorname</value>
|
||||
<value xml:lang="en">First name</value>
|
||||
<value xml:lang="en_GB">Forename</value>
|
||||
<value xml:lang="es">Nombre</value>
|
||||
<value xml:lang="fr">Prénom</value>
|
||||
<value xml:lang="hi_IN">पहला नाम</value>
|
||||
<value xml:lang="it">Nome</value>
|
||||
<value xml:lang="ja">First name</value>
|
||||
<value xml:lang="nl">Voornaam</value>
|
||||
<value xml:lang="pt_BR">Nome</value>
|
||||
<value xml:lang="pt_PT">Primeiro Nome</value>
|
||||
<value xml:lang="ro">Nume </value>
|
||||
<value xml:lang="ru">Имя</value>
|
||||
<value xml:lang="th">ชื่อ</value>
|
||||
<value xml:lang="zh">名字</value>
|
||||
<value xml:lang="zh_TW">名字</value>
|
||||
</property>
|
||||
<property key="CommonFollowingErrorsOccurred">
|
||||
<value xml:lang="ar">الأخطاء التالية حدثت</value>
|
||||
<value xml:lang="de">Folgende Fehler sind aufgetreten</value>
|
||||
@@ -3890,25 +3863,6 @@
|
||||
<value xml:lang="zh">最近的</value>
|
||||
<value xml:lang="zh_TW">最近的</value>
|
||||
</property>
|
||||
<property key="CommonLastName">
|
||||
<value xml:lang="cs">Příjmení</value>
|
||||
<value xml:lang="de">Nachname</value>
|
||||
<value xml:lang="en">Last name</value>
|
||||
<value xml:lang="en_GB">Surname</value>
|
||||
<value xml:lang="es">Apellidos</value>
|
||||
<value xml:lang="fr">Nom</value>
|
||||
<value xml:lang="hi_IN">अन्त नाम</value>
|
||||
<value xml:lang="it">Cognome</value>
|
||||
<value xml:lang="ja">Last name</value>
|
||||
<value xml:lang="nl">Familienaam</value>
|
||||
<value xml:lang="pt_BR">Segundo nome</value>
|
||||
<value xml:lang="pt_PT">Apelido</value>
|
||||
<value xml:lang="ro">Nume de Familie</value>
|
||||
<value xml:lang="ru">Фамилия</value>
|
||||
<value xml:lang="th">นามสกุล</value>
|
||||
<value xml:lang="zh">姓氏</value>
|
||||
<value xml:lang="zh_TW">姓氏</value>
|
||||
</property>
|
||||
<property key="CommonLastSytemNotes">
|
||||
<value xml:lang="en">Last system notes</value>
|
||||
<value xml:lang="fr">Dernières tâches affectées</value>
|
||||
@@ -4415,21 +4369,6 @@
|
||||
<value xml:lang="zh_CN">方法</value>
|
||||
<value xml:lang="zh_TW">方法</value>
|
||||
</property>
|
||||
<property key="CommonMiddleName">
|
||||
<value xml:lang="de">Zweiter Vorname</value>
|
||||
<value xml:lang="en">Middle Name</value>
|
||||
<value xml:lang="es">Segundo nombre</value>
|
||||
<value xml:lang="fr">Nom intermédiaire</value>
|
||||
<value xml:lang="hi_IN">मध्य नाम</value>
|
||||
<value xml:lang="it">Nome centrale</value>
|
||||
<value xml:lang="nl">Tussenvoegsel</value>
|
||||
<value xml:lang="pt_BR">Nome do meio</value>
|
||||
<value xml:lang="ro">Nume Central</value>
|
||||
<value xml:lang="ru">Отчество</value>
|
||||
<value xml:lang="th">ชื่อกลาง</value>
|
||||
<value xml:lang="zh">中间名</value>
|
||||
<value xml:lang="zh_TW">中間名</value>
|
||||
</property>
|
||||
<property key="CommonMilliSecond">
|
||||
<value xml:lang="de">Millisekunde</value>
|
||||
<value xml:lang="en">Millisecond</value>
|
||||
@@ -4779,13 +4718,6 @@
|
||||
<value xml:lang="en">New Portal Page</value>
|
||||
<value xml:lang="it">Nuova pagina portale</value>
|
||||
</property>
|
||||
<property key="CommonNewRegistration">
|
||||
<value xml:lang="en">New Registration </value>
|
||||
<value xml:lang="fr">Nouvel enregistrement</value>
|
||||
<value xml:lang="it">Nuovo utente</value>
|
||||
<value xml:lang="th">ลงทะเบียน </value>
|
||||
<value xml:lang="zh">新注册</value>
|
||||
</property>
|
||||
<property key="CommonNewSelection">
|
||||
<value xml:lang="ar">إختيار جديد</value>
|
||||
<value xml:lang="de">Neue Auswahl</value>
|
||||
@@ -5669,10 +5601,6 @@
|
||||
<value xml:lang="zh">请修改你的密码</value>
|
||||
<value xml:lang="zh_TW">請修改你的密碼</value>
|
||||
</property>
|
||||
<property key="CommonPasswordVerify">
|
||||
<value xml:lang="en">Confirm Password</value>
|
||||
<value xml:lang="it">Conferma password</value>
|
||||
</property>
|
||||
<property key="CommonPaymentMethodType">
|
||||
<value xml:lang="ar">نوع طريقة التسديد</value>
|
||||
<value xml:lang="de">Zahlungsmethode Typ</value>
|
||||
@@ -6386,13 +6314,6 @@
|
||||
<value xml:lang="zh_CN">刷新</value>
|
||||
<value xml:lang="zh_TW">更新</value>
|
||||
</property>
|
||||
<property key="CommonRegisterComplete">
|
||||
<value xml:lang="en">Register of new person is complete...Please </value>
|
||||
<value xml:lang="fr">L'enregistrement de la nouvelle personne est complet...SVP</value>
|
||||
<value xml:lang="it">Creazione nuovo utente completata...prego </value>
|
||||
<value xml:lang="th">การลงทะเบียนใหม่สำหรับบุคคลได้ทำการเสร็จสิ้นสมบูรณ์แล้ว...สามารถเข้าสู่ระบบได้ </value>
|
||||
<value xml:lang="zh">完成新人员注册...请</value>
|
||||
</property>
|
||||
<property key="CommonRegistered">
|
||||
<value xml:lang="ar">مستخدم مسجل</value>
|
||||
<value xml:lang="cs">Registrovaný uživatel</value>
|
||||
@@ -6449,11 +6370,6 @@
|
||||
<value xml:lang="zh">发布版本</value>
|
||||
<value xml:lang="zh_TW">發佈版本</value>
|
||||
</property>
|
||||
<property key="CommonReloadImage">
|
||||
<value xml:lang="en">reload image</value>
|
||||
<value xml:lang="it">Ricarica immagine</value>
|
||||
<value xml:lang="zh">刷新图片</value>
|
||||
</property>
|
||||
<property key="CommonRemove">
|
||||
<value xml:lang="ar">نزع</value>
|
||||
<value xml:lang="cs">Odstranit</value>
|
||||
@@ -8686,13 +8602,6 @@
|
||||
<value xml:lang="zh_CN">值</value>
|
||||
<value xml:lang="zh_TW">數值</value>
|
||||
</property>
|
||||
<property key="CommonVerifyCaptcha">
|
||||
<value xml:lang="en">Verify code</value>
|
||||
<value xml:lang="fr">Vérifier le code captcha</value>
|
||||
<value xml:lang="it">Verifica codice</value>
|
||||
<value xml:lang="th">ใส่รหัสตามรูป</value>
|
||||
<value xml:lang="zh">验证验证码</value>
|
||||
</property>
|
||||
<property key="CommonView">
|
||||
<value xml:lang="ar">مشهد</value>
|
||||
<value xml:lang="cs">Náhled</value>
|
||||
@@ -8977,10 +8886,6 @@
|
||||
<value xml:lang="zh_CN">哪里</value>
|
||||
<value xml:lang="zh_TW">哪里</value>
|
||||
</property>
|
||||
<property key="CommonWhyRegister">
|
||||
<value xml:lang="en">Why would you like to register?</value>
|
||||
<value xml:lang="it">Perche' desideri registrarti?</value>
|
||||
</property>
|
||||
<property key="CommonWidth">
|
||||
<value xml:lang="ar">العرض</value>
|
||||
<value xml:lang="de">Breite</value>
|
||||
|
||||
@@ -130,8 +130,3 @@ http.localhost=ABQIAAAAtt0d8djaYFkk8N5LJVcDSBT2yXp_ZAY8_ufC3CFXhHIE1NvwkxR3euHYk
|
||||
|
||||
# -- Y if you want to display the multi-tenant textbox in the login page
|
||||
multitenant=N
|
||||
|
||||
# -- Y if you want new users be allowed to register online
|
||||
login.newRegistration.allow=Y
|
||||
# -- Y if you want that a captcha image check field is used when registering new users
|
||||
login.newRegistration.useCaptcha=Y
|
||||
|
||||
@@ -95,25 +95,6 @@ under the License.
|
||||
<response name="success" type="view" value="forgotPassword"/>
|
||||
<response name="error" type="view" value="forgotPassword"/>
|
||||
</request-map>
|
||||
<request-map uri="newRegisterLogin">
|
||||
<security https="true" auth="false"/>
|
||||
<event type="java" invoke="getCodeCaptcha" path="org.ofbiz.common.Captcha"/>
|
||||
<response name="success" type="view" value="newRegisterLogin"/>
|
||||
</request-map>
|
||||
<request-map uri="createRegister">
|
||||
<security https="true" auth="false"/>
|
||||
<event type="simple" invoke="createRegister" path="component://common/script/org/ofbiz/common/RegisterEvents.xml"/>
|
||||
<response name="error" type="view" value="newRegisterLogin"/>
|
||||
<response name="resultPage" type="view" value="newRegisterLogin"/>
|
||||
</request-map>
|
||||
<request-map uri="reloadCaptchaImage">
|
||||
<security https="true" auth="false"/>
|
||||
<response name="success" type="view" value="reloadCaptchaImage"/>
|
||||
</request-map>
|
||||
<request-map uri="reloadCaptchaCode">
|
||||
<security https="true" auth="false"/>
|
||||
<response name="success" type="view" value="reloadCaptchaCode"/>
|
||||
</request-map>
|
||||
<request-map uri="view">
|
||||
<security https="false" auth="false"/>
|
||||
<response name="success" type="request" value="main"/>
|
||||
@@ -253,9 +234,6 @@ under the License.
|
||||
<view-map name="login" type="screen" page="component://common/widget/CommonScreens.xml#login"/>
|
||||
<view-map name="requirePasswordChange" type="screen" page="component://common/widget/CommonScreens.xml#requirePasswordChange"/>
|
||||
<view-map name="forgotPassword" type="screen" page="component://common/widget/CommonScreens.xml#forgotPassword"/>
|
||||
<view-map name="newRegisterLogin" type="screen" page="component://common/widget/RegisterScreens.xml#newRegisterLogin"/>
|
||||
<view-map name="reloadCaptchaImage" type="screen" page="component://common/widget/RegisterScreens.xml#reloadCaptchaImage"/>
|
||||
<view-map name="reloadCaptchaCode" type="screen" page="component://common/widget/RegisterScreens.xml#reloadCaptchaCode"/>
|
||||
<view-map name="EventMessages" type="screen" page="component://common/widget/CommonScreens.xml#EventMessages"/>
|
||||
|
||||
<view-map name="ListLocales" type="screen" page="component://common/widget/LookupScreens.xml#ListLocales"/>
|
||||
|
||||
@@ -31,11 +31,11 @@ under the License.
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center">
|
||||
<input type="submit" name="GET_PASSWORD_HINT" value="${uiLabelMap.CommonGetPasswordHint}"/> <input type="submit" name="EMAIL_PASSWORD" value="${uiLabelMap.CommonEmailPassword}"/>
|
||||
<input type="submit" name="GET_PASSWORD_HINT" class="smallSubmit" value="${uiLabelMap.CommonGetPasswordHint}"/> <input type="submit" name="EMAIL_PASSWORD" class="smallSubmit" value="${uiLabelMap.CommonEmailPassword}"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<a href='<@ofbizUrl>authview</@ofbizUrl>' class="buttontext">${uiLabelMap.CommonGoBack}</a>
|
||||
<a href='<@ofbizUrl>authview</@ofbizUrl>' class="button">${uiLabelMap.CommonGoBack}</a>
|
||||
<input type="hidden" name="JavaScriptEnabled" value="N"/>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -19,7 +19,6 @@ under the License.
|
||||
|
||||
<#if requestAttributes.uiLabelMap?exists><#assign uiLabelMap = requestAttributes.uiLabelMap></#if>
|
||||
<#assign useMultitenant = Static["org.ofbiz.base.util.UtilProperties"].getPropertyValue("general.properties", "multitenant")>
|
||||
<#assign allowNewRegistration = Static["org.ofbiz.base.util.UtilProperties"].getPropertyValue("general.properties", "login.newRegistration.allow")>
|
||||
|
||||
<#assign username = requestParameters.USERNAME?default((sessionAttributes.autoUserLogin.userLoginId)?default(""))>
|
||||
<#if username != "">
|
||||
@@ -27,6 +26,7 @@ under the License.
|
||||
<#else>
|
||||
<#assign focusName = true>
|
||||
</#if>
|
||||
<center>
|
||||
<div class="screenlet login-screenlet">
|
||||
<div class="screenlet-title-bar">
|
||||
<h3>${uiLabelMap.CommonRegistered}</h3>
|
||||
@@ -59,16 +59,12 @@ under the License.
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="JavaScriptEnabled" value="N"/>
|
||||
<br/>
|
||||
<center>
|
||||
<a href="<@ofbizUrl>forgotPassword</@ofbizUrl>">${uiLabelMap.CommonForgotYourPassword}?</a>
|
||||
<#if ("Y" == allowNewRegistration)>
|
||||
<a href="<@ofbizUrl>newRegisterLogin</@ofbizUrl>">${uiLabelMap.CommonNewRegistration}</a>
|
||||
</#if>
|
||||
</center>
|
||||
<br />
|
||||
<a href="<@ofbizUrl>forgotPassword</@ofbizUrl>">${uiLabelMap.CommonForgotYourPassword}?</a>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</center>
|
||||
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
document.loginform.JavaScriptEnabled.value = "Y";
|
||||
|
||||
@@ -1,131 +0,0 @@
|
||||
<#--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
<#assign useCaptcha = Static["org.ofbiz.base.util.UtilProperties"].getPropertyValue("general.properties", "login.newRegistration.useCaptcha")>
|
||||
|
||||
<script type="text/javascript" language="JavaScript"> <!--
|
||||
dojo.require("dojo.widget.*");
|
||||
dojo.require("dojo.event.*");
|
||||
dojo.require("dojo.io.*");
|
||||
|
||||
function reloadCaptcha(){
|
||||
var submitToUri = "<@ofbizUrl>reloadCaptchaImage</@ofbizUrl>";
|
||||
dojo.io.bind({url: submitToUri,
|
||||
load: function(type, data, evt){
|
||||
if(type == "load"){
|
||||
document.getElementById("captchaImage").innerHTML = data;
|
||||
reloadCaptchaCode();
|
||||
}
|
||||
},mimetype: "text/html"});
|
||||
}
|
||||
function reloadCaptchaCode(){
|
||||
var submitToUri = "<@ofbizUrl>reloadCaptchaCode</@ofbizUrl>";
|
||||
dojo.io.bind({url: submitToUri,
|
||||
load: function(type, data, evt){
|
||||
if(type == "load"){
|
||||
document.getElementById("captchaCode").innerHTML = data;
|
||||
}
|
||||
},mimetype: "text/html"});
|
||||
}
|
||||
//--></script>
|
||||
|
||||
<form name="RegisterPerson" onsubmit="javascript:submitFormDisableSubmits(this)" class="basic-form" id="RegisterPerson" action="createRegister" method="post">
|
||||
<input type="hidden" value="${webSiteId}" name="webSiteId"/>
|
||||
<input type="hidden" name="reload"/>
|
||||
<div id="captchaCode"><input type="hidden" value="${parameters.ID_KEY}" name="captchaCode"/></div>
|
||||
<table cellspacing="0" class="basic-table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="label">${uiLabelMap.CommonWhyRegister}</td>
|
||||
<td>
|
||||
<textarea id="RegisterPerson_whyWouldYouLikeToRegister" rows="5" cols="60" class="class="no-required"" name="whyWouldYouLikeToRegister">${requestParameters.whyWouldYouLikeToRegister?if_exists}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">Salutation</td>
|
||||
<td class="no-required">
|
||||
<input type="text" id="RegisterPerson_salutation" maxlength="60" size="40" name="salutation" value="${requestParameters.salutation?if_exists}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">${uiLabelMap.CommonFirstName}</td>
|
||||
<td>
|
||||
<input type="text" id="RegisterPerson_firstName" maxlength="60" size="40" class="required" name="firstName" value="${requestParameters.firstName?if_exists}"/>
|
||||
<span class="tooltip">${uiLabelMap.CommonRequired}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">${uiLabelMap.CommonMiddleName}</td>
|
||||
<td class="no-required">
|
||||
<input type="text" id="RegisterPerson_middleName" maxlength="60" size="40" name="middleName" value="${requestParameters.middleName?if_exists}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">${uiLabelMap.CommonLastName}</td>
|
||||
<td>
|
||||
<input type="text" id="RegisterPerson_lastName" maxlength="60" size="40" class="required" name="lastName" value="${requestParameters.lastName?if_exists}"/>
|
||||
<span class="tooltip">${uiLabelMap.CommonRequired}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">${uiLabelMap.CommonEmail}</td>
|
||||
<td>
|
||||
<input type="text" id="RegisterPerson_USER_EMAIL" maxlength="250" size="60" class="required" name="USER_EMAIL" value="${requestParameters.USER_EMAIL?if_exists}"/>
|
||||
<span class="tooltip">${uiLabelMap.CommonRequired}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">${uiLabelMap.CommonUsername}</td>
|
||||
<td>
|
||||
<input type="text" id="RegisterPerson_USERNAME" maxlength="250" size="30" class="required" name="USERNAME" value="${requestParameters.USERNAME?if_exists}"/>
|
||||
<span class="tooltip">${uiLabelMap.CommonRequired}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">${uiLabelMap.CommonPassword}</td>
|
||||
<td>
|
||||
<input type="password" id="RegisterPerson_PASSWORD" maxlength="250" size="15" name="PASSWORD" class="required" value="${requestParameters.PASSWORD?if_exists}"/>
|
||||
<span class="tooltip">${uiLabelMap.CommonRequired}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">${uiLabelMap.CommonPasswordVerify}</td>
|
||||
<td>
|
||||
<input type="password" id="RegisterPerson_CONFIRM_PASSWORD" maxlength="250" size="15" name="CONFIRM_PASSWORD" class="required" value="${requestParameters.CONFIRM_PASSWORD?if_exists}"/>
|
||||
<span class="tooltip">${uiLabelMap.CommonRequired}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<#if ("Y" == useCaptcha)>
|
||||
<tr class="captcha">
|
||||
<td class="label">${uiLabelMap.CommonVerifyCaptcha}</td>
|
||||
<td>
|
||||
<span id="captchaImage"><img src="${parameters.captchaFileName}" alt="" /></span>
|
||||
<input type="text" id="RegisterPerson_captcha" maxlength="30" size="23" class="required" name="captcha"/>
|
||||
<div><a href="javascript:reloadCaptcha();" class="buttontext refresh">${uiLabelMap.CommonReloadImage}</a></div>
|
||||
</td>
|
||||
</tr>
|
||||
</#if>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input type="submit" value="Save" name="submitButton"/>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
@@ -1,91 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
|
||||
|
||||
<!--New Register Person-->
|
||||
<screen name="newRegisterLogin">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="layoutSettings.javaScripts[]" value="/images/dojo/dojo.js" global="true"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<condition>
|
||||
<not><if-empty field="parameters.partyId"/></not>
|
||||
</condition>
|
||||
<actions>
|
||||
<set field="partyId" from-field="parameters.partyId"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<label style="h1" text="${uiLabelMap.CommonRegisterComplete}"/>
|
||||
<link target="main" style="buttontext" text="${uiLabelMap.CommonBeLogged}"/>
|
||||
<horizontal-separator/>
|
||||
<screenlet title="${uiLabelMap.PartyPersonalInformation}">
|
||||
<include-form name="ViewPartyPerson" location="component://party/widget/partymgr/PartyForms.xml"/>
|
||||
</screenlet>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<screenlet title="${uiLabelMap.CommonNewRegistration}">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="fileName" from-field="parameters.fileName"/>
|
||||
<set field="idKey" from-field="parameters.ID_KEY"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<platform-specific>
|
||||
<html><html-template location="component://common/webcommon/registerPerson.ftl"/></html>
|
||||
</platform-specific>
|
||||
</widgets>
|
||||
</section>
|
||||
</screenlet>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="reloadCaptchaImage">
|
||||
<section>
|
||||
<actions>
|
||||
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<platform-specific><html><html-template location="component://common/webcommon/reloadCaptchaImage.ftl"/></html></platform-specific>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="reloadCaptchaCode">
|
||||
<section>
|
||||
<actions>
|
||||
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<platform-specific><html><html-template location="component://common/webcommon/reloadCaptchaCode.ftl"/></html></platform-specific>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
</screens>
|
||||
+142
-168
@@ -1,168 +1,142 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
|
||||
|
||||
<simple-method method-name="createRegister" short-description="Create person when new register" login-required="false">
|
||||
<property-to-field resource="general" property="login.newRegistration.useCaptcha" field="useCaptcha"/>
|
||||
<call-bsh><![CDATA[
|
||||
org.ofbiz.common.Captcha.getCodeCaptcha(request,response);
|
||||
]]></call-bsh>
|
||||
|
||||
<if-empty field="parameters.firstName">
|
||||
<property-to-field field="errorMessage" resource="MyPortalUiLabels" property="MyPortalFirstNameMissing"/>
|
||||
<field-to-list field="errorMessage" list="error_list"/>
|
||||
</if-empty>
|
||||
<if-empty field="parameters.lastName">
|
||||
<property-to-field field="errorMessage" resource="MyPortalUiLabels" property="MyPortalLastNameMissing"/>
|
||||
<field-to-list field="errorMessage" list="error_list"/>
|
||||
</if-empty>
|
||||
<if-empty field="parameters.USERNAME">
|
||||
<property-to-field field="errorMessage" resource="PartyUiLabels" property="PartyUserNameMissing"/>
|
||||
<field-to-list field="errorMessage" list="error_list"/>
|
||||
</if-empty>
|
||||
<if-empty field="parameters.PASSWORD">
|
||||
<property-to-field field="errorMessage" resource="PartyUiLabels" property="PartyPasswordMissing"/>
|
||||
<field-to-list field="errorMessage" list="error_list"/>
|
||||
</if-empty>
|
||||
<if-empty field="parameters.USER_EMAIL">
|
||||
<property-to-field field="errorMessage" resource="PartyUiLabels" property="PartyEmailAddressMissing"/>
|
||||
<field-to-list field="errorMessage" list="error_list"/>
|
||||
</if-empty>
|
||||
<check-errors error-list-name="error_list" error-code="resultPage"/>
|
||||
|
||||
<!-- set parameter of person to personContext Map -->
|
||||
<set field="personContext.salutation" from-field="parameters.salutation"/>
|
||||
<set field="personContext.firstName" from-field="parameters.firstName"/>
|
||||
<set field="personContext.middleName" from-field="parameters.middleName"/>
|
||||
<set field="personContext.lastName" from-field="parameters.lastName"/>
|
||||
<set field="personContext.comments" from-field="parameters.comments"/>
|
||||
|
||||
<!-- set parameter of userLogin to userLoginContext Map -->
|
||||
<set field="userLoginContext.userLoginId" from-field="parameters.USERNAME"/>
|
||||
|
||||
<now-timestamp field="nowStamp"/>
|
||||
<call-object-method obj-field="parameters.PASSWORD" method-name="toLowerCase" ret-field="parameters.PASSWORD"/>
|
||||
<call-object-method obj-field="parameters.CONFIRM_PASSWORD" method-name="toLowerCase" ret-field="parameters.CONFIRM_PASSWORD"/>
|
||||
|
||||
<if-compare field="parameters.PASSWORD" value="${parameters.CONFIRM_PASSWORD}" operator="equals">
|
||||
|
||||
<set field="captchaPassed" value="Y"/>
|
||||
<if-compare field="useCaptcha" value="Y" operator="equals">
|
||||
<call-object-method obj-field="parameters.captcha" method-name="toLowerCase" ret-field="parameters.captcha"/>
|
||||
<call-object-method obj-field="parameters.captchaCode" method-name="toLowerCase" ret-field="parameters.captchaCode"/>
|
||||
<if-compare field="parameters.captcha" value="${parameters.captchaCode}" operator="not-equals">
|
||||
<set field="captchaPassed" value="N"/>
|
||||
</if-compare>
|
||||
</if-compare>
|
||||
|
||||
<if-compare field="captchaPassed" value="Y" operator="equals">
|
||||
<!-- Create user login and Person -->
|
||||
<find-by-primary-key entity-name="UserLogin" map="userLoginContext" value-field="existingUserLogin"/>
|
||||
<if-empty field="existingUserLogin">
|
||||
<set field="userLoginContext.currentPassword" from-field="parameters.PASSWORD"/>
|
||||
<set field="userLoginContext.currentPasswordVerify" from-field="parameters.CONFIRM_PASSWORD"/>
|
||||
<set-service-fields map="personContext" service-name="createPersonAndUserLogin" to-map="personUserLoginContext"/>
|
||||
<set-service-fields map="userLoginContext" service-name="createPersonAndUserLogin" to-map="personUserLoginContext"/>
|
||||
<call-service service-name="createPersonAndUserLogin" in-map-name="personUserLoginContext">
|
||||
<result-to-field result-name="partyId" field="partyId"/>
|
||||
<result-to-field field="createdUserLogin" result-name="newUserLogin"/>
|
||||
</call-service>
|
||||
<set-current-user-login value-field="createdUserLogin"/>
|
||||
<else>
|
||||
<property-to-field field="errorMessage" resource="PartyUiLabels" property="PartyUserNameInUse"/>
|
||||
<field-to-list field="errorMessage" list="error_list"/>
|
||||
<check-errors error-list-name="error_list" error-code="resultPage"/>
|
||||
</else>
|
||||
</if-empty>
|
||||
|
||||
<!-- create the PartyDataSource entry to track where this info came from... -->
|
||||
<make-value entity-name="PartyDataSource" value-field="partyDataSource"/>
|
||||
<set value="MY_PORTAL" field="partyDataSource.dataSourceId"/>
|
||||
<set from-field="nowStamp" field="partyDataSource.fromDate"/>
|
||||
<set value="Y" field="partyDataSource.isCreate"/>
|
||||
<set from-field="partyId" field="partyDataSource.partyId"/>
|
||||
<session-to-field field="visit"/>
|
||||
<set from-field="visit.visitId" field="partyDataSource.visitId"/>
|
||||
<create-value value-field="partyDataSource"/>
|
||||
|
||||
<!-- Create E-mail address -->
|
||||
<set field="emailContext.emailAddress" from-field="parameters.USER_EMAIL"/>
|
||||
<call-service service-name="createPartyEmailAddress" in-map-name="emailContext">
|
||||
<result-to-field result-name="contactMechId" field="emailPurposeContext.contactMechId"/>
|
||||
</call-service>
|
||||
<set from-field="partyId" field="emailPurposeContext.partyId"/>
|
||||
<set value="PRIMARY_EMAIL" field="emailPurposeContext.contactMechPurposeTypeId"/>
|
||||
<call-service service-name="createPartyContactMechPurpose" in-map-name="emailPurposeContext"/>
|
||||
|
||||
<!-- Send e-mail to new create user -->
|
||||
<entity-one entity-name="WebSite" value-field="webSite"/>
|
||||
<set field="storeEmailLookup.emailTemplateSettingId" value="PARTY_REGISTER"/>
|
||||
<find-by-primary-key map="storeEmailLookup" entity-name="EmailTemplateSetting" value-field="storeEmail"/>
|
||||
<if-not-empty field="storeEmail">
|
||||
<get-related-one value-field="createdUserLogin" relation-name="Person" to-value-field="person"/>
|
||||
<set field="bodyParameters.person" from-field="person"/>
|
||||
<set field="emailParams.bodyParameters" from-field="bodyParameters"/>
|
||||
<set field="emailParams.sendTo" from-field="emailContext.emailAddress"/>
|
||||
<set field="emailParams.subject" from-field="storeEmail.subject"/>
|
||||
<set field="emailParams.sendFrom" from-field="storeEmail.fromAddress"/>
|
||||
<set field="emailParams.sendCc" from-field="storeEmail.ccAddress"/>
|
||||
<set field="emailParams.sendBcc" from-field="storeEmail.bccAddress"/>
|
||||
<set field="emailParams.contentType" from-field="storeEmail.contentType"/>
|
||||
<set field="emailParams.bodyScreenUri" from-field="storeEmail.bodyScreenLocation"/>
|
||||
<set field="emailParams.webSiteId" from-field="webSite.webSiteId"/>
|
||||
<set field="emailParams.emailType" from-field="storeEmail.emailType"/>
|
||||
<call-service service-name="sendMailFromScreen" in-map-name="emailParams"/>
|
||||
<else>
|
||||
<log level="error" message="Email template ${storeEmailLookup.emailTemplateSettingId} not found in entity EmailTemplateSetting, no confirmation email sent"></log>
|
||||
</else>
|
||||
</if-not-empty>
|
||||
|
||||
<!-- Create Customer Request to show new registration-->
|
||||
<set field="custRequest.custRequestTypeId" value="RF_SUPPORT"/>
|
||||
<set field="custRequest.fromPartyId" from-field="partyId"/>
|
||||
<set field="custRequest.custRequestName" value="New user account created by registration"/>
|
||||
<set field="custRequest.productStoreId" from-field="webSite.productStoreId"/>
|
||||
<set field="custRequest.statusId" value="CRQ_SUBMITTED"/>
|
||||
<call-service service-name="createCustRequest" in-map-name="custRequest">
|
||||
<result-to-field result-name="custRequestId"/>
|
||||
</call-service>
|
||||
<set field="custRequestItem.custRequestId" from-field="custRequestId"/>
|
||||
<set field="custRequestItem.story" from-field="parameters.whyWouldYouLikeToRegister"/>
|
||||
<call-service service-name="createCustRequestItem" in-map-name="custRequestItem"/>
|
||||
<!-- set field to request -->
|
||||
<field-to-request field="partyId" request-name="partyId"/>
|
||||
<field-to-request field="emailPurposeContext.contactMechId" request-name="contactMechId"/>
|
||||
<return response-code="resultPage"/>
|
||||
<else>
|
||||
<property-to-field field="errorMessage" resource="PartyUiLabels" property="PartyPasswordMatchError"/>
|
||||
<field-to-list field="errorMessage" list="error_list"/>
|
||||
</else>
|
||||
</if-compare>
|
||||
<else>
|
||||
<property-to-field field="errorMessage" resource="CommonUiLabels" property="CommonCaptchaMissingError"/>
|
||||
<field-to-list field="errorMessage" list="error_list"/>
|
||||
</else>
|
||||
</if-compare>
|
||||
<check-errors error-list-name="error_list" error-code="resultPage"/>
|
||||
<call-class-method class-name="org.ofbiz.common.Captcha" method-name="deleteFile"/>
|
||||
</simple-method>
|
||||
</simple-methods>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
|
||||
|
||||
<simple-method method-name="createRegister"
|
||||
short-description="Create person when new register" login-required="false">
|
||||
<call-bsh><![CDATA[
|
||||
org.ofbiz.common.Captcha.getCodeCaptcha(request,response);
|
||||
]]></call-bsh>
|
||||
<if-empty field="parameters.firstName"><property-to-field field="errorMessage" resource="MyPortalUiLabels" property="MyPortalFirstNameMissing"/><field-to-list field="errorMessage" list="error_list"/></if-empty>
|
||||
<if-empty field="parameters.lastName"><property-to-field field="errorMessage" resource="MyPortalUiLabels" property="MyPortalLastNameMissing"/><field-to-list field="errorMessage" list="error_list"/></if-empty>
|
||||
<if-empty field="parameters.USERNAME"><property-to-field field="errorMessage" resource="PartyUiLabels" property="PartyUserNameMissing"/><field-to-list field="errorMessage" list="error_list"/></if-empty>
|
||||
<if-empty field="parameters.PASSWORD"><property-to-field field="errorMessage" resource="PartyUiLabels" property="PartyPasswordMissing"/><field-to-list field="errorMessage" list="error_list"/></if-empty>
|
||||
<if-empty field="parameters.USER_EMAIL"><property-to-field field="errorMessage" resource="PartyUiLabels" property="PartyEmailAddressMissing"/><field-to-list field="errorMessage" list="error_list"/></if-empty>
|
||||
<check-errors error-list-name="error_list" error-code="resultPage"/>
|
||||
|
||||
<!-- set parameter of person to personContext Map -->
|
||||
<set field="personContext.salutation" from-field="parameters.salutation"/>
|
||||
<set field="personContext.firstName" from-field="parameters.firstName"/>
|
||||
<set field="personContext.middleName" from-field="parameters.middleName"/>
|
||||
<set field="personContext.lastName" from-field="parameters.lastName"/>
|
||||
<set field="personContext.comments" from-field="parameters.comments"/>
|
||||
|
||||
<!-- set parameter of userLogin to userLoginContext Map -->
|
||||
<set field="userLoginContext.userLoginId" from-field="parameters.USERNAME"/>
|
||||
|
||||
<now-timestamp field="nowStamp"/>
|
||||
<call-object-method obj-field="parameters.PASSWORD" method-name="toLowerCase" ret-field="parameters.PASSWORD"/>
|
||||
<call-object-method obj-field="parameters.CONFIRM_PASSWORD" method-name="toLowerCase" ret-field="parameters.CONFIRM_PASSWORD"/>
|
||||
<call-object-method obj-field="parameters.captcha" method-name="toLowerCase" ret-field="parameters.captcha"/>
|
||||
<call-object-method obj-field="parameters.captchaCode" method-name="toLowerCase" ret-field="parameters.captchaCode"/>
|
||||
<if-compare field="parameters.PASSWORD" value="${parameters.CONFIRM_PASSWORD}" operator="equals">
|
||||
<if-compare field="parameters.captcha" value="${parameters.captchaCode}" operator="equals">
|
||||
|
||||
<!-- Create user login and Person -->
|
||||
<find-by-primary-key entity-name="UserLogin" map="userLoginContext" value-field="existingUserLogin"/>
|
||||
<if-empty field="existingUserLogin">
|
||||
<set field="userLoginContext.currentPassword" from-field="parameters.PASSWORD"/>
|
||||
<set field="userLoginContext.currentPasswordVerify" from-field="parameters.CONFIRM_PASSWORD"/>
|
||||
<set-service-fields map="personContext" service-name="createPersonAndUserLogin" to-map="personUserLoginContext"/>
|
||||
<set-service-fields map="userLoginContext" service-name="createPersonAndUserLogin" to-map="personUserLoginContext"/>
|
||||
<call-service service-name="createPersonAndUserLogin" in-map-name="personUserLoginContext">
|
||||
<result-to-field result-name="partyId" field="partyId"/>
|
||||
<result-to-field field="createdUserLogin" result-name="newUserLogin"/>
|
||||
</call-service>
|
||||
<set-current-user-login value-field="createdUserLogin"/>
|
||||
<else>
|
||||
<set field="errorMessage" value="${uiLabelMap.PartyUserNameInUse}"/>
|
||||
<field-to-list field="errorMessage" list="error_list"/>
|
||||
<check-errors error-list-name="error_list" error-code="resultPage"/>
|
||||
</else>
|
||||
</if-empty>
|
||||
|
||||
<!-- create the PartyDataSource entry to track where this info came from... -->
|
||||
<make-value entity-name="PartyDataSource" value-field="partyDataSource"/>
|
||||
<set value="MY_PORTAL" field="partyDataSource.dataSourceId"/>
|
||||
<set from-field="nowStamp" field="partyDataSource.fromDate"/>
|
||||
<set value="Y" field="partyDataSource.isCreate"/>
|
||||
<set from-field="partyId" field="partyDataSource.partyId"/>
|
||||
<session-to-field field="visit"/>
|
||||
<set from-field="visit.visitId" field="partyDataSource.visitId"/>
|
||||
<create-value value-field="partyDataSource"/>
|
||||
|
||||
<!-- Create E-mail address -->
|
||||
<set field="emailContext.emailAddress" from-field="parameters.USER_EMAIL"/>
|
||||
<call-service service-name="createPartyEmailAddress" in-map-name="emailContext">
|
||||
<result-to-field result-name="contactMechId" field="emailPurposeContext.contactMechId"/>
|
||||
</call-service>
|
||||
<set from-field="partyId" field="emailPurposeContext.partyId"/>
|
||||
<set value="PRIMARY_EMAIL" field="emailPurposeContext.contactMechPurposeTypeId"/>
|
||||
<call-service service-name="createPartyContactMechPurpose" in-map-name="emailPurposeContext"/>
|
||||
|
||||
<!-- Send e-mail to new create user -->
|
||||
<entity-one entity-name="WebSite" value-field="webSite"/>
|
||||
<set field="storeEmailLookup.emailTemplateSettingId" value="PARTY_REGISTER"/>
|
||||
<find-by-primary-key map="storeEmailLookup" entity-name="EmailTemplateSetting" value-field="storeEmail"/>
|
||||
<if-not-empty field="storeEmail">
|
||||
<get-related-one value-field="createdUserLogin" relation-name="Person" to-value-field="person"/>
|
||||
<set field="bodyParameters.person" from-field="person"/>
|
||||
<set field="emailParams.bodyParameters" from-field="bodyParameters"/>
|
||||
<set field="emailParams.sendTo" from-field="emailContext.emailAddress"/>
|
||||
<set field="emailParams.subject" from-field="storeEmail.subject"/>
|
||||
<set field="emailParams.sendFrom" from-field="storeEmail.fromAddress"/>
|
||||
<set field="emailParams.sendCc" from-field="storeEmail.ccAddress"/>
|
||||
<set field="emailParams.sendBcc" from-field="storeEmail.bccAddress"/>
|
||||
<set field="emailParams.contentType" from-field="storeEmail.contentType"/>
|
||||
<set field="emailParams.bodyScreenUri" from-field="storeEmail.bodyScreenLocation"/>
|
||||
<set field="emailParams.webSiteId" from-field="webSite.webSiteId"/>
|
||||
<set field="emailParams.emailType" from-field="storeEmail.emailType"/>
|
||||
<call-service service-name="sendMailFromScreen" in-map-name="emailParams"/>
|
||||
<else>
|
||||
<log level="error" message="Email template ${storeEmailLookup.emailTemplateSettingId} not found in entity EmailTemplateSetting, no confirmation email sent"></log>
|
||||
</else>
|
||||
</if-not-empty>
|
||||
|
||||
<!-- Create Customer Request to show new registration-->
|
||||
<set field="custRequest.custRequestTypeId" value="RF_SUPPORT"/>
|
||||
<set field="custRequest.fromPartyId" from-field="partyId"/>
|
||||
<set field="custRequest.custRequestName" value="New user account created by registration"/>
|
||||
<set field="custRequest.productStoreId" from-field="webSite.productStoreId"/>
|
||||
<set field="custRequest.statusId" value="CRQ_SUBMITTED"/>
|
||||
<call-service service-name="createCustRequest" in-map-name="custRequest">
|
||||
<result-to-field result-name="custRequestId"/>
|
||||
</call-service>
|
||||
<set field="custRequestItem.custRequestId" from-field="custRequestId"/>
|
||||
<set field="custRequestItem.story" from-field="parameters.whyWouldYouLikeToRegister"/>
|
||||
<call-service service-name="createCustRequestItem" in-map-name="custRequestItem"/>
|
||||
<!-- set field to request -->
|
||||
<field-to-request field="partyId" request-name="partyId"/>
|
||||
<field-to-request field="emailPurposeContext.contactMechId" request-name="contactMechId"/>
|
||||
<return response-code="resultPage"/>
|
||||
<else>
|
||||
<property-to-field field="errorMessage" resource="MyPortalUiLabels" property="MyPortalCaptchaMissingError"/><field-to-list field="errorMessage" list="error_list"/>
|
||||
</else>
|
||||
</if-compare>
|
||||
<else>
|
||||
<property-to-field field="errorMessage" resource="PartyUiLabels" property="PartyPasswordMatchError"/><field-to-list field="errorMessage" list="error_list"/>
|
||||
</else>
|
||||
</if-compare>
|
||||
<check-errors error-list-name="error_list" error-code="resultPage"/>
|
||||
<call-class-method class-name="org.ofbiz.common.Captcha" method-name="deleteFile"/>
|
||||
</simple-method>
|
||||
</simple-methods>
|
||||
@@ -36,6 +36,25 @@
|
||||
<security https="true" auth="true"/>
|
||||
<response name="success" type="request" value="showPortalPage"/>
|
||||
</request-map>
|
||||
<request-map uri="newRegisterLogin">
|
||||
<security https="true" auth="false"/>
|
||||
<event type="java" invoke="getCodeCaptcha" path="org.ofbiz.common.Captcha"/>
|
||||
<response name="success" type="view" value="newRegisterLogin"/>
|
||||
</request-map>
|
||||
<request-map uri="createRegister">
|
||||
<security https="true" auth="false"/>
|
||||
<event type="simple" invoke="createRegister" path="component://myportal/script/org/ofbiz/myportal/Events.xml"/>
|
||||
<response name="error" type="view" value="newRegisterLogin"/>
|
||||
<response name="resultPage" type="view" value="newRegisterLogin"/>
|
||||
</request-map>
|
||||
<request-map uri="reloadCaptchaImage">
|
||||
<security https="true" auth="false"/>
|
||||
<response name="success" type="view" value="reloadCaptchaImage"/>
|
||||
</request-map>
|
||||
<request-map uri="reloadCaptchaCode">
|
||||
<security https="true" auth="false"/>
|
||||
<response name="success" type="view" value="reloadCaptchaCode"/>
|
||||
</request-map>
|
||||
|
||||
<request-map uri="LookupUserLoginAndPartyDetails">
|
||||
<security https="true" auth="true"/>
|
||||
@@ -43,6 +62,10 @@
|
||||
</request-map>
|
||||
|
||||
<view-map name="main" type="screen" page="component://common/widget/PortalPageScreens.xml#showPortalPage"/>
|
||||
<view-map name="login" type="screen" page="component://myportal/widget/CommonScreens.xml#login"/>
|
||||
<view-map name="newRegisterLogin" type="screen" page="component://myportal/widget/CommonScreens.xml#newRegisterLogin"/>
|
||||
<view-map name="reloadCaptchaImage" type="screen" page="component://myportal/widget/CommonScreens.xml#reloadCaptchaImage"/>
|
||||
<view-map name="reloadCaptchaCode" type="screen" page="component://myportal/widget/CommonScreens.xml#reloadCaptchaCode"/>
|
||||
|
||||
<view-map name="LookupUserLoginAndPartyDetails" type="screen" page="component://party/widget/partymgr/LookupScreens.xml#LookupUserLoginAndPartyDetails"/>
|
||||
|
||||
|
||||
@@ -120,6 +120,65 @@ under the License.
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="login">
|
||||
<section>
|
||||
<widgets>
|
||||
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<platform-specific>
|
||||
<html><html-template location="component://myportal/widget/login.ftl"/></html>
|
||||
</platform-specific>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<!--New Register Person-->
|
||||
<screen name="newRegisterLogin">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="layoutSettings.javaScripts[]" value="/images/dojo/dojo.js" global="true"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<condition>
|
||||
<not><if-empty field="parameters.partyId"/></not>
|
||||
</condition>
|
||||
<actions>
|
||||
<set field="partyId" from-field="parameters.partyId"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<label style="h2" text="${uiLabelMap.MyPortalRegisterComplete}"/><link target="main" style="h2" text="${uiLabelMap.CommonBeLogged}"/>
|
||||
<screenlet title="${uiLabelMap.PartyPersonalInformation}">
|
||||
<include-form name="ViewPartyPerson" location="component://party/widget/partymgr/PartyForms.xml"/>
|
||||
</screenlet>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<screenlet title="${uiLabelMap.MyPortalNewRegistration}">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="fileName" from-field="parameters.fileName"/>
|
||||
<set field="idKey" from-field="parameters.ID_KEY"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<!--<include-form name="RegisterPerson" location="component://myportal/widget/MyPortalForms.xml"/> -->
|
||||
<platform-specific>
|
||||
<html><html-template location="component://myportal/widget/RegisterPerson.ftl"/></html>
|
||||
</platform-specific>
|
||||
</widgets>
|
||||
</section>
|
||||
</screenlet>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="CommonRequestDecorator">
|
||||
<section>
|
||||
<widgets>
|
||||
@@ -143,6 +202,27 @@ under the License.
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="reloadCaptchaImage">
|
||||
<section>
|
||||
<actions>
|
||||
<property-map resource="MyPortalUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<platform-specific><html><html-template location="component://myportal/widget/reloadCaptchaImage.ftl"/></html></platform-specific>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="reloadCaptchaCode">
|
||||
<section>
|
||||
<actions>
|
||||
<property-map resource="MyPortalUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<platform-specific><html><html-template location="component://myportal/widget/reloadCaptchaCode.ftl"/></html></platform-specific>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="CommonOpportunityDecorator">
|
||||
<section>
|
||||
<actions>
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
|
||||
|
||||
<!--New Register Person-->
|
||||
<form name="RegisterPerson" type="single" target="createRegister" default-map-name="personInfo"
|
||||
focus-field-name="whyWouldYouLikeToRegister" header-row-style="header-row" default-table-style="basic-table">
|
||||
<field name="webSiteId"><hidden value="${webSiteId}"/></field>
|
||||
<field name="whyWouldYouLikeToRegister" tooltip="${uiLabelMap.CommonRequired}" widget-style="required"><textarea cols="60" rows="10"/></field>
|
||||
<field name="salutation"><text size="40" maxlength="60"/></field>
|
||||
<field name="firstName" title="${uiLabelMap.PartyFirstName}" tooltip="${uiLabelMap.CommonRequired}" widget-style="required"><text size="40" maxlength="60"/></field>
|
||||
<field name="middleName" title="${uiLabelMap.PartyMiddleName}" ><text size="40" maxlength="60"/></field>
|
||||
<field name="lastName" title="${uiLabelMap.PartyLastName}" tooltip="${uiLabelMap.CommonRequired}" widget-style="required"><text size="40" maxlength="60"/></field>
|
||||
<field name="USER_EMAIL" title="${uiLabelMap.CommonEmail}" tooltip="${uiLabelMap.CommonRequired}" widget-style="required"><text size="60" maxlength="250"/></field>
|
||||
<field name="UserLogin" title="${uiLabelMap.MyPortalUserLogin}" title-area-style="group-label"><display description=" " also-hidden="false"/></field>
|
||||
<field name="USERNAME" title="${uiLabelMap.CommonUsername}" tooltip="${uiLabelMap.CommonRequired}" widget-style="required"><text size="30" maxlength="250"/></field>
|
||||
<field name="PASSWORD" title="${uiLabelMap.CommonPassword}" tooltip="${uiLabelMap.CommonRequired}" widget-style="required"><password size="15" maxlength="250"/></field>
|
||||
<field name="CONFIRM_PASSWORD" title="${uiLabelMap.CommonPassword}" tooltip="* ${uiLabelMap.CommonConfirm}" widget-style="required"><password size="15" maxlength="250"/></field>
|
||||
<field name="VerifyCaptchaTitle" title="${uiLabelMap.MyPortalVerifyCaptcha}" title-area-style="group-label"><display description=" " also-hidden="false"/></field>
|
||||
<field name="picOfcaptcha" title="${uiLabelMap.MyPortalPicCaptcha}"><image value="${parameters.captchaFileName}" height="40" width="149"/></field>
|
||||
<field name="reload" title="${uiLabelMap.CommonEmptyHeader}"><hyperlink target="newRegisterLogin" description="${uiLabelMap.MyPortalReloadImage}"/></field>
|
||||
<field name="captcha" title="${uiLabelMap.MyPortalVerifyCaptcha}" tooltip="${uiLabelMap.CommonRequired}" widget-style="required"><text size="23" maxlength="30"/></field>
|
||||
<field name="submitButton" title="${uiLabelMap.CommonSave}" title-area-style="group-label"><submit button-type="button"/></field>
|
||||
<field name="captchaCode"><hidden value="${parameters.ID_KEY}"/></field>
|
||||
</form>
|
||||
|
||||
</forms>
|
||||
@@ -0,0 +1,160 @@
|
||||
<#--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
|
||||
<!-- Begin Form Widget - Form Element component://myportal/widget/MyPortalForms.xml#RegisterPerson -->
|
||||
<form name="RegisterPerson" onsubmit="javascript:submitFormDisableSubmits(this)" class="basic-form" id="RegisterPerson" action="/myportal/control/createRegister" method="post">
|
||||
<input type="hidden" value="${webSiteId}" name="webSiteId"/>
|
||||
<input type="hidden" name="reload"/>
|
||||
<div id="captchaCode"><input type="hidden" value="${parameters.ID_KEY}" name="captchaCode"/></div>
|
||||
<div id="_G0_" class="fieldgroup"><div class="fieldgroup-title-bar"><table><tbody><tr><td class="collapse"> </td><td> </td></tr></tbody></table></div><div class="fieldgroup-body" id="_G0__body">
|
||||
<table cellspacing="0" class="basic-table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="label"> Why Would You Like To Register
|
||||
</td>
|
||||
<td><textarea id="RegisterPerson_whyWouldYouLikeToRegister" rows="5" cols="60" class="required false" name="whyWouldYouLikeToRegister"></textarea>
|
||||
<span class="tooltip">Required</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label"> Salutation </td>
|
||||
<td class="no-required">
|
||||
<input type="text" autocomplete="off" id="RegisterPerson_salutation" maxlength="60" size="40" name="salutation" value="${requestParameters.salutation?if_exists}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label"> First name </td>
|
||||
<td>
|
||||
<input type="text" autocomplete="off" id="RegisterPerson_firstName" maxlength="60" size="40" class="required false" name="firstName" value="${requestParameters.firstName?if_exists}"/>
|
||||
<span class="tooltip">Required</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label"> Middle Name </td>
|
||||
<td class="no-required">
|
||||
<input type="text" autocomplete="off" id="RegisterPerson_middleName" maxlength="60" size="40" name="middleName" value="${requestParameters.middleName?if_exists}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label"> Last name </td>
|
||||
<td>
|
||||
<input type="text" autocomplete="off" id="RegisterPerson_lastName" maxlength="60" size="40" class="required false" name="lastName" value="${requestParameters.lastName?if_exists}"/>
|
||||
<span class="tooltip">Required</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label"> Email </td>
|
||||
<td>
|
||||
<input type="text" autocomplete="off" id="RegisterPerson_USER_EMAIL" maxlength="250" size="60" class="required false" name="USER_EMAIL" value="${requestParameters.USER_EMAIL?if_exists}"/>
|
||||
<span class="tooltip">Required</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="group-label"> User Login </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label"> Username </td>
|
||||
<td>
|
||||
<input type="text" autocomplete="off" id="RegisterPerson_USERNAME" maxlength="250" size="30" class="required false" name="USERNAME" value="${requestParameters.USERNAME?if_exists}"/>
|
||||
<span class="tooltip">Required</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label"> Password </td>
|
||||
<td>
|
||||
<input type="password" id="RegisterPerson_PASSWORD" maxlength="250" size="15" name="PASSWORD" class="required false" value="${requestParameters.PASSWORD?if_exists}"/>
|
||||
<span class="tooltip">Required</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label"> Password </td>
|
||||
<td>
|
||||
<input type="password" id="RegisterPerson_CONFIRM_PASSWORD" maxlength="250" size="15" name="CONFIRM_PASSWORD" class="required false" value="${requestParameters.CONFIRM_PASSWORD?if_exists}"/>
|
||||
<span class="tooltip">* Confirm</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="group-label"> Verify captcha code </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label"> Code Captcha </td>
|
||||
<td >
|
||||
<div id="captchaImage"><img src="${parameters.captchaFileName}" alt="" /></div>
|
||||
</td>
|
||||
</tr>
|
||||
<script type="text/javascript" language="JavaScript">
|
||||
<!--
|
||||
dojo.require("dojo.widget.*");
|
||||
dojo.require("dojo.event.*");
|
||||
dojo.require("dojo.io.*");
|
||||
|
||||
function reloadCaptcha(){
|
||||
var submitToUri = "<@ofbizUrl>reloadCaptchaImage</@ofbizUrl>";
|
||||
dojo.io.bind({url: submitToUri,
|
||||
load: function(type, data, evt){
|
||||
if(type == "load"){
|
||||
document.getElementById("captchaImage").innerHTML = data;
|
||||
reloadCaptchaCode();
|
||||
}
|
||||
},mimetype: "text/html"});
|
||||
}
|
||||
function submitNewCustForm(){
|
||||
var nform = document.newuserform;
|
||||
nform.captcha.value = document.captchaform.captcha.value;
|
||||
nform.submit();
|
||||
}
|
||||
function reloadCaptchaCode(){
|
||||
var submitToUri = "<@ofbizUrl>reloadCaptchaCode</@ofbizUrl>";
|
||||
dojo.io.bind({url: submitToUri,
|
||||
load: function(type, data, evt){
|
||||
if(type == "load"){
|
||||
document.getElementById("captchaCode").innerHTML = data;
|
||||
}
|
||||
},mimetype: "text/html"});
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
<tr>
|
||||
<td class="label"> </td>
|
||||
<td>
|
||||
<a href="javascript:reloadCaptcha();">reload image</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label"> Verify captcha code </td>
|
||||
<td>
|
||||
<input type="text" autocomplete="off" id="RegisterPerson_captcha" maxlength="30" size="23" class="required false" name="captcha"/>
|
||||
<span class="tooltip">Required</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="group-label"> </td>
|
||||
<td>
|
||||
<input type="submit" value="Save" name="submitButton"/>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- End Form Widget - Form Element component://myportal/widget/MyPortalForms.xml#RegisterPerson --><!-- End Section Widget -->
|
||||
</form>
|
||||
|
||||
@@ -0,0 +1,77 @@
|
||||
<#--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<#if requestAttributes.uiLabelMap?exists><#assign uiLabelMap = requestAttributes.uiLabelMap></#if>
|
||||
<#assign useMultitenant = Static["org.ofbiz.base.util.UtilProperties"].getPropertyValue("general.properties", "multitenant")>
|
||||
|
||||
<#assign username = requestParameters.USERNAME?default((sessionAttributes.autoUserLogin.userLoginId)?default(""))>
|
||||
<#if username != "">
|
||||
<#assign focusName = false>
|
||||
<#else>
|
||||
<#assign focusName = true>
|
||||
</#if>
|
||||
<center>
|
||||
<div class="screenlet login-screenlet">
|
||||
<div class="screenlet-title-bar">
|
||||
<h3>${uiLabelMap.CommonRegistered}</h3>
|
||||
</div>
|
||||
<div class="screenlet-body">
|
||||
<form method="post" action="<@ofbizUrl>login</@ofbizUrl>" name="loginform">
|
||||
<table class="basic-table" cellspacing="0">
|
||||
<tr>
|
||||
<td class="label">${uiLabelMap.CommonUsername}</td>
|
||||
<td><input type="text" name="USERNAME" value="${username}" size="20"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">${uiLabelMap.CommonPassword}</td>
|
||||
<td><input type="password" name="PASSWORD" value="" size="20"/></td>
|
||||
</tr>
|
||||
<#if ("Y" == useMultitenant) >
|
||||
<#if !requestAttributes.tenantId?exists>
|
||||
<tr>
|
||||
<td class="label">${uiLabelMap.CommonTenantId}</td>
|
||||
<td><input type="text" name="tenantId" value="${parameters.tenantId?if_exists}" size="20"/></td>
|
||||
</tr>
|
||||
<#else>
|
||||
<input type="hidden" name="tenantId" value="${requestAttributes.tenantId?if_exists}"/>
|
||||
</#if>
|
||||
</#if>
|
||||
<tr>
|
||||
<td colspan="2" align="center">
|
||||
<input type="submit" value="${uiLabelMap.CommonLogin}"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="JavaScriptEnabled" value="N"/>
|
||||
<br />
|
||||
<a href="<@ofbizUrl>forgotPassword</@ofbizUrl>">${uiLabelMap.CommonForgotYourPassword}?</a>
|
||||
<a href="<@ofbizUrl>newRegisterLogin</@ofbizUrl>">${uiLabelMap.MyPortalNewRegistration}</a>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</center>
|
||||
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
document.loginform.JavaScriptEnabled.value = "Y";
|
||||
<#if focusName>
|
||||
document.loginform.USERNAME.focus();
|
||||
<#else>
|
||||
document.loginform.PASSWORD.focus();
|
||||
</#if>
|
||||
</script>
|
||||
+21
-21
@@ -1,22 +1,22 @@
|
||||
<#--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<#assign idkey = Static["org.ofbiz.common.Captcha"].ID_KEY>
|
||||
|
||||
<#--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<#assign idkey = Static["org.ofbiz.common.Captcha"].ID_KEY>
|
||||
|
||||
<input type="hidden" value="${idkey?if_exists}" name="captchaCode"/>
|
||||
+24
-23
@@ -1,23 +1,24 @@
|
||||
<#--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<#assign fileName = Static["org.ofbiz.common.Captcha"].getCodeCaptcha(request,response)>
|
||||
<#assign fileName = Static["org.ofbiz.common.Captcha"].CAPTCHA_FILE_NAME>
|
||||
|
||||
<img src="<@ofbizContentUrl>/tempfiles/captcha/${fileName?if_exists}</@ofbizContentUrl>" alt="" />
|
||||
<#--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<#-- For add Captcha Capture -->
|
||||
<#assign fileName = Static["org.ofbiz.common.Captcha"].getCodeCaptcha(request,response)>
|
||||
<#assign fileName = Static["org.ofbiz.common.Captcha"].CAPTCHA_FILE_NAME>
|
||||
|
||||
<img src="<@ofbizContentUrl>/tempfiles/captcha/${fileName?if_exists}</@ofbizContentUrl>" alt="" />
|
||||
Reference in New Issue
Block a user