X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fbrowse%2Fpart_export.cgi;h=8e28f4fc685c668ae7a86d0cef215cba6855dc4f;hb=0a256d5758b5826aeaf7b59ac2e0f8c97ba8b86b;hp=79c57aefc846e96a1edae8fd448c129e35c11021;hpb=eb9668a6f3181ee02cb335272c5ee4616e61fd09;p=freeside.git diff --git a/httemplate/browse/part_export.cgi b/httemplate/browse/part_export.cgi index 79c57aefc..8e28f4fc6 100755 --- a/httemplate/browse/part_export.cgi +++ b/httemplate/browse/part_export.cgi @@ -1,7 +1,9 @@ - -<%= header("Export Listing", menubar( 'Main Menu' => "$p#sysadmin" )) %> +<% include("/elements/header.html", "Export Listing") %> + Provisioning services to external machines, databases and APIs.

-Add a new export

+ +Add a new export

+ -<%= table() %> - - Export - Options - +<% include('/elements/table-grid.html') %> +% my $bgcolor1 = '#eeeeee'; +% my $bgcolor2 = '#ffffff'; +% my $bgcolor = ''; -<% foreach my $part_export ( sort { - $a->getfield('exportnum') <=> $b->getfield('exportnum') - } qsearch('part_export',{}) ) { -%> - <%= $part_export->exportnum %> - <%= $part_export->exporttype %> to <%= $part_export->machine %> (edit | delete) - - <%= itable() %> - <% my %opt = $part_export->options; - foreach my $opt ( keys %opt ) { %> - <%= $opt %><%= encode_entities($opt{$opt}) %> - <% } %> - - + Export + Options -<% } %> +% foreach my $part_export ( sort { +% $a->getfield('exportnum') <=> $b->getfield('exportnum') +% } qsearch('part_export',{}) +% ) { +% if ( $bgcolor eq $bgcolor1 ) { +% $bgcolor = $bgcolor2; +% } else { +% $bgcolor = $bgcolor1; +% } + + + + <% $part_export->exportnum %> + + +% if( $part_export->exportname ) { + <% $part_export->exportname %>:
+% } +<% $part_export->exporttype %> to <% $part_export->machine %> (edit | delete) + + + <% itable() %> +% my %opt = $part_export->options; +% foreach my $opt ( keys %opt ) { + + + <% $opt %>:  + <% encode_entities($opt{$opt}) %> + +% } + + + + + + +% } - - + +<% include('/elements/footer.html') %> + +<%init> +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); +