Subversion Repositories wpShopGermany4

Rev

Rev 5439 | Rev 6503 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5439 Rev 5753
Line 3... Line 3...
3
	/**
3
	/**
4
	 * Template für die Maske eines neuen Gutscheins
4
	 * Template für die Maske eines neuen Gutscheins
5
	 */
5
	 */
6
 
6
 
7
?>
7
?>
8
<div class="wrap columns-2">
-
 
9
	<div class="icon32 icon32-posts-post" id="icon-edit"><br /></div>
-
 
10
	<h2><?php echo __('Neuer Gutschein', 'wpsg'); ?></h2>
-
 
11
	<br />
-
 
12
	
-
 
13
	<?php echo $this->writeBackendMessage(); ?>
-
 
14
	
-
 
15
 	<form method="POST" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Voucher&amp;action=save&amp;noheader=1" enctype="multipart/form-data">
-
 
16
 
8
 
17
		<?php echo wpsg_drawForm_Input('wpsg_mod_gutschein_value', __('Wert', 'wpsg'), $this->view['mod_gutschein']['value']); ?>
-
 
18
		<?php echo wpsg_drawForm_Select('wpsg_mod_gutschein_calc', __('Berechnung', 'wpsg'), array(
9
<div class="wpsg_voucher" id="wpsg-bs">
-
 
10
 
19
			'w' => __('Absoluter Betrag', 'wpsg'),
11
    <nav class="navbar navbar-default">
-
 
12
 
20
			'p' => __('Prozentual', 'wpsg')
13
		<div class="container-fluid">
21
		), $this->view['mod_gutschein']['calc']); ?>		
14
			<div class="navbar-header">
22
		<?php echo wpsg_drawForm_Date('wpsg_mod_gutschein_start', __('Gültig ab', 'wpsg'), $this->view['mod_gutschein']['start']); ?>
-
 
23
		<?php echo wpsg_drawForm_Date('wpsg_mod_gutschein_end', __('Gültig bis', 'wpsg'), $this->view['mod_gutschein']['end']); ?>
-
 
24
		<?php echo wpsg_drawForm_Select('wpsg_mod_gutschein_gen', __('Code Generierung', 'wpsg'), array(
15
				<a class="navbar-brand" href="#"><?php echo __('wpShopGermany', 'wpsg'); ?></a>
-
 
16
			</div>
25
			'0' => __('Automatisch', 'wpsg'),
17
			<div class="collapse navbar-collapse" id="bs-customer-navbar-collapse-1">
26
			'1' => __('Manuell', 'wpsg')
18
				<ul class="nav navbar-nav">
27
		), wpsg_getStr($this->view['mod_gutschein']['gen']), array('help' => 'wpsg_mod_gutschein_gen')); ?>		
19
					<li role="presentation" class="wpsg-voucher-tab-a active"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Voucher&action=index"><?php echo __("Gutscheinverwaltung", "wpsg"); ?></a></li>
-
 
20
                    <li role="presentation" class="active"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Voucher&action=add"><span class="glyphicon glyphicon-plus"></span><?php echo __("Neuer Gutschein", "wpsg"); ?></a></li>
-
 
21
				</ul>
28
		<div id="wpsg_mod_gutschein_layercode">
22
				<ul class="nav navbar-nav navbar-right">
29
			<?php echo wpsg_drawForm_Input('wpsg_mod_gutschein_code', __('Code', 'wpsg'), wpsg_getStr($this->view['mod_gutschein']['code']), array('help' => 'wpsg_mod_gutschein_code')); ?>
-
 
-
 
23
 
-
 
24
				</ul>
-
 
25
			</div>
30
		</div>
26
		</div>
31
		<?php echo wpsg_drawForm_Input('wpsg_mod_gutschein_minvalue', __('Minimaler Warenwert', 'wpsg'), wpsg_getStr($this->view['mod_gutschein']['minvalue']), array('help' => 'wpsg_mod_gutschein_minvalue')); ?>
-
 
32
		<?php echo wpsg_drawForm_Input('wpsg_mod_gutschein_count', __('Menge', 'wpsg'), $this->view['mod_gutschein']['count']); ?>		
-
 
33
		<?php echo wpsg_drawForm_Checkbox('wpsg_mod_gutschein_multi', __('Mehrfach verwendbar', 'wpsg'), $this->view['mod_gutschein']['multi']); ?>
