X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=web%2Fhtdocs%2Fchrome%2Fmenu.mc;h=91ec1402bc4dbc9e8241be4fc5a31618e2c3aae3;hb=11e14d1c9be8a7febf4ccf7224406896b61e2f95;hp=dde9689dc14c47b6c5a2d56b3c4b55815a169afd;hpb=55ae0040da4daeaf6f1d710e103126abf2bc6dac;p=irspy-moved-to-github.git diff --git a/web/htdocs/chrome/menu.mc b/web/htdocs/chrome/menu.mc index dde9689..91ec140 100644 --- a/web/htdocs/chrome/menu.mc +++ b/web/htdocs/chrome/menu.mc @@ -1,37 +1,56 @@ -%# $Id: menu.mc,v 1.9 2006-11-01 10:00:44 mike Exp $ +%# $Id: menu.mc,v 1.15 2006-11-16 17:03:11 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) %> % }

-% our $rec; -% my $id = $r->param("id"); +<%perl> +our $rec; +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) { % $rec = undef; % } else {
- This Record + This Target + Show details
- Show -
- Test -
- Edit -
- XML + Edit details
+ ">Copy target +

+ ">Quick Test +
+ ">Full Test +

+

+ XML +

<%doc>
% my $host = "bagel.indexdata.dk";