diff --git a/views/bootstrap/class.Search.php b/views/bootstrap/class.Search.php
index 22d44a59e..9513f62ba 100644
--- a/views/bootstrap/class.Search.php
+++ b/views/bootstrap/class.Search.php
@@ -454,7 +454,7 @@ class SeedDMS_View_Search extends SeedDMS_Bootstrap_Style {
$this->pageList($pageNumber, $totalpages, "../out/out.Search.php", $urlparams);
// $this->contentContainerStart();
- $txt = $this->callHook('searchListHeader', $folder, $orderby);
+ $txt = $this->callHook('searchListHeader');
if(is_string($txt))
echo $txt;
else {
@@ -500,14 +500,16 @@ class SeedDMS_View_Search extends SeedDMS_Bootstrap_Style {
print "
getMimeIcon($lc->getFileType())."\" title=\"".htmlspecialchars($lc->getMimeType())."\">";
}
print "";
- print "
getID()."\" draggable=\"true\" rel=\"folder_".$folder->getID()."\" class=\"folder table-row-folder\" formtoken=\"".createFormKey('movefolder')."\">";
print "getID()."\"> imgpath."folder.png\" width=\"24\" height=\"24\" border=0> | ";
print "getID()."\">";
+ print $folderName;
+ print "";
+ print " ".getMLText('in_folder').": /";
$path = $folder->getPath();
- print "/";
for ($i = 1; $i < count($path)-1; $i++) {
print htmlspecialchars($path[$i]->getName())."/";
}
- print $folderName;
- print "";
+ print "";
print " ".getMLText('owner').": ".htmlspecialchars($owner->getFullName()).", ".getMLText('creation_date').": ".date('Y-m-d', $folder->getDate())."";
if (in_array(3, $searchin)) $comment = $this->markQuery(htmlspecialchars($folder->getComment()));
else $comment = htmlspecialchars($folder->getComment());
@@ -601,7 +604,7 @@ class SeedDMS_View_Search extends SeedDMS_Bootstrap_Style {
}
print " | ";
print " | ";
- print "";
+ print " | ";
print "";
if($folder->getAccessMode($user) >= M_ALL) {
$this->printDeleteFolderButton($folder, 'splash_rm_folder');
diff --git a/views/bootstrap/class.Session.php b/views/bootstrap/class.Session.php
new file mode 100644
index 000000000..9146fc901
--- /dev/null
+++ b/views/bootstrap/class.Session.php
@@ -0,0 +1,69 @@
+
+ * @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 clipboard 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_Session extends SeedDMS_Bootstrap_Style {
+ /**
+ * Returns the html needed for the clipboard list in the menu
+ *
+ * This function renders the clipboard in a way suitable to be
+ * used as a menu
+ *
+ * @param array $clipboard clipboard containing two arrays for both
+ * documents and folders.
+ * @return string html code
+ */
+ public function menuSessions() { /* {{{ */
+ $dms = $this->params['dms'];
+ $user = $this->params['user'];
+
+ $sessionmgr = new SeedDMS_SessionMgr($dms->getDB());
+ $sessions = $sessionmgr->getLastAccessedSessions(date('Y-m-d H:i:s', time()-3600));
+
+ if ($user->isGuest() || count($sessions) == 0) {
+ return '';
+ }
+ $content = '';
+ $content .= " \n";
+ $content .= " - \n";
+ $content .= " ".getMLText('sessions')." (".count($sessions).") \n";
+ $content .= " \n";
+ $content .= "
\n";
+ $content .= " \n";
+ echo $content;
+ } /* }}} */
+
+}
diff --git a/views/bootstrap/class.SetExpires.php b/views/bootstrap/class.SetExpires.php
index bc7c4ac49..2908aedc2 100644
--- a/views/bootstrap/class.SetExpires.php
+++ b/views/bootstrap/class.SetExpires.php
@@ -31,6 +31,20 @@ require_once("class.Bootstrap.php");
*/
class SeedDMS_View_SetExpires extends SeedDMS_Bootstrap_Style {
+ function js() { /* {{{ */
+ header('Content-Type: application/javascript');
+?>
+$(document).ready( function() {
+ $('#presetexpdate').on('change', function(ev){
+ if($(this).val() == 'date')
+ $('#control_expdate').show();
+ else
+ $('#control_expdate').hide();
+ });
+});
+params['dms'];
$user = $this->params['user'];
@@ -53,15 +67,25 @@ class SeedDMS_View_SetExpires extends SeedDMS_Bootstrap_Style {
|