X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=web%2Fhtdocs%2Fchrome%2Fmenu.mc;h=623fb579826a66d125313cf9c14fabaf93680bc8;hb=4b15b6b8f210b1bd664e33c84c55a307fed4bf0c;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..623fb57 100644 --- a/web/htdocs/chrome/menu.mc +++ b/web/htdocs/chrome/menu.mc @@ -1,14 +1,75 @@ -%# $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> +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! +