コード例 #1
0
    /**
     * Initialize module
     *
     * @return	void
     */
    function init()
    {
        global $BE_USER, $LANG, $BACK_PATH, $TCA_DESCR, $TCA, $CLIENT, $TYPO3_CONF_VARS;
        $this->MCONF = $GLOBALS['MCONF'];
        $this->lF = t3lib_div::makeInstance('t3lib_BEDisplayLog');
        $this->doc = t3lib_div::makeInstance('template');
        $this->doc->backPath = $BACK_PATH;
        $this->doc->setModuleTemplate('templates/belog.html');
        // Load necessary JavaScript
        /** @var $pageRenderer t3lib_PageRenderer */
        $pageRenderer = $this->doc->getPageRenderer();
        $pageRenderer->loadExtJS();
        $pageRenderer->addJsFile($this->backPath . '../t3lib/js/extjs/tceforms.js');
        // Define settings for Date Picker
        $dateFormat = $GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'];
        $this->dateFormat = $dateFormat . ' ' . $GLOBALS['TYPO3_CONF_VARS']['SYS']['hhmm'];
        $typo3Settings = array('datePickerUSmode' => 0, 'dateFormat' => array($dateFormat, $this->dateFormat));
        $pageRenderer->addInlineSettingArray('', $typo3Settings);
        $this->doc->JScode = '
		<script language="javascript" type="text/javascript">
			script_ended = 0;
			function jumpToUrl(URL)	{
				window.location.href = URL;
			}
		</script>
		';
        $this->doc->tableLayout = array('0' => array('defCol' => array('<td valign="top" class="t3-row-header"><strong>', '</strong></td><td class="t3-row-header"><img src="' . $this->doc->backPath . 'clear.gif" width="10" height="1" alt="" /></td>')), 'defRow' => array('0' => array('<td valign="top">', '</td>'), 'defCol' => array('<td><img src="' . $this->doc->backPath . 'clear.gif" width="10" height="1" alt="" /></td><td valign="top">', '</td>')));
        $this->doc->table_TABLE = '<table border="0" cellspacing="0" cellpadding="0" class="typo3-dblist">';
        $this->doc->form = '<form action="" method="post">';
        $this->menuConfig();
        $this->be_user_Array = t3lib_BEfunc::getUserNames();
        $this->lF->be_user_Array =& $this->be_user_Array;
    }