'.$head.$columns;
+ $sth = WebGUI::SQL->read($sql);
while (%download = $sth->hash) {
if (WebGUI::Privilege::isInGroup($download{groupToView})) {
$file = WebGUI::Attachment->new($download{downloadFile},
@@ -393,15 +391,13 @@ sub www_view {
'&did='.$download{downloadId}).'">'.$download{fileTitle}.' ·
'.
- $file->getType.'/'.$file->getSize.'';
+ '" border=0 width=16 height=16 align="middle">'.$file->getType.'/'.$file->getSize.'';
if ($download{alternateVersion1}) {
$alt1 = WebGUI::Attachment->new($download{alternateVersion1},
$_[0]->get("wobjectId"), $download{downloadId});
$row[$i] .= ' ·
'.
+ .'">
'.
$alt1->getType.'/'.$alt1->getSize.'';
}
if ($download{alternateVersion2}) {
@@ -409,36 +405,26 @@ sub www_view {
$_[0]->get("wobjectId"), $download{downloadId});
$row[$i] .= ' ·
'.
+ .'">
'.
$alt2->getType.'/'.$alt2->getSize.'';
}
$row[$i] .= '';
- if ($_[0]->get("displayThumbnails")
- && isIn($file->getType, qw(gif jpeg jpg tif tiff png bmp))) {
- $row[$i] .= ' ';
+ if ($_[0]->get("displayThumbnails") && isIn($file->getType, qw(gif jpeg jpg tif tiff png bmp))) {
+ $row[$i] .= ' ';
}
- $row[$i] .= $download{briefSynopsis}.' | '.
- ''.
- epochToHuman($download{dateUploaded},"%z").' | '.
- '';
+ $row[$i] .= $download{briefSynopsis}.''.''.
+ epochToHuman($download{dateUploaded},"%z").' | ';
$flag = 1;
$i++;
}
}
$sth->finish;
- unless ($flag) {
- $head .= '| '.
- WebGUI::International::get(19,$namespace).' |
';
- }
- $p = WebGUI::Paginator->new($url,\@row,$_[0]->get("paginateAfter"));
- $output .= $searchForm->print if ($p->getNumberOfPages > 1);
- $output .= $head;
+ $output .= '| '.WebGUI::International::get(19,$namespace).' |
' unless ($flag);
+ $p = WebGUI::Paginator->new($url,\@row,$numResults);
$output .= $p->getPage($session{form}{pn});
$output .= '
';
$output .= $p->getBarTraditional($session{form}{pn});
- return $_[0]->processMacros($output);
+ return $output;
}