X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=web%2Fhtdocs%2Fchrome%2Fmenu.mc;h=623fb579826a66d125313cf9c14fabaf93680bc8;hb=9e886288e014eb5bc0651a8f97f8370d6f986f9b;hp=ef5aaeff2f71c334aec6092ab7348d27a2329ff7;hpb=d327f239d8ef462a38469674084797383cb7a54b;p=irspy-moved-to-github.git diff --git a/web/htdocs/chrome/menu.mc b/web/htdocs/chrome/menu.mc index ef5aaef..623fb57 100644 --- a/web/htdocs/chrome/menu.mc +++ b/web/htdocs/chrome/menu.mc @@ -1,20 +1,69 @@ -%# $Id: menu.mc,v 1.8 2006-09-28 16:47:22 mike Exp $ +%# $Id: menu.mc,v 1.20 2006-12-04 16:47:27 mike Exp $

Home
Test all targets
Find a target
- Add a target
+ Add a target

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

+<%perl> +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"; + #warn "id set to '$id'"; + } +} + +% if (defined $id && $r->param("op") ne "copy") { +
+ 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 + Documentation +
+ Contents

+