3652 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Template für die allgemeinen Shopdaten
|
|
|
5 |
*/
|
|
|
6 |
|
5401 |
daniel |
7 |
?>
|
|
|
8 |
|
3652 |
daniel |
9 |
<div class="wpsg_admin_submenu">
|
5401 |
daniel |
10 |
|
|
|
11 |
<div class="list-group">
|
|
|
12 |
<span class="list-group-head list-group-item"><?php echo __('Konfiguration'); ?></span>
|
|
|
13 |
<?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
|
|
|
14 |
<a class="list-group-item <?php echo (($k == $this->view['subAction'])?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a>
|
|
|
15 |
<?php } ?>
|
3652 |
daniel |
16 |
</div>
|
|
|
17 |
|
|
|
18 |
</div>
|
|
|
19 |
|
5401 |
daniel |
20 |
<div class="wpsg_admin_content form-horizontal">
|
3652 |
daniel |
21 |
<form name="form1" method="post" enctype="multipart/form-data" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=<?php echo $_REQUEST['subaction']; ?>&noheader=1">
|
7536 |
daniel |
22 |
|
|
|
23 |
<?php \wp_nonce_field('wpsg-save-admin-shopdata'); ?>
|
8336 |
karl |
24 |
|
|
|
25 |
<?php
|
|
|
26 |
$countrys = array();
|
|
|
27 |
$arCountry = wpsg_country::find();
|
|
|
28 |
foreach ($arCountry as $oCountry) $countrys[$oCountry->getId()] = $oCountry->getName();
|
|
|
29 |
?>
|
7536 |
daniel |
30 |
|
5401 |
daniel |
31 |
<div class="panel panel-default">
|
|
|
32 |
<div class="panel-heading clearfix">
|
|
|
33 |
<h3 class="panel-title"><?php echo __('Allgemeine Angaben', 'wpsg'); ?></h3>
|
|
|
34 |
</div>
|
7520 |
daniel |
35 |
<div class="panel-body">
|
5401 |
daniel |
36 |
<?php echo wpsg_drawForm_Input('wpsg_shopdata_name', __('Name des Shops / Firma', 'wpsg'), $this->get_option('wpsg_shopdata_name'), array('help' => 'wpsg_shopdata_name')); ?>
|
|
|
37 |
<?php echo wpsg_drawForm_Input('wpsg_shopdata_owner', __('Inhaber des Shops', 'wpsg'), $this->get_option('wpsg_shopdata_owner'), array('help' => 'wpsg_shopdata_owner')); ?>
|
8336 |
karl |
38 |
<br />
|
5401 |
daniel |
39 |
<?php echo wpsg_drawForm_Input('wpsg_shopdata_tel', __('Telefonnummer', 'wpsg'), $this->get_option('wpsg_shopdata_tel'), array('help' => 'wpsg_shopdata_tel')); ?>
|
|
|
40 |
<?php echo wpsg_drawForm_Input('wpsg_shopdata_fax', __('Faxnummer', 'wpsg'), $this->get_option('wpsg_shopdata_fax'), array('help' => 'wpsg_shopdata_fax')); ?>
|
|
|
41 |
<?php echo wpsg_drawForm_Input('wpsg_shopdata_email', __('E-Mail', 'wpsg'), $this->get_option('wpsg_shopdata_email'), array('help' => 'wpsg_shopdata_email')); ?>
|
|
|
42 |
<?php echo wpsg_drawForm_Input('wpsg_shopdata_taxnr', __('Steuernummer', 'wpsg'), $this->get_option('wpsg_shopdata_taxnr'), array('help' => 'wpsg_shopdata_taxnr')); ?>
|
|
|
43 |
<?php echo wpsg_drawForm_Input('wpsg_shopdata_ustidnr', __('USt-IdNr.', 'wpsg'), $this->get_option('wpsg_shopdata_ustidnr'), array('help' => 'wpsg_shopdata_ustidnr')); ?>
|
|
|
44 |
</div>
|
|
|
45 |
</div>
|
3652 |
daniel |
46 |
|
5401 |
daniel |
47 |
<div class="panel panel-default">
|
|
|
48 |
<div class="panel-heading clearfix">
|
|
|
49 |
<h3 class="panel-title"><?php echo __('Anschrift', 'wpsg'); ?></h3>
|
|
|
50 |
</div>
|
|
|
51 |
<div class="panel-body">
|
|
|
52 |
<?php echo wpsg_drawForm_Input('wpsg_shopdata_street', __('Straße', 'wpsg'), $this->get_option('wpsg_shopdata_street'), array('help' => 'wpsg_shopdata_street')); ?>
|
|
|
53 |
<?php echo wpsg_drawForm_Input('wpsg_shopdata_zip', __('Postleitzahl', 'wpsg'), $this->get_option('wpsg_shopdata_zip'), array('help' => 'wpsg_shopdata_zip')); ?>
|
8336 |
karl |
54 |
<?php echo wpsg_drawForm_Input('wpsg_shopdata_city', __('Ort', 'wpsg'), $this->get_option('wpsg_shopdata_city'), array('help' => 'wpsg_shopdata_city')); ?>
|
|
|
55 |
<?php echo wpsg_drawForm_Select('wpsg_shopdata_country', __('Land', 'wpsg'), $countrys, $this->get_option('wpsg_shopdata_country'), array('help' => 'wpsg_shopdata_country')); ?>
|
5401 |
daniel |
56 |
</div>
|
|
|
57 |
</div>
|
7003 |
thomas |
58 |
|
5401 |
daniel |
59 |
<div class="panel panel-default">
|
|
|
60 |
<div class="panel-heading clearfix">
|
7239 |
thomas |
61 |
<h3 class="panel-title"><?php echo __('Zweigstelle', 'wpsg'); ?></h3>
|
|
|
62 |
</div>
|
|
|
63 |
<div class="panel-body">
|
8336 |
karl |
64 |
<?php echo wpsg_drawForm_Checkbox('wpsg_shopdata_2', __('Zweigstelle vorhanden', 'wpsg'), $this->get_option('wpsg_shopdata_2'), array('help' => 'wpsg_shopdata_2')); ?>
|
|
|
65 |
<div class="wpsg_shopdata_2_activ" style="display:none;">
|
|
|
66 |
<?php echo wpsg_drawForm_Input('wpsg_shopdata_2_street', __('Straße', 'wpsg'), $this->get_option('wpsg_shopdata_2_street')); ?>
|
|
|
67 |
<?php echo wpsg_drawForm_Input('wpsg_shopdata_2_zip', __('Postleitzahl', 'wpsg'), $this->get_option('wpsg_shopdata_2_zip')); ?>
|
|
|
68 |
<?php echo wpsg_drawForm_Input('wpsg_shopdata_2_city', __('Ort', 'wpsg'), $this->get_option('wpsg_shopdata_2_city')); ?>
|
|
|
69 |
<?php echo wpsg_drawForm_Select('wpsg_shopdata_2_country', __('Land', 'wpsg'), $countrys, $this->get_option('wpsg_shopdata_2_country')); ?>
|
|
|
70 |
<br />
|
|
|
71 |
<?php echo wpsg_drawForm_Input('wpsg_shopdata_2_tel', __('Telefon', 'wpsg'), $this->get_option('wpsg_shopdata_2_tel')); ?>
|
|
|
72 |
<?php echo wpsg_drawForm_Input('wpsg_shopdata_2_fax', __('Fax', 'wpsg'), $this->get_option('wpsg_shopdata_2_fax')); ?>
|
|
|
73 |
<?php echo wpsg_drawForm_Input('wpsg_shopdata_2_email', __('E-Mail', 'wpsg'), $this->get_option('wpsg_shopdata_2_email')); ?>
|
|
|
74 |
</div>
|
7239 |
thomas |
75 |
</div>
|
|
|
76 |
</div>
|
|
|
77 |
|
|
|
78 |
<div class="panel panel-default">
|
|
|
79 |
<div class="panel-heading clearfix">
|
5401 |
daniel |
80 |
<h3 class="panel-title"><?php echo __('Bankdaten', 'wpsg'); ?></h3>
|
|
|
81 |
</div>
|
|
|
82 |
<div class="panel-body">
|
|
|
83 |
<?php echo wpsg_drawForm_Input('wpsg_shopdata_bank_name', __('Name der Bank', 'wpsg'), $this->get_option('wpsg_shopdata_bank_name'), array('help' => 'wpsg_shopdata_bank_name')); ?>
|
|
|
84 |
<?php echo wpsg_drawForm_Input('wpsg_shopdata_bank_owner', __('Kontoinhaber', 'wpsg'), $this->get_option('wpsg_shopdata_bank_owner'), array('help' => 'wpsg_shopdata_bank_owner')); ?>
|
|
|
85 |
<?php echo wpsg_drawForm_Input('wpsg_shopdata_bank_iban', __('IBAN Nummer', 'wpsg'), $this->get_option('wpsg_shopdata_bank_iban'), array('help' => 'wpsg_shopdata_bank_iban')); ?>
|
8340 |
karl |
86 |
<?php echo wpsg_drawForm_Input('wpsg_shopdata_bank_bic', __('BIC Nummer', 'wpsg'), $this->get_option('wpsg_shopdata_bank_bic'), array('help' => 'wpsg_shopdata_bank_bic')); ?>
|
8336 |
karl |
87 |
<?php echo wpsg_drawForm_Input('wpsg_shopdata_bank_qriban', __('QR-IBAN Nummer', 'wpsg'), $this->get_option('wpsg_shopdata_bank_qriban'), array('help' => 'wpsg_shopdata_bank_qriban')); ?>
|
|
|
88 |
<?php echo wpsg_drawForm_Input('wpsg_shopdata_bank_besr', __('BESR-ID', 'wpsg'), $this->get_option('wpsg_shopdata_bank_besr'), array('help' => 'wpsg_shopdata_bank_besr')); ?>
|
5401 |
daniel |
89 |
</div>
|
|
|
90 |
</div>
|
7003 |
thomas |
91 |
|
8336 |
karl |
92 |
<div class="panel panel-default">
|
|
|
93 |
<div class="panel-heading clearfix">
|
|
|
94 |
<h3 class="panel-title"><?php echo __('EU-Vertreter', 'wpsg'); ?></h3>
|
|
|
95 |
</div>
|
|
|
96 |
<div class="panel-body">
|
|
|
97 |
<?php echo wpsg_drawForm_Checkbox('wpsg_shopdata_3', __('EU-Vertreter vorhanden', 'wpsg'), $this->get_option('wpsg_shopdata_3'), array('help' => 'wpsg_shopdata_3')); ?>
|
|
|
98 |
<div class="wpsg_shopdata_3_activ" style="display:none;">
|
|
|
99 |
<?php echo wpsg_drawForm_Input('wpsg_shopdata_eu_name', __('Name des EU-Vertreters', 'wpsg'), $this->get_option('wpsg_shopdata_eu_name')); ?>
|
7003 |
thomas |
100 |
<br />
|
8336 |
karl |
101 |
<?php echo wpsg_drawForm_Input('wpsg_shopdata_eu_street', __('Straße', 'wpsg'), $this->get_option('wpsg_shopdata_eu_street')); ?>
|
|
|
102 |
<?php echo wpsg_drawForm_Input('wpsg_shopdata_eu_zip', __('Postleitzahl', 'wpsg'), $this->get_option('wpsg_shopdata_eu_zip')); ?>
|
|
|
103 |
<?php echo wpsg_drawForm_Input('wpsg_shopdata_eu_city', __('Stadt', 'wpsg'), $this->get_option('wpsg_shopdata_eu_city')); ?>
|
|
|
104 |
<?php echo wpsg_drawForm_Select('wpsg_shopdata_eu_country', __('Land', 'wpsg'), $countrys, $this->get_option('wpsg_shopdata_eu_country')); ?>
|
7003 |
thomas |
105 |
<br />
|
8336 |
karl |
106 |
<?php echo wpsg_drawForm_Input('wpsg_shopdata_eu_tel', __('Telefonnummer', 'wpsg'), $this->get_option('wpsg_shopdata_eu_tel')); ?>
|
|
|
107 |
<?php echo wpsg_drawForm_Input('wpsg_shopdata_eu_fax', __('Faxnummer', 'wpsg'), $this->get_option('wpsg_shopdata_eu_fax')); ?>
|
|
|
108 |
<?php echo wpsg_drawForm_Input('wpsg_shopdata_eu_email', __('E-Mail', 'wpsg'), $this->get_option('wpsg_shopdata_eu_email')); ?>
|
7003 |
thomas |
109 |
</div>
|
|
|
110 |
</div>
|
|
|
111 |
</div>
|
3652 |
daniel |
112 |
|
|
|
113 |
<p class="submit"><input type="submit" value="<?php echo __('Einstellungen speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit" /></p>
|
|
|
114 |
|
7003 |
thomas |
115 |
<script type="text/javascript">/* <![CDATA[ */
|
|
|
116 |
|
|
|
117 |
jQuery(document).ready(function() {
|
|
|
118 |
|
7239 |
thomas |
119 |
jQuery('#wpsg_shopdata_2').bind('change', function() {
|
7003 |
thomas |
120 |
|
7239 |
thomas |
121 |
if (jQuery(this).is(':checked')) jQuery('.wpsg_shopdata_2_activ').show();
|
|
|
122 |
else jQuery('.wpsg_shopdata_2_activ').hide();
|
|
|
123 |
|
|
|
124 |
} ).change();
|
|
|
125 |
|
8336 |
karl |
126 |
jQuery('#wpsg_shopdata_3').bind('change', function() {
|
7239 |
thomas |
127 |
|
8336 |
karl |
128 |
if (jQuery(this).is(':checked')) jQuery('.wpsg_shopdata_3_activ').show();
|
|
|
129 |
else jQuery('.wpsg_shopdata_3_activ').hide();
|
|
|
130 |
|
|
|
131 |
} ).change();
|
|
|
132 |
|
7003 |
thomas |
133 |
} );
|
|
|
134 |
|
|
|
135 |
/* ]]> */</script>
|
|
|
136 |
|
3652 |
daniel |
137 |
</form>
|
5439 |
daniel |
138 |
|
5401 |
daniel |
139 |
</div>
|