本文整理汇总了PHP中t3lib_BEfunc::viewOnClick方法的典型用法代码示例。如果您正苦于以下问题:PHP t3lib_BEfunc::viewOnClick方法的具体用法?PHP t3lib_BEfunc::viewOnClick怎么用?PHP t3lib_BEfunc::viewOnClick使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类t3lib_BEfunc
的用法示例。
在下文中一共展示了t3lib_BEfunc::viewOnClick方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getTable_tt_content
//.........这里部分代码省略.........
$languageColumn[$key][$lP] .= '<br /><br />' . $this->newLanguageButton($this->getNonTranslatedTTcontentUids($defLanguageCount[$key], $id, $lP), $lP);
}
}
}
// Wrap the cells into a table row:
$out = '
<table border="0" cellpadding="0" cellspacing="0" class="t3-page-columns">
<tr>' . $out . '
</tr>
</table>';
// CSH:
$out .= t3lib_BEfunc::cshItem($this->descrTable, 'columns_multi', $GLOBALS['BACK_PATH']);
}
// If language mode, then make another presentation:
// Notice that THIS presentation will override the value of $out! But it needs the code above to execute since $languageColumn is filled with content we need!
if ($this->tt_contentConfig['languageMode']) {
// Get language selector:
$languageSelector = $this->languageSelector($id);
// Reset out - we will make new content here:
$out = '';
// Separator between language columns (black thin line)
$midSep = '
<td><img src="clear.gif" width="4" height="1" alt="" /></td>
<td bgcolor="black"><img src="clear.gif" width="1" height="1" alt="" /></td>
<td><img src="clear.gif" width="4" height="1" alt="" /></td>';
// Traverse languages found on the page and build up the table displaying them side by side:
$cCont = array();
$sCont = array();
foreach ($langListArr as $lP) {
// Header:
$cCont[$lP] = '
<td valign="top" align="center" class="bgColor6"><strong>' . htmlspecialchars($this->tt_contentConfig['languageCols'][$lP]) . '</strong></td>';
// "View page" icon is added:
$viewLink = '<a href="#" onclick="' . htmlspecialchars(t3lib_BEfunc::viewOnClick($this->id, $this->backPath, t3lib_BEfunc::BEgetRootLine($this->id), '', '', '&L=' . $lP)) . '">' . t3lib_iconWorks::getSpriteIcon('actions-document-view') . '</a>';
// Language overlay page header:
if ($lP) {
list($lpRecord) = t3lib_BEfunc::getRecordsByField('pages_language_overlay', 'pid', $id, 'AND sys_language_uid=' . intval($lP));
t3lib_BEfunc::workspaceOL('pages_language_overlay', $lpRecord);
$params = '&edit[pages_language_overlay][' . $lpRecord['uid'] . ']=edit&overrideVals[pages_language_overlay][sys_language_uid]=' . $lP;
$lPLabel = $GLOBALS['SOBE']->doc->wrapClickMenuOnIcon(t3lib_iconWorks::getSpriteIconForRecord('pages_language_overlay', $lpRecord), $lpRecord['uid']) . $viewLink . ($GLOBALS['BE_USER']->check('tables_modify', 'pages_language_overlay') ? '<a href="#" onclick="' . htmlspecialchars(t3lib_BEfunc::editOnClick($params, $this->backPath)) . '" title="' . $GLOBALS['LANG']->getLL('edit', TRUE) . '">' . t3lib_iconWorks::getSpriteIcon('actions-document-open') . '</a>' : '') . htmlspecialchars(t3lib_div::fixed_lgd_cs($lpRecord['title'], 20));
} else {
$lPLabel = $viewLink;
}
$sCont[$lP] = '
<td nowrap="nowrap">' . $lPLabel . '</td>';
}
// Add headers:
$out .= '
<tr class="bgColor5">' . implode($midSep, $cCont) . '
</tr>';
$out .= '
<tr class="bgColor5">' . implode($midSep, $sCont) . '
</tr>';
// Traverse previously built content for the columns:
foreach ($languageColumn as $cKey => $cCont) {
$out .= '
<tr>
<td valign="top">' . implode('</td>' . $midSep . '
<td valign="top">', $cCont) . '</td>
</tr>';
if ($this->defLangBinding) {
// "defLangBinding" mode
foreach ($defLanguageCount[$cKey] as $defUid) {
$cCont = array();
foreach ($langListArr as $lP) {
$cCont[] = $defLangBinding[$cKey][$lP][$defUid] . '<br/>' . $this->newLanguageButton($this->getNonTranslatedTTcontentUids(array($defUid), $id, $lP), $lP);
示例2: main
/**
* Main function, rendering the document with the iframe with the RTE in.
*
* @return void
*/
function main()
{
global $BE_USER, $LANG;
// translate id to the workspace version:
if ($versionRec = t3lib_BEfunc::getWorkspaceVersionOfRecord($GLOBALS['BE_USER']->workspace, $this->P['table'], $this->P['uid'], 'uid')) {
$this->P['uid'] = $versionRec['uid'];
}
// If all parameters are available:
if ($this->P['table'] && $this->P['field'] && $this->P['uid'] && $this->checkEditAccess($this->P['table'], $this->P['uid'])) {
// Getting the raw record (we need only the pid-value from here...)
$rawRec = t3lib_BEfunc::getRecord($this->P['table'], $this->P['uid']);
t3lib_BEfunc::fixVersioningPid($this->P['table'], $rawRec);
// Setting JavaScript, including the pid value for viewing:
$this->doc->JScode = $this->doc->wrapScriptTags('
function jumpToUrl(URL,formEl) { //
if (document.editform) {
if (!TBE_EDITOR.isFormChanged()) {
window.location.href = URL;
} else if (formEl) {
if (formEl.type=="checkbox") formEl.checked = formEl.checked ? 0 : 1;
}
} else window.location.href = URL;
}
' . ($this->popView ? t3lib_BEfunc::viewOnClick($rawRec['pid'], '', t3lib_BEfunc::BEgetRootLine($rawRec['pid'])) : '') . '
');
// Initialize TCeforms - for rendering the field:
$tceforms = t3lib_div::makeInstance('t3lib_TCEforms');
$tceforms->initDefaultBEMode();
// Init...
$tceforms->disableWizards = 1;
// SPECIAL: Disables all wizards - we are NOT going to need them.
$tceforms->colorScheme[0] = $this->doc->bgColor;
// SPECIAL: Setting background color of the RTE to ordinary background
// Initialize style for RTE object:
$RTEobj = t3lib_BEfunc::RTEgetObj();
// Getting reference to the RTE object used to render the field!
if ($RTEobj->ID == 'rte') {
$RTEobj->RTEdivStyle = 'position:relative; left:0px; top:0px; height:100%; width:100%; border:solid 0px;';
// SPECIAL: Setting style for the RTE <DIV> layer containing the IFRAME
}
// Fetching content of record:
$trData = t3lib_div::makeInstance('t3lib_transferData');
$trData->lockRecords = 1;
$trData->fetchRecord($this->P['table'], $this->P['uid'], '');
// Getting the processed record content out:
reset($trData->regTableItems_data);
$rec = current($trData->regTableItems_data);
$rec['uid'] = $this->P['uid'];
$rec['pid'] = $rawRec['pid'];
// TSconfig, setting width:
$fieldTSConfig = $tceforms->setTSconfig($this->P['table'], $rec, $this->P['field']);
if (strcmp($fieldTSConfig['RTEfullScreenWidth'], '')) {
$width = $fieldTSConfig['RTEfullScreenWidth'];
} else {
$width = '100%';
}
// Get the form field and wrap it in the table with the buttons:
$formContent = $tceforms->getSoloField($this->P['table'], $rec, $this->P['field']);
$formContent = '
<!--
RTE wizard:
-->
<table border="0" cellpadding="0" cellspacing="0" width="' . $width . '" id="typo3-rtewizard">
<tr>
<td width="' . $width . '" colspan="2" id="c-formContent">' . $formContent . '</td>
<td></td>
</tr>
</table>';
// Adding hidden fields:
$formContent .= '<input type="hidden" name="redirect" value="' . htmlspecialchars($this->R_URI) . '" />
<input type="hidden" name="_serialNumber" value="' . md5(microtime()) . '" />' . t3lib_TCEforms::getHiddenTokenField('tceAction');
// Finally, add the whole setup:
$this->content .= $tceforms->printNeededJSFunctions_top() . $formContent . $tceforms->printNeededJSFunctions();
} else {
// ERROR:
$this->content .= $this->doc->section($LANG->getLL('forms_title'), '<span class="typo3-red">' . $LANG->getLL('table_noData', 1) . '</span>', 0, 1);
}
// Setting up the buttons and markers for docheader
$docHeaderButtons = $this->getButtons();
$markers['CONTENT'] = $this->content;
// Build the <body> for the module
$this->content = $this->doc->startPage('');
$this->content .= $this->doc->moduleBody($this->pageinfo, $docHeaderButtons, $markers);
$this->content .= $this->doc->endPage();
$this->content = $this->doc->insertStylesAndJS($this->content);
}
示例3: wizard_step6
/**
* Step 6: Done.
*
* @return void
*/
function wizard_step6()
{
$this->saveMenuCode();
$outputString .= '<b>Congratulations!</b> You have completed the initial creation of a new website in TYPO3 based on the TemplaVoila engine. After you click the "Finish" button you can go to the Web>Page module to edit your pages!
<br/>
<br/>
<input type="submit" value="Finish Wizard!" onclick="' . htmlspecialchars(t3lib_BEfunc::viewOnClick($this->wizardData['rootPageId'], $this->doc->backPath) . 'document.location=\'index.php?SET[wiz_step]=0\'; return false;') . '" />
';
// Add output:
$this->content .= $this->doc->section('Step 6: Done', $outputString, 0, 1);
}
示例4: renderL10nTable
/**
* Rendering the localization information table.
*
* @param array The Page tree data
* @return string HTML for the localization information table.
*/
function renderL10nTable(&$tree)
{
global $LANG;
// Title length:
$titleLen = $GLOBALS['BE_USER']->uc['titleLen'];
// Put together the TREE:
$output = '';
$newOL_js = array();
$langRecUids = array();
//Init DDD
$dao = t3lib_div::makeInstance('tx_languagevisibility_daocommon');
if (version_compare(TYPO3_version, '4.3.0', '<')) {
$elementfactory = new tx_languagevisibility_elementFactory($dao);
} else {
$elementfactory = t3lib_div::makeInstance('tx_languagevisibility_elementFactory', $dao);
}
$languageRep = t3lib_div::makeInstance('tx_languagevisibility_languagerepository');
$languageList = $languageRep->getLanguages();
$visibility = t3lib_div::makeInstance('tx_languagevisibility_visibilityService');
//traverse Tree:
foreach ($tree->tree as $data) {
$tCells = array();
$element = $elementfactory->getElementForTable('pages', $data['row']['uid']);
//first cell (tree):
// Page icons / titles etc.
$tCells[] = '<td' . ($data['row']['_CSSCLASS'] ? ' class="' . $data['row']['_CSSCLASS'] . '"' : '') . '>' . $data['HTML'] . htmlspecialchars(t3lib_div::fixed_lgd_cs($data['row']['title'], $titleLen)) . (strcmp($data['row']['nav_title'], '') ? ' [Nav: <em>' . htmlspecialchars(t3lib_div::fixed_lgd_cs($data['row']['nav_title'], $titleLen)) . '</em>]' : '') . '</td>';
//language cells:
foreach ($languageList as $language) {
$info = '';
$editUid = $data['row']['uid'];
$params = '&edit[pages][' . $editUid . ']=edit';
$langId = $language->getUid();
if ($visibility->isVisible($language, $element)) {
$isVisible = TRUE;
$statusVis = 'c-visible';
} else {
$isVisible = FALSE;
$statusVis = 'c-notvisible';
}
if ($element->hasTranslation($langId)) {
$statusTrans = 'c-translated';
} else {
$statusTrans = 'c-nottranslated';
}
if ($language->getUid() == 0) {
//Default
//"View page" link is created:
$viewPageLink = '<a href="#" onclick="' . htmlspecialchars(t3lib_BEfunc::viewOnClick($data['row']['uid'], $GLOBALS['BACK_PATH'], '', '', '', '&L=###LANG_UID###')) . '">' . '<img' . t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'], 'gfx/zoom.gif', 'width="12" height="12"') . ' title="' . $LANG->getLL('lang_renderl10n_viewPage', '1') . '" border="0" alt="" />' . '</a>';
$info .= '<a href="#" onclick="' . htmlspecialchars(t3lib_BEfunc::editOnClick($params, $GLOBALS['BACK_PATH'])) . '">' . '<img' . t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'], 'gfx/edit2.gif', 'width="11" height="12"') . ' title="' . $LANG->getLL('lang_renderl10n_editDefaultLanguagePage', '1') . '" border="0" alt="" />' . '</a>';
$info .= '<a href="#" onclick="' . htmlspecialchars('top.loadEditId(' . intval($data['row']['uid']) . ',"&SET[language]=0"); return false;') . '">' . '<img' . t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'], 'gfx/edit_page.gif', 'width="12" height="12"') . ' title="' . $LANG->getLL('lang_renderl10n_editPage', '1') . '" border="0" alt="" />' . '</a>';
$info .= str_replace('###LANG_UID###', '0', $viewPageLink);
$info .= $data['row']['l18n_cfg'] & 1 ? '<span title="' . $LANG->sL('LLL:EXT:cms/locallang_tca.php:pages.l18n_cfg.I.1', '1') . '">D</span>' : ' ';
// Put into cell:
$tCells[] = '<td class="' . $statusTrans . ' c-leftLine">' . $info . '</td>';
$tCells[] = '<td class="' . $statusTrans . '" title="' . $LANG->getLL('lang_renderl10n_CEcount', '1') . '" align="center">' . $this->getContentElementCount($data['row']['uid'], 0) . '</td>';
} else {
//Normal Language:
if ($element->hasTranslation($langId)) {
$status = 'c-ok';
$overLayRow = $element->getOverLayRecordForCertainLanguage($langId);
//add uid of overlay to list of editable records:
$langRecUids[$langId][] = $overLayRow['uid'];
$icon = t3lib_iconWorks::getIconImage('pages_language_overlay', $overLayRow, $GLOBALS['BACK_PATH'], 'align="top" class="c-recIcon"');
$info = $icon . htmlspecialchars(t3lib_div::fixed_lgd_cs($overLayRow['title'], $titleLen)) . (strcmp($overLayRow['nav_title'], '') ? ' [Nav: <em>' . htmlspecialchars(t3lib_div::fixed_lgd_cs($overLayRow['nav_title'], $titleLen)) . '</em>]' : '') . ($row['_COUNT'] > 1 ? '<div>' . $LANG->getLL('lang_renderl10n_badThingThereAre', '1') . '</div>' : '');
$tCells[] = '<td class="' . $statusTrans . ' c-leftLine">' . $info . '</td>';
// Edit whole record:
$info = '';
$editUid = $overLayRow['uid'];
$params = '&edit[pages_language_overlay][' . $editUid . ']=edit';
$info .= '<a href="#" onclick="' . htmlspecialchars(t3lib_BEfunc::editOnClick($params, $GLOBALS['BACK_PATH'])) . '">' . '<img' . t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'], 'gfx/edit2.gif', 'width="11" height="12"') . ' title="' . $LANG->getLL('lang_renderl10n_editLanguageOverlayRecord', '1') . '" border="0" alt="" />' . '</a>';
$info .= '<a href="#" onclick="' . htmlspecialchars('top.loadEditId(' . intval($data['row']['uid']) . ',"&SET[language]=' . $langId . '"); return false;') . '">' . '<img' . t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'], 'gfx/edit_page.gif', 'width="12" height="12"') . ' title="' . $LANG->getLL('lang_renderl10n_editPageLang', '1') . '" border="0" alt="" />' . '</a>';
$info .= str_replace('###LANG_UID###', $langId, $viewPageLink);
$tCells[] = '<td class="' . $statusTrans . '">' . $info . '</td>';
$tCells[] = '<td class="' . $statusTrans . '" title="' . $LANG->getLL('lang_renderl10n_CEcount', '1') . '" align="center">' . $this->getContentElementCount($data['row']['uid'], $langId) . '</td>';
} else {
$status = t3lib_div::hideIfNotTranslated($data['row']['l18n_cfg']) || $data['row']['l18n_cfg'] & 1 ? 'c-blocked' : 'c-fallback';
$tCells[] = '<td class="' . $statusTrans . ' c-leftLine"> </td>';
$tCells[] = '<td class="' . $statusTrans . '"> </td>';
//add to JS
$infoCell = '<input type="checkbox" name="newOL[' . $langId . '][' . $data['row']['uid'] . ']" value="1" />';
$newOL_js[$langId] .= '
+(document.webinfoForm[\'newOL[' . $langId . '][' . $data['row']['uid'] . ']\'].checked ? \'&edit[pages_language_overlay][' . $data['row']['uid'] . ']=new\' : \'\')
';
$tCells[] = '<td class="' . $statusTrans . '">' . $infoCell . '</td>';
}
}
//last cell show status
$tCells[] = '<td class="' . $statusVis . '">' . $this->_getStatusImage($isVisible) . '</td>';
}
$output .= '
<tr class="bgColor5">
' . implode('
', $tCells) . '
</tr>';
//.........这里部分代码省略.........
示例5: renderModule
/**
* Rendering the information
*
* @param array The Page tree data
* @return string HTML for the information table.
*/
function renderModule(t3lib_pageTree $tree) {
// Initialize:
$searchPath = trim(t3lib_div::_GP('pathPrefixSearch'));
$cmd = t3lib_div::_GET('cmd');
$entry = t3lib_div::_GET('entry');
$searchForm_replace = t3lib_div::_POST('_replace');
$searchForm_delete = t3lib_div::_POST('_delete');
$trackSameUrl = array();
$this->searchResultCounter = 0;
// Traverse tree:
$output = '';
$cc=0;
foreach($tree->tree as $row) {
// Get all pagepath entries for page:
$pathCacheInfo = $this->getPathCache($row['row']['uid']);
// Row title:
$rowTitle = $row['HTML'].t3lib_BEfunc::getRecordTitle('pages',$row['row'],TRUE);
$cellAttrib = ($row['row']['_CSSCLASS'] ? ' class="'.$row['row']['_CSSCLASS'].'"' : '');
// Add at least one empty element:
if (!count($pathCacheInfo)) {
// Add title:
$tCells = array();
$tCells[]='<td nowrap="nowrap"'.$cellAttrib.'>'.$rowTitle.'</td>';
// Empty row:
$tCells[]='<td colspan="10" align="center"> </td>';
// Compile Row:
$output.= '
<tr class="bgColor'.($cc%2 ? '-20':'-10').'">
'.implode('
',$tCells).'
</tr>';
$cc++;
} else {
foreach($pathCacheInfo as $c => $inf) {
// Init:
$deletedEntry = FALSE;
$hash = $inf['pagepath'].'|'.$inf['rootpage_id'].'|'.$inf['language_id']; // MP is not a part of this because the path itself should be different simply because the MP makes a different path! (see tx_realurl_advanced::pagePathtoID())
// Add icon/title and ID:
$tCells = array();
if (!$c) {
$tCells[]='<td nowrap="nowrap" rowspan="'.count($pathCacheInfo).'"'.$cellAttrib.'>'.$rowTitle.'</td>';
$tCells[]='<td rowspan="'.count($pathCacheInfo).'">'.$inf['page_id'].'</td>';
}
// Add values from alternative field used to generate URL:
$baseRow = $row['row']; // page row as base.
$onClick = t3lib_BEfunc::editOnClick('&edit[pages]['.$row['row']['uid'].']=edit&columnsOnly=title,nav_title,alias,tx_realurl_pathsegment',$this->pObj->doc->backPath);
$editIcon = '<a href="#" onclick="'.htmlspecialchars($onClick).'">'.
'<img'.t3lib_iconWorks::skinImg($this->pObj->doc->backPath,'gfx/edit2.gif','width="11" height="12"').' title="" alt="" />'.
'</a>';
$onClick = t3lib_BEfunc::viewOnClick($row['row']['uid'],$this->pObj->doc->backPath,'','','','');
$editIcon.= '<a href="#" onclick="'.htmlspecialchars($onClick).'">'.
'<img'.t3lib_iconWorks::skinImg($this->pObj->doc->backPath,'gfx/zoom.gif','width="12" height="12"').' title="" alt="" />'.
'</a>';
if ($inf['language_id']>0) { // For alternative languages, show another list of fields, form page overlay record:
$editIcon = '';
list($olRec) = t3lib_BEfunc::getRecordsByField('pages_language_overlay','pid',$row['row']['uid'],' AND sys_language_uid='.intval($inf['language_id']));
if (is_array($olRec)) {
$baseRow = array_merge($baseRow,$olRec);
$onClick = t3lib_BEfunc::editOnClick('&edit[pages_language_overlay]['.$olRec['uid'].']=edit&columnsOnly=title,nav_title',$this->pObj->doc->backPath);
$editIcon = '<a href="#" onclick="'.htmlspecialchars($onClick).'">'.
'<img'.t3lib_iconWorks::skinImg($this->pObj->doc->backPath,'gfx/edit2.gif','width="11" height="12"').' title="" alt="" />'.
'</a>';
$onClick = t3lib_BEfunc::viewOnClick($row['row']['uid'],$this->pObj->doc->backPath,'','','','&L='.$olRec['sys_language_uid']);
$editIcon.= '<a href="#" onclick="'.htmlspecialchars($onClick).'">'.
'<img'.t3lib_iconWorks::skinImg($this->pObj->doc->backPath,'gfx/zoom.gif','width="12" height="12"').' title="" alt="" />'.
'</a>';
} else {
$baseRow = array();
}
}
$tCells[]='<td>'.$editIcon.'</td>';
// Sources for segment:
$sources = count($baseRow) ? implode(' | ',array($baseRow['tx_realurl_pathsegment'], $baseRow['alias'], $baseRow['nav_title'], $baseRow['title'])) : '';
$tCells[]='<td nowrap="nowrap">'.htmlspecialchars($sources).'</td>';
// Show page path:
if (strcmp($searchPath,'') && t3lib_div::isFirstPartOfStr($inf['pagepath'],$searchPath) && !$inf['expire']) {
// Delete entry:
if ($searchForm_delete) {
//.........这里部分代码省略.........
示例6: init
/**
* Initialize the normal module operation
*
* @return void
*/
function init()
{
global $BE_USER, $LANG, $BACK_PATH;
// Setting more GPvars:
$this->popViewId = t3lib_div::_GP('popViewId');
$this->popViewId_addParams = t3lib_div::_GP('popViewId_addParams');
$this->viewUrl = t3lib_div::_GP('viewUrl');
$this->editRegularContentFromId = t3lib_div::_GP('editRegularContentFromId');
$this->recTitle = t3lib_div::_GP('recTitle');
$this->disHelp = t3lib_div::_GP('disHelp');
$this->noView = t3lib_div::_GP('noView');
$this->perms_clause = $BE_USER->getPagePermsClause(1);
// Set other internal variables:
$this->R_URL_getvars['returnUrl'] = $this->retUrl;
$this->R_URI = $this->R_URL_parts['path'] . '?' . t3lib_div::implodeArrayForUrl('', $this->R_URL_getvars);
// MENU-ITEMS:
// If array, then it's a selector box menu
// If empty string it's just a variable, that'll be saved.
// Values NOT in this array will not be saved in the settings-array for the module.
$this->MOD_MENU = array('showPalettes' => '');
// Setting virtual document name
$this->MCONF['name'] = 'xMOD_alt_doc.php';
// CLEANSE SETTINGS
$this->MOD_SETTINGS = t3lib_BEfunc::getModuleData($this->MOD_MENU, t3lib_div::_GP('SET'), $this->MCONF['name']);
// Create an instance of the document template object
$this->doc = $GLOBALS['TBE_TEMPLATE'];
$this->doc->backPath = $BACK_PATH;
$this->doc->setModuleTemplate('templates/alt_doc.html');
$this->doc->form = '<form action="' . htmlspecialchars($this->R_URI) . '" method="post" enctype="' . $GLOBALS['TYPO3_CONF_VARS']['SYS']['form_enctype'] . '" name="editform" onsubmit="document.editform._scrollPosition.value=(document.documentElement.scrollTop || document.body.scrollTop); return TBE_EDITOR.checkSubmit(1);">';
$this->doc->getPageRenderer()->loadPrototype();
$this->doc->JScode = $this->doc->wrapScriptTags('
function jumpToUrl(URL,formEl) { //
if (!TBE_EDITOR.isFormChanged()) {
window.location.href = URL;
} else if (formEl && formEl.type=="checkbox") {
formEl.checked = formEl.checked ? 0 : 1;
}
}
// Object: TS:
// passwordDummy and decimalSign are used by tbe_editor.js and have to be declared here as
// TS object overwrites the object declared in tbe_editor.js
function typoSetup () { //
this.uniqueID = "";
this.passwordDummy = "********";
this.decimalSign = ".";
}
var TS = new typoSetup();
// Info view:
function launchView(table,uid,bP) { //
var backPath= bP ? bP : "";
var thePreviewWindow="";
thePreviewWindow = window.open(backPath+"show_item.php?table="+encodeURIComponent(table)+"&uid="+encodeURIComponent(uid),"ShowItem"+TS.uniqueID,"height=300,width=410,status=0,menubar=0,resizable=0,location=0,directories=0,scrollbars=1,toolbar=0");
if (thePreviewWindow && thePreviewWindow.focus) {
thePreviewWindow.focus();
}
}
function deleteRecord(table,id,url) { //
if (
' . ($GLOBALS['BE_USER']->jsConfirmation(4) ? 'confirm(' . $LANG->JScharCode($LANG->getLL('deleteWarning')) . ')' : '1==1') . '
) {
window.location.href = "tce_db.php?cmd["+table+"]["+id+"][delete]=1' . t3lib_BEfunc::getUrlToken('tceAction') . '&redirect="+escape(url)+"&vC=' . $BE_USER->veriCode() . '&prErr=1&uPT=1";
}
return false;
}
' . (isset($_POST['_savedokview_x']) && $this->popViewId ? 'if (window.opener) { ' . t3lib_BEfunc::viewOnClick($this->popViewId, '', t3lib_BEfunc::BEgetRootLine($this->popViewId), '', $this->viewUrl, $this->popViewId_addParams, FALSE) . ' } else { ' . t3lib_BEfunc::viewOnClick($this->popViewId, '', t3lib_BEfunc::BEgetRootLine($this->popViewId), '', $this->viewUrl, $this->popViewId_addParams) . ' } ' : ''));
// Setting up the context sensitive menu:
$this->doc->getContextMenuCode();
$this->doc->bodyTagAdditions = 'onload="window.scrollTo(0,' . t3lib_div::intInRange(t3lib_div::_GP('_scrollPosition'), 0, 10000) . ');"';
}
示例7: render_outline_element
/**
* Rendering a single element in outline:
*
* @param array $contentTreeArr: DataStructure info array (the whole tree)
* @param array $entries: Entries accumulated in this array (passed by reference)
* @param integer $indentLevel: Indentation level
* @param array $parentPointer: Element position in structure
* @param string $controls: HTML for controls to add for this element
* @return void
* @access protected
* @see render_outline_allSheets()
*/
function render_outline_element($contentTreeArr, &$entries, $indentLevel = 0, $parentPointer = array(), $controls = '')
{
global $LANG, $TYPO3_CONF_VARS;
// Get record of element:
$elementBelongsToCurrentPage = $contentTreeArr['el']['table'] == 'pages' || $contentTreeArr['el']['pid'] == $this->rootElementUid_pidForContent;
// Prepare the record icon including a context sensitive menu link wrapped around it:
if (isset($contentTreeArr['el']['iconTag'])) {
$recordIcon = $contentTreeArr['el']['iconTag'];
} else {
$recordIcon = '<img' . t3lib_iconWorks::skinImg($this->doc->backPath, $contentTreeArr['el']['icon'], '') . ' border="0" title="' . htmlspecialchars('[' . $contentTreeArr['el']['table'] . ':' . $contentTreeArr['el']['uid'] . ']') . '" alt="" />';
}
$titleBarLeftButtons = $this->translatorMode ? $recordIcon : $this->doc->wrapClickMenuOnIcon($recordIcon, $contentTreeArr['el']['table'], $contentTreeArr['el']['uid'], 1, '&callingScriptId=' . rawurlencode($this->doc->scriptID), 'new,copy,cut,pasteinto,pasteafter,delete');
$titleBarLeftButtons .= $this->getRecordStatHookValue($contentTreeArr['el']['table'], $contentTreeArr['el']['uid']);
// Prepare table specific settings:
switch ($contentTreeArr['el']['table']) {
case 'pages':
$iconEdit = t3lib_iconWorks::getSpriteIcon('actions-document-open', array('title' => $LANG->sL('LLL:EXT:lang/locallang_mod_web_list.xml:editPage')));
$titleBarLeftButtons .= $this->translatorMode ? '' : $this->link_edit($iconEdit, $contentTreeArr['el']['table'], $contentTreeArr['el']['uid']);
$titleBarRightButtons = '';
$addGetVars = $this->currentLanguageUid ? '&L=' . $this->currentLanguageUid : '';
$viewPageOnClick = 'onclick= "' . htmlspecialchars(t3lib_BEfunc::viewOnClick($contentTreeArr['el']['uid'], $this->doc->backPath, t3lib_BEfunc::BEgetRootLine($contentTreeArr['el']['uid']), '', '', $addGetVars)) . '"';
$viewPageIcon = t3lib_iconWorks::getSpriteIcon('actions-document-view', array('title' => $LANG->sL('LLL:EXT:lang/locallang_core.xml:labels.showPage', 1)));
$titleBarLeftButtons .= '<a href="#" ' . $viewPageOnClick . '>' . $viewPageIcon . '</a>';
break;
case 'tt_content':
$languageUid = $contentTreeArr['el']['sys_language_uid'];
$elementPointer = 'tt_content:' . $contentTreeArr['el']['uid'];
if ($this->translatorMode) {
$titleBarRightButtons = '';
} else {
// Create CE specific buttons:
$iconMakeLocal = t3lib_iconWorks::getSpriteIcon('extensions-templavoila-makelocalcopy', array('title' => $LANG->getLL('makeLocal')));
$linkMakeLocal = !$elementBelongsToCurrentPage ? $this->link_makeLocal($iconMakeLocal, $parentPointer) : '';
if ($this->modTSconfig['properties']['enableDeleteIconForLocalElements'] < 2 || !$elementBelongsToCurrentPage || $this->global_tt_content_elementRegister[$contentTreeArr['el']['uid']] > 1) {
$iconUnlink = t3lib_iconWorks::getSpriteIcon('extensions-templavoila-unlink', array('title' => $LANG->getLL('unlinkRecord')));
$linkUnlink = $this->link_unlink($iconUnlink, $parentPointer, FALSE);
} else {
$linkUnlink = '';
}
if ($this->modTSconfig['properties']['enableDeleteIconForLocalElements'] && $elementBelongsToCurrentPage) {
$hasForeignReferences = tx_templavoila_div::hasElementForeignReferences($contentTreeArr['el'], $contentTreeArr['el']['pid']);
$iconDelete = t3lib_iconWorks::getSpriteIcon('actions-edit-delete', array('title' => $LANG->getLL('deleteRecord')));
$linkDelete = $this->link_unlink($iconDelete, $parentPointer, TRUE, $hasForeignReferences);
} else {
$linkDelete = '';
}
$iconEdit = t3lib_iconWorks::getSpriteIcon('actions-document-open', array('title' => $LANG->getLL('editrecord')));
$linkEdit = $elementBelongsToCurrentPage ? $this->link_edit($iconEdit, $contentTreeArr['el']['table'], $contentTreeArr['el']['uid']) : '';
$titleBarRightButtons = $linkEdit . $this->clipboardObj->element_getSelectButtons($parentPointer) . $linkMakeLocal . $linkUnlink . $linkDelete;
}
break;
}
// Prepare the language icon:
if ($languageUid > 0) {
$languageLabel = htmlspecialchars($this->pObj->allAvailableLanguages[$languageUid]['title']);
if ($this->pObj->allAvailableLanguages[$languageUid]['flagIcon']) {
$languageIcon = tx_templavoila_icons::getFlagIconForLanguage($this->pObj->allAvailableLanguages[$languageUid]['flagIcon'], array('title' => $languageLabel, 'alt' => $languageLabel));
} else {
$languageIcon = '[' . $languageLabel . ']';
}
} else {
$languageIcon = '';
}
// If there was a langauge icon and the language was not default or [all] and if that langauge is accessible for the user, then wrap the flag with an edit link (to support the "Click the flag!" principle for translators)
if ($languageIcon && $languageUid > 0 && $GLOBALS['BE_USER']->checkLanguageAccess($languageUid) && $contentTreeArr['el']['table'] === 'tt_content') {
$languageIcon = $this->link_edit($languageIcon, 'tt_content', $contentTreeArr['el']['uid'], TRUE);
}
// Create warning messages if neccessary:
$warnings = '';
if ($this->global_tt_content_elementRegister[$contentTreeArr['el']['uid']] > 1 && $this->rootElementLangParadigm != 'free') {
$warnings .= '<br/>' . $this->doc->icons(2) . ' <em>' . htmlspecialchars(sprintf($LANG->getLL('warning_elementusedmorethanonce', ''), $this->global_tt_content_elementRegister[$contentTreeArr['el']['uid']], $contentTreeArr['el']['uid'])) . '</em>';
}
// Displaying warning for container content (in default sheet - a limitation) elements if localization is enabled:
$isContainerEl = count($contentTreeArr['sub']['sDEF']);
if (!$this->modTSconfig['properties']['disableContainerElementLocalizationWarning'] && $this->rootElementLangParadigm != 'free' && $isContainerEl && $contentTreeArr['el']['table'] === 'tt_content' && $contentTreeArr['el']['CType'] === 'templavoila_pi1' && !$contentTreeArr['ds_meta']['langDisable']) {
if ($contentTreeArr['ds_meta']['langChildren']) {
if (!$this->modTSconfig['properties']['disableContainerElementLocalizationWarning_warningOnly']) {
$warnings .= '<br/>' . $this->doc->icons(2) . ' <b>' . $LANG->getLL('warning_containerInheritance_short') . '</b>';
}
} else {
$warnings .= '<br/>' . $this->doc->icons(3) . ' <b>' . $LANG->getLL('warning_containerSeparate_short') . '</b>';
}
}
// Create entry for this element:
$entries[] = array('indentLevel' => $indentLevel, 'icon' => $titleBarLeftButtons, 'title' => ($elementBelongsToCurrentPage ? '' : '<em>') . htmlspecialchars($contentTreeArr['el']['title']) . ($elementBelongsToCurrentPage ? '' : '</em>'), 'warnings' => $warnings, 'controls' => $titleBarRightButtons . $controls, 'table' => $contentTreeArr['el']['table'], 'uid' => $contentTreeArr['el']['uid'], 'flag' => $languageIcon, 'isNewVersion' => $contentTreeArr['el']['_ORIG_uid'] ? TRUE : FALSE, 'elementTitlebarClass' => (!$elementBelongsToCurrentPage ? 'tpm-elementRef' : 'tpm-element') . ' tpm-outline-level' . $indentLevel);
// Create entry for localizaitons...
$this->render_outline_localizations($contentTreeArr, $entries, $indentLevel + 1);
// Create entries for sub-elements in all sheets:
//.........这里部分代码省略.........
示例8: render_framework_singleSheet
/**
* Renders the display framework of a single sheet. Calls itself recursively
*
* @param array $contentTreeArr: DataStructure info array (the whole tree)
* @param string $languageKey: Language key for the display
* @param string $sheet: The sheet key of the sheet which should be rendered
* @param array $parentPointer: Flexform pointer to parent element
* @param array $parentDsMeta: Meta array from parent DS (passing information about parent containers localization mode)
* @return string HTML
* @access protected
* @see render_framework_singleSheet()
*/
function render_framework_singleSheet($contentTreeArr, $languageKey, $sheet, $parentPointer = array(), $parentDsMeta = array())
{
global $LANG, $TYPO3_CONF_VARS;
$elementBelongsToCurrentPage = $contentTreeArr['el']['table'] == 'pages' || $contentTreeArr['el']['pid'] == $this->rootElementUid_pidForContent;
$canEditPage = $GLOBALS['BE_USER']->isPSet($this->calcPerms, 'pages', 'edit');
$canEditContent = $GLOBALS['BE_USER']->isPSet($this->calcPerms, 'pages', 'editcontent');
// Prepare the record icon including a content sensitive menu link wrapped around it:
$recordIcon = '<img' . t3lib_iconWorks::skinImg($this->doc->backPath, $contentTreeArr['el']['icon'], '') . ' style="text-align: center; vertical-align: middle;" width="18" height="16" border="0" title="' . htmlspecialchars('[' . $contentTreeArr['el']['table'] . ':' . $contentTreeArr['el']['uid'] . ']') . '" alt="" />';
$menuCommands = array();
if ($GLOBALS['BE_USER']->isPSet($this->calcPerms, 'pages', 'new')) {
$menuCommands[] = 'new';
}
if ($canEditContent) {
$menuCommands[] = 'copy,cut,pasteinto,pasteafter,delete';
}
$titleBarLeftButtons = $this->translatorMode ? $recordIcon : (count($menuCommands) == 0 ? $recordIcon : $this->doc->wrapClickMenuOnIcon($recordIcon, $contentTreeArr['el']['table'], $contentTreeArr['el']['uid'], 1, '&callingScriptId=' . rawurlencode($this->doc->scriptID), implode(',', $menuCommands)));
unset($menuCommands);
// Prepare table specific settings:
switch ($contentTreeArr['el']['table']) {
case 'pages':
$wrap = '|';
$titleBarLeftButtons .= $this->translatorMode || !$canEditPage ? '' : $this->link_edit('<img' . t3lib_iconWorks::skinImg($this->doc->backPath, 'gfx/edit2.gif', '') . ' title="' . htmlspecialchars($LANG->sL('LLL:EXT:lang/locallang_mod_web_list.xml:editPage')) . '" alt="" style="text-align: center; vertical-align: middle; border:0;" />', $contentTreeArr['el']['table'], $contentTreeArr['el']['uid']);
$titleBarRightButtons = '';
$addGetVars = $this->currentLanguageUid ? '&L=' . $this->currentLanguageUid : '';
$viewPageOnClick = 'onclick= "' . htmlspecialchars(t3lib_BEfunc::viewOnClick($contentTreeArr['el']['uid'], $this->doc->backPath, t3lib_BEfunc::BEgetRootLine($contentTreeArr['el']['uid']), '', '', $addGetVars)) . '"';
$viewPageIcon = '<img' . t3lib_iconWorks::skinImg($this->doc->backPath, 'gfx/zoom.gif', 'width="12" height="12"') . ' title="' . $LANG->sL('LLL:EXT:lang/locallang_core.xml:labels.showPage', 1) . '" hspace="3" alt="" style="text-align: center; vertical-align: middle;" />';
$titleBarLeftButtons .= '<a href="#" ' . $viewPageOnClick . '>' . $viewPageIcon . '</a>';
break;
case 'tt_content':
$wrap = '<div style="border: 1px solid #FFD8A9">|</div>';
$elementTitlebarColor = $elementBelongsToCurrentPage ? $this->doc->bgColor5 : $this->doc->bgColor6;
$elementTitlebarStyle = 'background-color: ' . $elementTitlebarColor;
$languageUid = $contentTreeArr['el']['sys_language_uid'];
if (!$this->translatorMode && $canEditContent) {
// Create CE specific buttons:
$linkMakeLocal = !$elementBelongsToCurrentPage ? $this->link_makeLocal('<img' . t3lib_iconWorks::skinImg($this->doc->backPath, t3lib_extMgm::extRelPath('templavoila') . 'mod1/makelocalcopy.gif', '') . ' title="' . $LANG->getLL('makeLocal') . '" border="0" alt="" />', $parentPointer) : '';
$linkUnlink = $this->link_unlink('<img' . t3lib_iconWorks::skinImg($this->doc->backPath, 'gfx/garbage.gif', '') . ' title="' . $LANG->getLL('unlinkRecord') . '" border="0" alt="" />', $parentPointer, FALSE);
if ($GLOBALS['BE_USER']->recordEditAccessInternals('tt_content', $contentTreeArr['previewData']['fullRow'])) {
$linkEdit = $elementBelongsToCurrentPage ? $this->link_edit('<img' . t3lib_iconWorks::skinImg($this->doc->backPath, 'gfx/edit2.gif', '') . ' title="' . $LANG->getLL('editrecord') . '" border="0" alt="" />', $contentTreeArr['el']['table'], $contentTreeArr['el']['uid']) : '';
} else {
$linkEdit = '';
}
$titleBarRightButtons = $linkEdit . $this->clipboardObj->element_getSelectButtons($parentPointer) . $linkMakeLocal . $linkUnlink;
} else {
$titleBarRightButtons = '';
}
break;
}
// Prepare the language icon:
$languageLabel = htmlspecialchars($this->allAvailableLanguages[$contentTreeArr['el']['sys_language_uid']]['title']);
$languageIcon = $this->allAvailableLanguages[$languageUid]['flagIcon'] ? '<img src="' . $this->allAvailableLanguages[$languageUid]['flagIcon'] . '" title="' . $languageLabel . '" alt="' . $languageLabel . '" style="text-align: center; vertical-align: middle;" />' : ($languageLabel && $languageUid ? '[' . $languageLabel . ']' : '');
// If there was a language icon and the language was not default or [all] and if that langauge is accessible for the user, then wrap the flag with an edit link (to support the "Click the flag!" principle for translators)
if ($languageIcon && $languageUid > 0 && $GLOBALS['BE_USER']->checkLanguageAccess($languageUid) && $contentTreeArr['el']['table'] === 'tt_content') {
$languageIcon = $this->link_edit($languageIcon, 'tt_content', $contentTreeArr['el']['uid'], TRUE);
}
// Create warning messages if neccessary:
$warnings = '';
if ($this->global_tt_content_elementRegister[$contentTreeArr['el']['uid']] > 1 && $this->rootElementLangParadigm != 'free') {
$warnings .= '<br/>' . $this->doc->icons(2) . ' <em>' . htmlspecialchars(sprintf($LANG->getLL('warning_elementusedmorethanonce', ''), $this->global_tt_content_elementRegister[$contentTreeArr['el']['uid']], $contentTreeArr['el']['uid'])) . '</em>';
}
// Displaying warning for container content (in default sheet - a limitation) elements if localization is enabled:
$isContainerEl = count($contentTreeArr['sub']['sDEF']);
if (!$this->modTSconfig['properties']['disableContainerElementLocalizationWarning'] && $this->rootElementLangParadigm != 'free' && $isContainerEl && $contentTreeArr['el']['table'] === 'tt_content' && $contentTreeArr['el']['CType'] === 'templavoila_pi1' && !$contentTreeArr['ds_meta']['langDisable']) {
if ($contentTreeArr['ds_meta']['langChildren']) {
if (!$this->modTSconfig['properties']['disableContainerElementLocalizationWarning_warningOnly']) {
$warnings .= '<br/>' . $this->doc->icons(2) . ' <b>' . $LANG->getLL('warning_containerInheritance') . '</b>';
}
} else {
$warnings .= '<br/>' . $this->doc->icons(3) . ' <b>' . $LANG->getLL('warning_containerSeparate') . '</b>';
}
}
// Preview made:
$previewContent = $this->render_previewData($contentTreeArr['previewData'], $contentTreeArr['el'], $contentTreeArr['ds_meta'], $languageKey, $sheet);
// Wrap workspace notification colors:
if ($contentTreeArr['el']['_ORIG_uid']) {
$previewContent = '<div class="ver-element">' . ($previewContent ? $previewContent : '<em>[New version]</em>') . '</div>';
}
//visibility
require_once t3lib_extMgm::extPath("languagevisibility") . 'class.tx_languagevisibility_beservices.php';
$service = t3lib_div::makeInstance('tx_languagevisibility_beservices');
$flags = $elementContentTreeArr['el']['uid'] . $service->getVisibleFlagsForElement($contentTreeArr['el']['uid'], $contentTreeArr['el']['table']);
// Finally assemble the table:
$finalContent = '
<table cellpadding="0" cellspacing="0" style="width: 100%; border: 1px solid black; margin:5px;">
<tr class="languagevisibility" style="background: #FFE3C1; ">
<td style="vertical-align:top; padding: 2px; color: #4B3B27;" colspan="2">' . '<span class="nobr">Visibility:' . $flags . '</span>' . '</td>
</tr>
//.........这里部分代码省略.........
示例9: getButtons
/**
* Create the panel of buttons for submitting the form or otherwise perform operations.
*
* @return array all available buttons as an associated array
*/
protected function getButtons()
{
$buttons = array('view' => '', 'record_list' => '', 'shortcut' => '');
if ($GLOBALS['BE_USER']->mayMakeShortcut()) {
$buttons['shortcut'] = $this->doc->makeShortcutIcon('tx_impexp', '', $this->MCONF['name']);
}
// Input data grabbed:
$inData = t3lib_div::_GP('tx_impexp');
if ((string) $inData['action'] == 'import') {
if ($this->id && is_array($this->pageinfo) || $GLOBALS['BE_USER']->user['admin'] && !$this->id) {
if (is_array($this->pageinfo) && $this->pageinfo['uid']) {
// View
$buttons['view'] = '<a href="#" onclick="' . htmlspecialchars(t3lib_BEfunc::viewOnClick($this->pageinfo['uid'], $this->doc->backPath, t3lib_BEfunc::BEgetRootLine($this->pageinfo['uid']))) . '" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.showPage', TRUE) . '">' . t3lib_iconWorks::getSpriteIcon('actions-document-view') . '</a>';
// Record list
// If access to Web>List for user, then link to that module.
$buttons['record_list'] = t3lib_BEfunc::getListViewLink(array('id' => $this->pageinfo['uid'], 'returnUrl' => t3lib_div::getIndpEnv('REQUEST_URI')), $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.showList'));
}
}
}
return $buttons;
}
示例10: DB_view
/**
* Adding CM element for View Page
*
* @param integer Page uid (PID)
* @param string Anchor, if any
* @return array Item array, element in $menuItems
* @internal
*/
function DB_view($id, $anchor = '')
{
return $this->linkItem($this->label('view'), $this->excludeIcon(t3lib_iconWorks::getSpriteIcon('actions-document-view')), t3lib_BEfunc::viewOnClick($id, $this->PH_backPath, t3lib_BEfunc::BEgetRootLine($id), $anchor) . 'return hideCM();');
}
示例11: renderL10nTable
/**
* Rendering the localization information table.
*
* @param array The Page tree data
* @return string HTML for the localization information table.
*/
function renderL10nTable(&$tree)
{
global $LANG;
// System languages retrieved:
$languages = $this->getSystemLanguages();
// Title length:
$titleLen = $GLOBALS['BE_USER']->uc['titleLen'];
// Put together the TREE:
$output = '';
$newOL_js = array();
$langRecUids = array();
foreach ($tree->tree as $data) {
$tCells = array();
$langRecUids[0][] = $data['row']['uid'];
// Page icons / titles etc.
$tCells[] = '<td' . ($data['row']['_CSSCLASS'] ? ' class="' . $data['row']['_CSSCLASS'] . '"' : '') . '>' . $data['HTML'] . htmlspecialchars(t3lib_div::fixed_lgd_cs($data['row']['title'], $titleLen)) . (strcmp($data['row']['nav_title'], '') ? ' [Nav: <em>' . htmlspecialchars(t3lib_div::fixed_lgd_cs($data['row']['nav_title'], $titleLen)) . '</em>]' : '') . '</td>';
// DEFAULT language:
// "View page" link is created:
$viewPageLink = '<a href="#" onclick="' . htmlspecialchars(t3lib_BEfunc::viewOnClick($data['row']['uid'], $GLOBALS['BACK_PATH'], '', '', '', '&L=###LANG_UID###')) . '" title="' . $LANG->getLL('lang_renderl10n_viewPage', TRUE) . '">' . t3lib_iconWorks::getSpriteIcon('actions-document-view') . '</a>';
$status = $data['row']['l18n_cfg'] & 1 ? 'c-blocked' : 'c-ok';
// Create links:
$info = '';
$editUid = $data['row']['uid'];
$params = '&edit[pages][' . $editUid . ']=edit';
$info .= '<a href="#" onclick="' . htmlspecialchars(t3lib_BEfunc::editOnClick($params, $GLOBALS['BACK_PATH'])) . '" title="' . $LANG->getLL('lang_renderl10n_editDefaultLanguagePage', TRUE) . '">' . t3lib_iconWorks::getSpriteIcon('actions-document-open') . '</a>';
$info .= '<a href="#" onclick="' . htmlspecialchars('top.loadEditId(' . intval($data['row']['uid']) . ',"&SET[language]=0"); return false;') . '" title="' . $LANG->getLL('lang_renderl10n_editPage', TRUE) . '">' . t3lib_iconWorks::getSpriteIcon('actions-page-open') . '</a>';
$info .= str_replace('###LANG_UID###', '0', $viewPageLink);
$info .= ' ';
$info .= $data['row']['l18n_cfg'] & 1 ? '<span title="' . $LANG->sL('LLL:EXT:cms/locallang_tca.php:pages.l18n_cfg.I.1', '1') . '">D</span>' : ' ';
$info .= t3lib_div::hideIfNotTranslated($data['row']['l18n_cfg']) ? '<span title="' . $LANG->sL('LLL:EXT:cms/locallang_tca.php:pages.l18n_cfg.I.2', '1') . '">N</span>' : ' ';
// Put into cell:
$tCells[] = '<td class="' . $status . ' c-leftLine">' . $info . '</td>';
$tCells[] = '<td class="' . $status . '" title="' . $LANG->getLL('lang_renderl10n_CEcount', '1') . '" align="center">' . $this->getContentElementCount($data['row']['uid'], 0) . '</td>';
$modSharedTSconfig = t3lib_BEfunc::getModTSconfig($data['row']['uid'], 'mod.SHARED');
$disableLanguages = isset($modSharedTSconfig['properties']['disableLanguages']) ? t3lib_div::trimExplode(',', $modSharedTSconfig['properties']['disableLanguages'], 1) : array();
// Traverse system languages:
foreach ($languages as $langRow) {
if ($this->pObj->MOD_SETTINGS['lang'] == 0 || (int) $this->pObj->MOD_SETTINGS['lang'] === (int) $langRow['uid']) {
$row = $this->getLangStatus($data['row']['uid'], $langRow['uid']);
$info = '';
if (is_array($row)) {
$langRecUids[$langRow['uid']][] = $row['uid'];
$status = $row['_HIDDEN'] ? t3lib_div::hideIfNotTranslated($data['row']['l18n_cfg']) || $data['row']['l18n_cfg'] & 1 ? 'c-blocked' : 'c-fallback' : 'c-ok';
$icon = t3lib_iconWorks::getSpriteIconForRecord('pages_language_overlay', $row, array('class' => 'c-recIcon'));
$info = $icon . htmlspecialchars(t3lib_div::fixed_lgd_cs($row['title'], $titleLen)) . (strcmp($row['nav_title'], '') ? ' [Nav: <em>' . htmlspecialchars(t3lib_div::fixed_lgd_cs($row['nav_title'], $titleLen)) . '</em>]' : '') . ($row['_COUNT'] > 1 ? '<div>' . $LANG->getLL('lang_renderl10n_badThingThereAre', '1') . '</div>' : '');
$tCells[] = '<td class="' . $status . ' c-leftLine">' . $info . '</td>';
// Edit whole record:
$info = '';
$editUid = $row['uid'];
$params = '&edit[pages_language_overlay][' . $editUid . ']=edit';
$info .= '<a href="#" onclick="' . htmlspecialchars(t3lib_BEfunc::editOnClick($params, $GLOBALS['BACK_PATH'])) . '" title="' . $LANG->getLL('lang_renderl10n_editLanguageOverlayRecord', TRUE) . '">' . t3lib_iconWorks::getSpriteIcon('actions-document-open') . '</a>';
$info .= '<a href="#" onclick="' . htmlspecialchars('top.loadEditId(' . intval($data['row']['uid']) . ',"&SET[language]=' . $langRow['uid'] . '"); return false;') . '" title="' . $LANG->getLL('lang_renderl10n_editPageLang', TRUE) . '">' . t3lib_iconWorks::getSpriteIcon('actions-page-open') . '</a>';
$info .= str_replace('###LANG_UID###', $langRow['uid'], $viewPageLink);
$tCells[] = '<td class="' . $status . '">' . $info . '</td>';
$tCells[] = '<td class="' . $status . '" title="' . $LANG->getLL('lang_renderl10n_CEcount', '1') . '" align="center">' . $this->getContentElementCount($data['row']['uid'], $langRow['uid']) . '</td>';
} else {
if (in_array($langRow['uid'], $disableLanguages)) {
// Language has been disabled for this page
$status = 'c-blocked';
$info = '';
} else {
$status = t3lib_div::hideIfNotTranslated($data['row']['l18n_cfg']) || $data['row']['l18n_cfg'] & 1 ? 'c-blocked' : 'c-fallback';
$info = '<input type="checkbox" name="newOL[' . $langRow['uid'] . '][' . $data['row']['uid'] . ']" value="1" />';
$newOL_js[$langRow['uid']] .= '
+(document.webinfoForm[\'newOL[' . $langRow['uid'] . '][' . $data['row']['uid'] . ']\'].checked ? \'&edit[pages_language_overlay][' . $data['row']['uid'] . ']=new\' : \'\')
';
}
$tCells[] = '<td class="' . $status . ' c-leftLine"> </td>';
$tCells[] = '<td class="' . $status . '"> </td>';
$tCells[] = '<td class="' . $status . '">' . $info . '</td>';
}
}
}
$output .= '
<tr class="bgColor4">
' . implode('
', $tCells) . '
</tr>';
}
// Put together HEADER:
$tCells = array();
$tCells[] = '<td>' . $LANG->getLL('lang_renderl10n_page', '1') . ':</td>';
if (is_array($langRecUids[0])) {
$params = '&edit[pages][' . implode(',', $langRecUids[0]) . ']=edit&columnsOnly=title,nav_title,l18n_cfg,hidden';
$editIco = '<a href="#" onclick="' . htmlspecialchars(t3lib_BEfunc::editOnClick($params, $GLOBALS['BACK_PATH'])) . '" title="' . $LANG->getLL('lang_renderl10n_editPageProperties', TRUE) . '">' . t3lib_iconWorks::getSpriteIcon('actions-document-new') . '</a>';
} else {
$editIco = '';
}
$tCells[] = '<td class="c-leftLine" colspan="2">' . $LANG->getLL('lang_renderl10n_default', '1') . ':' . $editIco . '</td>';
foreach ($languages as $langRow) {
if ($this->pObj->MOD_SETTINGS['lang'] == 0 || (int) $this->pObj->MOD_SETTINGS['lang'] === (int) $langRow['uid']) {
// Title:
$tCells[] = '<td class="c-leftLine">' . htmlspecialchars($langRow['title']) . '</td>';
// Edit language overlay records:
//.........这里部分代码省略.........
示例12: render_framework_singleSheet
/**
* Renders the display framework of a single sheet. Calls itself recursively
*
* @param array $contentTreeArr: DataStructure info array (the whole tree)
* @param string $languageKey: Language key for the display
* @param string $sheet: The sheet key of the sheet which should be rendered
* @param array $parentPointer: Flexform pointer to parent element
* @param array $parentDsMeta: Meta array from parent DS (passing information about parent containers localization mode)
* @return string HTML
* @access protected
* @see render_framework_singleSheet()
*/
function render_framework_singleSheet($contentTreeArr, $languageKey, $sheet, $parentPointer = array(), $parentDsMeta = array())
{
global $LANG, $TYPO3_CONF_VARS;
$elementBelongsToCurrentPage = $contentTreeArr['el']['table'] == 'pages' || $contentTreeArr['el']['pid'] == $this->rootElementUid_pidForContent;
$canEditPage = $GLOBALS['BE_USER']->isPSet($this->calcPerms, 'pages', 'edit');
$canEditContent = $GLOBALS['BE_USER']->isPSet($this->calcPerms, 'pages', 'editcontent');
// Prepare the record icon including a content sensitive menu link wrapped around it:
$recordIcon = '<img' . t3lib_iconWorks::skinImg($this->doc->backPath, $contentTreeArr['el']['icon'], '') . ' style="text-align: center; vertical-align: middle;" width="18" height="16" border="0" title="' . htmlspecialchars('[' . $contentTreeArr['el']['table'] . ':' . $contentTreeArr['el']['uid'] . ']') . '" alt="" />';
$menuCommands = array();
if ($GLOBALS['BE_USER']->isPSet($this->calcPerms, 'pages', 'new')) {
$menuCommands[] = 'new';
}
if ($canEditContent) {
$menuCommands[] = 'copy,cut,pasteinto,pasteafter,delete';
} else {
$menuCommands[] = 'copy';
}
$titleBarLeftButtons = $this->translatorMode ? $recordIcon : (count($menuCommands) == 0 ? $recordIcon : $this->doc->wrapClickMenuOnIcon($recordIcon, $contentTreeArr['el']['table'], $contentTreeArr['el']['uid'], 1, '&callingScriptId=' . rawurlencode($this->doc->scriptID), implode(',', $menuCommands)));
$titleBarLeftButtons .= $this->getRecordStatHookValue($contentTreeArr['el']['table'], $contentTreeArr['el']['uid']);
unset($menuCommands);
// Prepare table specific settings:
switch ($contentTreeArr['el']['table']) {
case 'pages':
$titleBarLeftButtons .= $this->translatorMode || !$canEditPage ? '' : $this->link_edit('<img' . t3lib_iconWorks::skinImg($this->doc->backPath, 'gfx/edit2.gif', '') . ' title="' . htmlspecialchars($LANG->sL('LLL:EXT:lang/locallang_mod_web_list.xml:editPage')) . '" alt="" style="text-align: center; vertical-align: middle; border:0;" />', $contentTreeArr['el']['table'], $contentTreeArr['el']['uid']);
$titleBarRightButtons = '';
$addGetVars = $this->currentLanguageUid ? '&L=' . $this->currentLanguageUid : '';
$viewPageOnClick = 'onclick= "' . htmlspecialchars(t3lib_BEfunc::viewOnClick($contentTreeArr['el']['uid'], $this->doc->backPath, t3lib_BEfunc::BEgetRootLine($contentTreeArr['el']['uid']), '', '', $addGetVars)) . '"';
$viewPageIcon = '<img' . t3lib_iconWorks::skinImg($this->doc->backPath, 'gfx/zoom.gif', 'width="12" height="12"') . ' title="' . $LANG->sL('LLL:EXT:lang/locallang_core.xml:labels.showPage', 1) . '" hspace="3" alt="" style="text-align: center; vertical-align: middle;" />';
$titleBarLeftButtons .= '<a href="#" ' . $viewPageOnClick . '>' . $viewPageIcon . '</a>';
#
### Mansoor Ahmad - JavaScript for making CEs Draggable
#
$dragAndDropEnable = 0;
if (strstr($_SERVER["HTTP_USER_AGENT"], "Firefox") && strstr($_SERVER["HTTP_USER_AGENT"], "Gecko") || strstr($_SERVER["HTTP_USER_AGENT"], "Chrome")) {
$dragAndDropEnable = 1;
}
break;
case 'tt_content':
$elementTitlebarColor = $elementBelongsToCurrentPage ? $this->doc->bgColor5 : $this->doc->bgColor6;
$elementTitlebarStyle = 'background-color: ' . $elementTitlebarColor;
$languageUid = $contentTreeArr['el']['sys_language_uid'];
if (!$this->translatorMode && $canEditContent) {
// Create CE specific buttons:
$linkMakeLocal = !$elementBelongsToCurrentPage ? $this->link_makeLocal('<img' . t3lib_iconWorks::skinImg($this->doc->backPath, t3lib_extMgm::extRelPath('templavoila') . 'mod1/makelocalcopy.gif', '') . ' title="' . $LANG->getLL('makeLocal') . '" border="0" alt="" />', $parentPointer) : '';
// #
// ### Mansoor Ahmad - I include it on Caspars recommend
// #
$linkUnlink = $this->link_unlink('<img' . t3lib_iconWorks::skinImg($this->doc->backPath, 'gfx/garbage.gif', '') . ' title="' . $LANG->getLL('deleteRecord') . '" border="0" alt="" />', $parentPointer, $elementBelongsToCurrentPage ? TRUE : FALSE);
if ($GLOBALS['BE_USER']->recordEditAccessInternals('tt_content', $contentTreeArr['previewData']['fullRow'])) {
$linkEdit = $elementBelongsToCurrentPage ? $this->link_edit('<img' . t3lib_iconWorks::skinImg($this->doc->backPath, 'gfx/edit2.gif', '') . ' title="' . $LANG->getLL('editrecord') . '" border="0" alt="" />', $contentTreeArr['el']['table'], $contentTreeArr['el']['uid']) : '';
} else {
$linkEdit = '';
}
// #
// ### Mansoor Ahmad - I deactivated it for safty way, but now is it active
// #
//$titleBarRightButtons = $linkEdit . $this->clipboardObj->element_getSelectButtons($parentPointer,'copy,cut') . $linkMakeLocal . $linkUnlink;
$titleBarRightButtons = $linkEdit . $this->clipboardObj->element_getSelectButtons($parentPointer) . $linkMakeLocal . $linkUnlink;
} else {
$titleBarRightButtons = $this->clipboardObj->element_getSelectButtons($parentPointer, 'copy');
}
#
### Mansoor Ahmad - JavaScript for making CEs Draggable
#
$dragAndDropEnable = 0;
if (strstr($_SERVER["HTTP_USER_AGENT"], "Firefox") && strstr($_SERVER["HTTP_USER_AGENT"], "Gecko") || strstr($_SERVER["HTTP_USER_AGENT"], "Chrome")) {
$makeDraggable = '<script>new Draggable(\'' . $contentTreeArr['el']['CType'] . '-' . $contentTreeArr['el']['uid'] . '\',{
revert:true,
ghosting:false
});</script>';
$dragAndDropEnable = 1;
}
// #
// ### Mansoor Ahmad - I disable the Buttons of CE's in Flexform Elements
// #
$classBe = '';
$resPages = $GLOBALS['TYPO3_DB']->exec_SELECTquery('tx_templavoila_flex', 'pages', 'uid=' . $contentTreeArr['el']['pid']);
$rowPages = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($resPages);
$flexData = t3lib_div::xml2array($rowPages['tx_templavoila_flex']);
if (empty($elementBelongsToCurrentPage)) {
$classBe = 'go_backend_layout_shortcut_ce';
$titleBarLeftButtons = '';
$titleBarRightButtons = $linkEdit . $this->clipboardObj->element_getSelectButtons($parentPointer, 'cut') . $linkMakeLocal . $linkUnlink;
$backLinkToParentCe = '<a href="index.php?id=' . $contentTreeArr['el']['pid'] . '"><u>Springe zum Mutterelement in Seite:</u> <br/><span style="float:left;">' . $this->getPagename($contentTreeArr['el']['pid']) . '</span></a>';
$makeDraggable = '';
}
foreach ($flexData['data']['sDEF']['lDEF'] as $fieldName => $fieldArray) {
$uidsLevel1 = explode(',', $fieldArray['vDEF']);
//.........这里部分代码省略.........
示例13: getViewLink
/**
* Returns the view link of a given node
*
* @param stdClass $nodeData
* @return string
*/
public static function getViewLink($nodeData)
{
/** @var $node t3lib_tree_pagetree_Node */
$node = t3lib_div::makeInstance('t3lib_tree_pagetree_Node', (array) $nodeData);
$javascriptLink = t3lib_BEfunc::viewOnClick($node->getId());
preg_match('/window\\.open\\(\'([^\']+)\'/i', $javascriptLink, $match);
return $match[1];
}
示例14: getButtons
/**
* Create the panel of buttons for submitting the form or otherwise perform operations.
*
* @param string Identifier for function of module
* @return array all available buttons as an assoc. array
*/
protected function getButtons($function = '')
{
global $TCA, $LANG, $BACK_PATH, $BE_USER;
$buttons = array('view' => '', 'history_page' => '', 'new_content' => '', 'move_page' => '', 'move_record' => '', 'new_page' => '', 'edit_page' => '', 'record_list' => '', 'csh' => '', 'shortcut' => '', 'cache' => '', 'savedok' => '', 'savedokshow' => '', 'closedok' => '', 'deletedok' => '', 'undo' => '', 'history_record' => '');
// View page
$buttons['view'] = '<a href="#" onclick="' . htmlspecialchars(t3lib_BEfunc::viewOnClick($this->pageinfo['uid'], $BACK_PATH, t3lib_BEfunc::BEgetRootLine($this->pageinfo['uid']))) . '" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.showPage', TRUE) . '">' . t3lib_iconWorks::getSpriteIcon('actions-document-view') . '</a>';
// Shortcut
if ($BE_USER->mayMakeShortcut()) {
$buttons['shortcut'] = $this->doc->makeShortcutIcon('id, edit_record, pointer, new_unique_uid, search_field, search_levels, showLimit', implode(',', array_keys($this->MOD_MENU)), $this->MCONF['name']);
}
// Cache
if (!$this->modTSconfig['properties']['disableAdvanced']) {
$buttons['cache'] = '<a href="' . htmlspecialchars('db_layout.php?id=' . $this->pageinfo['uid'] . '&clear_cache=1') . '" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.clear_cache', TRUE) . '">' . t3lib_iconWorks::getSpriteIcon('actions-system-cache-clear') . '</a>';
}
// If access to Web>List for user, then link to that module.
$buttons['record_list'] = t3lib_BEfunc::getListViewLink(array('id' => $this->pageinfo['uid'], 'returnUrl' => t3lib_div::getIndpEnv('REQUEST_URI')), $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.showList'));
if (!$this->modTSconfig['properties']['disableIconToolbar']) {
// Page history
$buttons['history_page'] = '<a href="#" onclick="' . htmlspecialchars('jumpToUrl(\'' . $BACK_PATH . 'show_rechis.php?element=' . rawurlencode('pages:' . $this->id) . '&returnUrl=' . rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI')) . '#latest\');return false;') . '" title="' . $LANG->getLL('recordHistory', TRUE) . '">' . t3lib_iconWorks::getSpriteIcon('actions-document-history-open') . '</a>';
// New content element
$buttons['new_content'] = '<a href="' . htmlspecialchars('db_new_content_el.php?id=' . $this->id . '&sys_language_uid=' . $this->current_sys_language . '&returnUrl=' . rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI'))) . '" title="' . $LANG->getLL('newContentElement', TRUE) . '">' . t3lib_iconWorks::getSpriteIcon('actions-document-new') . '</a>';
// Move page
$buttons['move_page'] = '<a href="' . htmlspecialchars($BACK_PATH . 'move_el.php?table=pages&uid=' . $this->id . '&returnUrl=' . rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI'))) . '" title="' . $LANG->getLL('move_page', TRUE) . '">' . t3lib_iconWorks::getSpriteIcon('actions-page-move') . '</a>';
// Move record
if (t3lib_div::testInt($this->eRParts[1])) {
$buttons['move_record'] = '<a href="' . htmlspecialchars($BACK_PATH . 'move_el.php?table=' . $this->eRParts[0] . '&uid=' . $this->eRParts[1] . '&returnUrl=' . rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI'))) . '">' . t3lib_iconWorks::getSpriteIcon('actions-' . ($this->eRParts[0] == 'tt_content' ? 'document' : 'page') . '-move', array('class' => 'c-inputButton', 'title' => $LANG->getLL('move_' . ($this->eRParts[0] == 'tt_content' ? 'record' : 'page'), 1))) . '</a>';
}
// Create new page (wizard)
$buttons['new_page'] = '<a href="#" onclick="' . htmlspecialchars('jumpToUrl(\'' . $BACK_PATH . 'db_new.php?id=' . $this->id . '&pagesOnly=1&returnUrl=' . rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI')) . '\');return false;') . '" title="' . $LANG->getLL('newPage', TRUE) . '">' . t3lib_iconWorks::getSpriteIcon('actions-page-new') . '</a>';
// Edit page properties
if ($this->CALC_PERMS & 2) {
$params = '&edit[pages][' . $this->id . ']=edit';
$buttons['edit_page'] = '<a href="#" onclick="' . htmlspecialchars(t3lib_BEfunc::editOnClick($params, $BACK_PATH)) . '" title="' . $LANG->getLL('editPageProperties', TRUE) . '">' . t3lib_iconWorks::getSpriteIcon('actions-page-open') . '</a>';
}
// Add CSH (Context Sensitive Help) icon to tool bar
if ($function == 'quickEdit') {
$buttons['csh'] = t3lib_BEfunc::cshItem($this->descrTable, 'quickEdit', $BACK_PATH, '', TRUE, 'margin-top: 0px; margin-bottom: 0px;');
} else {
$buttons['csh'] = t3lib_BEfunc::cshItem($this->descrTable, 'columns_' . $this->MOD_SETTINGS['function'], $BACK_PATH, '', TRUE, 'margin-top: 0px; margin-bottom: 0px;');
}
if ($function == 'quickEdit') {
// Save record
$buttons['savedok'] = '<input class="c-inputButton" type="image" name="savedok"' . t3lib_iconWorks::skinImg($BACK_PATH, 'gfx/savedok.gif', '') . ' title="' . $LANG->sL('LLL:EXT:lang/locallang_core.php:rm.saveDoc', 1) . '" alt="" />';
// Save record and show page
$buttons['savedokshow'] = '<a href="#" onclick="' . htmlspecialchars('document.editform.redirect.value+=\'&popView=1\'; TBE_EDITOR.checkAndDoSubmit(1); return false;') . '" title="' . $LANG->sL('LLL:EXT:lang/locallang_core.php:rm.saveDocShow', TRUE) . '">' . t3lib_iconWorks::getSpriteIcon('actions-document-save-view') . '</a>';
// Close record
$buttons['closedok'] = '<a href="#" onclick="' . htmlspecialchars('jumpToUrl(unescape(\'' . rawurlencode($this->closeUrl) . '\')); return false;') . '" title="' . $LANG->sL('LLL:EXT:lang/locallang_core.php:rm.closeDoc', TRUE) . '">' . t3lib_iconWorks::getSpriteIcon('actions-document-close') . '</a>';
// Delete record
if ($this->deleteButton) {
$buttons['deletedok'] = '<a href="#" onclick="' . htmlspecialchars('return deleteRecord(\'' . $this->eRParts[0] . '\',\'' . $this->eRParts[1] . '\',\'' . t3lib_div::getIndpEnv('SCRIPT_NAME') . '?id=' . $this->id . '\');') . '" title="' . $LANG->getLL('deleteItem', TRUE) . '">' . t3lib_iconWorks::getSpriteIcon('actions-edit-delete') . '</a>';
}
if ($this->undoButton) {
// Undo button
$buttons['undo'] = '<a href="#"
onclick="' . htmlspecialchars('window.location.href=\'' . $BACK_PATH . 'show_rechis.php?element=' . rawurlencode($this->eRParts[0] . ':' . $this->eRParts[1]) . '&revert=ALL_FIELDS&sumUp=-1&returnUrl=' . rawurlencode($this->R_URI) . '\'; return false;') . '"
title="' . htmlspecialchars(sprintf($LANG->getLL('undoLastChange'), t3lib_BEfunc::calcAge($GLOBALS['EXEC_TIME'] - $this->undoButtonR['tstamp'], $LANG->sL('LLL:EXT:lang/locallang_core.php:labels.minutesHoursDaysYears')))) . '">' . t3lib_iconWorks::getSpriteIcon('actions-edit-undo') . '</a>';
// History button
$buttons['history_record'] = '<a href="#" onclick="' . htmlspecialchars('jumpToUrl(\'' . $BACK_PATH . 'show_rechis.php?element=' . rawurlencode($this->eRParts[0] . ':' . $this->eRParts[1]) . '&returnUrl=' . rawurlencode($this->R_URI) . '#latest\');return false;') . '" title="' . $LANG->getLL('recordHistory', TRUE) . '">' . t3lib_iconWorks::getSpriteIcon('actions-document-history-open') . '</a>';
}
}
}
return $buttons;
}
示例15: wizard_step6
/**
* Step 6: Done.
*
* @return void
*/
function wizard_step6() {
$this->saveMenuCode();
$outputString.= $GLOBALS['LANG']->getLL('newsitewizard_sitecreated') . '
<br/>
<br/>
<input type="submit" value="' . $GLOBALS['LANG']->getLL('newsitewizard_finish', 1) . '" onclick="'.htmlspecialchars(t3lib_BEfunc::viewOnClick($this->wizardData['rootPageId'],$this->doc->backPath).'document.location=\'index.php?SET[wiz_step]=0\'; return false;').'" />
';
// Add output:
$this->content .= $this->doc->section($GLOBALS['LANG']->getLL('newsitewizard_done', 1), $outputString, 0, 1);
}