-
 
34
		<?php echo wpsg_drawForm_Textarea('wpsg_mod_gutschein_comment', __('Kommentar', 'wpsg'), $this->view['mod_gutschein']['comment']); ?>
-
 
35
		<?php if ($this->hasMod('wpsg_mod_productgroups') && wpsg_isSizedArray($this->view['wpsg_mod_gutschein']['arProductGroups'])) { ?>
-
 
36
		<?php echo wpsg_drawForm_Select('wpsg_mod_gutschein_productgroups', __('Beschränkung auf Produktgruppen', 'wpsg'), $this->view['wpsg_mod_gutschein']['arProductGroups'], $this->view['mod_gutschein']['productgroups'], array('multiple' => ((sizeof($this->view['wpsg_mod_gutschein']['arProductGroups']) > 5)?5:sizeof($this->view['wpsg_mod_gutschein']['arProductGroups'])), 'help' => 'wpsg_mod_gutschein_productgroups')); ?>
-
 
37
		<?php } ?>
-
 
38
		<?php echo wpsg_drawForm_Select('wpsg_mod_gutschein_products', __('Beschränkung auf Produkte', 'wpsg'), $this->view['wpsg_mod_gutschein']['arProducts'], $this->view['mod_gutschein']['products'], array('multiple' => ((sizeof($this->view['wpsg_mod_gutschein']['arProducts']) > 5)?5:sizeof($this->view['wpsg_mod_gutschein']['arProducts'])), 'help' => 'wpsg_mod_gutschein_products')); ?>
-
 
39
		
-
 
40
		<p class="submit">
-
 
41
			<input type="submit" value="<?php echo __('Gutschein anlegen', 'wpsg'); ?>" class="button-primary" id="submit" name="submit" />
-
 
42
		</p>
-
 
43
		
-
 
44
		<script type="text/javascript">/* <![CDATA[ */
-
 
45
 
-
 
46
			jQuery(document).ready(function() {
-
 
47
  
-
 
48
				jQuery('#wpsg_mod_gutschein_gen').bind('change', function() {
-
 
49
 
-
 
50
					if (jQuery(this).val() == '1')
-
 
51
					{
-
 
52
 
-
 
53
						jQuery('#wpsg_mod_gutschein_layercode').show();
-
 
54
						
-
 
55
					}
-
 
56
					else
-
 
57
					{
-
 
58
 
-
 
59
						jQuery('#wpsg_mod_gutschein_layercode').hide();
-
 
60
						
-
 
61
					}
-
 
62
					
-
 
63
				} ).change();
-
 
64
				
-
 
65
			} );
-
 
66
		
-
 
67
		/* ]]> */</script>
-
 
68
 
27
 
69
	</form>
-
 
70
</div>
-
 
71
28
    </nav>
-
 
29
 
-
 
30
	<div class="wpsg_clear"></div>
-
 
31
 
-
 
32
	<?php echo $this->writeBackendMessage(); ?>
-
 
33
 
-
 
34
	<div class="content form-horizontal">
-
 
35
 
-
 
36
        <form method="POST" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Voucher&action=save&noheader=1" enctype="multipart/form-data">
-
 
37
 
-
 
38
            <?php wpsg_drawForm_AdminboxStart(); ?>
-
 
39
                <?php echo wpsg_drawForm_Input('wpsg_mod_gutschein_value', __('Wert', 'wpsg'), $this->view['mod_gutschein']['value']); ?>
-
 
40
                <?php echo wpsg_drawForm_Select('wpsg_mod_gutschein_calc', __('Berechnung', 'wpsg'), array(
-
 
41
                    'w' => __('Absoluter Betrag', 'wpsg'),
-
 
42
                    'p' => __('Prozentual', 'wpsg')
-
 
43
                ), $this->view['mod_gutschein']['calc']); ?>
-
 
44
 
-
 
45
                <?php echo wpsg_drawForm_Input('wpsg_mod_gutschein_start', __('Gültig ab', 'wpsg'), $this->view['mod_gutschein']['start'], array('datepicker' => true)); ?>
-
 
46
                <?php echo wpsg_drawForm_Input('wpsg_mod_gutschein_end', __('Gültig bis', 'wpsg'), $this->view['mod_gutschein']['end'], array('datepicker' => true)); ?>
-
 
