%#-- Begin HTML --# <& '/widgets/wrappers/sharky/header.mc', title => "$disp Profile", context => "Admin | Profile | $disp | $crumb" &>
<& '/widgets/wrappers/sharky/footer.mc', param => \%ARGS &> %#-- End HTML --# %#-- Once Section --# <%once>; my $widget = 'profile'; my $section = 'admin'; my $type = 'server'; my $class = get_package_name($type); my $disp = get_disp_name($type); my $dest_key = 'dest'; my $dest_class = get_package_name($dest_key); %once> %#-- Args Section --# <%args> $id => undef $dest_id => undef %args> %#-- Init Section --# <%init>; # Do any redirects first. do_queued_redirect(); $id ||= $ARGS{server_id}; # Instantiate an object. my $s = $ARGS{obj} ? $ARGS{obj} : defined $id ? $class->lookup({ id => $id}) : $class->new; $id ||= $s->get_id; # Get the server type (destination profile) ID and instantiate the destination # object. $dest_id ||= get_state_data($widget, $dest_key) || $s->get_server_type_id; my $dest = $dest_class->lookup({ id => $dest_id }); # Check authorization. chk_authz($dest, EDIT); my $no_edit = !chk_authz($dest, EDIT, 1); my $no_del = !$id || $no_edit; # Get the name for the breadcrumb trail. my $crumb = $s->get_name; $crumb = $crumb ? ""$crumb"" : 'New'; %init> <%doc> ################################################################################ =head1 NAME /admin/profile/server/dhandler - Interface for managing servers. =head1 VERSION $LastChangedRevision$ =head1 DATE $LastChangedDate$ =head1 DESCRIPTION This element handles the display for editing distribution servers. %doc>