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

📄 editfacilitygroups.ftl

📁 Sequoia ERP是一个真正的企业级开源ERP解决方案。它提供的模块包括:电子商务应用(e-commerce), POS系统(point of sales),知识管理,存货与仓库管理
💻 FTL
字号:
<#-- *  Copyright (c) 2003 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     David E. Jones *@author     Brad Steiner *@author	  thierry.grauss@etu.univ-tours.fr (migration to uiLabelMap) *@version    $Rev: 7337 $ *@since      2.2-->        <div class="head1">${uiLabelMap.ProductGroupsFor} <span class="head2"><#if facility?exists>${(facility.facilityName)?if_exists}</#if> [${uiLabelMap.CommonId}:${facilityId?if_exists}]</span></div>    <a href="<@ofbizUrl>EditFacility</@ofbizUrl>" class="buttontext">[${uiLabelMap.ProductNewFacility}]</a>    <#if activeOnly>        <a href="<@ofbizUrl>EditFacilityGroups?facilityId=${facilityId}&activeOnly=false</@ofbizUrl>" class="buttontext">[${uiLabelMap.ProductActiveAndInactive}]</a>    <#else>        <a href="<@ofbizUrl>EditFacilityGroups?facilityId=${facilityId}&activeOnly=true</@ofbizUrl>" class="buttontext">[${uiLabelMap.ProductActiveOnly}]</a>    </#if>    <br/>    <br/>        <#if facilityId?exists && facility?exists>        <p class="head2">${uiLabelMap.ProductGroupMemberMaintenance}</p>                <#if (facilityGroupMembers.size() > 0)>        <table border="0" width="100%" cellpadding="2">            <tr>            <td align="right">                <b>                <#if (viewIndex > 0)>                <a href="<@ofbizUrl>EditFacilityGroups?facilityId=${facilityId}&VIEW_SIZE=${viewSize}&VIEW_INDEX=${(viewIndex-1)}&activeOnly=${activeOnly.toString()}</@ofbizUrl>" class="buttontext">[${uiLabelMap.CommonPrevious}]</a> |                </#if>                <#if (listSize > 0)>                ${lowIndex+1} - ${highIndex} of ${listSize}                </#if>                <#if (listSize > highIndex)>                | <a href="<@ofbizUrl>EditFacilityGroups?facilityId=${facilityId}&VIEW_SIZE=${viewSize}&VIEW_INDEX=${(viewIndex+1)}&activeOnly=${activeOnly.toString()}</@ofbizUrl>" class="buttontext">[${uiLabelMap.CommonNext}]</a>                </#if>                </b>            </td>            </tr>        </table>        </#if>                <table border="1" width="100%" cellpadding="2" cellspacing="0">        <tr>            <td><div class="tabletext"><b>${uiLabelMap.ProductFacilityGroupNameId}</b></div></td>            <td><div class="tabletext"><b>${uiLabelMap.CommonFromDateTime}</b></div></td>            <td align="center"><div class="tabletext"><b>${uiLabelMap.ProductThruDateTimeSequence}</b></div></td>            <td><div class="tabletext"><b>&nbsp;</b></div></td>        </tr>        <#if (facilityGroupMembers.size() > 0)>            <#assign line = 0>            <#list facilityGroupMembers[lowIndex..highIndex-1] as facilityGroupMember>            <#assign line = line + 1>            <#assign facilityGroup = facilityGroupMember.getRelatedOne("FacilityGroup")>            <tr valign="middle">                <td><a href="<@ofbizUrl>EditFacilityGroup?facilityGroupId=${(facilityGroupMember.facilityGroupId)?if_exists}</@ofbizUrl>" class="buttontext"><#if facilityGroup?exists>${(facilityGroup.facilityGroupName)?if_exists}</#if> [${(facilityGroupMember.facilityGroupId)?if_exists}]</a></td>                <td>                    <#assign hasntStarted = false>                    <#if (facilityGroupMember.getTimestamp("fromDate"))?exists && Static["org.ofbiz.base.util.UtilDateTime"].nowTimestamp().before(facilityGroupMember.getTimestamp("fromDate"))> <#assign hasntStarted = true></#if>                    <div class="tabletext"<#if hasntStarted> style="color: red;"</#if>>                        ${(facilityGroupMember.fromDate)?if_exists}                    </div>                </td>                <td align="center">                    <#assign hasExpired = false>                    <#if (facilityGroupMember.getTimestamp("thruDate"))?exists && Static["org.ofbiz.base.util.UtilDateTime"].nowTimestamp().after(facilityGroupMember.getTimestamp("thruDate"))> <#assign hasExpired = true></#if>                    <FORM method="post" action="<@ofbizUrl>updateGroupToFacility?VIEW_SIZE=${viewSize}&VIEW_INDEX=${viewIndex}</@ofbizUrl>" name="lineForm${line}">                        <input type="hidden" name="activeOnly" value="${activeOnly.toString()}">                        <input type="hidden" name="facilityId" value="${(facilityGroupMember.facilityId)?if_exists}">                        <input type="hidden" name="facilityGroupId" value="${(facilityGroupMember.facilityGroupId)?if_exists}">                        <input type="hidden" name="fromDate" value="${(facilityGroupMember.fromDate)?if_exists}">                        <input type="text" size="25" name="thruDate" value="${(facilityGroupMember.thruDate)?if_exists}" class="inputBox" <#if hasExpired>style="color: red;</#if>">                        <a href="javascript:call_cal(document.lineForm${line}.thruDate, '${(facilityGroupMember.thruDate)?default(nowTimestampString)}');"><img src="/images/cal.gif" width="16" height="16" border="0" alt="Calendar"></a>                        <input type="text" size="5" name="sequenceNum" value="${(facilityGroupMember.sequenceNum)?if_exists}" class="inputBox">                                   <INPUT type="submit" value="Update" style="font-size: x-small;">                    </FORM>                </td>                <td align="center">                <a href="<@ofbizUrl>removeGroupFromFacility?VIEW_SIZE=${viewSize}&VIEW_INDEX=${viewIndex}&facilityId=${(facilityGroupMember.facilityId)?if_exists}&facilityGroupId=${(facilityGroupMember.facilityGroupId)?if_exists}&fromDate=${Static["org.ofbiz.base.util.UtilFormatOut"].encodeQueryValue(facilityGroupMember.getTimestamp("fromDate").toString())}&activeOnly=${activeOnly.toString()}</@ofbizUrl>" class="buttontext">                [${uiLabelMap.CommonDelete}]</a>                </td>            </tr>            </#list>        </#if>        </table>                <#if (facilityGroupMembers.size() > 0)>            <table border="0" width="100%" cellpadding="2">                <tr>                <td align="right">                    <b>                    <#if (viewIndex > 0)>                    <a href="<@ofbizUrl>EditFacilityGroups?facilityId=${facilityId}&VIEW_SIZE=${viewSize}&VIEW_INDEX=${(viewIndex-1)}&activeOnly=${activeOnly.toString()}</@ofbizUrl>" class="buttontext">[${uiLabelMap.CommonPrevious}]</a> |                    </#if>                    <#if (listSize > 0)>                    ${lowIndex+1} - ${highIndex} ${uiLabelMap.CommonOf} ${listSize}                    </#if>                    <#if (listSize > highIndex)>                    | <a href="<@ofbizUrl>EditFacilityGroups?facilityId=${facilityId}&VIEW_SIZE=${viewSize}&VIEW_INDEX=${(viewIndex+1)}&activeOnly=${activeOnly.toString()}</@ofbizUrl>" class="buttontext">[${uiLabelMap.CommonNext}]</a>                    </#if>                    </b>                </td>                </tr>            </table>        </#if>                <br/>        <form method="post" action="<@ofbizUrl>addGroupToFacility</@ofbizUrl>" style="margin: 0;" name="addFacilityGroupMemberForm">        <input type="hidden" name="facilityId" value="${facilityId}">        <input type="hidden" name="useValues" value="true">        <input type="hidden" name="activeOnly" value="${activeOnly.toString()}">                <div class="head2">${uiLabelMap.ProductAddFacilityGroupMember}:</div>        <div class="tabletext">            ${uiLabelMap.ProductFacilityGroup} ${uiLabelMap.CommonId}:             <select name="facilityGroupId" size="1" class="selectBox">                <#list facilityGroups as facilityGroup>                    <option value="${(facilityGroup.facilityGroupId)?if_exists}">${(facilityGroup.facilityGroupName)?if_exists}</option>                </#list>            </select>            ${uiLabelMap.CommonFromDate}: <input type="text" size="25" class="inputBox" name="fromDate">            <a href="javascript:call_cal(document.addFacilityGroupMemberForm.fromDate, '${nowTimestampString}');"><img src="/images/cal.gif" width="16" height="16" border="0" alt="Calendar"></a>            <input type="submit" value="${uiLabelMap.CommonAdd}">        </div>        </form>                <!-- TO DO IMPLEMENT THIS        <br/>        <form method="post" action="<@ofbizUrl>expireAllFacilityGroupMembers</@ofbizUrl>" style="margin: 0;">        <input type="hidden" name="facilityGroupId" value="${facilityGroupId?if_exists}">        <input type="hidden" name="useValues" value="true">        <input type="hidden" name="activeOnly" value="${activeOnly.toString()}">                <div class="head2">Expire All Facility Members:</div>        <div class="tabletext">            Optional Expiration Date: <input type="text" size="20" name="thruDate">            <input type="submit" value="Expire All">        </div>        </form>        <br/>        <form method="post" action="<@ofbizUrl>removeExpiredFacilityGroupMembers</@ofbizUrl>" style="margin: 0;">        <input type="hidden" name="facilityGroupId" value="${facilityGroupId?if_exists}">        <input type="hidden" name="useValues" value="true">        <input type="hidden" name="activeOnly" value="${activeOnly.toString()}">                <div class="head2">Remove Expired Facility Members:</div>        <div class="tabletext">            Optional Expired Before Date: <input type="text" size="20" name="validDate">            <input type="submit" value="Remove Expired">        </div>        </form>        -->    </#if>

⌨️ 快捷键说明

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