New
authorMike Taylor <mike@indexdata.com>
Thu, 14 Sep 2006 15:17:05 +0000 (15:17 +0000)
committerMike Taylor <mike@indexdata.com>
Thu, 14 Sep 2006 15:17:05 +0000 (15:17 +0000)
web/htdocs/chrome/bannerrow.mc [new file with mode: 0644]
web/htdocs/chrome/head.mc [new file with mode: 0644]
web/htdocs/chrome/layout.mc [new file with mode: 0644]
web/htdocs/chrome/lmenu.mc [new file with mode: 0644]
web/htdocs/chrome/menu.mc [new file with mode: 0644]
web/htdocs/chrome/pmenu.mc [new file with mode: 0644]
web/htdocs/chrome/poweredby.mc [new file with mode: 0644]
web/htdocs/chrome/style.mc [new file with mode: 0644]
web/htdocs/chrome/tail.mc [new file with mode: 0644]
web/htdocs/details/home.mc [new file with mode: 0644]

diff --git a/web/htdocs/chrome/bannerrow.mc b/web/htdocs/chrome/bannerrow.mc
new file mode 100644 (file)
index 0000000..74ee8ec
--- /dev/null
@@ -0,0 +1,13 @@
+%# $Id: bannerrow.mc,v 1.1 2006-09-14 15:17:48 mike Exp $
+<%args>
+$title
+</%args>
+% my $agent = $m->notes("agent");
+   <tr class="banner">
+    <td align="left">
+    </td>
+    <td align="center">
+     <h1><a style="text-decoration: none" href="/"><% $title %></a></h1>
+    </td>
+    </td>
+   </tr>
diff --git a/web/htdocs/chrome/head.mc b/web/htdocs/chrome/head.mc
new file mode 100644 (file)
index 0000000..49f5800
--- /dev/null
@@ -0,0 +1,17 @@
+%# $Id: head.mc,v 1.1 2006-09-14 15:17:48 mike Exp $
+<%args>
+$title
+</%args>
+% my $agent = $m->notes("agent");
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE html 
+     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <head>
+  <title>IRSpy: <% $title %></title>
+  <style type="text/css">
+   <& style.mc &>
+  </style>
+ </head>
+ <body>
diff --git a/web/htdocs/chrome/layout.mc b/web/htdocs/chrome/layout.mc
new file mode 100644 (file)
index 0000000..c9931bc
--- /dev/null
@@ -0,0 +1,38 @@
+%# $Id: layout.mc,v 1.1 2006-09-14 15:17:48 mike Exp $
+<%args>
+$debug => undef
+$title
+$component
+</%args>
+<%once>
+use lib "/usr/local/src/cvs/irspy/lib";
+use ZOOM::IRSpy;
+</%once>
+<%perl>
+my $text = $m->scomp($component, %ARGS);
+</%perl>
+<& /chrome/head.mc, title => $title &>
+  <table border="0" cellpadding="0" cellspacing="0" width="100%">
+   <& /chrome/bannerrow.mc, title => $title &>
+  </table>
+  <table border="0" cellpadding="0" cellspacing="0" width="100%">
+   <& /chrome/lmenu.mc &>
+  </table>
+  <p></p>
+  <table border="0" cellpadding="0" cellspacing="0" width="100%">
+   <tr>
+    <td valign="top" class="panel1">
+     <& /chrome/menu.mc &>
+    </td>
+    <td class="spacer"></td>
+    <td valign="top">
+     <% $text %>
+    </td>
+    <td class="spacer">
+    </td>
+    <td valign="top" class="panel2">
+     <& /chrome/pmenu.mc &>
+    </td>
+   </tr>
+  </table>
+<& /chrome/tail.mc &>
diff --git a/web/htdocs/chrome/lmenu.mc b/web/htdocs/chrome/lmenu.mc
new file mode 100644 (file)
index 0000000..88465f3
--- /dev/null
@@ -0,0 +1,12 @@
+%# $Id: lmenu.mc,v 1.1 2006-09-14 15:17:48 mike Exp $
+   <tr class="panel3">
+    <td align="left">
+     Lmenu left
+    </td>
+    <td>
+     Lmenu middle
+    </td>
+    <td align="right">
+     Lmenu right
+    </td>
+   </tr>
diff --git a/web/htdocs/chrome/menu.mc b/web/htdocs/chrome/menu.mc
new file mode 100644 (file)
index 0000000..5bf10ea
--- /dev/null
@@ -0,0 +1,2 @@
+%# $Id: menu.mc,v 1.1 2006-09-14 15:17:48 mike Exp $
+     Menu
diff --git a/web/htdocs/chrome/pmenu.mc b/web/htdocs/chrome/pmenu.mc
new file mode 100644 (file)
index 0000000..6443d08
--- /dev/null
@@ -0,0 +1,2 @@
+%# $Id: pmenu.mc,v 1.1 2006-09-14 15:17:48 mike Exp $
+     Pmenu
diff --git a/web/htdocs/chrome/poweredby.mc b/web/htdocs/chrome/poweredby.mc
new file mode 100644 (file)
index 0000000..b7cbf60
--- /dev/null
@@ -0,0 +1,10 @@
+%# $Id: poweredby.mc,v 1.1 2006-09-14 15:17:48 mike Exp $
+  <p/>
+  <hr/>
+  <div class="right">
+   <small>
+    Powered by <a style="text-decoration: none"
+       href="http://indexdata.com/"
+       >Index&nbsp;Data</a>
+   </small>
+  </div>
diff --git a/web/htdocs/chrome/style.mc b/web/htdocs/chrome/style.mc
new file mode 100644 (file)
index 0000000..4bad3d3
--- /dev/null
@@ -0,0 +1,22 @@
+/* $Id: style.mc,v 1.1 2006-09-14 15:17:48 mike Exp $ */
+body {
+  color: darkblue;
+  background: white;
+}
+
+.banner { background: yellow }
+.panel1 { background: lightblue }
+.panel2 { background: lightgreen }
+.panel3 { background: pink }
+
+<%doc>Fixing the layout</%doc>
+.panel1, .panel2 { width: 100px }
+.spacer { width: 1em }
+
+<%doc>Why isn't this the default?</%doc>
+img { border: 0 }
+
+<%doc>These are just so we can set alignment in an XHTMLish way</%doc>
+.left   { text-align: left }
+.center { text-align: center }
+.right  { text-align: right }
diff --git a/web/htdocs/chrome/tail.mc b/web/htdocs/chrome/tail.mc
new file mode 100644 (file)
index 0000000..6b3d8ca
--- /dev/null
@@ -0,0 +1,3 @@
+  <& poweredby.mc &>
+ </body>
+</html>
diff --git a/web/htdocs/details/home.mc b/web/htdocs/details/home.mc
new file mode 100644 (file)
index 0000000..3d7b6c4
--- /dev/null
@@ -0,0 +1 @@
+Hello and welcome to IRSpy