⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 findparty.ftl

📁 国外的一套开源CRM
💻 FTL
📖 第 1 页 / 共 2 页
字号:
<#--
 *  Copyright (c) 2001-2004 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)
 *@version    $Revision: 1.10 $
 *@since      3.0
-->

<#assign uiLabelMap = requestAttributes.uiLabelMap>
<script language="JavaScript">
<!-- //
function lookupParty(click) {
    partyIdValue = document.lookupparty.partyId.value;
    userLoginIdValue = document.lookupparty.userlogin_id.value;
    if (partyIdValue.length > 1 || userLoginIdValue.length > 1) {
        document.lookupparty.action = "<@ofbizUrl>/viewprofile</@ofbizUrl>";
    } else {
        document.lookupparty.action = "<@ofbizUrl>/findparty</@ofbizUrl>";
    }

    if (click) {
        document.lookupparty.submit();
    }
    return true;
}
function refreshInfo() {
    document.lookupparty.lookupFlag.value = "N";
    document.lookupparty.hideFields.value = "N";
    document.lookupparty.submit();
}
// -->
</script>

<#if security.hasEntityPermission("PARTYMGR", "_VIEW", session)>
  <form method='post' name="lookupparty" action="<@ofbizUrl>/findparty</@ofbizUrl>" onsubmit="javascript:lookupParty();">
    <input type='hidden' name='lookupFlag' value='Y'>
    <input type='hidden' name='hideFields' value='Y'>
    <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><div class='boxhead'>Find Party</div></td>
              <td align='right'>
                <div class="tabletext">
                  <#if requestParameters.hideFields?default("N") == "Y">
                    <a href="<@ofbizUrl>/findparty?hideFields=N${paramList}</@ofbizUrl>" class="submenutextright">Show Lookup Fields</a>
                  <#else>
                    <#if partyList?exists><a href="<@ofbizUrl>/findparty?hideFields=Y${paramList}</@ofbizUrl>" class="submenutext">Hide Fields</a></#if>
                    <a href="javascript:lookupParty(true);" class="submenutextright">Lookup Party(s)</a>
                  </#if>
                </div>
              </td>
            </tr>
          </table>
          <#assign extInfo = requestParameters.extInfo?default("N")>
          <#if requestParameters.hideFields?default("N") != "Y">
            <table width='100%' border='0' cellspacing='0' cellpadding='2' class='boxbottom'>
              <tr>
                <td align='center' width='100%'>
                  <table border='0' cellspacing='0' cellpadding='2'>
                    <tr>
                      <td width='25%' align='right' nowrap><div class='tableheadtext'>Contact Info:</div></td>
                      <td width='5%'>&nbsp;</td>
                      <td nowrap>
                        <div class="tabletext">
                          <input type="radio" name="extInfo" value="N" onclick="javascript:refreshInfo();" <#if extInfo == "N">checked</#if>>None&nbsp;
                          <input type="radio" name="extInfo" value="P" onclick="javascript:refreshInfo();" <#if extInfo == "P">checked</#if>>Postal&nbsp;
                          <input type="radio" name="extInfo" value="T" onclick="javascript:refreshInfo();" <#if extInfo == "T">checked</#if>>Telecom&nbsp;
                          <input type="radio" name="extInfo" value="O" onclick="javascript:refreshInfo();" <#if extInfo == "O">checked</#if>>Other&nbsp;
                      </td>
                    </tr>
                    <tr>
                      <td width='25%' align='right'><div class='tableheadtext'>${uiLabelMap.PartyPartyId}:</div></td>
                      <td width='5%'>&nbsp;</td>
                      <td><input type='text' class='inputBox' name='partyId'></td>
                    </tr>
                    <tr>
                      <td width='25%' align='right'><div class='tableheadtext'>${uiLabelMap.PartyUserLogin}:</div></td>
                      <td width='5%'>&nbsp;</td>
                      <td><input type='text' class='inputBox' name='userlogin_id' value='${requestParameters.userLoginId?if_exists}'></td>
                    </tr>
                    <tr>
                      <td width='25%' align='right'><div class='tableheadtext'>${uiLabelMap.PartyLastName}:</div></td>
                      <td width='5%'>&nbsp;</td>
                      <td><input type='text' class='inputBox' name='lastName' value='${requestParameters.lastName?if_exists}'></td>
                    </tr>
                    <tr>
                      <td width='25%' align='right'><div class='tableheadtext'>${uiLabelMap.PartyFirstName}:</div></td>
                      <td width='5%'>&nbsp;</td>
                      <td><input type='text' class='inputBox' name='firstName' value='${requestParameters.firstName?if_exists}'></td>
                    </tr>
                    <tr>
                      <td width='25%' align='right'><div class='tableheadtext'>${uiLabelMap.PartyPartyGroupName}:</div></td>
                      <td width='5%'>&nbsp;</td>
                      <td><input type='text' class='inputBox' name='groupName' value='${requestParameters.groupName?if_exists}'></td>
                    </tr>
                    <tr>
                      <td width='25%' align='right'><div class='tableheadtext'>Role Type:</div></td>
                      <td width='5%'>&nbsp;</td>
                      <td>
                        <select name='roleTypeId' class='selectBox'>
                          <#if currentRole?has_content>
                            <option value="${currentRole.roleTypeId}">${currentRole.description}</option>
                            <option value="${currentRole.roleTypeId}">---</option>
                          </#if>
                          <option value="ANY">Any Role Type</option>
                          <#list roleTypes as roleType>
                            <option value="${roleType.roleTypeId}">${roleType.description}</option>
                          </#list>
                        </select>
                      </td>
                    </tr>
                    <#if extInfo == 'P'>
                      <tr><td colspan="3"><hr class="sepbar"></td></tr>
                      <tr>
                        <td width='25%' align='right'><div class='tableheadtext'>Address 1:</div></td>
                        <td width='5%'>&nbsp;</td>
                        <td><input type='text' class='inputBox' name='address1' value='${requestParameters.address1?if_exists}'></td>
                      </tr>
                      <tr>
                        <td width='25%' align='right'><div class='tableheadtext'>Address 2:</div></td>
                        <td width='5%'>&nbsp;</td>
                        <td><input type='text' class='inputBox' name='address2' value='${requestParameters.address2?if_exists}'></td>
                      </tr>
                      <tr>
                        <td width='25%' align='right'><div class='tableheadtext'>City:</div></td>
                        <td width='5%'>&nbsp;</td>
                        <td><input type='text' class='inputBox' name='city' value='${requestParameters.city?if_exists}'></td>
                      </tr>
                      <tr>
                        <td width='25%' align='right'><div class='tableheadtext'>State/Province:</div></td>
                        <td width='5%'>&nbsp;</td>
                        <td>
                          <select name='stateProvinceGeoId' class='selectBox'>
                            <#if currentStateGeo?has_content>
                              <option value="${currentStateGeo.geoId}">${currentStateGeo.geoName?default(currentStateGeo.geoId)}</option>
                              <option value="${currentStateGeo.geoId}">---</option>
                            </#if>
                            <option value="ANY">Any State/Province</option>
                            ${pages.get("/includes/states.ftl")}
                          </select>
                        </td>
                      </tr>
                      <tr>
                        <td width='25%' align='right'><div class='tableheadtext'>Postal Code:</div></td>
                        <td width='5%'>&nbsp;</td>
                        <td><input type='text' class='inputBox' name='postalCode' value='${requestParameters.postalCode?if_exists}'></td>
                      </tr>
                    </#if>
                    <#if extInfo == 'T'>
                      <tr><td colspan="3"><hr class="sepbar"></td></tr>
                      <tr>
                        <td width='25%' align='right'><div class='tableheadtext'>Country Code:</div></td>
                        <td width='5%'>&nbsp;</td>
                        <td><input type='text' class='inputBox' name='countryCode' value='${requestParameters.countryCode?if_exists}'></td>
                      </tr>
                      <tr>
                        <td width='25%' align='right'><div class='tableheadtext'>Area Code:</div></td>
                        <td width='5%'>&nbsp;</td>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -