1 %# $Id: layout.mc,v 1.16 2006-11-14 16:21:08 mike Exp $
9 # Make up ID for newly created records. It would be more
10 # rigorously correct, but insanely inefficient, to submit the
11 # record to Zebra and then search for it; but since we know the
12 # formula for IDs anyway, we just build one by hand.
13 my $id = $r->param("id");
14 my $host = $r->param("host");
15 my $port = $r->param("port");
16 my $dbname = $r->param("dbname");
17 #warn "id='$id', host='$host', port='$port', dbname='$dbname'";
18 #warn "%ARGS = {\n" . join("", map { "\t'$_' => '" . $ARGS{$_} . ",'\n" } sort keys %ARGS) . "}\n";
19 if ((!defined $id || $id eq "") &&
20 defined $host && defined $port && defined $dbname) {
21 $id = "$host:$port/$dbname";
24 #warn "id set to '$id'";
31 use ZOOM::IRSpy::Utils qw(irspy_xpath_context xml_encode modify_xml_document);
33 <& /chrome/head.mc, title => $title &>
34 <table border="0" cellpadding="0" cellspacing="0" width="100%">
35 <& /chrome/bannerrow.mc, title => $title &>
37 <table border="0" cellpadding="0" cellspacing="0" width="100%">
38 <& /chrome/lmenu.mc &>
41 <table border="0" cellpadding="0" cellspacing="0" width="100%">
43 <td valign="top" class="panel1">
46 <td class="spacer"> </td>
48 <& $component, %ARGS &>