Revision d357e8f9
Von Stephan Köhler vor mehr als 18 Jahren hinzugefügt
bin/mozilla/rp.pl | ||
---|---|---|
1883 | 1883 |
$lxdebug->leave_sub(); |
1884 | 1884 |
} |
1885 | 1885 |
|
1886 |
sub print_options { |
|
1887 |
$lxdebug->enter_sub(); |
|
1888 |
|
|
1889 |
$form->{sendmode} = "attachment"; |
|
1890 |
$form->{copies} = 2 unless $form->{copies}; |
|
1891 |
|
|
1892 |
$form->{PD}{ $form->{type} } = "selected"; |
|
1893 |
$form->{DF}{ $form->{format} } = "selected"; |
|
1894 |
$form->{OP}{ $form->{media} } = "selected"; |
|
1895 |
$form->{SM}{ $form->{sendmode} } = "selected"; |
|
1896 |
|
|
1897 |
$type = qq| |
|
1898 |
<option value=statement $form->{PD}{statement}>| |
|
1899 |
. $locale->text('Statement'); |
|
1900 |
|
|
1901 |
if ($form->{media} eq 'email') { |
|
1902 |
$media = qq| |
|
1903 |
<option value=attachment $form->{SM}{attachment}>| |
|
1904 |
. $locale->text('Attachment') . qq| |
|
1905 |
<option value=inline $form->{SM}{inline}>| . $locale->text('In-line'); |
|
1906 |
} else { |
|
1907 |
$media = qq| |
|
1908 |
<option value=screen $form->{OP}{screen}>| . $locale->text('Screen'); |
|
1909 |
if ($myconfig{printer} && $latex_templates) { |
|
1910 |
$media .= qq| |
|
1911 |
<option value=printer $form->{OP}{printer}>| |
|
1912 |
. $locale->text('Printer'); |
|
1913 |
} |
|
1914 |
} |
|
1915 |
|
|
1916 |
if ($latex_templates) { |
|
1917 |
$format .= qq| |
|
1918 |
<option value=postscript $form->{DF}{postscript}>| |
|
1919 |
. $locale->text('Postscript') . qq| |
|
1920 |
<option value=pdf $form->{DF}{pdf}>| . $locale->text('PDF'); |
|
1921 |
} |
|
1922 |
|
|
1923 |
print qq| |
|
1924 |
<table> |
|
1925 |
<tr> |
|
1926 |
<td><select name=type>$type</select></td> |
|
1927 |
<td><select name=format>$format</select></td> |
|
1928 |
<td><select name=media>$media</select></td> |
|
1929 |
|; |
|
1930 |
|
|
1931 |
if ($myconfig{printer} && $latex_templates && $form->{media} ne 'email') { |
|
1932 |
print qq| |
|
1933 |
<td>| . $locale->text('Copies') . qq| |
|
1934 |
<input name=copies size=2 value=$form->{copies}></td> |
|
1935 |
|; |
|
1936 |
} |
|
1937 |
|
|
1938 |
print qq| |
|
1939 |
</tr> |
|
1940 |
</table> |
|
1941 |
|; |
|
1942 |
|
|
1943 |
$lxdebug->leave_sub(); |
|
1944 |
} |
|
1945 |
|
|
1946 | 1886 |
sub e_mail { |
1947 | 1887 |
$lxdebug->enter_sub(); |
1948 | 1888 |
|
Auch abrufbar als: Unified diff
Bugfix 351 Sub print_options doppelt definiert. Die erste fliegt raus,
da Perl die zweite nimmt!