summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-12-05 19:54:26 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-12-05 19:54:26 +0000
commit50a899703aca8c9920af8f77d1b48cfc3c3bef48 (patch)
tree9db232197f1bdd32c0308e4405ff10e932ac40c2 /bin
parente7a427f69af2756499cc0f658068b64b7531696a (diff)
Fixing some errors from the copying of the email form templating
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1948 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'bin')
-rw-r--r--bin/io.pl81
1 files changed, 2 insertions, 79 deletions
diff --git a/bin/io.pl b/bin/io.pl
index 262c146f..fc7e78f5 100644
--- a/bin/io.pl
+++ b/bin/io.pl
@@ -1334,11 +1334,11 @@ sub print_options {
options => [{text => 'HTML', value => 'html'}],
}
if ( ${LedgerSMB::Sysconfig::latex} ) {
- push @{$options{media}{options}}, {
+ push @{$options{format}{options}}, {
text => $locale->text('Postscript'),
value => 'postscript',
};
- push @{$options{media}{options}}, {
+ push @{$options{format}{options}}, {
text => $locale->text('PDF'),
value => 'pdf',
};
@@ -1356,83 +1356,6 @@ sub print_options {
# $locale->text('Queued')
# $locale->text('Scheduled')
- $options{status} = (
- printed => 'Printed',
- emailed => 'E-mailed',
- queued => 'Queued',
- recurring => 'Scheduled',
- );
- if ( $form->{media} eq 'email' ) {
- $media = qq|<select name=sendmode>
- <option value=attachment $form->{SM}{attachment}>|
- . $locale->text('Attachment') . qq|
- <option value=inline $form->{SM}{inline}>|
- . $locale->text('In-line')
- . qq|</select>|;
- }
- else {
- $media = qq|<select name=media>
- <option value="screen">| . $locale->text('Screen');
-
- if ( %{LedgerSMB::Sysconfig::printer}
- && ${LedgerSMB::Sysconfig::latex} )
- {
- for ( sort keys %{LedgerSMB::Sysconfig::printer} ) {
- $media .= qq|
- <option value="$_">$_|;
- }
- }
- if ( ${LedgerSMB::Sysconfig::latex} ) {
- $media .= qq|
- <option value="queue">| . $locale->text('Queue');
- }
- $media .= qq|</select>|;
-
- # set option selected
- $media =~ s/(<option value="\Q$form->{media}\E")/$1 selected/;
-
- }
-
- $form->{selectformat} = qq|<option value="html">html\n|;
-
- # <option value="txt">|.$locale->text('Text');
-
- if ( ${LedgerSMB::Sysconfig::latex} ) {
- $form->{selectformat} .= qq|
- <option value="postscript">| . $locale->text('Postscript') . qq|
- <option value="pdf">| . $locale->text('PDF');
- }
-
- $format = qq|<select name=format>$form->{selectformat}</select>|;
- $format =~ s/(<option value="\Q$form->{format}\E")/$1 selected/;
- $format .= qq|
- <input type=hidden name=selectformat value="|
- . $form->escape( $form->{selectformat}, 1 ) . qq|">|;
-
- print qq|
-<table width=100%>
- <tr>
- <td>$type</td>
- <td>$lang</td>
- <td>$format</td>
- <td>$media</td>
-|;
-
- if ( %{LedgerSMB::Sysconfig::printer}
- && ${LedgerSMB::Sysconfig::latex}
- && $form->{media} ne 'email' )
- {
- print qq|
- <td nowrap>| . $locale->text('Copies') . qq|
- <input name=copies size=2 value=$form->{copies}></td>
-|;
- }
-
- # $locale->text('Printed')
- # $locale->text('E-mailed')
- # $locale->text('Queued')
- # $locale->text('Scheduled')
-
%status = (
printed => 'Printed',
emailed => 'E-mailed',