$this->tmpl->assign('from_date', $this->get_calendar('from'));
$this->tmpl->assign('to_date', $this->get_calendar('to'));
- if(!isset($content))
+ if(!isset($content)) {
+ $this->tmpl->assign('preset_selected_tags', $this->getSelectedTags());
+ $this->tmpl->assign('preset_available_tags', $this->getAvailableTags());
$this->tmpl->assign('content_page', $this->tmpl->fetch('welcome.tpl'));
+ }
else
$this->tmpl->assign('content_page', $content);
}
$output = substr($output, 0, strlen($output)-2);
- print $output;
+ return $output;
} // getAvailableTags()
if(is_numeric($options[2])) {
$_GET['mode'] = 'showpi';
$_SESSION['selected_tags'] = Array($options[2]);
- $this->tmpl->assign('preset_selected_tags', $this->getSelectedTags());
$_GET['tags'] = $options[2];
return $this->showPhotoIndex();
}
web_path = '';
/* always load list of available tags */
- refreshAvailableTags();
+ //this should not be more necessary since 4.5.08
+ //refreshAvailableTags();
/* ask the server what we are currently displaying */
whattodo = AskServerWhatToDo();
- window.alert(whattodo);
-
if(whattodo == 'showpi' || whattodo == 'showpi_date') {
showPhotoIndex();
}
<span style="vertical-align: middle; text-decoration: underline;">
<img src="{$web_path}/resources/available_tags.png" alt="available tags" />Available Tags:
</span>
-<div id="available_tags"></div>
+<div id="available_tags">{ $preset_available_tags }</div>
<span style="vertical-align: middle; text-decoration: underline;">
<img src="{$web_path}/resources/selected_tags.png" alt="selected tags" />Selected Tags:
</span>