Commit ef91390f authored by disappearer's avatar disappearer

Many changes in output, some refactoring, see changelog


git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/terfe/trunk@2455 735d13b6-9817-0410-8766-e36946ffe9aa
parent f760549d
13.03.2006 Michael Scharkow <michael@underused.org>
* more refactoring
* complete overhaul of all output (thanks to Ingo Renner and Joey Hasenau)
* info and detail view merged
* stdSelection for all queries (no obsolete, testing and documentation)
* added simple upload comment changelog in single view
12.03.2006 Michael Scharkow <michael@underused.org> 12.03.2006 Michael Scharkow <michael@underused.org>
* refactoring of pi1, compact lists use a common function now * refactoring of pi1, compact lists use a common function now
* added state and last update in compact lists * added state and last update in compact lists
......
...@@ -185,6 +185,7 @@ class tx_terfe_common { ...@@ -185,6 +185,7 @@ class tx_terfe_common {
$extensionRecord[$key] = unserialize ($value); $extensionRecord[$key] = unserialize ($value);
break; break;
case 'lastuploaddate': case 'lastuploaddate':
$extensionRecord['lastuploaddate_raw'] = $value;
$extensionRecord[$key] = strftime($this->getLL('general_dateandtimeformat'), $value); $extensionRecord[$key] = strftime($this->getLL('general_dateandtimeformat'), $value);
break; break;
case 'versiondownloadcounter': case 'versiondownloadcounter':
...@@ -498,28 +499,23 @@ class tx_terfe_common { ...@@ -498,28 +499,23 @@ class tx_terfe_common {
// Render the depencies information: // Render the depencies information:
$colorStyle = $extensionIsAvailable ? '' : 'color:red;'; $colorStyle = $extensionIsAvailable ? '' : 'color:red;';
if (!$extensionIsAvailable) $someExtensionsAreNotAvailable = TRUE; if (!$extensionIsAvailable) $someExtensionsAreNotAvailable = TRUE;
$tableRows[] = ' $tableRows[] = '
<tr> <li>'.$this->getLL('extension_dependencies_kind_'.$dependencyArr['kind'],'',1).' '.$this->csConvHSC ($dependencyArr['extensionKey']).' '
<td class="td-sub" style="'.$colorStyle.'">'.$this->getLL('extension_dependencies_kind_'.$dependencyArr['kind'],'',1).'</td> .$dependencyArr['versionRange'].'</li>
<td class="td-sub" style="'.$colorStyle.'">'.$this->csConvHSC ($dependencyArr['extensionKey']).'</td>
<td class="td-sub" style="'.$colorStyle.'">'.$dependencyArr['versionRange'].'</td>
</tr>
'; ';
} }
} }
if ($someExtensionsAreNotAvailable) { if ($someExtensionsAreNotAvailable) {
$tableRows[] = ' $tableRows[] = '
<tr> <li style="color:red">'.$this->getLL('extension_dependencies_someextensionsarenotavailable','',1).'</li>
<td class="td-sub" style="color:red" colspan="3">'.$this->getLL('extension_dependencies_someextensionsarenotavailable','',1).'</td>
</tr>
'; ';
} }
$output = ' $output = '
<table> <ul>
'.implode ('', $tableRows).' '.implode ('', $tableRows).'
</table> </ul>
'; ';
} }
return $output; return $output;
...@@ -559,15 +555,15 @@ class tx_terfe_common { ...@@ -559,15 +555,15 @@ class tx_terfe_common {
} }
foreach ($dependingExtensionKeysArr as $key => $versionsArr) { foreach ($dependingExtensionKeysArr as $key => $versionsArr) {
$tableRows[] = '<tr><td class="td-sub">'.$this->csConvHSC($key).'</td><td class="td-sub">'.implode (', ', $versionsArr).'</td></tr>'; $tableRows[] = '<li>'.$this->csConvHSC($key).' '.implode (', ', $versionsArr).'</li>';
} }
if (count ($tableRows)) { if (count ($tableRows)) {
$output = ' $output =
'.$this->getLL('extension_reversedependencies_intro','',1).' '<p>'.$this->getLL('extension_reversedependencies_intro','',1).'</p>
<table> <ul>
'.implode ('', $tableRows).' '.implode ('', $tableRows).'
</table> </ul>
'; ';
} }
} }
...@@ -602,11 +598,11 @@ class tx_terfe_common { ...@@ -602,11 +598,11 @@ class tx_terfe_common {
} }
$tableRows[] = ' $tableRows[] = '
<tr> <tr>
<td nowrap="nowrap">'.$this->csConvHSC ($fileName).'</td> <td class="filename">'.$this->csConvHSC ($fileName).'</td>
<td nowrap="nowrap">'.t3lib_div::formatSize($fileArr['size']).'</td> <td>'.t3lib_div::formatSize($fileArr['size']).'</td>
<td nowrap="nowrap">'.$viewLink.'</td> <td>'.$viewLink.'</td>
<td nowrap="nowrap">'.strftime($this->getLL('general_dateandtimeformat'), $fileArr['mtime']).'</td> <td">'.strftime($this->getLL('general_dateandtimeformat'), $fileArr['mtime']).'</td>
<td nowrap="nowrap">'.$downloadLink.'</td> <td">'.$downloadLink.'</td>
</tr> </tr>
'; ';
} }
...@@ -626,13 +622,13 @@ class tx_terfe_common { ...@@ -626,13 +622,13 @@ class tx_terfe_common {
} }
$output =' $output ='
<table> <table class="filelist">
<tr><th>Filename</th><th>Size</th><th>View</th><th>Date</th><th>Download</th></tr>
'.implode ('', $tableRows).' '.implode ('', $tableRows).'
</table> </table>
<br /><br /> </li>
<p><a href="'.$t3xDownloadURL.'">'.$this->getLL('extensionfiles_downloadcompressedt3x','',1).'</a></p> <li>
<br /> '.$filePreview.'</li>
'.$filePreview.'
'; ';
} }
...@@ -924,4 +920,4 @@ if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/ter_fe/ ...@@ -924,4 +920,4 @@ if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/ter_fe/
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/ter_fe/class.tx_terfe_common.php']); include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/ter_fe/class.tx_terfe_common.php']);
} }
?> ?>
\ No newline at end of file
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
<label index="extension_reviewstate"></label> <label index="extension_reviewstate"></label>
<label index="extension_reviewstate_0"></label> <label index="extension_reviewstate_0"></label>
<label index="extension_reviewstate_1"></label> <label index="extension_reviewstate_1"></label>
<label index="extension_rating"></label>
<label index="extension_extensionkey"></label> <label index="extension_extensionkey"></label>
<label index="extension_title"></label> <label index="extension_title"></label>
<label index="extension_version"></label> <label index="extension_version"></label>
...@@ -49,6 +50,8 @@ ...@@ -49,6 +50,8 @@
<label index="extension_ownerusername"></label> <label index="extension_ownerusername"></label>
<label index="extension_uploadcomment"></label> <label index="extension_uploadcomment"></label>
<label index="extension_lastuploaddate"></label> <label index="extension_lastuploaddate"></label>
<label index="extension_history"></label>
<label index="extension_download_extension"></label>
<label index="extension_files"></label> <label index="extension_files"></label>
<label index="extension_filepreview"></label> <label index="extension_filepreview"></label>
<label index="extension_documentation"></label> <label index="extension_documentation"></label>
...@@ -73,6 +76,7 @@ ...@@ -73,6 +76,7 @@
<label index="extension_reviewstate_-1">Failed a security check!</label> <label index="extension_reviewstate_-1">Failed a security check!</label>
<label index="extension_reviewstate_0">Not reviewed!</label> <label index="extension_reviewstate_0">Not reviewed!</label>
<label index="extension_reviewstate_1">Passed a basic security check</label> <label index="extension_reviewstate_1">Passed a basic security check</label>
<label index="extension_rating">Rating</label>
<label index="extension_extensionkey">Extension key</label> <label index="extension_extensionkey">Extension key</label>
<label index="extension_title">Title</label> <label index="extension_title">Title</label>
<label index="extension_version">Version</label> <label index="extension_version">Version</label>
...@@ -101,6 +105,8 @@ ...@@ -101,6 +105,8 @@
<label index="extension_ownerusername">Owner</label> <label index="extension_ownerusername">Owner</label>
<label index="extension_uploadcomment">Upload comment</label> <label index="extension_uploadcomment">Upload comment</label>
<label index="extension_lastuploaddate">Updated</label> <label index="extension_lastuploaddate">Updated</label>
<label index="extension_history">Version history</label>
<label index="extension_download_extension">Download extension</label>
<label index="extension_files">Files</label> <label index="extension_files">Files</label>
<label index="extension_filepreview">Preview for file %s</label> <label index="extension_filepreview">Preview for file %s</label>
<label index="extension_documentation">Manual</label> <label index="extension_documentation">Manual</label>
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment