summaryrefslogtreecommitdiff
path: root/views/order/view_orderdata.phtml
blob: 14968dc870deabbfa2b38104aa630f195ebf6cb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
<?php

    /**
     * User: Daschmi (daschmi@dsachmi.de)
     * Date: 06.08.2016
     * Time: 13:45
     */

?>
<div id="wpsg_produkte_table">
<?php echo wpsg_drawForm_AdminboxStart(__('Bestelldaten', 'wpsg')); ?>
    <table class="wpsg_produkte table">
        <tr class="wpsg_kopf">
            <th class="wpsg_cell_name"><?php echo __('Produktname', 'wpsg'); ?></th>
            <th class="wpsg_cell_preis"><?php echo __('Einzelpreis', 'wpsg'); ?></th>
            <?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
            <th class="wpsg_cell_mwst"><?php echo __("MwSt.", "wpsg"); ?></th>
            <?php } ?>
            <th class="wpsg_cell_menge"><?php echo __("Anzahl", "wpsg"); ?></th>
            <th class="wpsg_cell_gesamtpreis"><?php echo __("Gesamtpreis", "wpsg"); ?></th>
        </tr>
        <?php $i = 0; foreach ($this->view['basket']['produkte'] as $produkt_key => $p) { $i ++; ?>
        <tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?>">
            <td class="wpsg_cell_name">
                <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id=<?php echo $this->getProduktID($p['id']); ?>" title="<?php echo __('Zum Produkt', 'wpsg'); ?>">
                    <?php echo wpsg_hspc($this->getProductName($this->getProduktID($p['id']))); ?>
                </a>
            	<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Produkt bearbeiten', 'wpsg'); ?>" onclick="return WPSG_BE_Product.editProduct(<?php echo $p['order_product_id']; ?>, <?php echo $p['product_id']; ?>, <?php echo $_REQUEST['edit_id']; ?>);"><span class="glyphicon glyphicon-pencil"></span></a>
            	<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Produkt löschen', 'wpsg'); ?>" onclick="return WPSG_BE_Product.removeProduct(<?php echo $p['order_product_id']; ?>, <?php echo $_REQUEST['edit_id']; ?>);"><span class="glyphicon glyphicon-trash"></span></a>
            </td>
            <td class="wpsg_cell_preis"><?php echo wpsg_ff($p['preis']); ?> <?php echo $this->get_option('wpsg_currency'); ?></td>
            <?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
            <td class="wpsg_cell_mwst"><?php echo wpsg_ff($p['mwst_value']); ?> %</td>
            <?php } ?>
            <td class="wpsg_cell_menge"><?php echo wpsg_hspc($p['menge']); ?></td>
            <td class="wpsg_cell_gesamtpreis"><?php echo wpsg_ff($p['menge'] * $p['preis']); ?> <?php echo $this->get_option('wpsg_currency'); ?></td>
        </tr>
        <?php if (wpsg_isSizedArray($p['order_allowedshipping'])) { ?>
        <tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?>">
            <td class="wpsg_cell_name">
                <?php echo __('Mögliche Versandarten', 'wpsg'); ?>:
            </td>
            <td class="wpsg_cell_gesamtpreis" colspan="<?php echo ((sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1')?4:3); ?>">
                <?php $j = 0; foreach ($p['order_allowedshipping'] as $shipping) { $j ++; ?>
                <?php echo $this->getShippingName($shipping); ?><?php if ($j < sizeof($p['order_allowedshipping'])) { ?>, <?php } ?>
                <?php } ?>
            </td>
        </tr>
        <?php } ?>
        <?php $this->callMods('order_view_row', array(&$p, $i)); ?>
        <?php } ?>
        <?php $gs_id = 0; 
        if ((isset($this->view['basket']['gs'])) && ($this->view['basket']['gs']['value'] > 0)) { ?>
        <tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?> wpsg_gutschein">
        	<?php 
        		$gs_id = 0;
        		if (array_key_exists('gs_id', $_REQUEST))
        		{
        			$gs_id = wpsg_getInt($_REQUEST['gs_id']);
        		}
        		else
        		{
        			$gs_id = wpsg_getInt($this->view['data']['gs_id']);
        		}
        		$o_id = $_REQUEST['edit_id'];
        		$link1 = '<span id="gsname_'.$gs_id.'" class="editable editable-click" data-original-title="" title="">'.$this->view['basket']['gs']['code'].'</span>';
        		$val = '-'.wpsg_ff($this->view['basket']['sum']['gs']);
        		$link2 = '<span id="gsvalue_'.$gs_id.'" class="editable editable-click" data-original-title="" title="">'.$val.'</span>';
        		
        	?>
            <td class="wpsg_cell_name"><?php echo __('Gutschein', 'wpsg'); ?> <?php echo ($this->view['basket']['gs']['code'] != '')? '('.$link1.')':'' ?>
            	<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Gutschein löschen', 'wpsg'); ?>" onclick="return wpsg_removeVoucher(<?php echo $gs_id; ?>, <?php echo $o_id; ?>);"><span class="glyphicon glyphicon-trash"></span></a>
            </td>
            <td class="wpsg_cell_preis"><?php echo $link2.' '.$this->get_option('wpsg_currency'); ?></td>
            <?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
            <td class="wpsg_cell_mwst"><?php echo __('anteilig', 'wpsg'); ?></td>
            <?php } ?>
            <td class="wpsg_cell_menge">1</td>
            <td class="wpsg_cell_gesamtpreis"><?php echo '-'.wpsg_ff($this->view['basket']['sum']['gs'], $this->get_option('wpsg_currency')); ?></td>
        </tr>
        <?php } ?>
        <?php $prval = 0; 
        if (isset($this->view['basket']['sum']['preis_rabatt']) && $this->view['basket']['sum']['preis_rabatt'] > 0) { 
        	$o_id = $_REQUEST['edit_id'];
        	$prval = '-'.wpsg_ff($this->view['basket']['sum']['preis_rabatt']);
        	$link2 = '<span id="discountvalue_'.$o_id.'" class="editable editable-click" data-original-title="" title="">'.$prval.'</span>';
        ?>
        <tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?> wpsg_row_rabatt">
            <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_rabatt_label">
                <?php echo __('Abzüglich Rabatt', 'wpsg'); ?>
                <a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Rabatt löschen', 'wpsg'); ?>" onclick="return wpsg_removeDiscount(<?php echo $o_id; ?>);"><span class="glyphicon glyphicon-trash"></span></a>
            </td>
            <td class="wpsg_cell_rabatt_value wpsg_cell_gesamtpreis">
                <?php echo $link2.' '.$this->get_option('wpsg_currency'); ?>
            </td>
        </tr>
        <?php } ?>
        <tr class="wpsg_row_summe">
            <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
                <?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?>
                    <?php echo wpsg_translate(__('Summe (zzgl. #1#)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
                <?php } else { ?>
                    <?php //if ($this->getFrontendTaxview() == WPSG_NETTO) 
                    //if ($this->view['basket']['price_frontend'] == WPSG_NETTO)
                    if ($this->get_option('wpsg_preisangaben') == WPSG_NETTO)
                    { ?>
                    <?php echo wpsg_translate(__('Summe (zzgl. #1#, zzgl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
                    <?php } else { ?>
                    <?php echo wpsg_translate(__('Summe (zzgl. #1#, inkl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
                    <?php } ?>
                <?php } ?>
            </td>
            <td class="wpsg_cell_summe_value wpsg_cell_gesamtpreis">
                <?php echo wpsg_ff($this->view['basket']['sum']['preis']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
            </td>
        </tr>
        <?php if ($this->view['basket']['sum']['preis_shipping'] != 0 || $this->get_option('wpsg_hideemptyshipping') != '1') { ?>
        <tr class="wpsg_row_shipping">
            <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_shipping_label">
                <a href="<?php echo $this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN); ?>" target="_blank"><?php echo __('Versandkosten', 'wpsg'); ?></a>
                <?php 
                //$order = $this->view['oOrder'];
                $o_id = $_REQUEST['edit_id'];
                $oOrder = wpsg_order::getInstance($o_id);
                $sid = $oOrder->getShippingID();
                echo __('  ('.$this->arShipping[$sid]['name'].')', 'wpsg');
                ?>
                <a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Versandart ändern', 'wpsg'); ?>" 
                   onclick="return WPSG_BE_Pay_Ship.changeShipping('<?php echo $sid; ?>', <?php echo $o_id; ?>);"><span class="glyphicon glyphicon-pencil"></span></a>
            </td>
            <td class="wpsg_cell_shipping_value wpsg_cell_gesamtpreis">
                <span id="wpsg_cell_shipping_value"><?php echo wpsg_ff($this->view['basket']['sum']['preis_shipping']); ?> </span>
                <?php echo $this->get_option('wpsg_currency'); ?>
            </td>
        </tr>
        <?php } ?>
        <?php if ($this->view['basket']['sum']['preis_payment'] != 0 || $this->get_option('wpsg_hideemptypayment') != '1') { ?>
        <tr class="wpsg_row_payment">
            <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_payment_label">
                <?php echo __('Zahlungsart', 'wpsg');
                //$order = $this->view['oOrder'];
                $oOrder = wpsg_order::getInstance($_REQUEST['edit_id']);
                $pid = $oOrder->getPaymentID();
                echo __('  ('.$this->arPayment[$pid]['name'].')', 'wpsg');
                ?>
                <!-- <a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Zahlungsart löschen', 'wpsg'); ?>" onclick="return WPSG_BE_Pay_Ship.deletePayment('"<?php echo $pid; ?>"'", <?php echo $o_id; ?>);"><span class="glyphicon glyphicon-trash"></span></a> -->
                <a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Zahlungsart ändern', 'wpsg'); ?>" 
                   onclick="return WPSG_BE_Pay_Ship.changePayment('<?php echo $pid; ?>', <?php echo $o_id; ?>);"><span class="glyphicon glyphicon-pencil"></span></a>
            </td>
            <td class="wpsg_cell_payment_value wpsg_cell_gesamtpreis" >
                <span id="wpsg_cell_payment_value"><?php echo wpsg_ff($this->view['basket']['sum']['preis_payment']); ?> </span>
                <?php echo $this->get_option('wpsg_currency'); ?>
            </td>
        </tr>
        <?php } ?>
        <?php if ($this->get_option('wpsg_preisangaben') == '1' && $this->get_option('wpsg_kleinunternehmer') != '1') { ?>
        <?php foreach ($this->view['basket']['mwst'] as $mwst_id => $mwst) { ?>
        <tr class="wpsg_row_mwst">
            <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
                <?php echo wpsg_translate(__('zuzüglich MwSt. (#1#)', 'wpsg'), $mwst['name']); ?>
            </td>
            <td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
                <?php echo wpsg_ff($mwst['sum']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
            </td>
        </tr>
        <?php } ?>
        <?php } ?>
        <tr class="wpsg_row_gesamt">
            <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_gesamt_label">
                <?php echo __('Gesamtpreis', 'wpsg'); ?>
            </td>
            <td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
                <strong><?php echo wpsg_ff($this->view['basket']['sum']['preis_gesamt']); ?> <?php echo $this->get_option('wpsg_currency'); ?></strong>
            </td>
        </tr>
        <?php if ($this->get_option('wpsg_kleinunternehmer') == '1' || $this->get_option('wpsg_preisangaben') != WPSG_NETTO) { ?>
        <?php foreach ($this->view['basket']['mwst'] as $mwst_id => $mwst) { ?>
        <tr class="wpsg_row_mwst">
            <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
                <?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?>
                    <?php echo $this->get_option('wpsg_kleinunternehmer_text'); ?>
                <?php } else { ?>
                    <?php 
                    //if ($this->view['basket']['price_frontend'] == WPSG_NETTO) {
                    if ($this->get_option('wpsg_preisangaben') == WPSG_NETTO) {
                    	echo wpsg_translate(__('zuzüglich MwSt. (#1#)', 'wpsg'), $mwst['name']);
                    } else {
                    	echo wpsg_translate(__('darin enthaltene MwSt. (#1#)', 'wpsg'), $mwst['name']); ?>
                    <?php } ?>
                <?php } ?>
            </td>
            <td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
                <?php echo wpsg_ff($mwst['sum']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
            </td>
        </tr>
        <?php } ?>
        <?php } ?>
    </table>


<script type="text/javascript">/* <![CDATA[ */

<?php if ($this->hasMod('wpsg_mod_gutschein')) { ?>
	<?php if ((array_key_exists('gs', $this->view['basket'])) && ($this->view['basket']['gs']['value'] > 0)) { ?>

	jQuery('#gsname_<?php echo $gs_id; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=voucherData&do=editname&noheader=1', {
		submitdata: { 
    		field: 'code',
    		gs_id: '<?php echo $gs_id; ?>',
    		edit_id: '<?php echo $o_id; ?>'
		}, 					
		submit  : '<?php echo __('Speichern', 'wpsg'); ?>',
		placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
		indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
    	tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
    	callback: function(data, config) {
    		jQuery('#wpsg_produkte_table').replaceWith(data);
    	}
	});

	jQuery('#gsvalue_<?php echo $gs_id; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=voucherData&do=editvalue&noheader=1', {
		submitdata: { 
    		field: 'value',
    		gs_id: '<?php echo $gs_id; ?>',
    		edit_id: '<?php echo $o_id; ?>',
        	noMwSt: '<?php echo $this->view['basket']['noMwSt']; ?>',
        	mwst: '<?php reset($this->view['basket']['mwst']); echo key($this->view['basket']['mwst']); ?>',
        	price_frontend: '<?php echo $this->view['basket']['price_frontend']; ?>'
		}, 					
		submit  : '<?php echo __('Speichern', 'wpsg'); ?>',
		placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
		indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
    	tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
    	callback: function(data, config) {
    		jQuery('#wpsg_produkte_table').replaceWith(data);
    	}
	});

	<?php } ?>
<?php } ?>

<?php if ($this->hasMod('wpsg_mod_discount')) { ?>
	<?php if (isset($this->view['basket']['sum']['preis_rabatt']) && $this->view['basket']['sum']['preis_rabatt'] > 0) { ?>

	jQuery('#discountvalue_<?php echo $o_id; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=discountData&do=editvalue&noheader=1', {
		submitdata: { 
    		field: 'value',
    		edit_id: '<?php echo $o_id; ?>',
           	noMwSt: '<?php echo $this->view['basket']['noMwSt']; ?>',
           	mwst: '<?php reset($this->view['basket']['mwst']); echo key($this->view['basket']['mwst']); ?>',
           	price_frontend: '<?php echo $this->view['basket']['price_frontend']; ?>'
		}, 					
		submit  : '<?php echo __('Speichern', 'wpsg'); ?>',
		placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
		indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
    	tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
    	callback: function(data, config) {
    		jQuery('#wpsg_produkte_table').replaceWith(data);
    	}
	});

	<?php } ?>
<?php } ?>
		
	/**
	 * Wird aufgerufen wenn ein Gutschein gelöscht werden soll
	 */
	function wpsg_removeVoucher(gs_id, o_id)
	{

		if (!confirm('<?php echo __('Sind Sie sich sicher, dass sie diesen Gutschein löschen möchten?', 'wpsg'); ?>')) return false;

		jQuery('#wpsg_produkte_table').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');

		jQuery.ajax( {
			url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=voucherData&do=remove&gs_id=' + gs_id + '&edit_id=' + o_id +'&noheader=1',
			success: function(data) {
				jQuery('#wpsg_produkte_table').replaceWith(data);
				jQuery('#LinkGutscheinNeu').show();
			}
		} );
	
		return false;
	}

	/**
	 * Wird aufgerufen wenn ein Rabatt gelöscht werden soll
	 */
	function wpsg_removeDiscount(o_id)
	{

		if (!confirm('<?php echo __('Sind Sie sich sicher, dass sie diesen Rabatt löschen möchten?', 'wpsg'); ?>')) return false;

		jQuery('#wpsg_produkte_table').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
		
		jQuery.ajax( {
			url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=discountData&do=remove&edit_id=' + o_id +'&noheader=1',
			success: function(data) {
				jQuery('#wpsg_produkte_table').replaceWith(data);
				jQuery('#LinkRabattNeu').show();
			}
		} );
	
		return false;
	}

    jQuery(document).ready(function() {
		gs_id = <?php echo $gs_id; ?>;
		prval = <?php echo $prval; ?>;

		if (gs_id > 0) { jQuery('#LinkGutscheinNeu').hide(); }
		if (prval != 0) { jQuery('#LinkRabattNeu').hide(); }

    } );


    var Modul2 = {
    	    eigenschaft : "wert",
    	    methode : function () {
    	        alert("Modul-Eigenschaft (über window.Modul): " + Modul2.eigenschaft);
    	        // Alternativ:
    	        alert("Modul-Eigenschaft (über this): " + this.eigenschaft);
    	    }
    };
    //Modul2.methode();

    
    var WPSG_BE_Pay_Ship = {

        	paymentinfos: 0,
        	shippinginfos: 0,
        	pidold: 0,
        	sidold: 0,
        	preisold: 0.0,
        	oid: 0,

    		changePayment: function (id, oid) {
				var
					i,
					n;
    			//jQuery('#wpsg_payment_dialog .modal-body').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
    			
    			jQuery('#wpsg_payment_dialog').modal( { } );
    		
    			this.paymentinfos = <?php  echo json_encode($this->arPayment, JSON_FORCE_OBJECT); ?>;
    			this.oid = oid;
    			this.pidold = id;
    			
    	 		jQuery('#zahlungsartid').empty();
    			jQuery.each(this.paymentinfos, function(i,n) {
    	    		console.log('element: ', n.name);
    	    		if (id == n.id) { 
    	    			jQuery('#zahlungsartid').append("<option value=" + n.id + ' "selected"="selected">' + n.name + "</option>");
    	    		} else {
    	    			jQuery('#zahlungsartid').append("<option value=" + n.id + ">" + n.name + "</option>");
    	    		}
    	    	});
    			jQuery('#zahlungsartid').val(id);
    			
    			//this.preis = this.paymentinfos[id].preis;
    			//this.preis = jQuery('#wpsg_cell_payment_value').val();
    			this.preis = jQuery('#wpsg_cell_payment_value').html();
    			this.preisold = this.preis;
    			if (this.preis == false) { this.preis = '0,00'; } 
    			jQuery('#zahlungsartvalue').val(this.preis);
    	    	
    			return false;

    		}, // function changePayment(id, oid)

    		/**
    		 * Löschen der Zahlungsdaten im Backend
    		 */	                          
    		deletePayment: function(id, oid) {
    			var
    				pid,
    				url1;

    			pid = jQuery('#zahlungsartid').val();
    			pval = jQuery('#zahlungsartvalue').val();
    			//alert('delete : ' + pid + ' / ' + pval);
    			
    			url1 = 'wp-admin/admin.php?page=wpsg-Admin&subaction=paymentData&do=delete&edit_id=' + this.oid + '&p_id=' + pid + '&noheader=1';
    			jQuery.ajax( {
    				url: '<?php echo WPSG_URL_WP; ?>' + url1,
    				success: function(data) {
    					//jQuery('#wpsg_payment_dialog').modal('hide');
    					//jQuery('#wpsg_payment_dialog').hide();
    					//jQuery('#wpsg_payment_dialog').modal( { } ).modal('hide');
    					jQuery('#wpsg_produkte_table').replaceWith(data);
    			    }
    			} );
    		
    			return false;
    		
    		}, // function deletePayment()

    		/**
    		 * Ändern der Zahlungsdaten im Backend
    		 */	                          
    		dialogPaymentOK: function() {
    			var
    				pid,
    				pval,
    				url1;

    			pid = jQuery('#zahlungsartid').val();
    			pval = jQuery('#zahlungsartvalue').val();
    			//alert('OK neu: ' + this.pidold + ' / ' + pid + ' / ' + pval);
    			if ((this.pidold == pid) && (this.preisold == pval)) { 
    				jQuery('#wpsg_payment_dialog').modal('hide');
					//jQuery('#wpsg_payment_dialog').modal('close');
    				return false;
    			}
    			//alert('OK neu: ' + pid + ' / ' + pval);
    			
    			url1 = 'wp-admin/admin.php?page=wpsg-Admin&subaction=paymentData&do=change&edit_id=' + this.oid + '&p_id=' + pid + '&p_value=' + pval + '&noheader=1';
    			jQuery.ajax( {
    				url: '<?php echo WPSG_URL_WP; ?>' + url1,
    				data: {
    					price_frontend: '<?php echo $this->view['basket']['price_frontend']; ?>',
    					mwst: '<?php reset($this->view['basket']['mwst']); echo key($this->view['basket']['mwst']); ?>',
    					noMwSt: '<?php echo $this->view['basket']['noMwSt']; ?>' },
    				success: function(data) {
    					//jQuery('#wpsg_payment_dialog').modal('hide');
    					//jQuery('#wpsg_payment_dialog').hide();
    					//jQuery('#wpsg_payment_dialog').modal( { } ).modal('hide');
    					jQuery('#wpsg_produkte_table').replaceWith(data);
    			    }
    			} );
    		
    			return false;
    		
    		}, // function dialogPaymentOK()

    		/**
    		 * Ändern der Zahlungsdaten im Backend
    		 */	                          
    		dialogPaymentChange: function() {
    			var
    				pid,
    				pval;
    			pid = jQuery('#zahlungsartid').val();
    			pval = this.paymentinfos[pid].preis;
    			jQuery('#zahlungsartvalue').val(pval);


    		},	// dialogPaymentChange()


    		changeShipping: function (id, oid) {
				var
					i,
					n;
    			//jQuery('#wpsg_shipping_dialog .modal-body').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
    			
    			jQuery('#wpsg_shipping_dialog').modal( { } );
    		
    			this.shippinginfos = <?php  echo json_encode($this->arShipping, JSON_FORCE_OBJECT); ?>;
    			this.oid = oid;
    			this.sidold = id;
    			
    	 		jQuery('#versandartid').empty();
    			jQuery.each(this.shippinginfos, function(i,n) {
    	    		console.log('element: ', n.name);
    	    		if (id == n.id) { 
    	    			jQuery('#versandartid').append("<option value=" + n.id + ' "selected"="selected">' + n.name + "</option>");
    	    		} else {
    	    			jQuery('#versandartid').append("<option value=" + n.id + ">" + n.name + "</option>");
    	    		}
    	    	});
    			jQuery('#versandartid').val(id);
    			
    			this.preis = jQuery('#wpsg_cell_shipping_value').html();
    			this.preisold = this.preis;
    			if (this.preis == false) { this.preis = '0,00'; } 
    			jQuery('#versandartvalue').val(this.preis);
    	    	
    			return false;

    		}, // function changeShipping(id, oid)

    		/**
    		 * Löschen der Versanddaten im Backend
    		 */	                          
    		deleteShipping: function(id, oid) {
    			var
    				sid,
    				url1;

    			sid = jQuery('#versandartid').val();
    			sval = jQuery('#versandartvalue').val();
    			//alert('delete : ' + sid + ' / ' + sval);
    			
    			url1 = 'wp-admin/admin.php?page=wpsg-Admin&subaction=shippingData&do=delete&edit_id=' + this.oid + '&s_id=' + sid + '&noheader=1';
    			jQuery.ajax( {
    				url: '<?php echo WPSG_URL_WP; ?>' + url1,
    				success: function(data) {
    					//jQuery('#wpsg_payment_dialog').modal('hide');
    					//jQuery('#wpsg_payment_dialog').hide();
    					//jQuery('#wpsg_payment_dialog').modal( { } ).modal('hide');
    					jQuery('#wpsg_produkte_table').replaceWith(data);
    			    }
    			} );
    		
    			return false;
    		
    		}, // function deleteShipping()

    		/**
    		 * Ändern der Versanddaten im Backend
    		 */	                          
    		dialogShippingOK: function() {
    			var
    				sid,
    				sval,
    				url1;

    			sid = jQuery('#versandartid').val();
    			sval = jQuery('#versandartvalue').val();
    			//alert('OK neu: ' + this.sidold + ' / ' + sid + ' / ' + sval);
    			if ((this.sidold == sid) && (this.preisold == sval)) { 
    				jQuery('#wpsg_shipping_dialog').modal('hide');
					//jQuery('#wpsg_shipping_dialog').modal('close');
    				return false;
    			}
    			//alert('OK neu: ' + sid + ' / ' + sval);
    			
    			url1 = 'wp-admin/admin.php?page=wpsg-Admin&subaction=shippingData&do=change&edit_id=' + this.oid + '&s_id=' + sid + '&s_value=' + sval + '&noheader=1';
    			jQuery.ajax( {
    				url: '<?php echo WPSG_URL_WP; ?>' + url1,
    				data: {
    					price_frontend: '<?php echo $this->view['basket']['price_frontend']; ?>',
    					mwst: '<?php reset($this->view['basket']['mwst']); echo key($this->view['basket']['mwst']); ?>',
    					noMwSt: '<?php echo $this->view['basket']['noMwSt']; ?>' },
    				success: function(data) {
    					//jQuery('#wpsg_payment_dialog').modal('hide');
    					//jQuery('#wpsg_payment_dialog').hide();
    					//jQuery('#wpsg_payment_dialog').modal( { } ).modal('hide');
    					jQuery('#wpsg_produkte_table').replaceWith(data);
    			    }
    			} );
    		
    			return false;
    		
    		}, // function dialogShippingOK()

    		/**
    		 * Ändern der Versanddaten im Backend
    		 */	                          
    		dialogShippingChange: function() {
    			var
    				sid,
    				sval;
    			sid = jQuery('#versandartid').val();
    			sval = this.shippinginfos[pid].preis;
    			jQuery('#versandartvalue').val(sval);


    		},	// dialogShippingChange()
    		
		changePayment2: function (id, oid) {

			alert('TEST OK neu2');

		} // function changePayment2(id, oid)
		
    };	// WPSG_BE_Pay_Ship
    //WPSG_BE_Pay_Ship.changePayment2(1, 2);
    

    var WPSG_BE_Product = {

        	pidold: 0,
        	preisold: 0.0,
        	o_id: 0,
        	p_id: 0,
        	op_id: 0,
        	modus: 0,

			productinfos : <?php  echo json_encode($this->view['basket']['produkte'], JSON_FORCE_OBJECT); ?>,
			mwstinfos : <?php  echo json_encode(wpsg_tax_groups(true), JSON_FORCE_OBJECT); ?>,
			allproductinfos : <?php echo json_encode($this->db->fetchAssoc("SELECT * FROM `".wpsg_q(WPSG_TBL_PRODUCTS)."` WHERE `deleted` != '1'"), JSON_FORCE_OBJECT); ?>,
			mwst1 : <?php  echo json_encode($this->view['basket']['mwst'], JSON_FORCE_OBJECT); ?>,
        	noMwSt: '<?php echo $this->view['basket']['noMwSt']; ?>',
        	mwst2: '<?php reset($this->view['basket']['mwst']); echo key($this->view['basket']['mwst']); ?>',

    	/**
    	 * Wird aufgerufen wenn ein Produkt gelöscht werden soll
    	 */
    	removeProduct: function (op_id, o_id)
    	{
    	
    		if (!confirm('<?php echo __("Sind Sie sich sicher, dass Sie dieses Produkt löschen möchten?", "wpsg"); ?>')) return false;
    	
    		jQuery('#wpsg_produkte_table').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
    			
    		jQuery.ajax( {
    			url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=productData&do=remove&edit_id=' + o_id + '&op_id=' + op_id + '&noheader=1',
    			success: function (data) {
    				jQuery('#wpsg_produkte_table').replaceWith(data);
    			}
    		} );
    		
    		return false;
    	},	// function removeProduct

    	/**
    	 * Wird aufgerufen wenn ein Produkt hinzugefügt werden soll
    	 */
    	addProduct: function (o_id, p_id) {
    		//jQuery('#wpsg_produkte_table').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
    		this.op_id = 0;
			this.p_id = p_id;
			this.o_id = o_id;
    		
    		//alert('TEST');
    		jQuery('#wpsg_product_dialog').modal( { } );
    		
    		this.modus = 1;		// neues Produkt
    		jQuery('#wpsg_product_data').hide();
    		
    		jQuery('#productid').empty();
			jQuery.each(this.allproductinfos, function (i,n) {
				jQuery('#productid').append("<option value=" + n.id + ">" + n.name + "</option>");
			});
			jQuery('#productid').val(p_id);
    		
    	
    		return false;
    	},	// function addProduct

    	/**
		 * Ändern der Produktdaten im Backend
		 */	                          
		dialogProductOK: function () {
			var
				pid,
				pval,
				pme,
				pmwst,
				url1;

			pid = jQuery('#productid').val();
			pval = jQuery('#productvalue').val();
			pme = jQuery('#productmenge').val();
			pmwst = jQuery('#productmwst').val();
			//alert('OK neu: ' + this.pidold + ' / ' + pid + ' / ' + pval);
			//if ((this.pidold == pid) && (this.preisold == pval)) { 
			if ((pid == null)) { 
				jQuery('#wpsg_product_dialog').modal('hide');
				return false;
			}
			//alert('OK neu: ' + pid + ' / ' + pval);
			
			if (this.modus == 0) {
				url1 = 'wp-admin/admin.php?page=wpsg-Admin&subaction=productData&do=change&edit_id=' + this.o_id + '&op_id=' + this.op_id + '&p_id=' + pid + '&noheader=1';
				jQuery.ajax( {
					url: '<?php echo WPSG_URL_WP; ?>' + url1,
					data: {
						p_val: pval,
						p_me: pme,
						pidold: this.pidold,
						mwst: this.mwst1,
						noMwSt: this.noMwSt,
						p_mwst: pmwst},
					success: function(data) {
						//jQuery('#wpsg_payment_dialog').modal('hide');
						//jQuery('#wpsg_payment_dialog').hide();
						//jQuery('#wpsg_payment_dialog').modal( { } ).modal('hide');
						jQuery('#wpsg_produkte_table').replaceWith(data);
				    }
				} );
			} else {
				// Neues Produkt hinzufügen
	    		jQuery.ajax( {
	    			url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=productData&do=add&edit_id=' + this.o_id + '&p_id=' + pid + '&noheader=1',
					data: {
						p_val: pval,
						p_me: pme,
						pidold: this.pidold,
						mwst: this.mwst1,
						noMwSt: this.noMwSt,
						p_mwst: pmwst},
	    			success: function(data) {
	    				jQuery('#wpsg_produkte_table').replaceWith(data);
	    				//jQuery('#LinkRabattNeu').hide();
	    			}
	    		} );
			}
			return false;
		
		}, // function dialogProduktOK()
		
		/**
		 * Bearbeiten der Produkt-Daten
		 */	                                            	
		editProduct: function (op_id, p_id, o_id)
		{
			var
				i,
				id,
				menge,
				key,
				mid,
				n;

			this.modus = 0;		// bearbeiten
			this.op_id = op_id;
			this.p_id = p_id;
			this.o_id = o_id;
			//jQuery('#wpsg_produkte_table').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
	
			jQuery('#wpsg_product_dialog').modal( { } );
    		jQuery('#wpsg_product_data').show();
		
			this.pidold = p_id;

			jQuery('#productid').empty();
			jQuery.each(this.allproductinfos, function (i,n) {
				console.log('element: ', n.name);
				if (p_id == n.id) { 
					jQuery('#productid').append("<option value=" + n.id + ' "selected"="selected">' + n.name + "</option>");
					mid = n.mwst_key;
				} else {
					jQuery('#productid').append("<option value=" + n.id + ">" + n.name + "</option>");
				}
			});
			jQuery('#productid').val(p_id);

			jQuery('#productmwst').empty();
			for (key in this.mwstinfos) {
				if (p_id == key) { 
					jQuery('#productmwst').append("<option value=" + key + ' "selected"="selected">' + this.mwstinfos[key] + "</option>");
				} else {
					jQuery('#productmwst').append("<option value=" + key + ">" + this.mwstinfos[key] + "</option>");
				}
			}
			jQuery('#productmwst').val(mid);

			id = this.findIndex(op_id);
			this.preis = this.productinfos[id].preis;

			this.preisold = this.preis;
			if (this.preis == false) { this.preis = '0,00'; } 
			jQuery('#productvalue').val(this.preis);
			menge = this.productinfos[id].menge;
			jQuery('#productmenge').val(menge);
			
			return false;
	
		}, // function editProduct()

		/**
		 * Ändern des Produktes im Backend
		 */	                          
		dialogProductChange: function() {
			var
				pid,
				id,
				aid,
				pval;
			pid = jQuery('#productid').val();
			aid = this.findAllIndex(pid);
			if (aid !== false) {
				pval = this.allproductinfos[aid].name;
				id = this.findIndex(this.op_id);
				pval = this.allproductinfos[aid].preis;
				jQuery('#productvalue').val(pval);
				jQuery('#productmenge').val(1);
				pval = this.allproductinfos[aid].mwst_key;
				jQuery('#productmwst').val(pval);
			}

		},	// dialogProductChange()

		/**
		 * Suchen des Indexes in allproductinfos an Hand der id
		 */	                          
		findAllIndex: function(id) {
			var
				pid,
				pval;
			for (key in this.allproductinfos) {
				if (id == this.allproductinfos[key].id) {
					return key; 
				}
			}
			return false;

		},	// findAllIndex()
		
		/**
		 * Suchen des Indexes in productinfos an Hand der order_product_id
		 */	                          
		findIndex: function(id) {
			var
				pid,
				pval;
			for (key in this.productinfos) {
				if (id == this.productinfos[key].order_product_id) {
					return key; 
				}
			}
			return false;

		},	// findIndex()

		changeProduct2: function (id, oid) {

			alert('TEST OK neu2');

		} // function changeProduct2(id, oid)
		
    };	// WPSG_BE_Product
    //WPSG_BE_Product.changeProduct2(1, 2);
    
	/* ]]> */</script>		
    
</div>


<!-- Modaldialog für Produkte -->
<div class="modal fade" id="wpsg_product_dialog" tabindex="-1" role="dialog">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel"><?php echo __('Produkt', 'wpsg'); ?></h4>
      </div>
      <div class="modal-body">
      	<br />
        <div class="row">
          <div class="col-md-3 col-sm-6 control_label"><label for="productid" ><?php echo _("Produkt"); ?></label></div>
          <div class="col-md-3">
			<select name="productid" id="productid" onchange="return WPSG_BE_Product.dialogProductChange();" class="form-control input-sm" size="1" class="select">
				<option value=0>"[unbekannt]"</option>
			</select>
		  </div>
        </div>
        <div class="clearfix wpsg_clear"></div>
        <div class="clearfix wpsg_clear"></div>

		<div id="wpsg_product_data">
        <div class="row">
          <div class="col-md-3 col-sm-6 control_label"><label for="productvalue"><?php echo _("Preis"); ?></label></div>
          <div class="col-md-3">
			<input type="text" name="productvalue" id="productvalue" class="form-control input-sm" size="1" class="select">
		  </div>
        </div>
        <div class="clearfix wpsg_clear"></div>
        <div class="row">
          <div class="col-md-3 col-sm-6 control_label"><label for="productmenge"><?php echo _("Menge"); ?></label></div>
          <div class="col-md-3">
			<input type="text" name="productmenge" id="productmenge" class="form-control input-sm" size="1" class="select">
		  </div>
        </div>
        <div class="clearfix wpsg_clear"></div>
        <div class="row">
          <div class="col-md-3 col-sm-6 control_label"><label for="productid" ><?php echo _("MwSt:"); ?></label></div>
          <div class="col-md-3">
			<select name="productmwst" id="productmwst" class="form-control input-sm" size="1" class="select">
				<option value=0>"[unbekannt]"</option>
			</select>
		  </div>
        </div>
        <div class="clearfix wpsg_clear"></div>
        
        </div>
        
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Abbrechen</button>
        <button type="button" class="btn btn-primary" data-dismiss="modal" onclick="return WPSG_BE_Product.dialogProductOK();">OK</button>
      </div>
    </div>
  </div>
</div>


<!-- Modaldialog für Versandart -->
<div class="modal fade" id="wpsg_shipping_dialog" tabindex="-1" role="dialog">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel"><?php echo __('Versandart', 'wpsg'); ?></h4>
      </div>
      <div class="modal-body">
      	<br />
        <div class="row">
          <div class="col-md-3 col-sm-6 control_label"><label for="versandartid" ><?php echo _("Versandart"); ?></label></div>
          <div class="col-md-3">
			<select name="versandartid" id="versandartid" onchange="return WPSG_BE_Pay_Ship.dialogShippingChange();" class="form-control input-sm" size="1" class="select">
				<option value=0>"[unbekannt]"</option>
			</select>
		  </div>
        </div>
        <div class="clearfix wpsg_clear"></div>
        <div class="clearfix wpsg_clear"></div>
        <br />
        <div class="row">
          <div class="col-md-3 col-sm-6 control_label"><label for="versandartvalue"><?php echo _("Gebühr/Kosten"); ?></label></div>
          <div class="col-md-3">
			<input type="text" name="versandartvalue" id="versandartvalue" class="form-control input-sm" size="1" class="select">
		  </div>
        </div>
        <div class="clearfix wpsg_clear"></div>
        
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Abbrechen</button>
        <button type="button" class="btn btn-primary" data-dismiss="modal" onclick="return WPSG_BE_Pay_Ship.dialogShippingOK();">OK</button>
      </div>
    </div>
  </div>
</div>


<!-- Modaldialog für Zahlungsart -->
<div class="modal fade" id="wpsg_payment_dialog" tabindex="-1" role="dialog">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel"><?php echo __('Zahlungsart', 'wpsg'); ?></h4>
      </div>
      <div class="modal-body">
      	<br />
        <div class="row">
          <div class="col-md-3 col-sm-6 control_label"><label for="zahlungsartid" ><?php echo _("Zahlungsart"); ?></label></div>
          <div class="col-md-3">
			<select name="zahlungsartid" id="zahlungsartid" onchange="return WPSG_BE_Pay_Ship.dialogPaymentChange();" class="form-control input-sm" size="1" class="select">
				<option value=0>"[unbekannt]"</option>
			</select>
		  </div>
        </div>
        <div class="clearfix wpsg_clear"></div>
        <div class="clearfix wpsg_clear"></div>
        <br />
        <div class="row">
          <div class="col-md-3 col-sm-6 control_label"><label for="zahlungsartvalue"><?php echo _("Gebühr/Kosten"); ?></label></div>
          <div class="col-md-3">
			<input type="text" name="zahlungsartvalue" id="zahlungsartvalue" class="form-control input-sm" size="1" class="select">
		  </div>
        </div>
        <div class="clearfix wpsg_clear"></div>
        
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Abbrechen</button>
        <button type="button" class="btn btn-primary" data-dismiss="modal" onclick="return WPSG_BE_Pay_Ship.dialogPaymentOK();">OK</button>
      </div>
    </div>
  </div>
</div>
    
<?php echo wpsg_drawForm_AdminboxEnd(); ?>