Revision 7f683e50
Von Jan Büren vor etwa 14 Jahren hinzugefügt
bin/mozilla/io.pl | ||
---|---|---|
1780 | 1780 |
|
1781 | 1781 |
my @shipto_vars = |
1782 | 1782 |
qw(shiptoname shiptostreet shiptozipcode shiptocity shiptocountry |
1783 |
shiptocontact shiptophone shiptofax shiptoemail |
|
1783 |
shiptocontact shiptocp_gender shiptophone shiptofax shiptoemail
|
|
1784 | 1784 |
shiptodepartment_1 shiptodepartment_2); |
1785 | 1785 |
|
1786 | 1786 |
my @addr_vars = |
... | ... | |
1795 | 1795 |
? $locale->text('Customer Number') |
1796 | 1796 |
: $locale->text('Vendor Number'); |
1797 | 1797 |
|
1798 |
# sieht nicht nett aus, funktioniert aber |
|
1799 |
# das vorausgewählte select-feld wird über shiptocp_gender |
|
1800 |
# entsprechend vorbelegt |
|
1801 |
my $selected_m=''; |
|
1802 |
my $selected_f=''; |
|
1803 |
if ($form->{shiptocp_gender} eq 'm') { |
|
1804 |
$selected_m='selected'; |
|
1805 |
$selected_f=''; |
|
1806 |
} elsif ($form->{shiptocp_gender} eq 'f') { |
|
1807 |
$selected_m=''; |
|
1808 |
$selected_f='selected'; |
|
1809 |
} |
|
1810 |
|
|
1798 | 1811 |
# get pricegroups for parts |
1799 | 1812 |
IS->get_pricegroups_for_parts(\%myconfig, \%$form); |
1800 | 1813 |
|
... | ... | |
1867 | 1880 |
<td>$form->{contact}</td> |
1868 | 1881 |
<td><input name="shiptocontact" size="35" value="$form->{shiptocontact}"></td> |
1869 | 1882 |
</tr> |
1883 |
<tr> |
|
1884 |
<th align="right" nowrap>| . $locale->text('Gender') . qq|</th> |
|
1885 |
<td></td> |
|
1886 |
<td><select id="shiptocp_gender" name="shiptocp_gender"> |
|
1887 |
<option value="m"| . $selected_m . qq|>| . $locale->text('male') . qq|</option> |
|
1888 |
<option value="f"| . $selected_f . qq|>| . $locale->text('female') . qq|</option> |
|
1889 |
</select> |
|
1890 |
</td> |
|
1891 |
</tr> |
|
1870 | 1892 |
<tr> |
1871 | 1893 |
<th align="right" nowrap>| . $locale->text('Phone') . qq|</th> |
1872 | 1894 |
<td>$form->{phone}</td> |
Auch abrufbar als: Unified diff
Geschlecht fuer Ansprechpartner bei abweichender Lieferadresse als Auswahlfeld in do.pl anzeigen und als hidden feld entsprechend weitergeben