0) {
$repository = remositoryRepository::getInstance ();
$thispage = $repository->RemositoryBasicFunctionURL ( 'savesearch', $idsave );
$title = urlencode ( "Saved Search " . $idsave );
$rss = $repository->RemositoryBasicFunctionURL ( 'srss', $idsave );
$rssicon = $repository->RemositoryImageURL ( 'feed-icon-16x16.png', 16, 16 );
echo <<
Save Search
Save search as a bookmark or RSS feed using your browser's built-in capabilities, or by clicking below:
SAVE_SEARCH_HEADER;
}
elseif ($idsave < 0) {
$link = $repository->RemositoryBasicFunctionURL ( 'resavesearch', abs ( $idsave ) );
echo <<
This page is a previously saved search - to redisplay bookmark / rss links,
click here
ALREADY_SAVED_HEADER;
}
$handler = remositoryClassificationHandler::getInstance ();
// $remove_icon = $repository->RemositoryImageURL('remove.gif', 19, 19);
$classifylist = '';
foreach ( $clstack as $id ) {
if ('*' == $id) {
$labeltext = _DOWN_SEARCHING_BY;
$classify = new stdClass();
$classify->name = $handler->getSearchText ();
$classify->description = '';
$classify->hidden = 0;
}
elseif ($id > 0) {
$labeltext = _DOWN_FILTERING_BY;
$classify = $handler->getClassify ( $id );
$id = - $id;
}
else $classify = null;
if (is_object ( $classify )) {
if (! $classify->hidden) {
$removelink = $repository->RemositoryBasicFunctionURL ( 'advsearch', $id );
$removeterm = _DOWN_REMOVE_TERM;
$classifylist .= <<$labeltext:
$classify->name
(
$removeterm
)
CLASSIFY_LINK;
}
if ($classify->description) $described = $classify;
}
}
if (0 == count($clstack) AND is_object($solecategory)) $this->folderListHeading($solecategory);
elseif (isset($described) AND 0 == $idsave) echo <<
$described->name
$described->description
CLASSIFY_HEAD;
elseif (0 == count($clstack) AND $handler->countCategories()) {
$nofilters = _DOWN_NO_FILTERS;
echo <<
$nofilters
NO_FILTERS;
}
echo <<
$classifylist
CLASSIFY_LIST;
$interface = remositoryInterface::getInstance();
if (count ( $files )) {
$page->showItemSummary ();
$page->showNavigation ();
echo "\n\t";
foreach ( $files as $file ) {
if (empty($container) OR $file->containerid != $container->id) $container = new remositoryContainer($file->containerid);
$this->fileListing ( $file, $container, null, $this->remUser );
$this->tabcnt = ($this->tabcnt + 1) % 2;
}
echo "\n\t
\n";
$page->showNavigation ();
}
else {
if ($handler->areAllCategoriesSet ()) {
$Itemid = remositoryRepository::getParam ( $_REQUEST, 'Itemid', 1 );
$repository = remositoryRepository::getInstance ();
$types = explode ( ',', $repository->Classification_Types );
$noresults1 = _DOWN_NO_RESULTS_1;
if (! empty ( $types )) {
$html = '';
$reviewtags = _DOWN_REVIEW_TAGS;
foreach ( $types as $type ) {
// Change for multiple repositories
// $link = $interface->sefRelToAbs("index.php?option=com_remository&repnum=$this->repnum&Itemid=$Itemid&func=lclassify&type=$type");
$link = $interface->sefRelToAbs ( "index.php?option=com_remository&Itemid=$Itemid&func=lclassify&type=$type" );
$html .= <<$reviewtags $type
ONE_TYPE;
}
$noresults2 = _DOWN_NO_RESULTS_2;
$contactus = _DOWN_CONTACT_US;
echo <<
$noresults1
$noresults2
NO_CATS_NO_HITS;
}
}
else {
$Itemid = remositoryRepository::getParam ( $_REQUEST, 'Itemid', 1 );
// Change for multiple repositories
// $setcatslink = sefRelToAbs("index.php?option=com_remository&repnum=$this->repnum&Itemid=$Itemid&func=setallcats");
$setcatslink = $interface->sefRelToAbs ( "index.php?option=com_remository&Itemid=$Itemid&func=setallcats" );
$allcatretry = _DOWN_ALL_CATS_RETRY;
$addall = _DOWN_ADD_ALL_CATS;
echo <<
$noresults1
$allcatretry $addall
CATS_NO_HITS;
}
}
$this->filesFooterHTML ();
}
}