⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tbl_tt_content.php

📁 Typo3, 开源里边最强大的
💻 PHP
📖 第 1 页 / 共 3 页
字号:
<?php/****************************************************************  Copyright notice**  (c) 1999-2005 Kasper Skaarhoj (kasperYYYY@typo3.com)*  All rights reserved**  This script is part of the TYPO3 project. The TYPO3 project is*  free software; you can redistribute it and/or modify*  it under the terms of the GNU General Public License as published by*  the Free Software Foundation; either version 2 of the License, or*  (at your option) any later version.**  The GNU General Public License can be found at*  http://www.gnu.org/copyleft/gpl.html.*  A copy is found in the textfile GPL.txt and important notices to the license*  from the author is found in LICENSE.txt distributed with these scripts.***  This script is distributed in the hope that it will be useful,*  but WITHOUT ANY WARRANTY; without even the implied warranty of*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the*  GNU General Public License for more details.**  This copyright notice MUST APPEAR in all copies of the script!***************************************************************//** * Dynamic configuation of the tt_content table * This gets it's own file because it's so huge and central to typical TYPO3 use. * * $Id: tbl_tt_content.php 2063 2007-02-20 21:43:00Z mundaun $ * * @author	Kasper Skaarhoj <kasperYYYY@typo3.com> */$TCA['tt_content'] = Array (	'ctrl' => $TCA['tt_content']['ctrl'],	'interface' => Array (		'always_description' => 0,		'showRecordFieldList' => 'CType,header,header_link,bodytext,image,imagewidth,imageorient,media,records,colPos,starttime,endtime,fe_group'	),	'columns' => Array (		'CType' => Array (			'label' => 'LLL:EXT:lang/locallang_general.php:LGL.type',			'config' => Array (				'type' => 'select',				'items' => Array (					Array('LLL:EXT:cms/locallang_ttc.php:CType.I.0', 'header'),					Array('LLL:EXT:cms/locallang_ttc.php:CType.I.1', 'text'),					Array('LLL:EXT:cms/locallang_ttc.php:CType.I.2', 'textpic'),					Array('LLL:EXT:cms/locallang_ttc.php:CType.I.3', 'image'),					Array('LLL:EXT:cms/locallang_ttc.php:CType.I.4', 'bullets'),					Array('LLL:EXT:cms/locallang_ttc.php:CType.I.5', 'table'),					Array('LLL:EXT:cms/locallang_ttc.php:CType.I.6', 'uploads'),					Array('LLL:EXT:cms/locallang_ttc.php:CType.I.7', 'multimedia'),					Array('LLL:EXT:cms/locallang_ttc.php:CType.I.8', 'mailform'),					Array('LLL:EXT:cms/locallang_ttc.php:CType.I.9', 'search'),					Array('LLL:EXT:cms/locallang_ttc.php:CType.I.10', 'login'),					Array('LLL:EXT:cms/locallang_ttc.php:CType.I.11', 'splash'),					Array('LLL:EXT:cms/locallang_ttc.php:CType.I.12', 'menu'),					Array('LLL:EXT:cms/locallang_ttc.php:CType.I.13', 'shortcut'),					Array('LLL:EXT:cms/locallang_ttc.php:CType.I.14', 'list'),					Array('LLL:EXT:cms/locallang_ttc.php:CType.I.15', 'script'),					Array('LLL:EXT:cms/locallang_ttc.php:CType.I.16', 'div'),					Array('LLL:EXT:cms/locallang_ttc.php:CType.I.17', 'html')				),				'default' => 'text',				'authMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['explicitADmode'],				'authMode_enforce' => 'strict',			)		),		'hidden' => Array (			'exclude' => 1,			'label' => 'LLL:EXT:lang/locallang_general.php:LGL.hidden',			'config' => Array (				'type' => 'check'			)		),		'starttime' => Array (			'exclude' => 1,			'label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',			'config' => Array (				'type' => 'input',				'size' => '8',				'max' => '20',				'eval' => 'date',				'checkbox' => '0',				'default' => '0'			)		),		'endtime' => Array (			'exclude' => 1,			'label' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime',			'config' => Array (				'type' => 'input',				'size' => '8',				'max' => '20',				'eval' => 'date',				'checkbox' => '0',				'default' => '0',				'range' => Array (					'upper' => mktime(0,0,0,12,31,2020),				)			)		),		'fe_group' => Array (			'exclude' => 1,			'label' => 'LLL:EXT:lang/locallang_general.php:LGL.fe_group',			'config' => Array (				'type' => 'select',				'size' => 5,				'maxitems' => 20,				'items' => Array (					Array('LLL:EXT:lang/locallang_general.php:LGL.hide_at_login', -1),					Array('LLL:EXT:lang/locallang_general.php:LGL.any_login', -2),					Array('LLL:EXT:lang/locallang_general.php:LGL.usergroups', '--div--')				),				'exclusiveKeys' => '-1,-2',				'foreign_table' => 'fe_groups'			)		),		'sys_language_uid' => Array (			'exclude' => 1,			'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language',			'config' => Array (				'type' => 'select',				'foreign_table' => 'sys_language',				'foreign_table_where' => 'ORDER BY sys_language.title',				'items' => Array(					Array('LLL:EXT:lang/locallang_general.php:LGL.allLanguages',-1),					Array('LLL:EXT:lang/locallang_general.php:LGL.default_value',0)				)			)		),		'l18n_parent' => Array (			'displayCond' => 'FIELD:sys_language_uid:>:0',			'exclude' => 1,			'label' => 'LLL:EXT:lang/locallang_general.php:LGL.l18n_parent',			'config' => Array (				'type' => 'select',				'items' => Array (					Array('', 0),				),				'foreign_table' => 'tt_content',				'foreign_table_where' => 'AND tt_content.pid=###CURRENT_PID### AND tt_content.sys_language_uid IN (-1,0)',			)		),		'layout' => Array (			'exclude' => 1,			'label' => 'LLL:EXT:lang/locallang_general.php:LGL.layout',			'config' => Array (				'type' => 'select',				'items' => Array (					Array('LLL:EXT:lang/locallang_general.php:LGL.normal', '0'),					Array('LLL:EXT:cms/locallang_ttc.php:layout.I.1', '1'),					Array('LLL:EXT:cms/locallang_ttc.php:layout.I.2', '2'),					Array('LLL:EXT:cms/locallang_ttc.php:layout.I.3', '3')				),				'default' => '0'			)		),		'colPos' => Array (			'exclude' => 1,			'label' => 'LLL:EXT:cms/locallang_ttc.php:colPos',			'config' => Array (				'type' => 'select',				'items' => Array (					Array('LLL:EXT:cms/locallang_ttc.php:colPos.I.0', '1'),					Array('LLL:EXT:lang/locallang_general.php:LGL.normal', '0'),					Array('LLL:EXT:cms/locallang_ttc.php:colPos.I.2', '2'),					Array('LLL:EXT:cms/locallang_ttc.php:colPos.I.3', '3')				),				'default' => '0'			)		),		'date' => Array (			'exclude' => 1,			'label' => 'LLL:EXT:cms/locallang_ttc.php:date',			'config' => Array (				'type' => 'input',				'size' => '8',				'max' => '20',				'eval' => 'date',				'checkbox' => '0',				'default' => '0'			)		),		'header' => Array (			'l10n_mode' => 'prefixLangTitle',			'l10n_cat' => 'text',			'label' => 'LLL:EXT:cms/locallang_ttc.php:header',			'config' => Array (				'type' => 'input',				'max' => '256'			)		),		'header_position' => Array (			'label' => 'LLL:EXT:cms/locallang_ttc.php:header_position',			'config' => Array (				'type' => 'select',				'items' => Array (					Array('', ''),					Array('LLL:EXT:cms/locallang_ttc.php:header_position.I.1', 'center'),					Array('LLL:EXT:cms/locallang_ttc.php:header_position.I.2', 'right'),					Array('LLL:EXT:cms/locallang_ttc.php:header_position.I.3', 'left')				),				'default' => ''			)		),		'header_link' => Array (			'label' => 'LLL:EXT:cms/locallang_ttc.php:header_link',			'config' => Array (				'type' => 'input',				'size' => '15',				'max' => '256',				'checkbox' => '',				'eval' => 'trim',				'wizards' => Array(					'_PADDING' => 2,					'link' => Array(						'type' => 'popup',						'title' => 'Link',						'icon' => 'link_popup.gif',						'script' => 'browse_links.php?mode=wizard',						'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1'					)				),				'softref' => 'typolink'			)		),		'header_layout' => Array (			'exclude' => 1,			'label' => 'LLL:EXT:lang/locallang_general.php:LGL.type',			'config' => Array (				'type' => 'select',				'items' => Array (					Array('LLL:EXT:lang/locallang_general.php:LGL.normal', '0'),					Array('LLL:EXT:cms/locallang_ttc.php:header_layout.I.1', '1'),					Array('LLL:EXT:cms/locallang_ttc.php:header_layout.I.2', '2'),					Array('LLL:EXT:cms/locallang_ttc.php:header_layout.I.3', '3'),					Array('LLL:EXT:cms/locallang_ttc.php:header_layout.I.4', '4'),					Array('LLL:EXT:cms/locallang_ttc.php:header_layout.I.5', '5'),					Array('LLL:EXT:cms/locallang_ttc.php:header_layout.I.6', '100')				),				'default' => '0'			)		),		'subheader' => Array (			'exclude' => 1,			'label' => 'LLL:EXT:lang/locallang_general.php:LGL.subheader',			'config' => Array (				'type' => 'input',				'size' => '30',				'max' => '256',				'softref' => 'email[subst]'			)		),		'bodytext' => Array (			'l10n_mode' => 'prefixLangTitle',			'l10n_cat' => 'text',			'label' => 'LLL:EXT:lang/locallang_general.php:LGL.text',			'config' => Array (				'type' => 'text',				'cols' => '48',				'rows' => '5',				'wizards' => Array(					'_PADDING' => 4,					'RTE' => Array(						'notNewRecords' => 1,						'RTEonly' => 1,						'type' => 'script',						'title' => 'LLL:EXT:cms/locallang_ttc.php:bodytext.W.RTE',						'icon' => 'wizard_rte2.gif',						'script' => 'wizard_rte.php',					),					'table' => Array(						'notNewRecords' => 1,						'enableByTypeConfig' => 1,						'type' => 'script',						'title' => 'Table wizard',						'icon' => 'wizard_table.gif',						'script' => 'wizard_table.php',						'params' => array('xmlOutput' => 0)					),					'forms' => Array(						'notNewRecords' => 1,						'enableByTypeConfig' => 1,						'type' => 'script',#						'hideParent' => array('rows' => 4),						'title' => 'Forms wizard',						'icon' => 'wizard_forms.gif',						'script' => 'wizard_forms.php?special=formtype_mail',						'params' => array('xmlOutput' => 0)					)				),				'softref' => 'typolink_tag,images,email[subst],url'			)		),		'text_align' => Array (			'exclude' => 1,			'label' => 'LLL:EXT:cms/locallang_ttc.php:text_align',			'config' => Array (				'type' => 'select',				'items' => Array (					Array('', ''),					Array('LLL:EXT:cms/locallang_ttc.php:text_align.I.1', 'center'),					Array('LLL:EXT:cms/locallang_ttc.php:text_align.I.2', 'right'),					Array('LLL:EXT:cms/locallang_ttc.php:text_align.I.3', 'left')				),				'default' => ''			)		),		'text_face' => Array (			'exclude' => 1,			'label' => 'LLL:EXT:cms/locallang_ttc.php:text_face',			'config' => Array (				'type' => 'select',				'items' => Array (					Array('LLL:EXT:lang/locallang_general.php:LGL.default_value', '0'),					Array('Times', '1'),					Array('Verdana', '2'),					Array('Arial', '3')				),				'default' => '0'			)		),		'text_size' => Array (			'exclude' => 1,			'label' => 'LLL:EXT:cms/locallang_ttc.php:text_size',			'config' => Array (				'type' => 'select',				'items' => Array (					Array('LLL:EXT:lang/locallang_general.php:LGL.default_value', '0'),					Array('LLL:EXT:cms/locallang_ttc.php:text_size.I.1', '1'),					Array('LLL:EXT:cms/locallang_ttc.php:text_size.I.2', '2'),					Array('LLL:EXT:cms/locallang_ttc.php:text_size.I.3', '3'),					Array('LLL:EXT:cms/locallang_ttc.php:text_size.I.4', '4'),					Array('LLL:EXT:cms/locallang_ttc.php:text_size.I.5', '5'),					Array('LLL:EXT:cms/locallang_ttc.php:text_size.I.6', '10'),					Array('LLL:EXT:cms/locallang_ttc.php:text_size.I.7', '11')				),				'default' => '0'			)		),		'text_color' => Array (			'exclude' => 1,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -