-%# $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 all 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>
% }
</p>
<%perl>
-our $rec;
my $id = $r->param("id");
{
# Make up ID for newly created records. It would be more
}
}
</%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)) . "&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)) . "&test=Quick" %>">Quick Test</a>
<br/>