X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=yarrg%2Fweb%2Flookup;h=365ed58129407277626411e60f96b8bc8fe2ba1e;hb=219c9b471fb927f2263b0e36669188ca937d5c8b;hp=9f74f3369bb8e7bcf33601c73c8eca3831997114;hpb=f2f25e1201a92e62c3eeb35cdec0a62539e18cb5;p=ypp-sc-tools.db-test.git
diff --git a/yarrg/web/lookup b/yarrg/web/lookup
index 9f74f33..365ed58 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,6 +147,8 @@ tr.datarow1 { background: #ffffff; }
&script>
+% if (!printable($m)) {
+
YARRG -
Yet Another Revenue Research Gatherer
|
@@ -149,6 +158,7 @@ tr.datarow1 { background: #ffffff; }
|
development
+% }
<%perl>
foreach my $var (@vars) {
@@ -180,6 +190,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 +256,14 @@ my $someresults= sub {
$debug => 0
%args>
+% if (!printable($m)) {
+
+% }
<& "query_$styles{Query}", %baseqf, %queryqf, %styles,
quri => $quri, dbh => $dbh,
+ baseqf => \%baseqf, queryqf => \%queryqf, allargs => \%ARGS,
prselector => $prselector,
someresults => $someresults,
emsgokorprint => sub {
@@ -260,15 +275,14 @@ $debug => 0
}
&>
-
-
%#---------- debugging and epilogue ----------
% if ($debug) {
-
+
% }
<&| script &>