Subversion Repositories wpShopGermany4

Rev

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

Rev Author Line No. Line
5447 daniel 1
<?php
2
 
3
	/**
4
	 * Template für den Reiter "Allgemein" der Produktverwaltung
5
	 */
6
 
5449 daniel 7
?>
6443 daniel 8
 
7086 florian 9
<div class="general-panel-block">
10
	<div class="general-panel-general">
11
		<?php echo wpsg_drawForm_AdminboxStart(__('Allgemein', 'wpsg')); ?>
6443 daniel 12
 
7086 florian 13
		<?php echo wpsg_drawForm_Input('name', __('Produktname', 'wpsg'), wpsg_getStr($this->view['data']['name']), array('placeholder' => __('Bitte hier den Produktnamen eingeben', 'wpsg'))); ?>
14
 
15
		<?php echo wpsg_drawForm_Select('disabled', __('Produktstatus', 'wpsg'), array('0' => __('veröffentlicht', 'wpsg'), '1' => __('Entwurf', 'wpsg')), wpsg_getStr($this->view['data']['disabled'])); ?>
16
 
17
		<?php if ($this->isMultiLingual()) { ?>
8038 daniel 18
 
7086 florian 19
		<?php echo wpsg_drawForm_TextStart(); ?>
5450 daniel 20
		<?php foreach ($this->getStoreLanguages() as $a) { ?>
7086 florian 21
		<?php if ((isset($_REQUEST['wpsg_lang']) && $_REQUEST['wpsg_lang'] != $a['lang']) || (!isset($_REQUEST['wpsg_lang']) && $a['lang'] != $this->getDefaultLanguageCode())) { ?>
22
		<?php if (isset($_REQUEST['wpsg_lang']) && $a['lang'] == $this->getDefaultLanguageCode()) { ?>
7711 daniel 23
		<a href="<?php
24
 
25
                echo wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id='.intval($_REQUEST['edit_id']), 'wpsg-product-edit-'.intval($_REQUEST['edit_id']));
26
 
27
            ?>" title="<?php echo wpsg_translate(__('Zu Sprache #1# wechseln.', 'wpsg'), $a['name']); ?>">
5450 daniel 28
			<?php } else { ?>
7700 daniel 29
			<a href="<?php
30
 
31
                echo wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id='.$_REQUEST['edit_id'].'&wpsg_lang='.$a['lang'], 'wpsg-product-edit-'.$_REQUEST['edit_id']);
32
 
33
			?>" title="<?php echo wpsg_translate(__('Zu Sprache #1# wechseln.', 'wpsg'), $a['name']); ?>">
7086 florian 34
				<?php } ?>
5450 daniel 35
				<img src="<?php echo $this->getFlagURL().$a['flag']; ?>" alt="<?php echo wpsg_translate(__('Zu Sprache #1# wechseln.', 'wpsg'), $a['name']); ?>" />
36
			</a>
37
			<?php } ?>
7086 florian 38
			<?php } ?>
39
			<?php echo wpsg_drawForm_TextEnd(__('Übersetzungen', 'wpsg')); ?>
40
			<?php } ?>
41
			<?php echo wpsg_drawForm_Input('detailname', __('Produktname (Detail)', 'wpsg'), wpsg_getStr($this->view['data']['detailname'])); ?>
42
			<?php echo wpsg_drawForm_Input('shortdesc', __('Produktbeschreibung (Kurz)', 'wpsg'), wpsg_getStr($this->view['data']['shortdesc'])); ?>
43
			<?php if (wpsg_isSizedInt($this->view['data']['id']) && !isset($_REQUEST['wpsg_lang'])) { ?>
44
				<?php echo wpsg_drawForm_Input(false, __('Produkt ID', 'wpsg'), wpsg_getStr($this->view['data']['id']), array('readonly' => true)); ?>
45
			<?php } ?>
46
			<?php if (!isset($_REQUEST['wpsg_lang'])) { ?>
47
				<?php echo wpsg_drawForm_Input('anr', __('Artikelnummer', 'wpsg'), wpsg_getStr($this->view['data']['anr'])); ?>
48
				<?php if (!is_array($this->view['templates']) || sizeof($this->view['templates']) <= 0) { ?>
49
					<?php echo wpsg_drawForm_Text(__('Produkttemplate', 'wpsg'), __('Keine Templatesdateien gefunden!', 'wpsg'), array('class_content_wrap' => 'wpsg_error')); ?>
50
				<?php } else { ?>
51
					<?php /* $this->view['templates'][-1] = __('Bitte auswählen', 'wpsg'); ksort($this->view['templates']); */ ?>
52
					<?php echo wpsg_drawForm_Select('ptemplate_file', __('Produkttemplate', 'wpsg'), $this->view['templates'], wpsg_getStr($this->view['data']['ptemplate_file']), array('noKeys' => true)); ?>
53
				<?php } ?>
54
			<?php } ?>
