📄 editproductstoresurveys.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 Andy Zeneski (jaz@ofbiz.org)
*@version $Revision: 1.3 $
*@since 3.0
-->
<#assign uiLabelMap = requestAttributes.uiLabelMap>
<#if hasPermission>
${pages.get("/store/ProductStoreTabBar.ftl")}
<div class="head1">Product Store Survey Settings<span class='head2'><#if (productStore.storeName)?has_content>"${productStore.storeName}"</#if> [ID:${productStoreId?if_exists}]</span></div>
<a href="<@ofbizUrl>/EditProductStore</@ofbizUrl>" class="buttontext">[New Product Store]</a>
<br><br>
<table border="1" cellpadding="2" cellspacing="0" width="100%">
<tr>
<td><span class="tableheadtext">Type</span></td>
<td><span class="tableheadtext">Survey</span></td>
<td><span class="tableheadtext">Product</span></td>
<td><span class="tableheadtext">Category</span></td>
<td><span class="tableheadtext">FromDate</span></td>
<td><span class="tableheadtext">Seq #</span></td>
<td> </td>
</tr>
<#list productStoreSurveys as storeSurvey>
<#assign surveyType = storeSurvey.getRelatedOne("SurveyApplType")>
<#assign survey = storeSurvey.getRelatedOne("Survey")>
<tr>
<td><span class="tabletext">${surveyType.description}</span></td>
<td><a href="/content/control/EditSurvey?surveyId=${storeSurvey.surveyId}" class="buttontext">${survey.description?default("[" + survey.surveyId + "]")}</a>
<td><span class="tabletext">${storeSurvey.productId?default("N/A")}</span></td>
<td><span class="tabletext">${storeSurvey.productCategoryId?default("N/A")}</span></td>
<td><span class="tabletext">${storeSurvey.fromDate?string}</span></td>
<td><span class="tabletext">${storeSurvey.sequenceNum?if_exists}</span></td>
<td><a href="<@ofbizUrl>/deleteProductStoreSurveyAppl?productStoreId=${productStoreId}&productStoreSurveyId=${storeSurvey.productStoreSurveyId}</@ofbizUrl>" class="buttontext">[Delete]</a>
</#list>
</table>
<br>
<div class="head2">Create Store Survey:</div>
<form name="addSurvey" action="<@ofbizUrl>/createProductStoreSurveyAppl</@ofbizUrl>" method="post">
<input type="hidden" name="productStoreId" value="${productStoreId}">
<table cellspacing="2" cellpadding="2">
<tr>
<td><span class="tableheadtext">Type</span></td>
<td>
<select class="selectBox" name="surveyApplTypeId">
<#list surveyApplTypes as type>
<option value="${type.surveyApplTypeId}">${type.description}</option>
</#list>
</select>
</td>
</tr>
<tr>
<td><span class="tableheadtext">Survey</span></td>
<td>
<select class="selectBox" name="surveyId">
<#list surveys as survey>
<option value="${survey.surveyId}">${survey.description?default("[" + survey.surveyId + "]")}</option>
</#list>
</select>
</td>
</tr>
<tr>
<td><span class="tableheadtext">Product ID</span></td>
<td>
<input type="text" class="inputBox" size="20" name="productId">
</td>
</tr>
<tr>
<td><span class="tableheadtext">Category ID</span></td>
<td>
<select class="selectBox" name="productCategoryId">
<option></option>
<#list productCategories as category>
<option value="${category.productCategoryId}">${category.description}</option>
</#list>
</select>
</td>
</tr>
<tr>
<td><span class="tableheadtext">FromDate</span></td>
<td>
<input type="text" class="inputBox" size="25" name="fromDate">
<a href="javascript:call_cal(document.addSurvey.fromDate, '${nowTimestampString}');"><img src="/images/cal.gif" width="16" height="16" border="0" alt="Calendar"></a>
</td>
</tr>
<tr>
<td><span class="tableheadtext">ThruDate</span></td>
<td>
<input type="text" class="inputBox" size="25" name="thruDate">
<a href="javascript:call_cal(document.addSurvey.thruDate, '${nowTimestampString}');"><img src="/images/cal.gif" width="16" height="16" border="0" alt="Calendar"></a>
</td>
</tr>
<tr>
<td><span class="tableheadtext">Template Path</span></td>
<td>
<input type="text" class="inputBox" size="30" name="templatePath">
</td>
</tr>
<tr>
<td><span class="tableheadtext">Sequence</span></td>
<td>
<input type="text" class="inputBox" size="5" name="sequenceNum">
</td>
</tr>
<tr>
<td> </td>
<td><input type="submit" class="smallSubmit" value="${uiLabelMap.CommonAdd}"></td>
</tr>
</table>
</form>
<#else>
<h3>${uiLabelMap.ProductCatalogViewPermissionError}</h3>
</#if>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -