From: Mike Taylor Date: Thu, 14 Dec 2006 15:39:06 +0000 (+0000) Subject: Include all statically named components inline, since they were not X-Git-Tag: CPAN-v1.02~54^2~626 X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=commitdiff_plain;h=8b048c167d3338b828b65b61061e5092fcb77f08 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. --- 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 + +
+ +