Subversion Repositories wpShopGermany4

Rev

Rev 6503 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5748 daniel 1
<?php
2
 
6306 hartmut 3
    /**  Liste der Länder im Backend */
5748 daniel 4
 
7507 daniel 5
    echo $this->writeBackendMessage();
6
 
5748 daniel 7
?>
8
 
9
<?php if (wpsg_isSizedArray($this->view['data'])) { ?>
10
    <table class="table wpsg_table_country">
11
 
12
        <thead>
13
            <tr>
14
                <th class="col_check"><input type="checkbox" onclick="return wpsg_country_check_all();" style="margin-top:-2px;" /></th>
15
                <th class="col_name"><?php echo __('Ländername', 'wpsg'); ?></th>
16
                <th class="col_vz"><?php echo __('Versandzone', 'wpsg'); ?></th>
17
                <th class="col_mwstsetting"><?php echo __('MwSt.', 'wpsg'); ?></th>
18
                <th class="col_mwst"><?php echo __('MwSt. A', 'wpsg'); ?></th>
19
                <th class="col_mwst"><?php echo __('MwSt. B', 'wpsg'); ?></th>
20
                <th class="col_mwst"><?php echo __('MwSt. C', 'wpsg'); ?></th>
21
                <th class="col_mwst"><?php echo __('MwSt. D', 'wpsg'); ?></th>
22
                <th class="col_action"></th>
23
            </tr>
24
        </thead>
25
 
26
        <tbody>
27
            <?php foreach ($this->view['data'] as $l) { ?>
6306 hartmut 28
                <tr id="wpsg_laenderrow_<?php echo $l['id']; ?>" class="<?php echo (($this->get_option('wpsg_defaultland') == $l['id'])?'bg-info':''); ?>">
5748 daniel 29
                    <td class="col_check"><input type="checkbox" value="1" name="arDelete[<?php echo $l['id']; ?>]" /></td>
30
                    <td class="col_name"><?php echo wpsg_hspc($l['name'].((wpsg_isSizedString($l['kuerzel']))?' ('.$l['kuerzel'].')':'')); ?></td>
31
                    <td class="col_vz">
32
                        <?php if (wpsg_isSizedInt($l['vz']) && wpsg_isSizedString($this->view['vz'][$l['vz']])) { ?>
33
                            <?php echo wpsg_hspc($this->view['vz'][$l['vz']]); ?>
34
                        <?php } ?>
35
                    </td>
36
                    <td class="col_mwstsetting">
37
                        <?php if ($l['mwst'] == '2') { ?>
38
                            <?php echo __('keine MwSt. bei USt.IdNr.', 'wpsg'); ?>
39
                        <?php } else if ($l['mwst'] == '1') { ?>
40
                            <?php echo __('keine MwSt.', 'wpsg'); ?>
41
                        <?php } else { ?>
42
                            <?php echo __('mit MwSt.', 'wpsg'); ?>
43
                        <?php } ?>
44
                    </td>
45
                    <td class="col_mwst"><?php if (wpsg_tf($l['mwst_a']) != NULL) { ?>
46
                            <?php echo wpsg_ff(wpsg_tf($l['mwst_a']), '%'); ?>
47
                        <?php } ?></td>
48
                    <td class="col_mwst"><?php if (wpsg_tf($l['mwst_b']) != NULL) { ?>
49
                            <?php echo wpsg_ff(wpsg_tf($l['mwst_b']), '%'); ?>
50
                        <?php } ?></td>
51
                    <td class="col_mwst"><?php if (wpsg_tf($l['mwst_c']) != NULL) { ?>
52
                            <?php echo wpsg_ff(wpsg_tf($l['mwst_c']), '%'); ?>
53
                        <?php } ?></td>
54
                    <td class="col_mwst"><?php if (wpsg_tf($l['mwst_d']) != NULL) { ?>
55
                            <?php echo wpsg_ff(wpsg_tf($l['mwst_d']), '%'); ?>
56
                        <?php } ?></td>
57
                    <td class="col_action">
58
 
59
                        <a href="#" onclick="return wpsg_country_edit('<?php echo $l['id']; ?>');" class="glyphicon glyphicon-pencil"></a>
6306 hartmut 60
                        <a href="#" onclick="return wpsg_country_remove('<?php echo $l['id']; ?>');" class="glyphicon glyphicon-trash"></a>
5748 daniel 61
 
62
                    </td>
63
                </tr>
64
            <?php } ?>
65
        </tbody>
66
        <tfoot>
67
            <tr>
68
 
6306 hartmut 69
                <td class="col_check"><!-- <span class="glyphicon glyphicon-trash"></span> --></td>
5748 daniel 70
                <td colspan="8">
71
 
72
                    <input type="submit" name="submit" onclick="return confirm('<?php echo __('Sind Sie sich sicher?', 'wpsg'); ?>');" class="button btn-xs" value="<?php echo __('Markierte Länder löschen', 'wpsg'); ?>" />
73
 
74
                </td>
75
 
76
            </tr>
77
        </tfoot>
78
    </table>
79
 
80
    <br />
81
 
82
    <div class="info"><?php echo __('Das Standardland ist <span class="bg-info">blau</span> markiert und wird für die MwSt. Berechnung im Backend verwendet.', 'wpsg'); ?></div>
83
 
84
<?php } else { ?>
85
    <p><?php echo __('Noch keine Länder angelegt.', 'wpsg'); ?></p>
6283 hartmut 86
<?php } ?>