diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php
index e66cbade9..845fb01de 100644
--- a/views/bootstrap/class.ViewDocument.php
+++ b/views/bootstrap/class.ViewDocument.php
@@ -524,51 +524,51 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
print "";
print "
";
if($accessop->mayEditVersion($document)) {
- print "- getVersion()."\">".getMLText("edit_version")."
";
+ print "- ".$this->html_link('EditOnline', array('documentid'=>$documentid, 'version'=>$latestContent->getVersion()), array(), "".getMLText("edit_version"), false, true)."
";
}
/* Only admin has the right to remove version in any case or a regular
* user if enableVersionDeletion is on
*/
if($accessop->mayRemoveVersion($document)) {
- print "- getVersion()."\">".getMLText("rm_version")."
";
+ print "- ".$this->html_link('RemoveVersion', array('documentid'=>$documentid, 'version'=>$latestContent->getVersion()), array(), "".getMLText("rm_version"), false, true)."
";
}
if($accessop->mayOverrideStatus($document)) {
- print "- ".getMLText("change_status")."
";
+ print "- ".$this->html_link('OverrideContentStatus', array('documentid'=>$documentid, 'version'=>$latestContent->getVersion()), array(), "".getMLText("change_status"), false, true)."
";
}
if($accessop->maySetRecipients($document)) {
- print "- ".getMLText("change_recipients")."
";
+ print "- ".$this->html_link('SetRecipients', array('documentid'=>$documentid, 'version'=>$latestContent->getVersion()), array(), "".getMLText("change_recipients"), false, true)."
";
}
if($accessop->maySetRevisors($document)) {
- print "- ".getMLText("change_revisors")."
";
+ print "- ".$this->html_link('SetRevisors', array('documentid'=>$documentid, 'version'=>$latestContent->getVersion()), array(), "".getMLText("change_revisors"), false, true)."
";
}
if($workflowmode == 'traditional' || $workflowmode == 'traditional_only_approval') {
// Allow changing reviewers/approvals only if not reviewed
if($accessop->maySetReviewersApprovers($document)) {
- print "- ".getMLText("change_assignments")."
";
+ print "- ".$this->html_link('SetReviewersApprovers', array('documentid'=>$documentid, 'version'=>$latestContent->getVersion()), array(), "".getMLText("change_assignments"), false, true)."
";
}
} else {
if($accessop->maySetWorkflow($document)) {
if(!$workflow) {
- print "- ".getMLText("set_workflow")."
";
+ print "- ".$this->html_link('SetWorkflow', array('documentid'=>$documentid, 'version'=>$latestContent->getVersion()), array(), "".getMLText("set_workflow"), false, true)."
";
}
}
}
/*
if($accessop->maySetExpires($document)) {
- print "- ".getMLText("set_expiry")."
";
+ print "- ".$this->html_link('SetExpires', array('documentid'=>$documentid), array(), "".getMLText("set_expiry"), false, true)."
";
}
*/
if($dms->getAllTransmittals($user)) {
- print "- getVersion()."\">".getMLText("add_to_transmittal")."
";
+ print "- ".$this->html_link('AddToTransmittal', array('documentid'=>$documentid, 'version'=>$latestContent->getVersion()), array(), "".getMLText("add_to_transmittal"), false, true)."
";
}
if($accessop->mayEditComment($document)) {
- print "- getVersion()."\">".getMLText("edit_comment")."
";
+ print "- ".$this->html_link('EditComment', array('documentid'=>$documentid, 'version'=>$latestContent->getVersion()), array(), "".getMLText("edit_comment"), false, true)."
";
}
if($accessop->mayEditAttributes($document)) {
- print "- getVersion()."\">".getMLText("edit_attributes")."
";
+ print "- ".$this->html_link('EditAttributes', array('documentid'=>$documentid, 'version'=>$latestContent->getVersion()), array(), "".getMLText("edit_attributes"), false, true)."
";
}
- //print "- ".getMLText("versioning_info")."
";
+ //print "- ".$this->html_link('Download', array('documentid'=>$documentid, 'vfile'=>1), array(), "".getMLText("versioning_info"), false, true)."
";
print "
";
echo "";
@@ -686,9 +686,9 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
if($accessop->mayReview($document)) {
if ($is_reviewer && $r["status"]==0) {
- print "getVersion()."&reviewid=".$r['reviewID']."\" class=\"btn btn-mini\">".getMLText("add_review")."";
+ print "".$this->html_link('ReviewDocument', array('documentid'=>$documentid, 'version'=>$latestContent->getVersion(), 'reviewid'=>$r['reviewID']), array('class'=>'btn btn-mini'), getMLText("add_review"), false, true)."";
}else if (($updateUser==$user)&&(($r["status"]==1)||($r["status"]==-1))&&(!$document->hasExpired())){
- print "getVersion()."&reviewid=".$r['reviewID']."\" class=\"btn btn-mini\">".getMLText("edit")."";
+ print "".$this->html_link('ReviewDocument', array('documentid'=>$documentid, 'version'=>$latestContent->getVersion(), 'reviewid'=>$r['reviewID']), array('class'=>'btn btn-mini'), getMLText("edit"), false, true)."";
}
}
@@ -755,9 +755,9 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
if($accessop->mayApprove($document)) {
if ($is_approver && $a['status'] == 0 /*$status["status"]==S_DRAFT_APP*/) {
- print "getVersion()."&approveid=".$a['approveID']."\">".getMLText("add_approval")."";
+ print "".$this->html_link('ApproveDocument', array('documentid'=>$documentid, 'version'=>$latestContent->getVersion(), 'approveid'=>$a['approveID']), array('class'=>'btn btn-mini'), getMLText("add_approval"), false, true)."";
}else if (($updateUser==$user)&&(($a["status"]==1)||($a["status"]==-1))&&(!$document->hasExpired())){
- print "getVersion()."&approveid=".$a['approveID']."\">".getMLText("edit")."";
+ print "".$this->html_link('ApproveDocument', array('documentid'=>$documentid, 'version'=>$latestContent->getVersion(), 'approveid'=>$a['approveID']), array('class'=>'btn btn-mini'), getMLText("edit"), false, true)."";
}
}
@@ -1040,9 +1040,9 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
if($accessop->mayReceipt($document)) {
if ($is_recipient && $r["status"]==0) {
- print "getVersion()."&receiptid=".$r['receiptID']."\" class=\"btn btn-mini\">".getMLText("add_receipt")."";
+ print "".$this->html_link('ReceiptDocument', array('documentid'=>$documentid, 'version'=>$latestContent->getVersion(), 'receiptid'=>$r['receiptID']), array('class'=>'btn btn-mini'), getMLText("add_receipt"), false, true)."";
}else if (($updateUser==$user)&&(($r["status"]==1)||($r["status"]==-1))&&(!$document->hasExpired())){
- print "getVersion()."&receiptid=".$r['receiptID']."\" class=\"btn btn-mini\">".getMLText("edit")."";
+ print "".$this->html_link('ReceiptDocument', array('documentid'=>$documentid, 'version'=>$latestContent->getVersion(), 'receiptid'=>$r['receiptID']), array('class'=>'btn btn-mini'), getMLText("edit"), false, true)."";
}
}
@@ -1150,9 +1150,9 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
if($accessop->mayRevise($document)) {
if ($is_recipient && $r["status"]==0) {
- print "getVersion()."&revisionid=".$r['revisionID']."\" class=\"btn btn-mini\">".getMLText("add_revision")."";
+ print "".$this->html_link('ReviseDocument', array('documentid'=>$documentid, 'version'=>$latestContent->getVersion(), 'revisionid'=>$r['revisionID']), array('class'=>'btn btn-mini'), getMLText("add_revision"), false, true)."";
} elseif (($updateUser==$user)&&(($r["status"]==1)||($r["status"]==-1))&&(!$document->hasExpired())){
- print "getVersion()."&revisionid=".$r['revisionID']."\" class=\"btn btn-mini\">".getMLText("edit")."";
+ print "".$this->html_link('ReviseDocument', array('documentid'=>$documentid, 'version'=>$latestContent->getVersion(), 'revisionid'=>$r['revisionID']), array('class'=>'btn btn-mini'), getMLText("edit"), false, true)."";
}
}
@@ -1261,15 +1261,15 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
* user if enableVersionDeletion is on
*/
if($accessop->mayRemoveVersion($document)) {
- print "getVersion()."\">".getMLText("rm_version")."";
+ print "".$this->html_link('RemoveVersion', array('documentid'=>$documentid, 'version'=>$version->getVersion()), array(), "".getMLText("rm_version"), false, true)."";
}
if($accessop->mayEditComment($document)) {
- print "getID()."&version=".$version->getVersion()."\">".getMLText("edit_comment")."";
+ print "".$this->html_link('EditComment', array('documentid'=>$documentid, 'version'=>$version->getVersion()), array(), "".getMLText("edit_comment"), false, true)."";
}
if($accessop->mayEditAttributes($document)) {
- print "getID()."&version=".$latestContent->getVersion()."\">".getMLText("edit_attributes")."";
+ print "".$this->html_link('EditAttributes', array('documentid'=>$documentid, 'version'=>$version->getVersion()), array(), "".getMLText("edit_attributes"), false, true)."";
}
- print "".getMLText("details")."";
+ print "".$this->html_link('DocumentVersionDetail', array('documentid'=>$documentid, 'version'=>$version->getVersion()), array(), "".getMLText("details"), false, true)."";
print "";
print "\n\n";
}
@@ -1351,7 +1351,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
else printMLText("no_attached_files");
if ($document->getAccessMode($user) >= M_READWRITE){
- print "\n";
+ print "- ".$this->html_link('AddFile', array('documentid'=>$documentid), array('class'=>'btn'), getMLText("add"), false, true)."
\n";
}
$this->contentContainerEnd();
?>