Include all statically named components inline, since they were not
[irspy-moved-to-github.git] / web / htdocs / chrome / menu.mc
index 91ec140..623fb57 100644 (file)
@@ -1,9 +1,9 @@
-%# $Id: menu.mc,v 1.15 2006-11-16 17:03:11 mike Exp $
+%# $Id: menu.mc,v 1.20 2006-12-04 16:47:27 mike Exp $
      <p>
       <a href="/"><b>Home</b></a><br/>
       <a href="/all.html">Test&nbsp;all&nbsp;targets</a><br/>
       <a href="/find.html">Find a target</a><br/>
-      <a href="/edit.html">Add a target</a><br/>
+      <a href="/edit.html?op=new">Add a target</a><br/>
      </p>
      <p>
       <b>Show targets</b>
@@ -13,7 +13,6 @@
 % }
      </p>
 <%perl>
-our $rec;
 my $id = $r->param("id");
 {
     # Make up ID for newly created records.  It would be more
@@ -33,16 +32,15 @@ my $id = $r->param("id");
     }
 }
 </%perl>
-% if (!defined $id) {
-%    $rec = undef;
-% } else {
+% if (defined $id && $r->param("op") ne "copy") {
      <div class="panel2">
       <b>This Target</b>
+      <br/>
       <a href="<% xml_encode("/full.html?id=" . uri_escape($id)) %>">Show details</a>
       <br/>
-      <a href="<% xml_encode("/edit.html?id=" . uri_escape($id)) %>">Edit details</a>
+      <a href="<% xml_encode("/edit.html?op=edit&id=" . uri_escape($id)) %>">Edit details</a>
       <br/>
-      <a href="<% xml_encode("/edit.html?id=" . uri_escape($id)) . "&amp;copy=1" %>">Copy target</a>
+      <a href="<% xml_encode("/edit.html?op=copy&id=" . uri_escape($id)) %>">Copy target</a>
       <p>
        <a href="<% xml_encode("/check.html?id=" . uri_escape($id)) . "&amp;test=Quick" %>">Quick Test</a>
        <br/>