1 <% include("/elements/header.html", "Export Listing") %>
3 Provisioning services to external machines, databases and APIs.<BR><BR>
5 <A HREF="<% $p %>edit/part_export.cgi"><I>Add a new export</I></A><BR><BR>
8 function part_export_areyousure(href) {
9 if (confirm("Are you sure you want to delete this export?") == true)
10 window.location.href = href;
14 <% include('/elements/table-grid.html') %>
15 % my $bgcolor1 = '#eeeeee';
16 % my $bgcolor2 = '#ffffff';
20 <TH COLSPAN=2 CLASS="grid" BGCOLOR="#cccccc">Export</TH>
21 <TH CLASS="grid" BGCOLOR="#cccccc">Options</TH>
24 % foreach my $part_export ( sort {
25 % $a->getfield('exportnum') <=> $b->getfield('exportnum')
26 % } qsearch('part_export',{})
28 % if ( $bgcolor eq $bgcolor1 ) {
29 % $bgcolor = $bgcolor2;
31 % $bgcolor = $bgcolor1;
36 <TD CLASS="grid" BGCOLOR="<% $bgcolor %>"><A HREF="<% $p %>edit/part_export.cgi?<% $part_export->exportnum %>"><% $part_export->exportnum %></A></TD>
38 <TD CLASS="grid" BGCOLOR="<% $bgcolor %>"><% $part_export->exporttype %> to <% $part_export->machine %> (<A HREF="<% $p %>edit/part_export.cgi?<% $part_export->exportnum %>">edit</A> | <A HREF="javascript:part_export_areyousure('<% $p %>misc/delete-part_export.cgi?<% $part_export->exportnum %>')">delete</A>)</TD>
40 <TD CLASS="inv" BGCOLOR="<% $bgcolor %>">
42 % my %opt = $part_export->options;
43 % foreach my $opt ( keys %opt ) {
46 <TD ALIGN="right" VALIGN="top" WIDTH="33%"><% $opt %>: </TD>
47 <TD ALIGN="left" WIDTH="67%"><% encode_entities($opt{$opt}) %></TD>
60 <% include('/elements/footer.html') %>
64 unless $FS::CurrentUser::CurrentUser->access_right('Configuration');