X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=web%2Fhtdocs%2Fchrome%2Fmenu.mc;h=623fb579826a66d125313cf9c14fabaf93680bc8;hb=4b15b6b8f210b1bd664e33c84c55a307fed4bf0c;hp=1803f09c75420d2621e6f41d36fbbaba77d71f94;hpb=b97fe63102047417837944148c093d24eccc2ee3;p=irspy-moved-to-github.git diff --git a/web/htdocs/chrome/menu.mc b/web/htdocs/chrome/menu.mc index 1803f09..623fb57 100644 --- a/web/htdocs/chrome/menu.mc +++ b/web/htdocs/chrome/menu.mc @@ -1,17 +1,69 @@ -%# $Id: menu.mc,v 1.5 2006-09-20 11:39:10 mike Exp $ +%# $Id: menu.mc,v 1.20 2006-12-04 16:47:27 mike Exp $

- Home
+ 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 +
+ Contents +

+