Subversion Repositories wpShopGermany4

Rev

Rev 8336 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8336 Rev 8340
1
<?php
1
<?php
2
 
2
 
3
	/**
3
	/**
4
	 * Template für die allgemeinen Shopdaten
4
	 * Template für die allgemeinen Shopdaten
5
	 */
5
	 */
6
 
6
 
7
?> 
7
?> 
8
 
8
 
9
<div class="wpsg_admin_submenu">
9
<div class="wpsg_admin_submenu">
10
	 
10
	 
11
	<div class="list-group">
11
	<div class="list-group">
12
		<span class="list-group-head list-group-item"><?php echo __('Konfiguration'); ?></span>		
12
		<span class="list-group-head list-group-item"><?php echo __('Konfiguration'); ?></span>		
13
		<?php foreach ($this->view['arSubAction'] as $k => $v) { ?>		 
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&amp;subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a>		
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&amp;subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a>		
15
		<?php } ?>
15
		<?php } ?>
16
	</div>
16
	</div>
17
			
17
			
18
</div>
18
</div>
19
 
19
 
20
<div class="wpsg_admin_content form-horizontal">	
20
<div class="wpsg_admin_content form-horizontal">	
21
	<form name="form1" method="post" enctype="multipart/form-data" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;subaction=<?php echo $_REQUEST['subaction']; ?>&amp;noheader=1">
21
	<form name="form1" method="post" enctype="multipart/form-data" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;subaction=<?php echo $_REQUEST['subaction']; ?>&amp;noheader=1">
22
		
22
		
23
		<?php \wp_nonce_field('wpsg-save-admin-shopdata'); ?>
23
		<?php \wp_nonce_field('wpsg-save-admin-shopdata'); ?>
24
 
24
 
25
		<?php 
25
		<?php 
26
			$countrys = array();
26
			$countrys = array();
27
			$arCountry = wpsg_country::find();
27
			$arCountry = wpsg_country::find();
28
			foreach ($arCountry as $oCountry) $countrys[$oCountry->getId()] = $oCountry->getName();
28
			foreach ($arCountry as $oCountry) $countrys[$oCountry->getId()] = $oCountry->getName();
29
		?>
29
		?>
30
		
30
		
31
  		<div class="panel panel-default">
31
  		<div class="panel panel-default">
32
  			<div class="panel-heading clearfix">
32
  			<div class="panel-heading clearfix">
33
          		<h3 class="panel-title"><?php echo __('Allgemeine Angaben', 'wpsg'); ?></h3>
33
          		<h3 class="panel-title"><?php echo __('Allgemeine Angaben', 'wpsg'); ?></h3>
34
        	</div>
34
        	</div>
35
  			<div class="panel-body">				
35
  			<div class="panel-body">				
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')); ?>
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')); ?>
37
				<?php echo wpsg_drawForm_Input('wpsg_shopdata_owner', __('Inhaber des Shops', 'wpsg'), $this->get_option('wpsg_shopdata_owner'), array('help' => 'wpsg_shopdata_owner')); ?>
38
				<br />
38
				<br />
39
				<?php echo wpsg_drawForm_Input('wpsg_shopdata_tel', __('Telefonnummer', 'wpsg'), $this->get_option('wpsg_shopdata_tel'), array('help' => 'wpsg_shopdata_tel')); ?>
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')); ?>
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')); ?>
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')); ?>
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')); ?>		
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>
44
			</div>
45
		</div>
45
		</div>
46
		
46
		
47
		<div class="panel panel-default">
47
		<div class="panel panel-default">
48
  			<div class="panel-heading clearfix">
48
  			<div class="panel-heading clearfix">
49
          		<h3 class="panel-title"><?php echo __('Anschrift', 'wpsg'); ?></h3>
49
          		<h3 class="panel-title"><?php echo __('Anschrift', 'wpsg'); ?></h3>
50
        	</div>
50
        	</div>
51
  			<div class="panel-body">
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')); ?>
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')); ?>
53
				<?php echo wpsg_drawForm_Input('wpsg_shopdata_zip', __('Postleitzahl', 'wpsg'), $this->get_option('wpsg_shopdata_zip'), array('help' => 'wpsg_shopdata_zip')); ?>
54
				<?php echo wpsg_drawForm_Input('wpsg_shopdata_city', __('Ort', 'wpsg'), $this->get_option('wpsg_shopdata_city'), array('help' => 'wpsg_shopdata_city')); ?>		
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')); ?>	
55
				<?php echo wpsg_drawForm_Select('wpsg_shopdata_country', __('Land', 'wpsg'), $countrys, $this->get_option('wpsg_shopdata_country'), array('help' => 'wpsg_shopdata_country')); ?>	
56
			</div>
56
			</div>
57
		</div>
57
		</div>
58
		
58
		
59
		<div class="panel panel-default">
59
		<div class="panel panel-default">
60
  			<div class="panel-heading clearfix">
60
  			<div class="panel-heading clearfix">
61
          		<h3 class="panel-title"><?php echo __('Zweigstelle', 'wpsg'); ?></h3>
61
          		<h3 class="panel-title"><?php echo __('Zweigstelle', 'wpsg'); ?></h3>
62
        	</div>
62
        	</div>
63
  			<div class="panel-body">
63
  			<div class="panel-body">
