diff --git a/views/bootstrap/class.ExtensionMgr.php b/views/bootstrap/class.ExtensionMgr.php index f10bc58ce..c4cc0e784 100644 --- a/views/bootstrap/class.ExtensionMgr.php +++ b/views/bootstrap/class.ExtensionMgr.php @@ -63,6 +63,66 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Bootstrap_Style { params['dms']; + $user = $this->params['user']; + $extmgr = $this->params['extmgr']; + $extname = $this->params['extname']; + + echo "\n"; + print "\n\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + $list = $extmgr->getExtensionListByName($extname); + foreach($list as $re) { + $extmgr->checkExtension($re); + $checkmsgs = $extmgr->getErrorMsgs(); + $needsupdate = !isset($GLOBALS['EXT_CONF'][$re['name']]) || SeedDMS_Extension_Mgr::cmpVersion($re['version'], $GLOBALS['EXT_CONF'][$re['name']]['version']) > 0; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + } + echo "
".getMLText('name')."".getMLText('version')."".getMLText('author')."
".($re['icon-data'] ? ''.$re['name'].'' : '')."".$re['title']."
".$re['description'].""; + if($checkmsgs) + echo "
getImgPath("attention.gif")."\"> ".implode('
', $checkmsgs)."
"; + echo "
".$re['version']."
".$re['releasedate']."
".$re['author']['name']."
".$re['author']['company']."
"; + echo "
"; + if(!$checkmsgs && $extmgr->isWritableExtDir()) + echo "
".createHiddenFieldWithKey('extensionmgr')."
"; + echo "
"; + echo "
\n"; + } /* }}} */ + + function changelog() { /* {{{ */ + $dms = $this->params['dms']; + $user = $this->params['user']; + $extdir = $this->params['extdir']; + $extmgr = $this->params['extmgr']; + $extname = $this->params['extname']; + + if(isset($GLOBALS['EXT_CONF'][$extname])) { + $extconf = $GLOBALS['EXT_CONF'][$extname]; + if(!empty($extconf['changelog']) && file_exists($extdir."/".$extname."/".$extconf['changelog'])) { + echo '
'.file_get_contents($extdir."/".$extname."/".$extconf['changelog'])."
"; + } + } + } /* }}} */ + function show() { /* {{{ */ $dms = $this->params['dms']; $user = $this->params['user']; @@ -140,9 +200,6 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Bootstrap_Style { echo "\"".$extname."\""; echo ""; echo "".$extconf['title']; - if(!empty($extconf['changelog']) && file_exists($extdir."/".$extname."/".$extconf['changelog'])) { - echo $this->printPopupBox("", '
'.file_get_contents($extdir."/".$extname."/".$extconf['changelog'])."
", true); - } echo "
".$extconf['description'].""; if($errmsgs) echo "
getImgPath("attention.gif")."\"> ".implode('
', $errmsgs)."
"; @@ -153,6 +210,9 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Bootstrap_Style { echo "".$extconf['author']['name']."
".$extconf['author']['company'].""; echo ""; echo "
"; + if(!empty($extconf['changelog']) && file_exists($extdir."/".$extname."/".$extconf['changelog'])) { + echo "\n"; + } if($extconf['config']) echo ""; echo "
".createHiddenFieldWithKey('extensionmgr')."
"; @@ -196,7 +256,8 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Bootstrap_Style { } echo ">"; echo "".($re['icon-data'] ? ''.$re['name'].'' : '').""; - echo "".$re['title']."
".$re['description'].""; + echo "".$re['title']; + echo "
".$re['description'].""; if($checkmsgs) echo "
getImgPath("attention.gif")."\"> ".implode('
', $checkmsgs)."
"; echo ""; @@ -204,6 +265,7 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Bootstrap_Style { echo "".$re['author']['name']."
".$re['author']['company'].""; echo ""; echo "
"; + echo "\n"; if(!$checkmsgs && $extmgr->isWritableExtDir()) echo "
".createHiddenFieldWithKey('extensionmgr')."
"; echo "
"; @@ -224,7 +286,32 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Bootstrap_Style {
- + + + + contentEnd(); $this->htmlEndPage();