Commit 6878936a778d29bfea2e8948d3f92a11d1d04b42

Authored by rob
1 parent 08ab7291

Added ability to read only users to complete document collaboration


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1340 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc
... ... @@ -233,6 +233,14 @@ function getViewPage($oDocument) {
233 233 $sToRender .= "\t<tr>\n";
234 234 $sToRender .= "\t\t<td>" . wrapInTable(renderNonEditableDocumentRouting($oDocument)) . "</td>\n";
235 235 //$sToRender .= "\t\t<td>" . renderDocumentRouting($oDocument) . "</td>\n";
  236 + if (Document::userIsPerformingCurrentCollaborationStep($oDocument->getID())) {
  237 + //if the current user is responsible for an active step in the collaboration process
  238 + $sToRender .= "\t\t<td><table border=\"0\"><tr>\n";
  239 + $sToRender .= "\t\t<td><b>You currently have an active role<br> in the collaboration process</b></td>\n";
  240 + $sToRender .= "\t\t<td align=\"center\"><a href=" . $_SERVER['PHP_SELF'] . "?fDocumentID=" . $oDocument->getID() . "&fCollaborationStepComplete=1><img src=\"$default->graphicsUrl/widgets/update.gif\" border=\"0\"/></a></td>\n";
  241 + $sToRender .= "\t\t<td align=\"center\"><a href=\"$default->rootUrl/control.php?action=collaborationStepReject&fDocumentID=$iDocumentID\"><img src=\"$default->graphicsUrl/widgets/reject.gif\" border=\"0\"/></a></td>\n";
  242 + $sToRender .= "\t\t</tr></table></td>\n";
  243 + }
236 244 $sToRender .= "\t</tr>";
237 245 $sToRender .= "\t</table>";
238 246 $sToRender .= "</td>\n";
... ...