- Timestamp:
- 10/25/10 16:49:10 (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns.cgi
r63 r64 68 68 69 69 # per-page startwith, filter, searchsubs 70 $session->param($webvar{page}.'startwith', $webvar{startwith}) if $webvar{startwith};70 $session->param($webvar{page}.'startwith', $webvar{startwith}) if defined($webvar{startwith}); 71 71 $session->param($webvar{page}.'filter', $webvar{filter}) if defined($webvar{filter}); 72 72 $webvar{searchsubs} =~ s/^n ?// if $webvar{searchsubs}; … … 1146 1146 1147 1147 # waffle, waffle - keep state on these as well as sortby, sortorder? 1148 $page->param("start$ webvar{startwith}" => 1) if $webvar{startwith} && $webvar{startwith} =~ /^[a-z]$/;1148 $page->param("start$startwith" => 1) if $startwith && $startwith =~ /^(?:[a-z]|0-9)$/; 1149 1149 1150 1150 $page->param(filter => $filter) if $filter; … … 1246 1246 1247 1247 # waffle, waffle - keep state on these as well as sortby, sortorder? 1248 $page->param("start$startwith" => 1) if $startwith && $startwith =~ /^ [a-z]$/;1248 $page->param("start$startwith" => 1) if $startwith && $startwith =~ /^(?:[a-z]|0-9)$/; 1249 1249 1250 1250 $page->param(filter => $filter) if $filter; -
trunk/templates/lettsearch.tmpl
r53 r64 1 1 <a href="<TMPL_VAR NAME=whereami>&startwith=">All</a> | 2 <TMPL_UNLESS start num><a href="<TMPL_VAR NAME=whereami>&startwith=0-9">0-9</a><TMPL_ELSE><b>0-9</b></TMPL_UNLESS> |2 <TMPL_UNLESS start0-9><a href="<TMPL_VAR NAME=whereami>&startwith=0-9">0-9</a><TMPL_ELSE><b>0-9</b></TMPL_UNLESS> | 3 3 <TMPL_UNLESS starta><a href="<TMPL_VAR NAME=whereami>&startwith=a">A</a><TMPL_ELSE><b>A</b></TMPL_UNLESS> | 4 4 <TMPL_UNLESS startb><a href="<TMPL_VAR NAME=whereami>&startwith=b">B</a><TMPL_ELSE><b>B</b></TMPL_UNLESS> |
Note:
See TracChangeset
for help on using the changeset viewer.