00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00031 class tx_taskcentermodules extends mod_user_task {
00032
00036 function overview_main() {
00037
00038 if (t3lib_extMgm::isLoaded("plugin_mgm") && $this->accessMod("web_modules")) {
00039 $mC = $this->renderModulesList();
00040 if ($mC) {
00041 $icon = '<img src="'.$this->backPath.t3lib_extMgm::extRelPath("taskcenter_modules").'ext_icon.gif" width=18 height=16 class="absmiddle">';
00042 return $this->mkMenuConfig($icon." ".$this->headLink("tx_taskcentermodules",1),'',$mC);
00043 }
00044 }
00045 }
00046 function main() {
00047 global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$CLIENT,$TYPO3_CONF_VARS;
00048 }
00049
00050
00051
00052
00053
00054 function renderModulesList() {
00055 global $LANG;
00056
00057 $mList = $this->getModuleList();
00058 $modList = t3lib_BEfunc::getListOfBackendModules(explode(",",$mList),$this->perms_clause,$this->backPath);
00059
00060 $lines=array();
00061 if (is_array($modList["rows"])) {
00062 reset($modList["rows"]);
00063 while(list(,$pageRow)=each($modList["rows"])) {
00064 $path = t3lib_BEfunc::getRecordPath ($pageRow["uid"],$this->perms_clause,$this->BE_USER->uc["titleLen"]);
00065 $lines[]='<nobr>'.t3lib_iconworks::getIconImage("pages",$pageRow,$this->backPath,'hspace="2" align="top" title="'.htmlspecialchars($path)." - ".t3lib_BEfunc::titleAttribForPages($pageRow,"",0).'"').$this->recent_linkModulesModule($this->fixed_lgd($pageRow["title"]),$pageRow["uid"]).'</nobr><BR>';
00066 }
00067 }
00068 $out = implode("",$lines);
00069
00070 return $out;
00071 }
00072 function recent_linkModulesModule($str,$id) {
00073 $str='<a href="'.$this->backPath.t3lib_extMgm::extRelPath("plugin_mgm").'modules/index.php?id='.$id.'" onClick="this.blur();">'.$str.'</a>';
00074 return $str;
00075 }
00076 function getModuleList() {
00077 global $TCA;
00078 $lP=array();
00079 if (is_array($TCA["pages"]["columns"]["module"]["config"]["items"])) {
00080 reset($TCA["pages"]["columns"]["module"]["config"]["items"]);
00081 while(list(,$p)=each($TCA["pages"]["columns"]["module"]["config"]["items"])) {
00082 if (trim($p[1])) {
00083 $lP[]=trim($p[1]);
00084 }
00085 }
00086 }
00087 return implode(",",$lP);
00088 }
00089 }
00090
00091 if (defined("TYPO3_MODE") && $TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["ext/taskcenter_modules/class.tx_taskcentermodules.php"]) {
00092 include_once($TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["ext/taskcenter_modules/class.tx_taskcentermodules.php"]);
00093 }
00094
00095 ?>