X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main_attach.cgi;h=0880c760ae5af1ecffdab18050c4477be78a3473;hp=ebbaf3cf3aaff068d4fb252049e368079aeedbea;hb=c49cfd25a8f92c7a2f44b51d72506a21f6b8d09f;hpb=63a268637b2d51a8766412617724b9436439deb6 diff --git a/httemplate/edit/cust_main_attach.cgi b/httemplate/edit/cust_main_attach.cgi index ebbaf3cf3..0880c760a 100755 --- a/httemplate/edit/cust_main_attach.cgi +++ b/httemplate/edit/cust_main_attach.cgi @@ -6,19 +6,22 @@ -

- - % if(defined $attach) { % if($curuser->access_right("Download attachment")) { Download this file
% } +% } + +
+
+ +% if ( defined $attach ) { - + - + - + % } % else { # !defined $attach @@ -29,7 +32,7 @@
% if(! $disabled) { "> + VALUE="<% $attachnum ? emt("Apply changes") : emt("Upload File") %>"> % } % if(defined $attach and $curuser->access_right('Delete attachment')) {
@@ -47,9 +50,8 @@ my $curuser = $FS::CurrentUser::CurrentUser; my $attachnum = ''; my $attach; -if ( $cgi->param('error') ) { - #$comment = $cgi->param('comment'); -} elsif ( $cgi->param('attachnum') =~ /^(\d+)$/ ) { + +if ( $cgi->param('attachnum') =~ /^(\d+)$/ ) { $attachnum = $1; die "illegal query ". $cgi->keywords unless $attachnum; $attach = qsearchs('cust_attachment', { 'attachnum' => $attachnum });
Filename >
>
Description
MIME type
Size <% $attach->size %>