X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=web%2Fhtdocs%2Fchrome%2Fmenu.mc;h=623fb579826a66d125313cf9c14fabaf93680bc8;hb=9e886288e014eb5bc0651a8f97f8370d6f986f9b;hp=5bf10ea26427a712a163e2a189d64ca4adc74f89;hpb=454bc84b3f772eca3afe7d7d378b922917e7f885;p=irspy-moved-to-github.git diff --git a/web/htdocs/chrome/menu.mc b/web/htdocs/chrome/menu.mc index 5bf10ea..623fb57 100644 --- a/web/htdocs/chrome/menu.mc +++ b/web/htdocs/chrome/menu.mc @@ -1,2 +1,75 @@ -%# $Id: menu.mc,v 1.1 2006-09-14 15:17:48 mike Exp $ - Menu +%# $Id: menu.mc,v 1.20 2006-12-04 16:47:27 mike Exp $ +

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

+

+ Show targets +
+% foreach my $i ('a' .. 'z') { + <% 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 +

+

 

+

+ Valid XHTML 1.0 Strict +
+ Valid CSS! +