From fb2e817d24f4fe8263c8c2d8f2e7ef92fe40f10f Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Thu, 14 Dec 2006 15:39:06 +0000 Subject: [PATCH] Include all statically named components inline, since they were not used from elsewhere in the system. This keeps all layout information in a single file. Instead of physically including style.mc, the layout now includes a link to /style.css. --- web/htdocs/chrome/layout.mc | 126 ++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 120 insertions(+), 6 deletions(-) diff --git a/web/htdocs/chrome/layout.mc b/web/htdocs/chrome/layout.mc index ad7d4c9..c4df59f 100644 --- a/web/htdocs/chrome/layout.mc +++ b/web/htdocs/chrome/layout.mc @@ -1,4 +1,4 @@ -%# $Id: layout.mc,v 1.19 2006-11-29 18:19:17 mike Exp $ +%# $Id: layout.mc,v 1.20 2006-12-14 15:39:06 mike Exp $ <%args> $debug => undef $title @@ -11,18 +11,122 @@ use ZOOM::IRSpy::Web; use ZOOM::IRSpy::Utils qw(isodate xml_encode cql_quote cql_target irspy_xpath_context modify_xml_document); -<& /chrome/head.mc, title => $title &> +% $r->content_type("text/html; charset=utf-8"); + + + + + IRSpy: <% xml_encode($title) %> + + + -<& /chrome/bannerrow.mc, title => $title &> + + + +
-<& /chrome/lmenu.mc &> + + + + +
+   + + + + + +

-<& /chrome/menu.mc &> +

+ Home
+ Test all targets
+ Find a target
+ Add a target
+ Statistics
+

+

+ 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! +

  @@ -30,4 +134,14 @@ use ZOOM::IRSpy::Utils qw(isodate xml_encode cql_quote cql_target
-<& /chrome/tail.mc &> +

+


+
+ + Powered by Index Data + +
+ + -- 1.7.10.4