more consistent use of q parameter

This commit is contained in:
Shish 2024-02-12 11:11:14 +00:00
parent 7b2321e989
commit 263c455457
7 changed files with 8 additions and 1 deletions

View file

@ -39,6 +39,7 @@ EOD
<div class='space' id='search'>
<form action='".search_link()."' method='GET'>
<input name='search' size='30' type='search' value='' class='autocomplete_tags' autofocus='autofocus' />
<input type='hidden' name='q' value='post/list'>
<input type='submit' value='Search'/>
</form>
</div>

View file

@ -91,6 +91,7 @@ and of course start organising your images :-)
$h_search = "
<p><form action='$h_search_link' method='GET'>
<input type='search' name='search' value='$h_search_string' placeholder='Search' class='autocomplete_tags' />
<input type='hidden' name='q' value='post/list'>
<input type='submit' value='Find' style='display: none;' />
</form>
";

View file

@ -53,6 +53,7 @@ class RandomListTheme extends Themelet
$h_search = "
<p><form action='$h_search_link' method='GET'>
<input type='search' name='search' value='$h_search_string' placeholder='Search random list' class='autocomplete_tags' />
<input type='hidden' name='q' value='random'>
<input type='submit' value='Find' style='display: none;' />
</form>
";

View file

@ -98,7 +98,8 @@ class ViewPostTheme extends Themelet
{
$h_pin = $this->build_pin($image);
$h_search = "
<p><form action='".search_link()."' method='POST'>
<p><form action='".search_link()."' method='GET'>
<input type='hidden' name='q' value='post/list'>
<input type='search' name='search' placeholder='Search' class='autocomplete_tags'>
<input type='submit' value='Find' style='display: none;'>
</form>

View file

@ -51,6 +51,7 @@ class CustomIndexTheme extends IndexTheme
return "
<p><form action='$h_search_link' method='GET'>
<input name='search' type='text' value='$h_search_string' class='autocomplete_tags' placeholder='Search' />
<input type='hidden' name='q' value='post/list'>
<input type='submit' value='Find' style='display: none;' />
</form>
<div id='search_completions'></div>";

View file

@ -36,6 +36,7 @@ class CustomIndexTheme extends IndexTheme
<p><form action='$h_search_link' method='GET'>
<input name='search' type='text' value='$h_search_string' class='autocomplete_tags' placeholder='' style='width:75%'/>
<input type='submit' value='Go' style='width:20%'>
<input type='hidden' name='q' value='post/list'>
</form>
<div id='search_completions'></div>";
}

View file

@ -74,6 +74,7 @@ class CustomViewPostTheme extends ViewPostTheme
<form action='".search_link()."' method='POST'>
<input name='search' type='text' style='width:75%'>
<input type='submit' value='Go' style='width:20%'>
<input type='hidden' name='q' value='post/list'>
</form>
";