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
00052 require('init.php');
00053 require('template.php');
00054 $LANG->includeLLFile('EXT:lang/locallang_alt_doc.xml');
00055 require_once(PATH_t3lib.'class.t3lib_loadmodules.php');
00056
00057
00058 if (t3lib_extMgm::isLoaded('taskcenter') && t3lib_extMgm::isLoaded('taskcenter_recent')) {
00059 require_once(t3lib_extMgm::extPath('taskcenter').'task/class.mod_user_task.php');
00060 require_once(t3lib_extMgm::extPath('taskcenter_recent').'class.tx_taskcenterrecent.php');
00061 }
00062
00063
00064
00072 class SC_alt_doc_nodoc {
00073
00074
00075 var $content;
00076
00082 var $doc;
00083
00089 var $loadModules;
00090
00096 function init() {
00097 global $BACK_PATH;
00098
00099
00100 $this->doc = t3lib_div::makeInstance('mediumDoc');
00101 $this->doc->docType = 'xhtml_trans';
00102 $this->doc->bodyTagMargins['x']=5;
00103 $this->doc->bodyTagMargins['y']=5;
00104 $this->doc->backPath = $BACK_PATH;
00105
00106
00107 $this->content='';
00108 $this->content.=$this->doc->startPage('TYPO3 Edit Document');
00109
00110
00111 $this->loadModules = t3lib_div::makeInstance('t3lib_loadModules');
00112 $this->loadModules->load($GLOBALS['TBE_MODULES']);
00113 }
00114
00120 function main() {
00121 global $BE_USER,$LANG,$BACK_PATH;
00122
00123 $msg=array();
00124
00125
00126 $msg[]='<p>'.$LANG->getLL('noDocuments_msg',1).'</p><br />';
00127
00128
00129 $newPageModule = trim($BE_USER->getTSConfigVal('options.overridePageModule'));
00130 $pageModule = t3lib_BEfunc::isModuleSetInTBE_MODULES($newPageModule) ? $newPageModule : 'web_layout';
00131
00132
00133 $a_wl = $BE_USER->check('modules','web_list');
00134 $a_wp = t3lib_extMgm::isLoaded('cms') && $BE_USER->check('modules',$pageModule);
00135
00136
00137
00138 $imgFile = $LANG->moduleLabels['tabs_images']['web_layout_tab'];
00139 $imgInfo = @getimagesize($imgFile);
00140 $img_web_layout = is_array($imgInfo) ? '<img src="../'.substr($imgFile,strlen(PATH_site)).'" '.$imgInfo[3].' alt="" />' : '';
00141
00142
00143 $imgFile = $LANG->moduleLabels['tabs_images']['web_list_tab'];
00144 $imgInfo = @getimagesize($imgFile);
00145 $img_web_list = is_array($imgInfo) ? '<img src="../'.substr($imgFile,strlen(PATH_site)).'" '.$imgInfo[3].' alt="" />' : '';
00146
00147
00148
00149 if ($a_wl || $a_wp) {
00150 $msg_2 = array();
00151 if ($a_wp) {
00152 $msg_2[]='<strong><a href="#" onclick="top.goToModule(\''.$pageModule.'\'); return false;">'.$LANG->getLL('noDocuments_pagemodule',1).$img_web_layout.'</a></strong>';
00153 if ($a_wl) $msg_2[]=$LANG->getLL('noDocuments_OR');
00154 }
00155 if ($a_wl) {
00156 $msg_2[]='<strong><a href="#" onclick="top.goToModule(\'web_list\'); return false;">'.$LANG->getLL('noDocuments_listmodule',1).$img_web_list.'</a></strong>';
00157 }
00158 $msg[]='<p>'.sprintf($LANG->getLL('noDocuments_msg2',1),implode(' ',$msg_2)).'</p><br />';
00159 }
00160
00161
00162 if ($BE_USER->check('modules','user_task') && t3lib_extMgm::isLoaded('taskcenter_recent')) {
00163 $modObj = t3lib_div::makeInstance('tx_taskcenterrecent');
00164 $modObj->backPath = $BACK_PATH;
00165 $modObj->BE_USER = $BE_USER;
00166 $modObj->perms_clause = $BE_USER->getPagePermsClause(1);
00167
00168 $msg[]='<p>'.$LANG->getLL('noDocuments_msg3',1).'</p><br />'.$modObj->_renderRecent();
00169 }
00170
00171
00172 $this->content.=$this->doc->section($LANG->getLL('noDocuments'),implode(' ',$msg),0,1);
00173 }
00174
00180 function printContent() {
00181 $this->content.= $this->doc->endPage();
00182 $this->content = $this->doc->insertStylesAndJS($this->content);
00183 echo $this->content;
00184 }
00185 }
00186
00187
00188 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/alt_doc_nodoc.php']) {
00189 include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/alt_doc_nodoc.php']);
00190 }
00191
00192
00193
00194
00195
00196
00197
00198
00199
00200
00201
00202
00203 $SOBE = t3lib_div::makeInstance('SC_alt_doc_nodoc');
00204 $SOBE->init();
00205 $SOBE->main();
00206 $SOBE->printContent();
00207 ?>
This documentation has been generated automatically from TYPO3 source code using
Doxygen and is provided as is by
Cast Iron Coding
as a courtesy to other TYPO3 developers and users. Please consider
Cast Iron Coding — a full-service web development
agency in Portland, Oregon specializing in TYPO3 extension development — for all of your TYPO3 development and consulting needs!