X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.main.git;a=blobdiff_plain;f=yarrg%2Fweb%2Flookup;h=6fc1cd76e0cafa0d93da1ce9c8d3037f1254616b;hp=15f341adc3cf8131fc41ae91b8ebd16abc450af2;hb=ad29b01fe6470a4b3bb108a8f485657927175e24;hpb=b003b70daab49984677a1cfadced9da9ee9be19a
diff --git a/yarrg/web/lookup b/yarrg/web/lookup
index 15f341a..6fc1cd7 100755
--- a/yarrg/web/lookup
+++ b/yarrg/web/lookup
@@ -80,6 +80,12 @@ my %styles;
[ 1, 'Show individual stalls' ],
],
QuerySpecific => 1,
+ }, { Name => 'RouteSearchType',
+ Before => 'Type of routes to search for: ',
+ Values => [ [ 0, 'Open-ended' ],
+ [ 1, 'Circular' ],
+ ],
+ QuerySpecific => 1,
});
foreach my $var (@vars) {
@@ -122,12 +128,13 @@ $ours
<% ucfirst $ahtml{Query} %> - YARRG
<&| script &>
function register_onload(f) {
@@ -140,15 +147,11 @@ tr.datarow1 { background: #ffffff; }
&script>
-YARRG -
- Yet Another Revenue Research Gatherer
-|
-introduction
-|
-documentation
-|
-development
+% if (!printable($m)) {
+
+<& navbar &>
+% }
<%perl>
foreach my $var (@vars) {
@@ -180,6 +183,7 @@ my $quri= sub {
my $prselector_core= sub {
my ($var)= @_;
+ return if printable($m);
my $name= $var->{Name};
my $lname= lc $var->{Name};
my $delim= $var->{Before};
@@ -245,10 +249,14 @@ my $someresults= sub {
$debug => 0
%args>
+% if (!printable($m)) {
+
+% }
<& "query_$styles{Query}", %baseqf, %queryqf, %styles,
- quri => $quri, dbh => $dbh, queryqf => \%queryqf,
+ quri => $quri, dbh => $dbh,
+ baseqf => \%baseqf, queryqf => \%queryqf, allargs => \%ARGS,
prselector => $prselector,
someresults => $someresults,
emsgokorprint => sub {
@@ -260,15 +268,14 @@ $debug => 0
}
&>
-
-
%#---------- debugging and epilogue ----------
% if ($debug) {
-
+
% }
<&| script &>