55
			<?php if (!$this->hasMod('wpsg_mod_produktartikel')) { ?>
56
				<?php echo wpsg_drawForm_Select('partikel', __('Zugeordneter Wordpress Artikel', 'wpsg'), $this->view['partikel_select'], wpsg_getStr($this->view['data']['partikel']), array('optgroup' => true)); ?>
57
			<?php } ?>
58
			<?php if (!isset($_REQUEST['wpsg_lang'])) { ?>
59
				<?php echo wpsg_drawForm_Select('basket_multiple', __('Verhalten im Warenkorb', 'wpsg'), array(
60
					'0' => __('Nur einmal mit beliebiger Menge (Standard)', 'wpsg'),
61
					'4' => __('Nur einmal mit Menge 1', 'wpsg'),
62
					'1' => __('Mehrfach mit beliebiger Menge', 'wpsg'),
63
					'2' => __('Mehrfach mit Menge 1', 'wpsg')
64
				), wpsg_getStr($this->view['data']['basket_multiple']), array('help' => 'basket_multiple')); ?>
65
			<?php } ?>
5565 daniel 66
 
7086 florian 67
			<br />
6279 hartmut 68
 
7086 florian 69
			<?php if (wpsg_isSizedInt($this->view['data']['id'])) { ?>
70
				<?php echo wpsg_drawForm_TextStart(); $url = $this->getProduktLink(array('id' => ((wpsg_isSizedInt($this->view['data']['id']))?$this->view['data']['id']:$this->view['data']['id']))); ?>
71
				<a href="<?php echo $url; ?>"><?php echo wpsg_hspc($url); ?></a>
72
				<?php echo wpsg_drawForm_TextEnd(__('URL', 'wpsg')); ?>
73
			<?php } ?>
5449 daniel 74
 
7086 florian 75
			<?php /* Shortcode */ ?>
76
			<?php if (wpsg_isSizedInt($this->view['data']['id'])) { ?>
77
				<?php echo wpsg_drawForm_Input(false, __('Shortcode', 'wpsg'), '[wpshopgermany product="'.$this->view['data']['id'].'"]', array('readonly' => true)); ?>
78
			<?php } ?>
6268 hartmut 79
 
7086 florian 80
			<?php if (!isset($_REQUEST['wpsg_lang'])) { ?>
81
				<?php $arSelect = array('0' => __('Nicht anzeigen', 'wpsg'), '1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5'); ?>
82
				<?php if (defined('STO_PATH')) $arSelect['-1'] = __('Aus Kommentarbewertung', 'wpsg'); ?>
83
				<?php echo wpsg_drawForm_Select('rating', __('Bewertungspunkte', 'wpsg'), $arSelect, wpsg_getInt($this->view['data']['rating'])); ?>
84
			<?php } ?>
6268 hartmut 85
 
7086 florian 86
			<?php $this->callMods('produkt_edit_allgemein', array(&$this->view['data'])); ?>
6268 hartmut 87
 
7086 florian 88
			<?php echo wpsg_drawForm_AdminboxEnd(); ?>
89
	</div>
90
 
91
	<div class="general-panel-subblock">
92
		<div class="general-panel-ordercondition">
93
			<?php if ($this->hasMod('wpsg_mod_ordercondition')) { ?>
94
 
95
				<?php $this->callMod('wpsg_mod_ordercondition', 'produkt_edit_sidebar', array(&$this->view['data'])); ?>
96
 
97
			<?php } ?>
98
		</div>
99
 
100
		<div class="general-panel-urlnotification">
101
			<?php if (!isset($_REQUEST['wpsg_lang'])) { ?>
102
			<?php echo wpsg_drawForm_AdminboxStart(__('URL Benachrichtigung', 'wpsg')); ?>
103
				<?php echo wpsg_drawForm_Input('posturl', __('URL', 'wpsg'), wpsg_getStr($this->view['data']['posturl']), array('help' => 'URLBenachrichtigung')); ?>
104
				<?php echo wpsg_drawForm_Checkbox('posturl_verkauf', __('Beim Verkauf', 'wpsg'), wpsg_getStr($this->view['data']['posturl_verkauf'])); ?>
105
				<?php echo wpsg_drawForm_Checkbox('posturl_bezahlung', __('Bei Bezahlung', 'wpsg'), wpsg_getStr($this->view['data']['posturl_bezahlung'])); ?>
106
			<?php echo wpsg_drawForm_AdminboxEnd(); ?>
107
			<?php } ?>
108
		</div>
109
	</div>
110
 
111
</div>
112