1 %# $Id: layout.mc,v 1.17 2006-11-16 11:49:30 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'";
32 use ZOOM::IRSpy::Utils qw(irspy_xpath_context xml_encode modify_xml_document);
34 <& /chrome/head.mc, title => $title &>
35 <table border="0" cellpadding="0" cellspacing="0" width="100%">
36 <& /chrome/bannerrow.mc, title => $title &>
38 <table border="0" cellpadding="0" cellspacing="0" width="100%">
39 <& /chrome/lmenu.mc &>
42 <table border="0" cellpadding="0" cellspacing="0" width="100%">
44 <td valign="top" class="panel1">
47 <td class="spacer"> </td>
49 <& $component, %ARGS &>