(OFBIZ-10492) Replace text/javascript with application/javascript in all the script tag git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1836886 13f79535-47bb-0310-9956-ffa450edef68
117 lines
4.9 KiB
Plaintext
117 lines
4.9 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.
|
|
-->
|
|
<script type="application/javascript">
|
|
function call_fieldlookup3(view_name) {
|
|
var obj_lookupwindow = window.open(view_name + "?webSitePublishPoint=" + webSitePublishPoint,'FieldLookup', 'width=700,height=550,scrollbars=yes,status=no,top='+my+',left='+mx+',dependent=yes,alwaysRaised=yes');
|
|
obj_lookupwindow.opener = window;
|
|
obj_lookupwindow.focus();
|
|
}
|
|
function submitRows(rowCount) {
|
|
var rowCountElement = document.createElement("input");
|
|
rowCountElement.setAttribute("name", "_rowCount");
|
|
rowCountElement.setAttribute("type", "hidden");
|
|
rowCountElement.setAttribute("value", rowCount);
|
|
document.forms.siteRoleForm.appendChild(rowCountElement);
|
|
|
|
rowCountElement = document.createElement("input");
|
|
rowCountElement.setAttribute("name", "partyId");
|
|
rowCountElement.setAttribute("type", "hidden");
|
|
rowCountElement.setAttribute("value", "${partyId!}");
|
|
document.forms.siteRoleForm.appendChild(rowCountElement);
|
|
|
|
rowCountElement = document.createElement("input");
|
|
rowCountElement.setAttribute("name", "userLoginId");
|
|
rowCountElement.setAttribute("type", "hidden");
|
|
rowCountElement.setAttribute("value", "${userLoginId!}");
|
|
document.forms.siteRoleForm.appendChild(rowCountElement);
|
|
|
|
rowCountElement = document.createElement("input");
|
|
rowCountElement.setAttribute("name", "webSitePublishPoint");
|
|
rowCountElement.setAttribute("type", "hidden");
|
|
rowCountElement.setAttribute("value", "${webSitePublishPoint!}");
|
|
document.forms.siteRoleForm.appendChild(rowCountElement);
|
|
|
|
document.forms.siteRoleForm.submit();
|
|
}
|
|
|
|
</script>
|
|
|
|
<#-- ============================================================= -->
|
|
<br />
|
|
<table border="0" width='100%' cellspacing='0' cellpadding='0' class="form-table">
|
|
<tr>
|
|
<td width='100%'>
|
|
<form name="userform" method="post" action="<@ofbizUrl>UserPermissions</@ofbizUrl>" >
|
|
<table width='100%' border='0' cellspacing='0' cellpadding='0' class='appTitle'>
|
|
<tr>
|
|
<td colspan="1" valign="middle" align="right">
|
|
<div class="boxhead"> WebSitePublishPoint </div>
|
|
</td>
|
|
<td valign="middle">
|
|
<div class="boxhead">
|
|
<input type="text" name="webSitePublishPoint" size="20" value="${webSitePublishPoint!}" />
|
|
<input type="submit" value="${uiLabelMap.CommonRefresh}"/>
|
|
<input type="hidden" name="partyId" value="${partyId!}"/>
|
|
<input type="hidden" name="userLoginId" value="${userLoginId!}"/>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width='100%'>
|
|
<form name="siteRoleForm" method="post" action="<@ofbizUrl>updateSiteRoles</@ofbizUrl>">
|
|
<table width='100%' border='0' cellspacing='0' cellpadding='4' >
|
|
<tr>
|
|
<td class="label"/>
|
|
<td class="">${uiLabelMap.ContentWebSite}</td>
|
|
<#list blogRoleIdList as roleTypeId>
|
|
<td class="">${roleTypeId}</td>
|
|
</#list>
|
|
</tr>
|
|
|
|
<#assign rowCount=0/>
|
|
<#list siteList as map>
|
|
<tr>
|
|
<td class="">${map.partyId!}</td>
|
|
<#list blogRoleIdList as roleTypeId>
|
|
<#assign cappedSiteRole= Static["org.apache.ofbiz.entity.model.ModelUtil"].dbNameToVarName(roleTypeId) />
|
|
<td align="center">
|
|
<input type="checkbox" name="${cappedSiteRole}_o_${rowCount}" value="Y" <#if map[cappedSiteRole]?has_content && "Y" == map[cappedSiteRole]>checked="checked"</#if>/>
|
|
</td>
|
|
</#list>
|
|
</tr>
|
|
<input type="hidden" name="contentId_o_${rowCount}" value="${webSitePublishPoint}"/>
|
|
<input type="hidden" name="partyId_o_${rowCount}" value="${map.partyId}"/>
|
|
<#assign rowCount=rowCount + 1/>
|
|
</#list>
|
|
<tr>
|
|
<td class="label"/>
|
|
<td>
|
|
<div class="smallSubmit" ><a href="javascript:submitRows('${rowCount!}')">${uiLabelMap.CommonUpdate}</a></div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
</table>
|