📄 userpermissions.ftl
字号:
<script language="javascript1.2">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?if_exists}"); document.forms.siteRoleForm.appendChild(rowCountElement); rowCountElement = document.createElement("input"); rowCountElement.setAttribute("name", "userLoginId"); rowCountElement.setAttribute("type", "hidden"); rowCountElement.setAttribute("value", "${userLoginId?if_exists}"); document.forms.siteRoleForm.appendChild(rowCountElement); rowCountElement = document.createElement("input"); rowCountElement.setAttribute("name", "webSitePublishPoint"); rowCountElement.setAttribute("type", "hidden"); rowCountElement.setAttribute("value", "${webSitePublishPoint?if_exists}"); document.forms.siteRoleForm.appendChild(rowCountElement); document.forms.siteRoleForm.submit(); }</script><#-- ============================================================= --><br/><TABLE border="0" width='100%' cellspacing='0' cellpadding='0' class='boxoutside'> <TR> <TD width='100%'> <form name="userform" mode="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" align="left"> <div class="boxhead"> <input type="text" name="webSitePublishPoint" size="20" value="${webSitePublishPoint?if_exists}"> <input type="submit" value="ReGet"/> <input type="hidden" name="partyId" value="${partyId?if_exists}"/> <input type="hidden" name="userLoginId" value="${userLoginId?if_exists}"/> </div> </td> </tr> </table> </form> </TD> </TR> <TR> <TD width='100%'> <form name="siteRoleForm" mode="POST" action="<@ofbizUrl>updateSiteRoles</@ofbizUrl>"> <table width='100%' border='0' cellspacing='0' cellpadding='4' class='boxoutside'> <tr> <td class="">Site</td> <#list blogRoleIdList as roleTypeId> <td class="">${roleTypeId}</td> </#list> </tr> <#assign rowCount=0/> <#list siteList as map> <tr> <td class="">${map.partyId?if_exists}</td> <#list blogRoleIdList as roleTypeId> <#assign cappedSiteRole= Static["org.ofbiz.entity.model.ModelUtil"].dbNameToVarName(roleTypeId) /> <td align="center"> <input type="checkbox" name="${cappedSiteRole}_o_${rowCount}" value="Y" <#if map[cappedSiteRole]?has_content && map[cappedSiteRole] == "Y">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><div class="smallSubmit" ><a href="javascript:submitRows('${rowCount?if_exists}')">Update</a></div> </td> </tr> </table> </form> </td> </tr> </table> </td> </tr> </table> </TD> </TR></TABLE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -