' : 'style="font-family:monospace">') .
$this->_textFilter(Horde_Mime_Viewer_Translation::t("Archive Name") . ': ' . $name, 'Space2html', array(
'charset' => $charset,
'encode' => true,
'encode_all' => true
)) . "\n" .
$this->_textFilter(Horde_Mime_Viewer_Translation::t("Archive File Size") . ': ' . strlen($contents) . ' bytes', 'Space2html', array(
'charset' => $charset,
'encode' => true,
'encode_all' => true
)) . "\n" .
$this->_textFilter(sprintf(Horde_Mime_Viewer_Translation::ngettext("File Count: %d file", "File Count: %d files", $fileCount), $fileCount), 'Space2html', array(
'charset' => $charset,
'encode' => true,
'encode_all' => true
)) .
"\n\n" .
$this->_textFilter(
str_pad(Horde_Mime_Viewer_Translation::t("File Name"), 62, ' ', STR_PAD_RIGHT) .
str_pad(Horde_Mime_Viewer_Translation::t("Attributes"), 15, ' ', STR_PAD_LEFT) .
str_pad(Horde_Mime_Viewer_Translation::t("Size"), 10, ' ', STR_PAD_LEFT) .
str_pad(Horde_Mime_Viewer_Translation::t("Modified Date"), 19, ' ', STR_PAD_LEFT),
'Space2html',
array(
'charset' => $charset,
'encode' => true,
'encode_all' => true
)
) . "\n" .
str_repeat('-', 106) . "\n";
foreach ($tarData as $val) {
$text .= $this->_textFilter(
str_pad($val['name'], 62, ' ', STR_PAD_RIGHT) .
str_pad($val['attr'], 15, ' ', STR_PAD_LEFT) .
str_pad($val['size'], 10, ' ', STR_PAD_LEFT) .
str_pad(strftime("%d-%b-%Y %H:%M", $val['date']), 19, ' ', STR_PAD_LEFT),
'Space2html',
array(
'charset' => $charset,
'encode' => true,
'encode_all' => true
)
) . "\n";
}
return $this->_renderReturn(
nl2br($text . str_repeat('-', 106) . "\n |