64
				<?php echo wpsg_drawForm_Checkbox('wpsg_shopdata_2', __('Zweigstelle vorhanden', 'wpsg'), $this->get_option('wpsg_shopdata_2'), array('help' => 'wpsg_shopdata_2')); ?>
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;">
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')); ?>
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')); ?>
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')); ?>		
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')); ?>		
69
					<?php echo wpsg_drawForm_Select('wpsg_shopdata_2_country', __('Land', 'wpsg'), $countrys, $this->get_option('wpsg_shopdata_2_country')); ?>		
70
					<br />
70
					<br />
71
					<?php echo wpsg_drawForm_Input('wpsg_shopdata_2_tel', __('Telefon', 'wpsg'), $this->get_option('wpsg_shopdata_2_tel')); ?>
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')); ?>
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')); ?>		
73
					<?php echo wpsg_drawForm_Input('wpsg_shopdata_2_email', __('E-Mail', 'wpsg'), $this->get_option('wpsg_shopdata_2_email')); ?>		
74
				</div>
74
				</div>
75
			</div>
75
			</div>
76
		</div>
76
		</div>
77
		
77
		
78
		<div class="panel panel-default">
78
		<div class="panel panel-default">
79
  			<div class="panel-heading clearfix">
79
  			<div class="panel-heading clearfix">
80
          		<h3 class="panel-title"><?php echo __('Bankdaten', 'wpsg'); ?></h3>
80
          		<h3 class="panel-title"><?php echo __('Bankdaten', 'wpsg'); ?></h3>
81
        	</div>
81
        	</div>
82
  			<div class="panel-body">
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')); ?>
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')); ?>
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')); ?>
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')); ?>
86
				<?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')); ?>
-
 
87
				<?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')); ?>
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')); ?>
-
 
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')); ?>
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')); ?>
89
			</div>
89
			</div>
90
		</div>
90
		</div>
91
		
91
		
92
		<div class="panel panel-default">
92
		<div class="panel panel-default">
93
			<div class="panel-heading clearfix">
93
			<div class="panel-heading clearfix">
94
				<h3 class="panel-title"><?php echo __('EU-Vertreter', 'wpsg'); ?></h3>
94
				<h3 class="panel-title"><?php echo __('EU-Vertreter', 'wpsg'); ?></h3>
95
			</div>
95
			</div>
96
			<div class="panel-body">	
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')); ?>
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;">
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')); ?>
99
					<?php echo wpsg_drawForm_Input('wpsg_shopdata_eu_name', __('Name des EU-Vertreters', 'wpsg'), $this->get_option('wpsg_shopdata_eu_name')); ?>
100
					<br />
100
					<br />
101
					<?php echo wpsg_drawForm_Input('wpsg_shopdata_eu_street', __('Straße', 'wpsg'), $this->get_option('wpsg_shopdata_eu_street')); ?>
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')); ?>
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')); ?>
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')); ?>
104
					<?php echo wpsg_drawForm_Select('wpsg_shopdata_eu_country', __('Land', 'wpsg'), $countrys, $this->get_option('wpsg_shopdata_eu_country')); ?>
105
					<br />				
105
					<br />				
106
					<?php echo wpsg_drawForm_Input('wpsg_shopdata_eu_tel', __('Telefonnummer', 'wpsg'), $this->get_option('wpsg_shopdata_eu_tel')); ?>
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')); ?>
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')); ?>
108
					<?php echo wpsg_drawForm_Input('wpsg_shopdata_eu_email', __('E-Mail', 'wpsg'), $this->get_option('wpsg_shopdata_eu_email')); ?>
109
				</div>
109
				</div>
110
			</div>
110
			</div>
111
		</div>
111
		</div>
112
	
112
	
113
		<p class="submit"><input type="submit" value="<?php echo __('Einstellungen speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit" /></p>
113
		<p class="submit"><input type="submit" value="<?php echo __('Einstellungen speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit" /></p>
114
		
114
		
115
		<script type="text/javascript">/* <![CDATA[ */
115
		<script type="text/javascript">/* <![CDATA[ */
116
 
116
 
117
			jQuery(document).ready(function() {
117
			jQuery(document).ready(function() {
118
 
118
 
119
				jQuery('#wpsg_shopdata_2').bind('change', function() {
119
				jQuery('#wpsg_shopdata_2').bind('change', function() {
120
 
120
 
121
					if (jQuery(this).is(':checked')) jQuery('.wpsg_shopdata_2_activ').show();
121
					if (jQuery(this).is(':checked')) jQuery('.wpsg_shopdata_2_activ').show();
122
					else jQuery('.wpsg_shopdata_2_activ').hide();
122
					else jQuery('.wpsg_shopdata_2_activ').hide();
123
					
123
					
124
				} ).change();
124
				} ).change();
125
				
125
				
126
				jQuery('#wpsg_shopdata_3').bind('change', function() {
126
				jQuery('#wpsg_shopdata_3').bind('change', function() {
127
 
127
 
128
					if (jQuery(this).is(':checked')) jQuery('.wpsg_shopdata_3_activ').show();
128
					if (jQuery(this).is(':checked')) jQuery('.wpsg_shopdata_3_activ').show();
129
					else jQuery('.wpsg_shopdata_3_activ').hide();
129
					else jQuery('.wpsg_shopdata_3_activ').hide();
130
 
130
 
131
				} ).change();
131
				} ).change();
132
 
132
 
133
			} );
133
			} );
134
		
134
		
135
		/* ]]> */</script>
135
		/* ]]> */</script>
136
		
136
		
137
  	</form>
137
  	</form>
138
  	
138
  	
139
</div>
139
</div>