Thanks Devanshu Vyas for your contribution. (OFBIZ-9254) git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1812285 13f79535-47bb-0310-9956-ffa450edef68
175 lines
8.1 KiB
Plaintext
175 lines
8.1 KiB
Plaintext
<#--
|
|
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 !creditCard?has_content>
|
|
<#assign creditCard = requestParameters>
|
|
</#if>
|
|
|
|
<#if !paymentMethod?has_content>
|
|
<#assign paymentMethod = requestParameters>
|
|
</#if>
|
|
|
|
<tr>
|
|
<td width="26%" align="right" valign="middle"><b>${uiLabelMap.AccountingCompanyNameCard}</b></td>
|
|
<td width="5"> </td>
|
|
<td width="74%">
|
|
<input type="text" size="30" maxlength="60" name="companyNameOnCard" value="${creditCard.companyNameOnCard!}"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="26%" align="right" valign="middle"><b>${uiLabelMap.AccountingPrefixCard}</b></td>
|
|
<td width="5"> </td>
|
|
<td width="74%">
|
|
<select name="titleOnCard">
|
|
<option value="">${uiLabelMap.CommonSelectOne}</option>
|
|
<option<#if ("${uiLabelMap.CommonTitleMr}" == (creditCard.titleOnCard)?default(""))> selected="selected"</#if>>${uiLabelMap.CommonTitleMr}</option>
|
|
<option<#if ("Mrs." == (creditCard.titleOnCard)?default(""))> selected="selected"</#if>>${uiLabelMap.CommonTitleMrs}</option>
|
|
<option<#if ("Ms." == (creditCard.titleOnCard)?default(""))> selected="selected"</#if>>${uiLabelMap.CommonTitleMs}</option>
|
|
<option<#if ("Dr." == (creditCard.titleOnCard)?default(""))> selected="selected"</#if>>${uiLabelMap.CommonTitleDr}</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="26%" align="right" valign="middle"><b>${uiLabelMap.AccountingFirstNameCard}</b></td>
|
|
<td width="5"> </td>
|
|
<td width="74%">
|
|
<input type="text" size="20" maxlength="60" name="firstNameOnCard" value="${(creditCard.firstNameOnCard)!}"/>
|
|
<#if showToolTip?has_content><span class="tooltip">${uiLabelMap.CommonRequired}</span><#else>*</#if></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="26%" align="right" valign="middle"><b>${uiLabelMap.AccountingMiddleNameCard}</b></td>
|
|
<td width="5"> </td>
|
|
<td width="74%">
|
|
<input type="text" size="15" maxlength="60" name="middleNameOnCard" value="${(creditCard.middleNameOnCard)!}"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="26%" align="right" valign="middle"><b>${uiLabelMap.AccountingLastNameCard}</b></td>
|
|
<td width="5"> </td>
|
|
<td width="74%">
|
|
<input type="text" size="20" maxlength="60" name="lastNameOnCard" value="${(creditCard.lastNameOnCard)!}"/>
|
|
<#if showToolTip?has_content><span class="tooltip">${uiLabelMap.CommonRequired}</span><#else>*</#if></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="26%" align="right" valign="middle"><b>${uiLabelMap.AccountingSuffixCard}</b></td>
|
|
<td width="5"> </td>
|
|
<td width="74%">
|
|
<select name="suffixOnCard">
|
|
<option value="">${uiLabelMap.CommonSelectOne}</option>
|
|
<option<#if ("Jr." == (creditCard.suffixOnCard)?default(""))> selected="selected"</#if>>Jr.</option>
|
|
<option<#if ("Sr." == (creditCard.suffixOnCard)?default(""))> selected="selected"</#if>>Sr.</option>
|
|
<option<#if ("I" == (creditCard.suffixOnCard)?default(""))> selected="selected"</#if>>I</option>
|
|
<option<#if ("II" == (creditCard.suffixOnCard)?default(""))> selected="selected"</#if>>II</option>
|
|
<option<#if ("III" == (creditCard.suffixOnCard)?default(""))> selected="selected"</#if>>III</option>
|
|
<option<#if ("IV" == (creditCard.suffixOnCard)?default(""))> selected="selected"</#if>>IV</option>
|
|
<option<#if ("V" == (creditCard.suffixOnCard)?default(""))> selected="selected"</#if>>V</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td width="26%" align="right" valign="middle"><b>${uiLabelMap.AccountingCardType}</b></td>
|
|
<td width="5"> </td>
|
|
<td width="74%">
|
|
<select name="cardType">
|
|
<#if creditCard.cardType??>
|
|
<option>${creditCard.cardType}</option>
|
|
<option value="${creditCard.cardType}">---</option>
|
|
</#if>
|
|
${screens.render("component://common/widget/CommonScreens.xml#cctypes")}
|
|
</select>
|
|
<#if showToolTip?has_content><span class="tooltip">${uiLabelMap.CommonRequired}</span><#else>*</#if></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="26%" align="right" valign="middle"><b>${uiLabelMap.AccountingCardNumber}</b></td>
|
|
<td width="5"> </td>
|
|
<td width="74%">
|
|
<#if creditCard?has_content>
|
|
<#if cardNumberMinDisplay?has_content>
|
|
<#-- create a display version of the card where all but the last four digits are * -->
|
|
<#assign cardNumberDisplay = "">
|
|
<#assign cardNumber = creditCard.cardNumber!>
|
|
<#if cardNumber?has_content>
|
|
<#assign size = cardNumber?length - 4>
|
|
<#if (size > 0)>
|
|
<#list 0 .. size-1 as foo>
|
|
<#assign cardNumberDisplay = cardNumberDisplay + "*">
|
|
</#list>
|
|
<#assign cardNumberDisplay = cardNumberDisplay + cardNumber[size .. size + 3]>
|
|
<#else>
|
|
<#-- but if the card number has less than four digits (ie, it was entered incorrectly), display it in full -->
|
|
<#assign cardNumberDisplay = cardNumber>
|
|
</#if>
|
|
</#if>
|
|
<input type="text" class="required" size="20" maxlength="30" name="cardNumber" onfocus="javascript:this.value = '';" value="${cardNumberDisplay!}" />
|
|
<#else>
|
|
<input type="text" size="20" maxlength="30" name="cardNumber" value="${creditCard.cardNumber!}"/>
|
|
</#if>
|
|
<#else>
|
|
<input type="text" size="20" maxlength="30" name="cardNumber" value="${creditCard.cardNumber!}"/>
|
|
</#if>
|
|
<#if showToolTip?has_content><span class="tooltip">${uiLabelMap.CommonRequired}</span><#else>*</#if></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="26%" align="right" valign="middle"><b>${uiLabelMap.AccountingExpirationDate}</b></td>
|
|
<td width="5"> </td>
|
|
<td width="74%">
|
|
<#assign expMonth = "">
|
|
<#assign expYear = "">
|
|
<#if creditCard?? && creditCard.expireDate??>
|
|
<#assign expDate = creditCard.expireDate>
|
|
<#if (expDate?? && expDate.indexOf("/") > 0)>
|
|
<#assign expMonth = expDate.substring(0,expDate.indexOf("/"))>
|
|
<#assign expYear = expDate.substring(expDate.indexOf("/")+1)>
|
|
</#if>
|
|
</#if>
|
|
<select name="expMonth">
|
|
<#if creditCard?has_content && expMonth?has_content>
|
|
<#assign ccExprMonth = expMonth>
|
|
<#else>
|
|
<#assign ccExprMonth = requestParameters.expMonth!>
|
|
</#if>
|
|
<#if ccExprMonth?has_content>
|
|
<option value="${ccExprMonth!}">${ccExprMonth!}</option>
|
|
</#if>
|
|
${screens.render("component://common/widget/CommonScreens.xml#ccmonths")}
|
|
</select>
|
|
<select name="expYear">
|
|
<#if creditCard?has_content && expYear?has_content>
|
|
<#assign ccExprYear = expYear>
|
|
<#else>
|
|
<#assign ccExprYear = requestParameters.expYear!>
|
|
</#if>
|
|
<#if ccExprYear?has_content>
|
|
<option value="${ccExprYear!}">${ccExprYear!}</option>
|
|
</#if>
|
|
${screens.render("component://common/widget/CommonScreens.xml#ccyears")}
|
|
</select>
|
|
<#if showToolTip?has_content><span class="tooltip">${uiLabelMap.CommonRequired}</span><#else>*</#if></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="26%" align="right" valign="middle"><b>${uiLabelMap.CommonDescription}</b></td>
|
|
<td width="5"> </td>
|
|
<td width="74%">
|
|
<input type="text" size="20" maxlength="30" name="description" value="${paymentMethod.description!}"/>
|
|
</td>
|
|
</tr>
|
|
|
|
|