');
$.get(url, function(data) {
element.html(data);
@@ -487,7 +479,6 @@ function onAddClipboard(ev) { /* {{{ */
data: formData,
success: function(data){
status.setProgress(100);
-// console.log(data);
if(data.success) {
noty({
text: data.message,
diff --git a/views/bootstrap/class.BackupTools.php b/views/bootstrap/class.BackupTools.php
index 6187f0fba..e15a998d1 100644
--- a/views/bootstrap/class.BackupTools.php
+++ b/views/bootstrap/class.BackupTools.php
@@ -174,7 +174,7 @@ class SeedDMS_View_BackupTools extends SeedDMS_Bootstrap_Style {
$this->contentContainerEnd();
// files deletion //////////////////////////////////////////////////////////////
-
+ /*
$this->contentHeading(getMLText("files_deletion"));
$this->contentContainerStart();
print "
".getMLText("files_deletion_warning")."
\n";
@@ -185,6 +185,7 @@ class SeedDMS_View_BackupTools extends SeedDMS_Bootstrap_Style {
print "\n";
$this->contentContainerEnd();
+ */
$this->htmlEndPage();
} /* }}} */
diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php
index 85a17dcfb..41ca2dd9d 100644
--- a/views/bootstrap/class.Bootstrap.php
+++ b/views/bootstrap/class.Bootstrap.php
@@ -1295,11 +1295,11 @@ $('#acceptkeywords').click(function(ev) {
}
} /* }}} */
- function printDropFolderChooserHtml($formName, $dropfolderfile="") { /* {{{ */
+ function printDropFolderChooserHtml($formName, $dropfolderfile="", $showfolders=0) { /* {{{ */
print "
\n";
?>
@@ -1318,7 +1318,7 @@ $('#acceptkeywords').click(function(ev) {
/* Set up a callback which is called when a folder in the tree is selected */
modalDropfolderChooser = $('#dropfolderChooser');
@@ -1326,6 +1326,12 @@ function fileSelected(name) {
$('#dropfolderfile').val(name);
modalDropfolderChooser.modal('hide');
}
+
+function folderSelected(name) {
+ $('#dropfolderfile').val(name);
+ modalDropfolderChooser.modal('hide');
+}
+
function clearFilename() {
$('#dropfolderfile').val('');
}
@@ -1335,12 +1341,12 @@ $('#clearfilename').click(function(ev) {
printDropFolderChooserHtml($formName, $dropfolderfile);
+ function printDropFolderChooser($formName, $dropfolderfile="", $showfolders=0) { /* {{{ */
+ $this->printDropFolderChooserHtml($formName, $dropfolderfile, $showfolders);
?>
params['cachedir'];
$previewwidth = $this->params['previewWidthList'];
$timeout = $this->params['timeout'];
+ $showfolders = $this->params['showfolders'];
$previewer = new SeedDMS_Preview_Previewer($cachedir, $previewwidth, $timeout);
@@ -79,20 +84,25 @@ var targetName = document..dropfolderfile;
$finfo = finfo_open(FILEINFO_MIME_TYPE);
while (false !== ($entry = $d->read())) {
if($entry != '..' && $entry != '.') {
- if(!is_dir($entry)) {
+ if(!is_dir($dir.'/'.$entry)) {
$mimetype = finfo_file($finfo, $dir.'/'.$entry);
$previewer->createRawPreview($dir.'/'.$entry, 'dropfolder/', $mimetype);
echo "
";
if($previewer->hasRawPreview($dir.'/'.$entry, 'dropfolder/')) {
echo " ";
}
- echo " | ".$entry." | ".SeedDMS_Core_File::format_filesize(filesize($dir.'/'.$entry))." | ".date('Y-m-d H:i:s', filectime($dir.'/'.$entry))." |
\n";
+ echo "
".$entry." | ".SeedDMS_Core_File::format_filesize(filesize($dir.'/'.$entry))." | ".date('Y-m-d H:i:s', filectime($dir.'/'.$entry))." | \n";
+ } elseif($showfolders) {
+ echo "
";
+ echo " | ";
+ echo "".$entry." | | | ";
+ echo "
\n";
}
}
}
echo "\n";
echo "\n";
- echo ''."\n";
+ echo ''."\n";
}
}
diff --git a/views/bootstrap/class.ImportFS.php b/views/bootstrap/class.ImportFS.php
new file mode 100644
index 000000000..b14062b47
--- /dev/null
+++ b/views/bootstrap/class.ImportFS.php
@@ -0,0 +1,78 @@
+
+ * @copyright Copyright (C) 2002-2005 Markus Westphal,
+ * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli,
+ * 2010-2012 Uwe Steinmann
+ * @version Release: @package_version@
+ */
+
+/**
+ * Include parent class
+ */
+require_once("class.Bootstrap.php");
+
+/**
+ * Class which outputs the html page for ImportFS view
+ *
+ * @category DMS
+ * @package SeedDMS
+ * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann
+ * @copyright Copyright (C) 2002-2005 Markus Westphal,
+ * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli,
+ * 2010-2012 Uwe Steinmann
+ * @version Release: @package_version@
+ */
+class SeedDMS_View_ImportFS extends SeedDMS_Bootstrap_Style {
+
+ function js() { /* {{{ */
+ header('Content-Type: application/javascript');
+
+ $this->printFolderChooserJs("form1");
+ $this->printDropFolderChooserJs("form1", 1);
+ } /* }}} */
+
+ function show() { /* {{{ */
+ $dms = $this->params['dms'];
+ $user = $this->params['user'];
+ $dropfolderdir = $this->params['dropfolderdir'];
+
+ $this->htmlStartPage(getMLText("import_fs"));
+ $this->globalNavigation();
+ $this->contentStart();
+ $this->pageNavigation(getMLText("admin_tools"), "admin_tools");
+
+ $this->contentHeading(getMLText("import_fs"));
+ $this->contentContainerStart();
+
+ print "\n";
+
+ $this->contentContainerEnd();
+
+ $this->htmlEndPage();
+ } /* }}} */
+}
+
diff --git a/views/bootstrap/class.ObjectCheck.php b/views/bootstrap/class.ObjectCheck.php
index a312d972f..73a732e3c 100644
--- a/views/bootstrap/class.ObjectCheck.php
+++ b/views/bootstrap/class.ObjectCheck.php
@@ -96,7 +96,7 @@ class SeedDMS_View_ObjectCheck extends SeedDMS_Bootstrap_Style {
print "\n";
$this->needsrepair = true;
$lc = $document->getLatestContent();
- print "getID()."\"> getFileType())."\" title=\"".$lc->getMimeType()."\"> | ";
+ print "getID()."\"> getMimeIcon($lc->getFileType())."\" title=\"".$lc->getMimeType()."\"> | ";
print "getID()."\">/";
$folder = $document->getFolder();
$tmppath = $folder->getPath();
@@ -124,7 +124,7 @@ class SeedDMS_View_ObjectCheck extends SeedDMS_Bootstrap_Style {
$filepath = $dms->contentDir . $version->getPath();
if(!file_exists($filepath)) {
print "\n";
- print "getID()."\"> getFileType())."\" title=\"".$version->getMimeType()."\"> | ";
+ print "getID()."\"> getMimeIcon($version->getFileType())."\" title=\"".$version->getMimeType()."\"> | ";
print "getID()."\">/";
$folder = $document->getFolder();
$tmppath = $folder->getPath();
diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php
index c5ab56585..0a1b48de5 100644
--- a/views/bootstrap/class.ViewDocument.php
+++ b/views/bootstrap/class.ViewDocument.php
@@ -645,9 +645,9 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
}
else {
$reqName = htmlspecialchars($required->getFullName()." (".$required->getLogin().")");
+ if($required->getId() == $user->getId() && ($user->getId() != $owner->getId() || $enableownerrevapp == 1))
+ $is_reviewer = true;
}
- if($r["required"] == $user->getId() && ($user->getId() != $owner->getId() || $enableownerrevapp == 1))
- $is_reviewer = true;
break;
case 1: // Reviewer is a group.
$required = $dms->getGroup($r["required"]);
@@ -714,9 +714,9 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
}
else {
$reqName = htmlspecialchars($required->getFullName()." (".$required->getLogin().")");
+ if($required->getId() == $user->getId())
+ $is_approver = true;
}
- if($a["required"] == $user->getId())
- $is_approver = true;
break;
case 1: // Approver is a group.
$required = $dms->getGroup($a["required"]);
@@ -725,9 +725,9 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
}
else {
$reqName = "".htmlspecialchars($required->getName())."";
+ if($required->isMember($user) && ($user->getId() != $owner->getId() || $enableownerrevapp == 1))
+ $is_approver = true;
}
- if($required->isMember($user) && ($user->getId() != $owner->getId() || $enableownerrevapp == 1))
- $is_approver = true;
break;
}
print "\n";
| |