From 7fffe3867df7328308432dcb89078cd35ecaf153 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Sun, 14 Mar 2021 13:56:29 +0100 Subject: [PATCH 1/4] remove html code with formField() --- views/bootstrap/class.AttributeMgr.php | 78 +++++++++++++------------- 1 file changed, 40 insertions(+), 38 deletions(-) diff --git a/views/bootstrap/class.AttributeMgr.php b/views/bootstrap/class.AttributeMgr.php index 234317f62..28857d099 100644 --- a/views/bootstrap/class.AttributeMgr.php +++ b/views/bootstrap/class.AttributeMgr.php @@ -189,7 +189,7 @@ $(document).ready( function() { ($attrdef ? htmlspecialchars($attrdef->getName()) : '') ) ); -?> -
- -
- -
-
- - -
- -
- -
-
-formField( + getMLText("attrdef_type"), + array( + 'element'=>'select', + 'name'=>'type', + 'options'=>$options + ) + ); $this->formField( getMLText("attrdef_multiple"), array( From e9d606ce2791a830864412ea5b5281751aedd979 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Sun, 14 Mar 2021 13:57:21 +0100 Subject: [PATCH 2/4] add optgroup in formField() --- views/bootstrap/class.Bootstrap.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index f2bf74c1f..ff2cc853c 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -956,11 +956,15 @@ background-image: linear-gradient(to bottom, #882222, #111111);; echo ">"; if(isset($value['options']) && is_array($value['options'])) { foreach($value['options'] as $val) { + if(is_string($val)) { + echo ''; + } elseif(is_array($val)) { echo ''; + } } } echo ''; From 2cb2de2846375f91a1c38235e92d43862f35c0f3 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Sun, 14 Mar 2021 14:05:11 +0100 Subject: [PATCH 3/4] remove container --- views/bootstrap/class.UsrView.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/views/bootstrap/class.UsrView.php b/views/bootstrap/class.UsrView.php index 09c9ea48c..b566573ae 100644 --- a/views/bootstrap/class.UsrView.php +++ b/views/bootstrap/class.UsrView.php @@ -44,7 +44,6 @@ class SeedDMS_View_UsrView extends SeedDMS_Bootstrap_Style { $this->pageNavigation(getMLText("my_account"), "my_account"); $this->contentHeading(getMLText("users")); - $this->contentContainerStart(); echo "\n"; echo "\n\n"; @@ -76,7 +75,6 @@ class SeedDMS_View_UsrView extends SeedDMS_Bootstrap_Style { echo "
\n"; - $this->contentContainerEnd(); $this->contentEnd(); $this->htmlEndPage(); } /* }}} */ From 7c18872531e96be39ccd384b183ca8a7a913fcb8 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Sun, 14 Mar 2021 14:11:14 +0100 Subject: [PATCH 4/4] fix some php warning because of missing view variables --- out/out.ManageNotify.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/out/out.ManageNotify.php b/out/out.ManageNotify.php index 4ffc38452..5678023ba 100644 --- a/out/out.ManageNotify.php +++ b/out/out.ManageNotify.php @@ -35,6 +35,9 @@ if ($user->isGuest()) { } if($view) { + $view->setParam('showtree', showtree()); + $view->setParam('enableRecursiveCount', $settings->_enableRecursiveCount); + $view->setParam('maxRecursiveCount', $settings->_maxRecursiveCount); $view->setParam('cachedir', $settings->_cacheDir); $view->setParam('previewWidthList', $settings->_previewWidthList); $view->setParam('timeout', $settings->_cmdTimeout);