git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@502669 13f79535-47bb-0310-9956-ffa450edef68
148 lines
7.6 KiB
Plaintext
148 lines
7.6 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 security.hasEntityPermission("ORDERMGR", "_CREATE", session) || security.hasEntityPermission("ORDERMGR", "_PURCHASE_CREATE", session)>
|
|
|
|
<table border="0" width='100%' cellspacing='0' cellpadding='0' class='boxoutside'>
|
|
<tr>
|
|
<td width='100%'>
|
|
|
|
<#-- header table for company shipping addresses -->
|
|
|
|
<br/>
|
|
<table width="100%" border='0' cellspacing='0' cellpadding='0' class='boxtop'>
|
|
<tr>
|
|
<td><div class="boxhead">${uiLabelMap.OrderSelectAShippingAddress}</div></td>
|
|
<td valign="middle" align="right">
|
|
<a href="javascript:document.checkoutsetupform.submit();" class="buttontext">${uiLabelMap.CommonContinue}</a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table width='100%' border='0' cellspacing='0' cellpadding='0' class='boxbottom'>
|
|
<tr>
|
|
<td>
|
|
<#if postalAddress?has_content>
|
|
<form method="post" action="<@ofbizUrl>updatePostalAddressOrderEntry</@ofbizUrl>" name="checkoutsetupform">
|
|
<input type="hidden" name="contactMechId" value="${shipContactMechId?if_exists}"/>
|
|
<#else>
|
|
<form method="post" action="<@ofbizUrl>createPostalAddress</@ofbizUrl>" name="checkoutsetupform">
|
|
<input type="hidden" name="contactMechTypeId" value="POSTAL_ADDRESS"/>
|
|
<input type="hidden" name="contactMechPurposeTypeId" value="SHIPPING_LOCATION"/>
|
|
</#if>
|
|
<input type="hidden" name="partyId" value="${cart.getPartyId()?default("_NA_")}"/>
|
|
<input type="hidden" name="finalizeMode" value="ship"/>
|
|
<#if orderPerson?exists && orderPerson?has_content>
|
|
<#assign toName = "">
|
|
<#if orderPerson.personalTitle?has_content><#assign toName = orderPerson.personalTitle + " "></#if>
|
|
<#assign toName = toName + orderPerson.firstName + " ">
|
|
<#if orderPerson.middleName?has_content><#assign toName = toName + orderPerson.middleName + " "></#if>
|
|
<#assign toName = toName + orderPerson.lastName>
|
|
<#if orderPerson.suffix?has_content><#assign toName = toName + " " + orderPerson.suffix></#if>
|
|
<#elseif parameters.toName?exists>
|
|
<#assign toName = parameters.toName>
|
|
<#else>
|
|
<#assign toName = "">
|
|
</#if>
|
|
<table width="100%" border="0" cellpadding="1" cellspacing="0">
|
|
<tr>
|
|
<td width="26%" align="right" valign="top"><div class="tabletext">${uiLabelMap.CommonToName}</div></td>
|
|
<td width="5"> </td>
|
|
<td width="74%">
|
|
<input type="text" class="inputBox" size="30" maxlength="60" name="toName" value="${toName}"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="26%" align="right" valign="top"><div class="tabletext">${uiLabelMap.CommonAttentionName}</div></td>
|
|
<td width="5"> </td>
|
|
<td width="74%">
|
|
<input type="text" class="inputBox" size="30" maxlength="60" name="attnName" value="${parameters.attnName?if_exists}"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="26%" align="right" valign="top"><div class="tabletext">${uiLabelMap.CommonAddressLine} 1</div></td>
|
|
<td width="5"> </td>
|
|
<td width="74%">
|
|
<input type="text" class="inputBox" size="30" maxlength="30" name="address1" value="${parameters.address1?if_exists}"/>
|
|
*</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="26%" align="right" valign="top"><div class="tabletext">${uiLabelMap.CommonAddressLine} 2</div></td>
|
|
<td width="5"> </td>
|
|
<td width="74%">
|
|
<input type="text" class="inputBox" size="30" maxlength="30" name="address2" value="${parameters.address2?if_exists}"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="26%" align="right" valign="top"><div class="tabletext">${uiLabelMap.CommonCity}</div></td>
|
|
<td width="5"> </td>
|
|
<td width="74%">
|
|
<input type="text" class="inputBox" size="30" maxlength="30" name="city" value="${parameters.city?if_exists}"/>
|
|
*</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="26%" align="right" valign="top"><div class="tabletext">${uiLabelMap.CommonStateProvince}</div></td>
|
|
<td width="5"> </td>
|
|
<td width="74%">
|
|
<select name="stateProvinceGeoId" class="selectBox">
|
|
<option value=""></option>
|
|
${screens.render("component://common/widget/CommonScreens.xml#states")}
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="26%" align="right" valign="top"><div class="tabletext">${uiLabelMap.CommonZipPostalCode}</div></td>
|
|
<td width="5"> </td>
|
|
<td width="74%">
|
|
<input type="text" class="inputBox" size="12" maxlength="10" name="postalCode" value="${parameters.postalCode?if_exists}"/>
|
|
*</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="26%" align="right" valign="top"><div class="tabletext">${uiLabelMap.CommonCountry}</div></td>
|
|
<td width="5"> </td>
|
|
<td width="74%">
|
|
<select name="countryGeoId" class="selectBox">
|
|
${screens.render("component://common/widget/CommonScreens.xml#countries")}
|
|
</select>
|
|
*</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="26%" align="right" valign="top"><div class="tabletext">${uiLabelMap.CommonAllowSolicitation}</div></td>
|
|
<td width="5"> </td>
|
|
<td width="74%">
|
|
<select name="allowSolicitation" class='selectBox'>
|
|
<#assign selectedValue = parameters.allowSolicitation?default("")/>
|
|
<option></option><option ${(selectedValue=="Y")?string("selected=\"selected\"","")}>Y</option><option ${(selectedValue=="N")?string("selected=\"selected\"","")}>N</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
</td>
|
|
</table>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<#else>
|
|
<h3>${uiLabelMap.OrderViewPermissionError}</h3>
|
|
</#if>
|