\n";
foreach($menuitems as $menuitem) {
- $content .= " - \n";
+ $content .= "
\n";
}
@@ -707,6 +714,18 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
echo $content;
} /* }}} */
+ protected function showPaneHeader($name, $title, $isactive) { /* {{{ */
+ echo '- '.$title.'
'."\n";
+ } /* }}} */
+
+ protected function showStartPaneContent($name, $isactive) { /* {{{ */
+ echo '';
+ } /* }}} */
+
+ protected function showEndPaneContent($name, $currentab) { /* {{{ */
+ echo '
';
+ } /* }}} */
+
private function folderNavigationBar($folder) { /* {{{ */
$dms = $this->params['dms'];
$accessobject = $this->params['accessobject'];
@@ -1218,6 +1237,9 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
(!empty($value['cols']) ? ' rows="'.$value['cols'].'"' : '').
(!empty($value['required']) ? ' required' : '').">".(!empty($value['value']) ? $value['value'] : '')."";
break;
+ case 'plain':
+ echo $value['value'];
+ break;
case 'input':
default:
switch($value['type']) {
@@ -1360,6 +1382,26 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
}
} /* }}} */
+ /**
+ * Get attributes for a button opening a modal box
+ *
+ * @param array $config contains elements
+ * target: id of modal box
+ * remote: URL of data to be loaded into box
+ * @return string
+ */
+ function getModalBoxLinkAttributes($config) { /* {{{ */
+ $attrs = array();
+ $attrs[] = array('data-target', '#'.$config['target']);
+ if(isset($config['remote']))
+ $attrs[] = array('href', $config['remote']);
+ $attrs[] = array('data-toggle', 'modal');
+ $attrs[] = array('role', 'button');
+ if(isset($config['class']))
+ $attrs[] = array('class', $config['class']);
+ return $attrs;
+ } /* }}} */
+
/**
* Get html for button opening a modal box
*
@@ -1372,11 +1414,17 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
function getModalBoxLink($config) { /* {{{ */
$content = '';
$content .= "$attrval)
$content .= ' '.$attrname.'="'.$attrval.'"';
}
- $content .= ">".$config['title']."…\n";
+ $content .= ">".$config['title']."\n";
return $content;
} /* }}} */
@@ -1391,7 +1439,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
*/
function getModalBox($config) { /* {{{ */
$content = '
-
+
\n";
if(!$skiptree)
@@ -1630,7 +1678,7 @@ function folderSelected(id, name) {
array(
'target' => 'folderChooser'.$formid,
'remote' => "../out/out.FolderChooser.php?form=".$formid."&mode=".$accessMode."&exclude=".$exclude,
- 'title' => getMLText('folder')
+ 'title' => getMLText('folder').'…'
));
}
$content .= "
\n";
@@ -1702,7 +1750,7 @@ $(document).ready(function() {
array(
'target' => 'keywordChooser',
'remote' => "../out/out.KeywordChooser.php?target=".$formName,
- 'title' => getMLText('keywords')
+ 'title' => getMLText('keywords').'…'
));
$content .= '
@@ -1834,8 +1882,8 @@ $(document).ready(function() {
case SeedDMS_Core_AttributeDefinition::type_date:
$objvalue = $attribute ? (is_object($attribute) ? $attribute->getValue() : $attribute) : '';
$dateformat = getConvertDateFormat($this->params['settings']->_dateformat);
- $content .= '
-
+ $content .= '
+
';
break;
@@ -1953,7 +2001,7 @@ $(document).ready(function() {
array(
'target' => 'dropfolderChooser',
'remote' => "../out/out.DropFolderChooser.php?form=".$formName."&dropfolderfile=".urlencode($dropfolderfile)."&showfolders=".$showfolders,
- 'title' => ($showfolders ? getMLText("choose_target_folder"): getMLText("choose_target_file"))
+ 'title' => ($showfolders ? getMLText("choose_target_folder"): getMLText("choose_target_file")).'…'
));
$content .= "\n";
$content .= $this->getModalBox(
@@ -2980,7 +3028,7 @@ $('body').on('click', '[id^=\"table-row-folder\"] td:nth-child(2)', function(ev)
$content .= "
getMimeIcon($latestContent->getFileType())."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">";
$content .= "";
- $content .= "";
+ $content .= " | ";
if($onepage)
$content .= "".htmlspecialchars($document->getName()) . "";
else
@@ -3021,6 +3069,12 @@ $('body').on('click', '[id^=\"table-row-folder\"] td:nth-child(2)', function(ev)
}
}
}
+
+ if($categories = $document->getCategories()) {
+ $content .= " ";
+ foreach($categories as $category)
+ $content .= "".$category->getName()." ";
+ }
if(!empty($extracontent['bottom_title']))
$content .= $extracontent['bottom_title'];
$content .= " | \n";
@@ -3168,9 +3222,9 @@ $('body').on('click', '[id^=\"table-row-folder\"] td:nth-child(2)', function(ev)
$content .= $this->folderListRowStart($subFolder);
$content .= "getID()."&showtree=".$showtree."\"> getMimeIcon(".folder")."\" width=\"24\" height=\"24\" border=0> | \n";
if($onepage)
- $content .= "" . "getId()."\">".htmlspecialchars($subFolder->getName())."";
+ $content .= " | " . "getId()."\">".htmlspecialchars($subFolder->getName())."";
else
- $content .= " | getID()."&showtree=".$showtree."\">" . htmlspecialchars($subFolder->getName()) . "";
+ $content .= " | getID()."&showtree=".$showtree."\">" . htmlspecialchars($subFolder->getName()) . "";
if(isset($extracontent['below_title']))
$content .= $extracontent['below_title'];
$content .= " ".getMLText('owner').": ".htmlspecialchars($owner->getFullName()).", ".getMLText('creation_date').": ".date('Y-m-d', $subFolder->getDate())."";
diff --git a/views/bootstrap/class.Calendar.php b/views/bootstrap/class.Calendar.php
index 580b64f8f..5b701cd66 100644
--- a/views/bootstrap/class.Calendar.php
+++ b/views/bootstrap/class.Calendar.php
@@ -65,13 +65,13 @@ class SeedDMS_View_Calendar extends SeedDMS_Theme_Style {
if($event) {
// print_r($event);
$this->contentHeading(getMLText('edit_event'));
- $this->contentContainerStart();
?>
contentContainerEnd();
$this->contentHeading(getMLText('rm_event'));
$this->contentContainerStart();
?>
diff --git a/views/bootstrap/class.Categories.php b/views/bootstrap/class.Categories.php
index 3931cfd80..e3711fb53 100644
--- a/views/bootstrap/class.Categories.php
+++ b/views/bootstrap/class.Categories.php
@@ -64,7 +64,7 @@ $(document).ready( function() {
if($selcat) {
$this->contentHeading(getMLText("category_info"));
$c = $selcat->countDocumentsByCategory();
- echo "\n";
+ echo "\n";
echo "| ".getMLText('document_count')." | ".($c)." | \n";
echo " ";
@@ -115,6 +115,7 @@ $(document).ready( function() {
contentContainerStart();
$this->formField(
getMLText("name"),
array(
@@ -124,6 +125,7 @@ $(document).ready( function() {
'value'=>($category ? htmlspecialchars($category->getName()) : '')
)
);
+ $this->contentContainerEnd();
$this->formSubmit(" ".getMLText('save'));
?>
@@ -143,8 +145,6 @@ $(document).ready( function() {
$categories = $this->params['categories'];
$selcat = $this->params['selcategory'];
- $this->htmlAddHeader(''."\n", 'js');
-
$this->htmlStartPage(getMLText("admin_tools"));
$this->globalNavigation();
$this->contentStart();
@@ -155,26 +155,33 @@ $(document).ready( function() {
$this->columnStart(6);
?>
getID()."\"" : "") ?>>
getID()."\"" : "") ?>>
columnEnd();
$this->columnStart(6);
- $this->contentContainerStart();
?>
getID()."\"" : "") ?>>
contentContainerEnd();
$this->columnEnd();
$this->rowEnd();
diff --git a/views/bootstrap/class.Charts.php b/views/bootstrap/class.Charts.php
index 282b8c05f..e7f5ee535 100644
--- a/views/bootstrap/class.Charts.php
+++ b/views/bootstrap/class.Charts.php
@@ -225,7 +225,7 @@ $(document).ready( function() {
contentContainerEnd();
- echo "";
+ echo "";
echo "";
echo "| ".getMLText('chart_'.$type.'_title')." | ".getMLText('total')." | ";
if(in_array($type, array('docspermonth', 'docsaccumulated')))
diff --git a/views/bootstrap/class.CheckInDocument.php b/views/bootstrap/class.CheckInDocument.php
index b14b43701..904596c8b 100644
--- a/views/bootstrap/class.CheckInDocument.php
+++ b/views/bootstrap/class.CheckInDocument.php
@@ -14,7 +14,7 @@
/**
* Include parent class
*/
-require_once("class.Bootstrap.php");
+//require_once("class.Bootstrap.php");
/**
* Class which outputs the html page for Document view
@@ -25,7 +25,7 @@ require_once("class.Bootstrap.php");
* @copyright Copyright (C) 2015 Uwe Steinmann
* @version Release: @package_version@
*/
-class SeedDMS_View_CheckInDocument extends SeedDMS_Bootstrap_Style {
+class SeedDMS_View_CheckInDocument extends SeedDMS_Theme_Style {
function js() { /* {{{ */
$strictformcheck = $this->params['strictformcheck'];
diff --git a/views/bootstrap/class.Clipboard.php b/views/bootstrap/class.Clipboard.php
index 1bd9055a9..063a34808 100644
--- a/views/bootstrap/class.Clipboard.php
+++ b/views/bootstrap/class.Clipboard.php
@@ -119,9 +119,12 @@ class SeedDMS_View_Clipboard extends SeedDMS_Theme_Style {
$content .= $this->folderListRowStart($folder);
$content .= "getID()."&showtree=".showtree()."\"> getMimeIcon(".folder")."\" width=\"24\" height=\"24\" border=0> | \n";
$content .= "getID()."&showtree=".showtree()."\">" . htmlspecialchars($folder->getName()) . "";
+ /*
if($comment) {
$content .= " ".htmlspecialchars($comment)."";
}
+ */
+ $content .= $this->getListRowPath($folder);
$content .= " | \n";
$content .= "\n";
$content .= "";
@@ -165,9 +168,12 @@ class SeedDMS_View_Clipboard extends SeedDMS_Theme_Style {
$content .= " | getMimeIcon($latestContent->getFileType())."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\"> | ";
$content .= "getID()."&showtree=".showtree()."\">" . htmlspecialchars($document->getName()) . "";
+ /*
if($comment) {
$content .= " ".htmlspecialchars($comment)."";
}
+ */
+ $content .= $this->getListRowPath($document);
$content .= " | \n";
$content .= "\n";
$content .= "";
@@ -233,7 +239,7 @@ class SeedDMS_View_Clipboard extends SeedDMS_Theme_Style {
* actually available
*/
if($foldercount || $doccount) {
- $content = "".$content;
+ $content = "".$content;
$content .= " ";
} else {
}
diff --git a/views/bootstrap/class.DefaultKeywords.php b/views/bootstrap/class.DefaultKeywords.php
index dcd12592f..79cbabcbd 100644
--- a/views/bootstrap/class.DefaultKeywords.php
+++ b/views/bootstrap/class.DefaultKeywords.php
@@ -120,13 +120,13 @@ $(document).ready( function() {
function actionmenu() { /* {{{ */
$dms = $this->params['dms'];
$user = $this->params['user'];
- $selcategoryid = $this->params['selcategoryid'];
+ $selcategory = $this->params['selcategory'];
- if($selcategoryid && $selcategoryid > 0) {
+ if($selcategory && $selcategory->getId() > 0) {
?>
@@ -137,20 +137,20 @@ $(document).ready( function() {
function form() { /* {{{ */
$dms = $this->params['dms'];
$user = $this->params['user'];
- $category = $dms->getKeywordCategory($this->params['selcategoryid']);
+ $category = $this->params['selcategory'];
$this->showKeywordForm($category, $user);
} /* }}} */
function showKeywordForm($category, $user) { /* {{{ */
if(!$category) {
- $this->contentContainerStart();
?>
contentContainerEnd();
} else {
- $this->contentContainerStart();
$owner = $category->getOwner();
if ((!$user->isAdmin()) && ($owner->getID() != $user->getID())) return;
?>
contentContainerEnd();
$this->contentHeading(getMLText("default_keywords"));
- $this->contentContainerStart();
+// $this->contentContainerStart();
?>
getKeywordLists();
@@ -198,13 +199,13 @@ $(document).ready( function() {
else
foreach ($lists as $list) {
?>
-
@@ -224,14 +225,14 @@ $(document).ready( function() {
-
- ">
+
+
contentContainerEnd();
+// $this->contentContainerEnd();
}
} /* }}} */
@@ -239,7 +240,7 @@ $(document).ready( function() {
$dms = $this->params['dms'];
$user = $this->params['user'];
$categories = $this->params['categories'];
- $selcategoryid = $this->params['selcategoryid'];
+ $selcategory = $this->params['selcategory'];
$this->htmlStartPage(getMLText("admin_tools"));
$this->globalNavigation();
@@ -251,31 +252,33 @@ $(document).ready( function() {
$this->columnStart(4);
?>
- >
+ getId()."\"" : "") ?>>
columnEnd();
$this->columnStart(8);
?>
- >
+ getId()."\"" : "") ?>>
columnEnd();
diff --git a/views/bootstrap/class.DocumentAccess.php b/views/bootstrap/class.DocumentAccess.php
index acccb932d..994017c7b 100644
--- a/views/bootstrap/class.DocumentAccess.php
+++ b/views/bootstrap/class.DocumentAccess.php
@@ -35,7 +35,7 @@ class SeedDMS_View_DocumentAccess extends SeedDMS_Theme_Style {
} /* }}} */
function getAccessModeSelection($defMode) { /* {{{ */
- $content = " | |