X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=web%2Fhtdocs%2Fchrome%2Fmenu.mc;h=a195a16320bb4ac736f5a24f4d21a23fb72057db;hp=de112d24d86cedf312d05992b8cf30443c545bee;hb=04b2a94873aa882bfa9cf914fe63fbeb8ead7fb9;hpb=83dffbbf234d2502da919979c49c082674b31da4 diff --git a/web/htdocs/chrome/menu.mc b/web/htdocs/chrome/menu.mc index de112d2..a195a16 100644 --- a/web/htdocs/chrome/menu.mc +++ b/web/htdocs/chrome/menu.mc @@ -1,14 +1,74 @@ -%# $Id: menu.mc,v 1.3 2006-09-15 16:56:02 mike Exp $ - Home
- Test all databases
- Find a database
- Reporting
-
-
- + 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) { +
+ 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! +