summaryrefslogtreecommitdiff
path: root/httemplate/browse/part_export.cgi
blob: 79c57aefc846e96a1edae8fd448c129e35c11021 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!-- mason kludge -->
<%= header("Export Listing", menubar( 'Main Menu' => "$p#sysadmin" )) %>
Provisioning services to external machines, databases and APIs.<BR><BR>
<A HREF="<%= $p %>edit/part_export.cgi"><I>Add a new export</I></A><BR><BR>
<SCRIPT>
function part_export_areyousure(href) {
  if (confirm("Are you sure you want to delete this export?") == true)
    window.location.href = href;
}
</SCRIPT>

<%= table() %>
  <TR>
    <TH COLSPAN=2>Export</TH>
    <TH>Options</TH>
  </TR>

<% foreach my $part_export ( sort { 
     $a->getfield('exportnum') <=> $b->getfield('exportnum')
   } qsearch('part_export',{}) ) {
%>
  <TR>
    <TD><A HREF="<%= $p %>edit/part_export.cgi?<%= $part_export->exportnum %>"><%= $part_export->exportnum %></A></TD>
    <TD><%= $part_export->exporttype %> to <%= $part_export->machine %> (<A HREF="<%= $p %>edit/part_export.cgi?<%= $part_export->exportnum %>">edit</A>&nbsp;|&nbsp;<A HREF="javascript:part_export_areyousure('<%= $p %>misc/delete-part_export.cgi?<%= $part_export->exportnum %>')">delete</A>)</TD>
    <TD>
      <%= itable() %>
      <% my %opt = $part_export->options;
         foreach my $opt ( keys %opt ) { %>
           <TR><TD><%= $opt %></TD><TD><%= encode_entities($opt{$opt}) %></TD></TR>
      <% } %>
      </TABLE>
    </TD>
  </TR>

<% } %>

</TABLE>
</BODY>
</HTML>