Added search to web log and photo gallery views.

This commit is contained in:
JT Smith 2002-06-01 18:14:19 +00:00
parent cfb12fe5bb
commit bb965ae781

View file

@ -88,8 +88,9 @@ sub _photogalleryView {
$sth->finish; $sth->finish;
if (WebGUI::Privilege::isInGroup($_[0]->get("groupToContribute"))) { if (WebGUI::Privilege::isInGroup($_[0]->get("groupToContribute"))) {
$output .= '<a href="'.WebGUI::URL::page('func=editSubmission&sid=new&wid='.$_[0]->get("wobjectId")).'">' $output .= '<a href="'.WebGUI::URL::page('func=editSubmission&sid=new&wid='.$_[0]->get("wobjectId")).'">'
.WebGUI::International::get(20,$namespace).'</a><p/>'; .WebGUI::International::get(20,$namespace).'</a> &middot; ';
} }
$output .= '<a href="'.WebGUI::URL::page('func=search&wid='.$_[0]->get("wobjectId")).'">'.WebGUI::International::get(364).'</a><p/>';
$output .= '<table width="100%" cellpadding=2 cellspacing=1 border=0>'; $output .= '<table width="100%" cellpadding=2 cellspacing=1 border=0>';
$p = WebGUI::Paginator->new(WebGUI::URL::page(),\@row,$_[0]->get("submissionsPerPage")); $p = WebGUI::Paginator->new(WebGUI::URL::page(),\@row,$_[0]->get("submissionsPerPage"));
$output .= $p->getPage($session{form}{pn}); $output .= $p->getPage($session{form}{pn});
@ -186,8 +187,9 @@ sub _weblogView {
$sth->finish; $sth->finish;
if (WebGUI::Privilege::isInGroup($_[0]->get("groupToContribute"))) { if (WebGUI::Privilege::isInGroup($_[0]->get("groupToContribute"))) {
$output .= '<a href="'.WebGUI::URL::page('func=editSubmission&sid=new&wid='.$_[0]->get("wobjectId")).'">' $output .= '<a href="'.WebGUI::URL::page('func=editSubmission&sid=new&wid='.$_[0]->get("wobjectId")).'">'
.WebGUI::International::get(20,$namespace).'</a><p/>'; .WebGUI::International::get(20,$namespace).'</a> &middot; ';
} }
$output .= '<a href="'.WebGUI::URL::page('func=search&wid='.$_[0]->get("wobjectId")).'">'.WebGUI::International::get(364).'</a><p/>';
$output .= '<table width="100%" cellpadding=2 cellspacing=1 border=0>'; $output .= '<table width="100%" cellpadding=2 cellspacing=1 border=0>';
$p = WebGUI::Paginator->new(WebGUI::URL::page(),\@row,$_[0]->get("submissionsPerPage")); $p = WebGUI::Paginator->new(WebGUI::URL::page(),\@row,$_[0]->get("submissionsPerPage"));
$output .= $p->getPage($session{form}{pn}); $output .= $p->getPage($session{form}{pn});