diff --git a/views/bootstrap/class.ApprovalSummary.php b/views/bootstrap/class.ApprovalSummary.php
index f3f0d809c..bff1f59dc 100644
--- a/views/bootstrap/class.ApprovalSummary.php
+++ b/views/bootstrap/class.ApprovalSummary.php
@@ -36,6 +36,13 @@ require_once("SeedDMS/Preview.php");
*/
class SeedDMS_View_ApprovalSummary extends SeedDMS_Bootstrap_Style {
+ function js() { /* {{{ */
+ header('Content-Type: application/javascript; charset=UTF-8');
+ parent::jsTranslations(array('cancel', 'splash_move_document', 'confirm_move_document', 'move_document', 'confirm_transfer_link_document', 'transfer_content', 'link_document', 'splash_move_folder', 'confirm_move_folder', 'move_folder'));
+
+ $this->printDeleteDocumentButtonJs();
+ } /* }}} */
+
function show() { /* {{{ */
$dms = $this->params['dms'];
$user = $this->params['user'];
@@ -46,6 +53,8 @@ class SeedDMS_View_ApprovalSummary extends SeedDMS_Bootstrap_Style {
$previewer = new SeedDMS_Preview_Previewer($cachedir, $previewwidth, $timeout, $xsendfile);
+ $this->htmlAddHeader(''."\n", 'js');
+
$this->htmlStartPage(getMLText("approval_summary"));
$this->globalNavigation();
$this->contentStart();
@@ -84,10 +93,10 @@ class SeedDMS_View_ApprovalSummary extends SeedDMS_Bootstrap_Style {
}
$class = $st['status'] == 1 ? ' success' : ($st['status'] == -1 ? ' error' : ( $st['status'] == -2 ? ' info' : ''));
- print "
";
+ echo $this->documentListRowStart($document, $class);
echo $this->documentListRow($document, $previewer, true, $st['version']);
print "".getApprovalStatusText($st['status'])." ".$st["date"]." ". htmlspecialchars($moduser->getFullName()) ." | ";
- print "
\n";
+ echo $this->documentListRowEnd($document);
}
if ($st["status"]!=-2) {
$iRev[] = $st["documentID"];
@@ -126,10 +135,10 @@ class SeedDMS_View_ApprovalSummary extends SeedDMS_Bootstrap_Style {
}
$class = $st['status'] == 1 ? ' success' : ($st['status'] == -1 ? ' error' : ( $st['status'] == -2 ? ' info' : ''));
- print "";
+ echo $this->documentListRowStart($document, $class);
echo $this->documentListRow($document, $previewer, true, $st['version']);
print "".getApprovalStatusText($st["status"])." ".$st["date"]." ". htmlspecialchars($moduser->getFullName()) ." | ";
- print "
\n";
+ echo $this->documentListRowEnd($document);
}
}
if (!$printheader) {
diff --git a/views/bootstrap/class.ReviewSummary.php b/views/bootstrap/class.ReviewSummary.php
index 56a94973c..19e23496b 100644
--- a/views/bootstrap/class.ReviewSummary.php
+++ b/views/bootstrap/class.ReviewSummary.php
@@ -36,6 +36,13 @@ require_once("SeedDMS/Preview.php");
*/
class SeedDMS_View_ReviewSummary extends SeedDMS_Bootstrap_Style {
+ function js() { /* {{{ */
+ header('Content-Type: application/javascript; charset=UTF-8');
+ parent::jsTranslations(array('cancel', 'splash_move_document', 'confirm_move_document', 'move_document', 'confirm_transfer_link_document', 'transfer_content', 'link_document', 'splash_move_folder', 'confirm_move_folder', 'move_folder'));
+
+ $this->printDeleteDocumentButtonJs();
+ } /* }}} */
+
function show() { /* {{{ */
$dms = $this->params['dms'];
$user = $this->params['user'];
@@ -46,6 +53,8 @@ class SeedDMS_View_ReviewSummary extends SeedDMS_Bootstrap_Style {
$previewer = new SeedDMS_Preview_Previewer($cachedir, $previewwidth, $timeout, $xsendfile);
+ $this->htmlAddHeader(''."\n", 'js');
+
$this->htmlStartPage(getMLText("my_documents"));
$this->globalNavigation();
$this->contentStart();
@@ -87,10 +96,10 @@ class SeedDMS_View_ReviewSummary extends SeedDMS_Bootstrap_Style {
}
$class = $st['status'] == 1 ? ' success' : ($st['status'] == -1 ? ' error' : ( $st['status'] == -2 ? ' info' : ''));
- print "";
+ echo $this->documentListRowStart($document, $class);
echo $this->documentListRow($document, $previewer, true, $st['version']);
print "".getReviewStatusText($st['status'])." ".$st["date"]." ". htmlspecialchars($moduser->getFullName()) ." | ";
- print "
\n";
+ echo $this->documentListRowEnd($document);
}
if ($st["status"]!=-2) {
$iRev[] = $st["documentID"];
@@ -130,7 +139,8 @@ class SeedDMS_View_ReviewSummary extends SeedDMS_Bootstrap_Style {
}
$class = $st['status'] == 1 ? ' success' : ($st['status'] == -1 ? ' error' : ( $st['status'] == -2 ? ' info' : ''));
- print "";
+// print "
";
+ echo $this->documentListRowStart($document, $class);
echo $this->documentListRow($document, $previewer, true, $st['version']);
print "".getReviewStatusText($st['status'])." ".$st["date"]." ". htmlspecialchars($moduser->getFullName()) ." | ";
print "
\n";