1144 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Template für die Maske eines neuen Gutscheins
|
|
|
5 |
*/
|
|
|
6 |
|
|
|
7 |
?>
|
|
|
8 |
|
5753 |
daniel |
9 |
<div class="wpsg_voucher" id="wpsg-bs">
|
|
|
10 |
|
|
|
11 |
<nav class="navbar navbar-default">
|
|
|
12 |
|
|
|
13 |
<div class="container-fluid">
|
|
|
14 |
<div class="navbar-header">
|
|
|
15 |
<a class="navbar-brand" href="#"><?php echo __('wpShopGermany', 'wpsg'); ?></a>
|
|
|
16 |
</div>
|
|
|
17 |
<div class="collapse navbar-collapse" id="bs-customer-navbar-collapse-1">
|
|
|
18 |
<ul class="nav navbar-nav">
|
|
|
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>
|
|
|
22 |
<ul class="nav navbar-nav navbar-right">
|
|
|
23 |
|
|
|
24 |
</ul>
|
|
|
25 |
</div>
|
2888 |
daniel |
26 |
</div>
|
1144 |
daniel |
27 |
|
5753 |
daniel |
28 |
</nav>
|
2888 |
daniel |
29 |
|
5753 |
daniel |
30 |
<div class="wpsg_clear"></div>
|
2888 |
daniel |
31 |
|
5753 |
daniel |
32 |
<?php echo $this->writeBackendMessage(); ?>
|
2888 |
daniel |
33 |
|
5753 |
daniel |
34 |
<div class="content form-horizontal">
|
2793 |
daniel |
35 |
|
5753 |
daniel |
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>
|