X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main_attach.cgi;h=0880c760ae5af1ecffdab18050c4477be78a3473;hb=4639e25a658d9a0bf295415642fae8e8cdad846a;hp=5e9b16c9956ae3ff02a3a28af23dbbd00949139b;hpb=e5e706ef5cebf3db8754801a9bedf90e9a796ef9;p=freeside.git diff --git a/httemplate/edit/cust_main_attach.cgi b/httemplate/edit/cust_main_attach.cgi index 5e9b16c99..0880c760a 100755 --- a/httemplate/edit/cust_main_attach.cgi +++ b/httemplate/edit/cust_main_attach.cgi @@ -6,30 +6,33 @@ -

- -<% include('/elements/table.html') %> % if(defined $attach) { % if($curuser->access_right("Download attachment")) { Download this file
% } +% } + +
+ + +% if ( defined $attach ) { - + - + - + % } % else { # !defined $attach - - + + % }
Filename >
>
Description
MIME type
Size <% $attach->size %>
Filename
Description
Filename
Description

% if(! $disabled) { "> + VALUE="<% $attachnum ? emt("Apply changes") : emt("Upload File") %>"> % } % if(defined $attach and $curuser->access_right('Delete attachment')) {
@@ -44,11 +47,11 @@ onclick="return(confirm('Delete this file?'));"> <%init> 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 });