X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=web%2Fhtdocs%2Fchrome%2Fmenu.mc;h=9747b54e77f33e0ad58370658da3a4f060b1a9dd;hb=07bbb862227fad300104fd0ddd7cdb5ec26586bd;hp=4fbdc4c7d92fd9b61c6c23b6ec27359b6405dfc6;hpb=2aa8d51a08453476677dc9ff92a2d719b0d466f5;p=irspy-moved-to-github.git diff --git a/web/htdocs/chrome/menu.mc b/web/htdocs/chrome/menu.mc index 4fbdc4c..9747b54 100644 --- a/web/htdocs/chrome/menu.mc +++ b/web/htdocs/chrome/menu.mc @@ -1,14 +1,79 @@ -%# $Id: menu.mc,v 1.4 2006-09-19 16:29:46 mike Exp $ - Home
- Test all targets
- Find a target
- Add a target
-
-
- + Home
+ Test all targets
+ Find a target
+ Add a target
+

+

+ Show targets +
+% foreach my $i ('a' .. 'z') { + <% uc($i) %> +% } +

+<%perl> +our $rec; +my $id = $r->param("id"); +{ + # Make up ID for newly created records. It would be more + # rigorously correct, but insanely inefficient, to submit the + # record to Zebra and then search for it; but since we know the + # formula for IDs anyway, we just build one by hand. + my $id = $r->param("id"); + my $host = $r->param("host"); + my $port = $r->param("port"); + my $dbname = $r->param("dbname"); + #warn "id='$id', host='$host', port='$port', dbname='$dbname'"; + #warn "%ARGS = {\n" . join("", map { "\t'$_' => '" . $ARGS{$_} . ",'\n" } sort keys %ARGS) . "}\n"; + if ((!defined $id || $id eq "") && + defined $host && defined $port && defined $dbname) { + $id = "$host:$port/$dbname"; +# $r->param(id => $id); +# $ARGS{id} = $id; + #warn "id set to '$id'"; + } +} + +% if (!defined $id) { +% $rec = undef; +% } else { +
+ This Target + Show details +
+ Edit details +
+ ">Copy target +

+ ">Quick Test +
+ ">Full Test +

+

+ XML +

+<%doc> +
+% my $host = "bagel.indexdata.dk"; +% my $port = 210; + All databases on this server + +
+% } +

+ Documentation +
+ Contents +

+

 

+

+ Valid XHTML 1.0 Strict -
- + Valid CSS! +