Project

General

Profile

Bug #18314 » 7682_em_wrong_markup2.diff

Administrator Admin, 2008-03-04 12:07

View differences:

typo3/mod/tools/em/class.em_index.php (working copy)
');
}
$this->doc->form = '<form action="index.php" method="post" name="pageform">';
// Descriptions:
$this->descrTable = '_MOD_'.$this->MCONF['name'];
......
$menu.='&nbsp;&nbsp;<label for="checkDisplayObsolete">Show obsolete:</label>&nbsp;&nbsp;'.t3lib_BEfunc::getFuncCheck(0,'SET[display_obsolete]',$this->MOD_SETTINGS['display_obsolete'],'','','id="checkDisplayObsolete"');
}
$this->content.=$this->doc->section('','<span class="nobr">'.$menu.'</span>');
$this->content.=$this->doc->section('','<form action="index.php" method="post" name="pageform"><span class="nobr">'.$menu.'</span></form>');
$this->content.=$this->doc->spacer(10);
switch((string)$this->MOD_SETTINGS['function']) {
......
// CSH:
$content.= t3lib_BEfunc::cshItem('_MOD_tools_em', 'import_ter', $GLOBALS['BACK_PATH'],'|<br/>');
$onsubmit = "window.location.href='index.php?ter_connect=1&ter_search='+escape(this.elements['_lookUp'].value);return false;";
$content.= '</form><form action="index.php" method="post" onsubmit="'.htmlspecialchars($onsubmit).'"><label for="_lookUp">List or look up <strong'.($this->MOD_SETTINGS['display_unchecked']?' style="color:#900;">all':' style="color:#090;">reviewed').'</strong> extensions</label><br />
$content.= '<form action="index.php" method="post" onsubmit="'.htmlspecialchars($onsubmit).'"><label for="_lookUp">List or look up <strong'.($this->MOD_SETTINGS['display_unchecked']?' style="color:#900;">all':' style="color:#090;">reviewed').'</strong> extensions</label><br />
<input type="text" id="_lookUp" name="_lookUp" value="'.htmlspecialchars($this->listRemote_search).'" /> <input type="submit" value="Look up" /><br /><br />';
$content .= $this->browseLinks();
......
} else {
$content.= t3lib_BEfunc::cshItem('_MOD_tools_em', 'import_ter', $GLOBALS['BACK_PATH'],'|<br/>');
$onsubmit = "window.location.href='index.php?ter_connect=1&ter_search='+escape(this.elements['_lookUp'].value);return false;";
$content.= '</form><form action="index.php" method="post" onsubmit="'.htmlspecialchars($onsubmit).'"><label for="_lookUp">List or look up <strong'.($this->MOD_SETTINGS['display_unchecked']?' style="color:#900;">all':' style="color:#090;">reviewed').'</strong> extensions</label><br />
$content.= '<form action="index.php" method="post" onsubmit="'.htmlspecialchars($onsubmit).'"><label for="_lookUp">List or look up <strong'.($this->MOD_SETTINGS['display_unchecked']?' style="color:#900;">all':' style="color:#090;">reviewed').'</strong> extensions</label><br />
<input type="text" id="_lookUp" name="_lookUp" value="'.htmlspecialchars($this->listRemote_search).'" /> <input type="submit" value="Look up" /><br /><br />';
$content.= '<p><strong>No matching extensions found.</strong></p>';
......
$content.= t3lib_BEfunc::cshItem('_MOD_tools_em', 'import', $GLOBALS['BACK_PATH'],'|<br/>');
$onsubmit = "window.location.href='index.php?ter_connect=1&ter_search='+escape(this.elements['_lookUp'].value);return false;";
$content.= '</form><form action="index.php" method="post" onsubmit="'.htmlspecialchars($onsubmit).'"><label for="_lookUp">List or look up <strong'.($this->MOD_SETTINGS['display_unchecked']?' style="color:#900;">all':' style="color:#090;">reviewed').'</strong> extensions</label><br />
$content.= '<form action="index.php" method="post" onsubmit="'.htmlspecialchars($onsubmit).'"><label for="_lookUp">List or look up <strong'.($this->MOD_SETTINGS['display_unchecked']?' style="color:#900;">all':' style="color:#090;">reviewed').'</strong> extensions</label><br />
<input type="text" id="_lookUp" name="_lookUp" value="" /> <input type="submit" value="Look up" /><br /><br />';
if ($this->CMD['fetchMetaData']) { // fetches mirror/extension data from online rep.
......
// Upload:
if ($this->importAtAll()) {
$content= '</form><form action="index.php" enctype="'.$GLOBALS['TYPO3_CONF_VARS']['SYS']['form_enctype'].'" method="post">
$content= '<form action="index.php" enctype="'.$GLOBALS['TYPO3_CONF_VARS']['SYS']['form_enctype'].'" method="post">
<label for="upload_ext_file">Upload extension file (.t3x):</label><br />
<input type="file" size="60" id="upload_ext_file" name="upload_ext_file" /><br />
... to location:<br />
......
$updates.= $this->checkClearCache($list[$extKey]);
if ($updates) {
$updates = '
</form><form action="'.t3lib_div::linkThisScript().'" method="post">'.$updates.'
<form action="'.t3lib_div::linkThisScript().'" method="post">'.$updates.'
<br /><input type="submit" name="write" value="Remove extension" />
<input type="hidden" name="_do_install" value="1" />
<input type="hidden" name="_clrCmd" value="'.$this->CMD['clrCmd'].'" />
......
if (count($outputRow)>1 || !$returnUrl) {
$content = '
</form> <!-- ending page form ... -->
<!-- ending page form ... -->
<form action="'.htmlspecialchars(t3lib_div::getIndpEnv('REQUEST_URI')).'" method="post">
<table border="0" cellpadding="1" cellspacing="1">'.implode('',$outputRow).'</table>
<input type="submit" name="_" value="Import and Install selected" />
......
$updates.= $this->checkUploadFolder($extKey,$extInfo);
if ($updates) {
$updates = '</form><form action="'.htmlspecialchars($script).'" method="post">'.$updates.$addFields.'
$updates = '<form action="'.htmlspecialchars($script).'" method="post">'.$updates.$addFields.'
<br /><input type="submit" name="write" value="Make updates" />
';
}
......
$form = '
<table border="0" cellpadding="0" cellspacing="0" width="600">
<tr>
<td>'.$tsStyleConfig->ext_getForm($MOD_SETTINGS['constant_editor_cat'],$theConstants,$script,$addFields).'</td>
<td>'.$tsStyleConfig->ext_getForm($MOD_SETTINGS['constant_editor_cat'],$theConstants,$script,$addFields).'</form></td>
</tr>
</table>';
if ($output) {
return $form;
} else {
$this->content.=$this->doc->section('','</form>'.$form.'<form>');
$this->content.=$this->doc->section('',$form);
}
}
}
(5-5/9)