werc-1.5.0-tweaks

Tweaks for the werc website builder created by the mad architect Uriel
Log | Files | Refs | README

search.tpl (581B)


      1 <form action="" method="POST">
      2 <fieldset>
      3     <input type="text" name="wman_search" value="%($"s%)" />
      4     <input type="submit" name="go" value="Feel Lucky" />
      5     <input type="submit" value="Search" />
      6 
      7 % if(! ~ $"post_arg_wman_search '') {
      8 %   if(~ $"wman_search_results '') {
      9         No matches found for <i>'%($post_arg_wman_search%)'</i>.
     10 %   }
     11 %   if not {
     12         <ul>
     13 %       echo $wman_search_results|awk -F/ '$(NF-1) ~ "^[0-9]+$" {printf "<li><a href=\"'$wman_base_uri'%s/%s\" />%s(%s)</a></li>", $(NF-1),$NF, $NF, $(NF-1)}'
     14         </ul>
     15 %   }
     16 % }
     17 
     18 </fieldset>
     19 </form>
     20