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(&$pObj) {
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 $content.=$pObj->doc->section($icon." ".$this->headLink("tx_taskcentermodules",1),$mC,1,1,0,1);
00043 }
00044 }
00045 return $content;
00046 }
00047 function main() {
00048 global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$CLIENT,$TYPO3_CONF_VARS;
00049 }
00050
00051
00052
00053
00054
00055 function renderModulesList() {
00056 global $LANG;
00057
00058 $mList = $this->getModuleList();
00059 $modList = t3lib_BEfunc::getListOfBackendModules(explode(",",$mList),$this->perms_clause,$this->backPath);
00060
00061 $lines=array();
00062 if (is_array($modList["rows"])) {
00063 reset($modList["rows"]);
00064 while(list(,$pageRow)=each($modList["rows"])) {
00065 $path = t3lib_BEfunc::getRecordPath ($pageRow["uid"],$this->perms_clause,$this->BE_USER->uc["titleLen"]);
00066 $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>';
00067 }
00068 }
00069 $out = implode("",$lines);
00070
00071 return $out;
00072 }
00073 function recent_linkModulesModule($str,$id) {
00074 $str='<a href="'.$this->backPath.t3lib_extMgm::extRelPath("plugin_mgm").'modules/index.php?id='.$id.'" target="list_frame" onClick="this.blur();">'.$str.'</a>';
00075 return $str;
00076 }
00077 function getModuleList() {
00078 global $TCA;
00079 $lP=array();
00080 if (is_array($TCA["pages"]["columns"]["module"]["config"]["items"])) {
00081 reset($TCA["pages"]["columns"]["module"]["config"]["items"]);
00082 while(list(,$p)=each($TCA["pages"]["columns"]["module"]["config"]["items"])) {
00083 if (trim($p[1])) {
00084 $lP[]=trim($p[1]);
00085 }
00086 }
00087 }
00088 return implode(",",$lP);
00089 }
00090 }
00091
00092 if (defined("TYPO3_MODE") && $TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["ext/taskcenter_modules/class.tx_taskcentermodules.php"]) {
00093 include_once($TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["ext/taskcenter_modules/class.tx_taskcentermodules.php"]);
00094 }
00095
00096 ?>