its all about control
[freeside.git] / httemplate / browse / part_export.cgi
1 <% include("/elements/header.html","Export Listing", menubar( 'Main Menu' => "$p#sysadmin" )) %>
2 Provisioning services to external machines, databases and APIs.<BR><BR>
3 <A HREF="<% $p %>edit/part_export.cgi"><I>Add a new export</I></A><BR><BR>
4 <SCRIPT>
5 function part_export_areyousure(href) {
6   if (confirm("Are you sure you want to delete this export?") == true)
7     window.location.href = href;
8 }
9 </SCRIPT>
10
11 <% table() %>
12   <TR>
13     <TH COLSPAN=2>Export</TH>
14     <TH>Options</TH>
15   </TR>
16 % foreach my $part_export ( sort { 
17 %     $a->getfield('exportnum') <=> $b->getfield('exportnum')
18 %   } qsearch('part_export',{}) ) {
19 %
20
21   <TR>
22     <TD><A HREF="<% $p %>edit/part_export.cgi?<% $part_export->exportnum %>"><% $part_export->exportnum %></A></TD>
23     <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>
24     <TD>
25       <% itable() %>
26 % my %opt = $part_export->options;
27 %         foreach my $opt ( keys %opt ) { 
28
29            <TR><TD><% $opt %></TD><TD><% encode_entities($opt{$opt}) %></TD></TR>
30 % } 
31
32       </TABLE>
33     </TD>
34   </TR>
35 % } 
36
37
38 </TABLE>
39 </BODY>
40 </HTML>
41 <%init>
42 die "access denied"
43   unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
44 </%init>