47
                <?php echo wpsg_drawForm_Select('wpsg_mod_gutschein_gen', __('Code Generierung', 'wpsg'), array(
-
 
48
                    '0' => __('Automatisch', 'wpsg'),
-
 
49
                    '1' => __('Manuell', 'wpsg')
-
 
50
                ), wpsg_getStr($this->view['mod_gutschein']['gen']), array('help' => 'wpsg_mod_gutschein_gen')); ?>
-
 
51
                <div id="wpsg_mod_gutschein_layercode">
-
 
52
                    <?php echo wpsg_drawForm_Input('wpsg_mod_gutschein_code', __('Code', 'wpsg'), wpsg_getStr($this->view['mod_gutschein']['code']), array('help' => 'wpsg_mod_gutschein_code')); ?>
-
 
53
                </div>
-
 
54
                <?php echo wpsg_drawForm_Input('wpsg_mod_gutschein_minvalue', __('Minimaler Warenwert', 'wpsg'), wpsg_getStr($this->view['mod_gutschein']['minvalue']), array('help' => 'wpsg_mod_gutschein_minvalue')); ?>
-
 
55
                <?php echo wpsg_drawForm_Input('wpsg_mod_gutschein_count', __('Menge', 'wpsg'), $this->view['mod_gutschein']['count']); ?>
-
 
56
                <?php echo wpsg_drawForm_Checkbox('wpsg_mod_gutschein_multi', __('Mehrfach verwendbar', 'wpsg'), $this->view['mod_gutschein']['multi']); ?>
-
 
57
                <?php echo wpsg_drawForm_Textarea('wpsg_mod_gutschein_comment', __('Kommentar', 'wpsg'), @$this->view['mod_gutschein']['comment']); ?>
-
 
58
                <?php if ($this->hasMod('wpsg_mod_productgroups') && wpsg_isSizedArray($this->view['wpsg_mod_gutschein']['arProductGroups'])) { ?>
-
 
59
                <?php echo wpsg_drawForm_Select('wpsg_mod_gutschein_productgroups', __('Beschränkung auf Produktgruppen', 'wpsg'), $this->view['wpsg_mod_gutschein']['arProductGroups'], $this->view['mod_gutschein']['productgroups'], array('multiple' => ((sizeof($this->view['wpsg_mod_gutschein']['arProductGroups']) > 5)?5:sizeof($this->view['wpsg_mod_gutschein']['arProductGroups'])), 'help' => 'wpsg_mod_gutschein_productgroups')); ?>
-
 
60
                <?php } ?>
-
 
61
                <?php echo wpsg_drawForm_Select('wpsg_mod_gutschein_products', __('Beschränkung auf Produkte', 'wpsg'), @$this->view['wpsg_mod_gutschein']['arProducts'], @$this->view['mod_gutschein']['products'], array('multiple' => ((sizeof($this->view['wpsg_mod_gutschein']['arProducts']) > 5)?5:sizeof($this->view['wpsg_mod_gutschein']['arProducts'])), 'help' => 'wpsg_mod_gutschein_products')); ?>
-
 
62
            <?php echo wpsg_drawForm_AdminboxEnd(); ?>
-
 
63
 
-
 
64
            <input type="submit" value="<?php echo __('Gutschein anlegen', 'wpsg'); ?>" class="button-primary" id="submit" name="submit" />
-
 
65
 
-
 
66
        </form>
-
 
67
 
-
 
68
    </div>
-
 
69
 
-
 
70
</div>
-
 
71
 
-
 
72
<script type="text/javascript">/* <![CDATA[ */
-
 
73
 
-
 
74
    jQuery(document).ready(function() {
-
 
75
 
-
 
76
        jQuery('#wpsg_mod_gutschein_gen').bind('change', function() {
-
 
77
 
-
 
78
            if (jQuery(this).val() == '1')
-
 
79
            {
-
 
80
 
-
 
81
                jQuery('#wpsg_mod_gutschein_layercode').show();
-
 
82
 
-
 
83
            }
-
 
84
            else
-
 
85
            {
-
 
86
 
-
 
87
                jQuery('#wpsg_mod_gutschein_layercode').hide();
-
 
88
 
-
 
89
            }
-
 
90
 
-
 
91
        } ).change();
-
 
92
 
-
 
93
    } );
-
 
94
 
-
 
95
/* ]]> */</script>
-
 
96
72
97