summaryrefslogtreecommitdiff
path: root/httemplate/misc
diff options
context:
space:
mode:
authorivan <ivan>2002-03-22 12:49:43 +0000
committerivan <ivan>2002-03-22 12:49:43 +0000
commitb159f42fa3f48cc2ca3b43773e7661e17d2fb072 (patch)
treea824f6d34a643fad9f381f010637d9dbfd8b01c6 /httemplate/misc
parent415150fe1997eb2688dfd492710f644574e29daf (diff)
more new export...
Diffstat (limited to 'httemplate/misc')
-rwxr-xr-xhttemplate/misc/delete-part_export.cgi15
1 files changed, 15 insertions, 0 deletions
diff --git a/httemplate/misc/delete-part_export.cgi b/httemplate/misc/delete-part_export.cgi
new file mode 100755
index 000000000..a5166d944
--- /dev/null
+++ b/httemplate/misc/delete-part_export.cgi
@@ -0,0 +1,15 @@
+<%
+
+#untaint paynum
+my($query) = $cgi->keywords;
+$query =~ /^(\d+)$/ || die "Illegal exportnum";
+my $exportnum = $1;
+
+my $part_export = qsearchs('part_export',{'exportnum'=>$exportnum});
+
+my $error = $part_export->delete;
+eidiot($error) if $error;
+
+print $cgi->redirect($p. "browse/part_svc.cgi");
+
+%>