📄 editcreditcard.jsp
字号:
<option></option>
<option>01</option>
<option>02</option>
<option>03</option>
<option>04</option>
<option>05</option>
<option>06</option>
<option>07</option>
<option>08</option>
<option>09</option>
<option>10</option>
<option>11</option>
<option>12</option>
</select>
<select name="expYear" class="selectBox">
<option><ofbiz:if name="tryEntity"><%=UtilFormatOut.checkNull(expYear)%></ofbiz:if><ofbiz:unless name="tryEntity"><%=UtilFormatOut.checkNull(request.getParameter("expYear"))%></ofbiz:unless></option>
<option></option>
<option>2004</option>
<option>2005</option>
<option>2006</option>
<option>2007</option>
<option>2008</option>
<option>2009</option>
<option>2010</option>
<option>2011</option>
<option>2012</option>
</select>
*</td>
</tr>
<tr>
<td width="26%" align=right valign=top><div class="tabletext">Billing Address</div></td>
<td width="5"> </td>
<td width="74%">
<%-- Removed because is confusing, can add but would have to come back here with all data populated as before...
<a href="<ofbiz:url>/editcontactmech</ofbiz:url>" class="buttontext">
[Create New Address]</a>
--%>
<%boolean hasCurrent = false;%>
<table width="100%" border="0" cellpadding="1">
<ofbiz:if name="curPostalAddress">
<%hasCurrent = true;%>
<tr>
<td align="right" valign="top" width="1%">
<INPUT type=radio name='contactMechId' value='<ofbiz:print attribute="curContactMechId"/>' checked>
</td>
<td align="left" valign="top" width="80%">
<div class="tabletext"><b>Use Current Address:</b></div>
<ofbiz:iterator name="curPartyContactMechPurpose" property="curPartyContactMechPurposes">
<%GenericValue curContactMechPurposeType = curPartyContactMechPurpose.getRelatedOneCache("ContactMechPurposeType");%>
<div class="tabletext">
<b><%=curContactMechPurposeType.getString("description")%></b>
<%if (curPartyContactMechPurpose.get("thruDate") != null) {%>
(Expire:<%=UtilDateTime.toDateTimeString(curPartyContactMechPurpose.getTimestamp("thruDate"))%>)
<%}%>
</div>
</ofbiz:iterator>
<div class="tabletext">
<ofbiz:entityfield attribute="curPostalAddress" field="toName" prefix="<b>To:</b> " suffix="<br>"/>
<ofbiz:entityfield attribute="curPostalAddress" field="attnName" prefix="<b>Attn:</b> " suffix="<br>"/>
<ofbiz:entityfield attribute="curPostalAddress" field="address1"/><br>
<ofbiz:entityfield attribute="curPostalAddress" field="address2" prefix="" suffix="<br>"/>
<ofbiz:entityfield attribute="curPostalAddress" field="city"/>,
<ofbiz:entityfield attribute="curPostalAddress" field="stateProvinceGeoId"/>
<ofbiz:entityfield attribute="curPostalAddress" field="postalCode"/>
<ofbiz:entityfield attribute="curPostalAddress" field="countryGeoId" prefix="<br>" suffix=""/>
</div>
<div class="tabletext">(Updated: <ofbiz:entityfield attribute="curPartyContactMech" field="fromDate"/>)</div>
<ofbiz:entityfield attribute="curPartyContactMech" field="thruDate" prefix="<div class='tabletext'><b>Delete: " suffix="</b></div>"/>
</td>
</tr>
</ofbiz:if>
<ofbiz:unless name="curPostalAddress">
<%-- <tr>
<td align="left" valign="top" colspan='2'>
<div class="tabletext">No Billing Address Selected</div>
</td>
</tr> --%>
</ofbiz:unless>
<%-- is confusing
<tr>
<td align="left" valign="top" colspan='2'>
<div class="tabletext"><b>Select a New Billing Address:</b></div>
</td>
</tr>
--%>
<ofbiz:iterator name="postalAddressInfo" property="postalAddressInfos" type="java.util.Map" expandMap="true">
<tr>
<td align="right" valign="top" width="1%">
<INPUT type=radio name='contactMechId' value='<ofbiz:entityfield attribute="contactMech" field="contactMechId"/>'>
</td>
<td align="left" valign="top" width="80%">
<ofbiz:iterator name="partyContactMechPurpose" property="partyContactMechPurposes">
<%GenericValue contactMechPurposeType = partyContactMechPurpose.getRelatedOneCache("ContactMechPurposeType");%>
<div class="tabletext">
<b><%=contactMechPurposeType.getString("description")%></b>
<ofbiz:entityfield attribute="partyContactMechPurpose" field="thruDate" prefix="(Expire:" suffix=")"/>
</div>
</ofbiz:iterator>
<div class="tabletext">
<ofbiz:entityfield attribute="postalAddress" field="toName" prefix="<b>To:</b> " suffix="<br>"/>
<ofbiz:entityfield attribute="postalAddress" field="attnName" prefix="<b>Attn:</b> " suffix="<br>"/>
<ofbiz:entityfield attribute="postalAddress" field="address1"/><br>
<ofbiz:entityfield attribute="postalAddress" field="address2" prefix="" suffix="<br>"/>
<ofbiz:entityfield attribute="postalAddress" field="city"/>,
<ofbiz:entityfield attribute="postalAddress" field="stateProvinceGeoId"/>
<ofbiz:entityfield attribute="postalAddress" field="postalCode"/>
<ofbiz:entityfield attribute="postalAddress" field="countryGeoId" prefix="<br>" suffix=""/>
</div>
<div class="tabletext">(Updated: <ofbiz:entityfield attribute="partyContactMech" field="fromDate"/>)</div>
<ofbiz:entityfield attribute="partyContactMech" field="thruDate" prefix="<div class='tabletext'><b>Delete: " suffix="</b></div>"/>
</td>
</tr>
</ofbiz:iterator>
<ofbiz:unless name="postalAddressInfos" size="0">
<ofbiz:unless name="curContactMech">
<tr><td colspan='2'><div class="tabletext">No contact information on file.</div></td></tr>
</ofbiz:unless>
</ofbiz:unless>
<tr>
<td align="right" valigh="top" width="1%">
<input type="radio" name="contactMechId" value="_NEW_" <%if (!hasCurrent) {%>checked<%}%>>
</td>
<td align="left" valign="middle" width="80%">
<span class="tabletext">Create a new billing address for this credit card.</span>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<a href='<ofbiz:url>/authview/<%=donePage%></ofbiz:url>' class="buttontext">[Go Back]</a>
<ofbiz:unless name="creditCard">
<%if (security.hasEntityPermission("PAY_INFO", "_CREATE", session)) {%>
<a href="javascript:document.editcreditcardform.submit()" class="buttontext">[Create]</a>
<%}%>
</ofbiz:unless>
<ofbiz:if name="creditCard">
<%if (security.hasEntityPermission("PAY_INFO", "_UPDATE", session)) {%>
<a href="javascript:document.editcreditcardform.submit()" class="buttontext">[Save]</a>
<%}%>
</ofbiz:if>
<%}%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -