- <SCRIPT>
- function areyousure(href) {
- if (confirm("Permanently delete this <% $label %>?") == true)
- window.location.href = href;
- }
- </SCRIPT>
+ #listref - each item is a literal column name (or method) or
+ # (notyet) coderef. if not specified all columns (except for the
+ #primary key) will be viewable
+ 'fields' => [
+ ]
+
+ # defaults to "edit/$table.cgi?", will have svcnum appended
+ 'edit_url' =>
+
+ #at the very bottom (well, as low as you can go from here)
+ 'html_foot' => '',
+
+ )
+
+</%doc>
+<SCRIPT>
+function areyousure(href) {
+% my $delmsg = emt("Permanently delete this [_1]?", $label);
+ if (confirm(<% $delmsg |js_string %>) == true)
+ window.location.href = href;
+}
+</SCRIPT>
+
+% if ( $custnum ) {
+
+ <& /elements/header.html,emt("View [_1]: [_2]",$label,$value) &>
+
+ <& /elements/small_custview.html, $custnum, '', 1,
+ "${p}view/cust_main.cgi" &>
+ <BR>
+
+% } else {