Revision 6238
Added by Jing Tao over 13 years ago
lib/style/skins/sanparks/workflowAccess.jsp | ||
---|---|---|
42 | 42 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/ajax-utils.js"></script> |
43 | 43 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_SKINS_URL%>/sanparks/workflowAccess.js"></script> |
44 | 44 |
</head> |
45 |
<body class="main-section" onload="getAccessSection('<%=SERVLET_URL%>','<%=request.getParameter("workflowid")%>','<%=request.getParameter("workflowname")%>','access-info-content')">
|
|
45 |
<body class="main-section" onload="getAccessSection('<%=SERVLET_URL%>','<%=request.getParameter("karfilelsid")%>','<%=request.getParameter("workflowname")%>','access-info-content')">
|
|
46 | 46 |
<jsp:include page="header2.jsp"/> |
47 | 47 |
|
48 | 48 |
<!-- Main content --> |
... | ... | |
54 | 54 |
<div class="summary-field" id='workflow-name-label' >Name: </div> |
55 | 55 |
<div class="summary-value" id='workflow-name-value' ><%=request.getParameter("workflowname")%></div> |
56 | 56 |
<br/> |
57 |
<div class="summary-field" id='workflow-lsid-label' >LSID: </div> |
|
58 |
<div class="summary-value" id='workflow-lsid-value' ><%=request.getParameter("workflowid")%></div>
|
|
57 |
<div class="summary-field" id='workflow-lsid-label' >Kar File LSID: </div>
|
|
58 |
<div class="summary-value" id='workflow-lsid-value' ><%=request.getParameter("karfilelsid")%></div>
|
|
59 | 59 |
</div> |
60 | 60 |
</div> |
61 | 61 |
|
lib/style/skins/sanparks/workflowAccess.xsl | ||
---|---|---|
29 | 29 |
* into an HTML format suitable for rendering with modern web browsers. |
30 | 30 |
--> |
31 | 31 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
32 |
|
|
32 |
<xsl:import href="../../common/util.xsl"/> |
|
33 | 33 |
<xsl:output method="html" /> |
34 | 34 |
<xsl:param name="sessid" /> |
35 | 35 |
<xsl:param name="qformat">default</xsl:param> |
... | ... | |
38 | 38 |
<xsl:param name="servletURL" /> |
39 | 39 |
<xsl:param name="workflowname" /> |
40 | 40 |
<xsl:param name="docid" /> |
41 |
<xsl:variable name="karDocid"> |
|
42 |
<xsl:call-template name="extractDocidFromLsid"> |
|
43 |
<xsl:with-param name="lsidString" select="$docid" /> |
|
44 |
</xsl:call-template> |
|
45 |
</xsl:variable> |
|
41 | 46 |
|
42 | 47 |
<xsl:template match="/"> |
43 | 48 |
|
... | ... | |
126 | 131 |
<input name="qformat" value="sanparks" type="hidden" /> |
127 | 132 |
<input name="forwardto" value="workflowAccess.jsp" type="hidden" /> |
128 | 133 |
<input name="permission" id="permission" type="hidden" /> |
129 |
<input name="docid" value="{$docid}" type="hidden" />
|
|
130 |
<input name="workflowid" value="{$docid}" type="hidden" />
|
|
134 |
<input name="docid" value="{$karDocid}" type="hidden" />
|
|
135 |
<input name="karfilelsid" value="{$docid}" type="hidden" />
|
|
131 | 136 |
<input name="workflowname" value="{$workflowname}" type="hidden" /> |
132 | 137 |
|
133 | 138 |
<xsl:choose> |
... | ... | |
141 | 146 |
</xsl:when> |
142 | 147 |
<xsl:otherwise> |
143 | 148 |
<select class="change_access_order_col" name="permOrder" id="permOrder"> |
149 |
<option value="denyFirst">Deny First</option> |
|
144 | 150 |
<option value="allowFirst">Allow First</option> |
145 |
<option value="denyFirst">Deny First</option> |
|
146 | 151 |
</select> |
147 | 152 |
</xsl:otherwise> |
148 | 153 |
</xsl:choose> |
lib/style/skins/sanparks/workflowAccess.js | ||
---|---|---|
33 | 33 |
* workflowName - used for display purposes. |
34 | 34 |
* divId - the name of the div where the results should be put |
35 | 35 |
*/ |
36 |
function getAccessSection(url, workflowId, workflowname, divId) {
|
|
37 |
var requestUrl = url + '?action=getaccesscontrol&docid=' + workflowId +
|
|
36 |
function getAccessSection(url, karfilelsid, workflowname, divId) {
|
|
37 |
var requestUrl = url + '?action=getaccesscontrol&docid=' + karfilelsid +
|
|
38 | 38 |
"&workflowname=" + workflowname + '&qformat=sanparks'; |
39 | 39 |
//alert('getAccessSection - url: ' + requestUrl); |
40 | 40 |
var submitResults = submitUrlIntoDiv(requestUrl, divId); |
lib/style/skins/sanparks/scheduleWorkflowRun.jsp | ||
---|---|---|
92 | 92 |
<br> |
93 | 93 |
<div class="summary-field" id='workflow-lsid-label' >LSID: </div> |
94 | 94 |
<% |
95 |
if (request.getParameter("workflowid") != null) {
|
|
95 |
if (request.getParameter("karid") != null) {
|
|
96 | 96 |
%> |
97 | 97 |
<div class="summary-value" id='workflow-lsid-value' ><%=request.getParameter("workflowid")%></div> |
98 | 98 |
<% |
99 | 99 |
if (hasSchedulePermissions) { |
100 | 100 |
%> |
101 |
(<jsp:text><![CDATA[<a href=./workflowAccess.jsp?workflowid=]]></jsp:text><jsp:expression>request.getParameter("workflowid")</jsp:expression><jsp:text><![CDATA[&workflowname=]]></jsp:text><jsp:expression>request.getParameter("workflowname")</jsp:expression><jsp:text><![CDATA[>Change Access Permissions</a>]]></jsp:text>)
|
|
101 |
(<jsp:text><![CDATA[<a href=./workflowAccess.jsp?karfilelsid=]]></jsp:text><jsp:expression>request.getParameter("karid")</jsp:expression><jsp:text><![CDATA[&workflowname=]]></jsp:text><jsp:expression>request.getParameter("workflowname")</jsp:expression><jsp:text><![CDATA[>Change Access Permissions</a>]]></jsp:text>)
|
|
102 | 102 |
<% |
103 | 103 |
} |
104 | 104 |
} |
Also available in: Unified diff
Make "Change Access Permission" button work on sanparks scheduler web page.
Merge the change from 1.9.5 branch to the trunk.