summaryrefslogtreecommitdiff
path: root/views/admin/laender.phtml
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2016-06-04 20:02:45 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2016-06-04 20:02:45 +0000
commitd489ba719dca6e7869d62d46e63b5c8e841fdaaa (patch)
tree074e7eb6537c38c3a3a60101b873f8464e23973f /views/admin/laender.phtml
parent89125adae223f7eb5b81c778f7ad82ab72d66b60 (diff)
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5532 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/admin/laender.phtml')
-rw-r--r--views/admin/laender.phtml60
1 files changed, 60 insertions, 0 deletions
diff --git a/views/admin/laender.phtml b/views/admin/laender.phtml
index f4de826..ee7fbb0 100644
--- a/views/admin/laender.phtml
+++ b/views/admin/laender.phtml
@@ -18,6 +18,66 @@
<div class="wpsg_admin_content">
+ <?php echo wpsg_drawForm_AdminboxStart(__('Länderverwaltung', 'wpsg')); ?>
+
+ <?php if (wpsg_isSizedArray($this->view['data'])) { ?>
+ <table class="table wpsg_table_country">
+
+ <tr>
+ <th class="col_name"><?php echo __('Ländername', 'wpsg'); ?></th>
+ <th class="col_vz"><?php echo __('Versandzone', 'wpsg'); ?></th>
+ <th class="col_mwstsetting"><?php echo __('MwSt.', 'wpsg'); ?></th>
+ <th class="col_mwst"><?php echo __('MwSt. A', 'wpsg'); ?></th>
+ <th class="col_mwst"><?php echo __('MwSt. B', 'wpsg'); ?></th>
+ <th class="col_mwst"><?php echo __('MwSt. C', 'wpsg'); ?></th>
+ <th class="col_mwst"><?php echo __('MwSt. D', 'wpsg'); ?></th>
+ <th class="col_action"></th>
+ </tr>
+
+ <?php foreach ($this->view['data'] as $l) { ?>
+ <tr id="<?php echo $l['id']; ?>">
+ <td class="col_name"><?php echo wpsg_hspc($l['name'].((wpsg_isSizedString($l['kuerzel']))?' ('.$l['kuerzel'].')':'')); ?></td>
+ <td class="col_vz">
+ <?php if (wpsg_isSizedInt($l['vz']) && wpsg_isSizedString($this->view['vz'][$l['vz']])) { ?>
+ <?php echo wpsg_hspc($this->view['vz'][$l['vz']]); ?>
+ <?php } ?>
+ </td>
+ <td class="col_mwstsetting">
+ <?php if ($l['mwst'] == '2') { ?>
+ <?php echo __('keine MwSt. bei USt.IdNr.', 'wpsg'); ?>
+ <?php } else if ($l['mwst'] == '1') { ?>
+ <?php echo __('keine MwSt.', 'wpsg'); ?>
+ <?php } else { ?>
+ <?php echo __('mit MwSt.', 'wpsg'); ?>
+ <?php } ?>
+ </td>
+ <td class="col_mwst"><?php if (wpsg_tf($l['mwst_a']) != NULL) { ?>
+ <?php echo wpsg_ff(wpsg_tf($l['mwst_a']), '%'); ?>
+ <?php } ?></td>
+ <td class="col_mwst"><?php if (wpsg_tf($l['mwst_b']) != NULL) { ?>
+ <?php echo wpsg_ff(wpsg_tf($l['mwst_b']), '%'); ?>
+ <?php } ?></td>
+ <td class="col_mwst"><?php if (wpsg_tf($l['mwst_c']) != NULL) { ?>
+ <?php echo wpsg_ff(wpsg_tf($l['mwst_c']), '%'); ?>
+ <?php } ?></td>
+ <td class="col_mwst"><?php if (wpsg_tf($l['mwst_d']) != NULL) { ?>
+ <?php echo wpsg_ff(wpsg_tf($l['mwst_d']), '%'); ?>
+ <?php } ?></td>
+ <td class="col_action"></td>
+ </tr>
+ <?php } ?>
+
+ </table>
+ <?php } else { ?>
+ <p><?php echo __('Noch keine Länder angelegt.', 'wpsg'); ?>
+ <?php } ?>
+
+ <br /><br />
+
+ <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=vz"><span class="wpsg-glyphicon glyphicon glyphicon-wrench"></span><?php echo __('Zur Versandzonenverwaltung', 'wpsg'); ?></a>
+
+ <?php echo wpsg_drawForm_AdminboxEnd(); ?>
+
<div class="wpsg_admin_box">
<h3>