Subversion Repositories wpShopGermany4

Rev

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

Rev 6846 Rev 7173
Line 3... Line 3...
3
    /**
3
    /**
4
     * User: Daschmi (daschmi@dsachmi.de)
4
     * User: Daschmi (daschmi@dsachmi.de)
5
     * Date: 06.08.2016
5
     * Date: 06.08.2016
6
     * Time: 13:45
6
     * Time: 13:45
7
     */
7
     */
8
 
8
         
9
?>
9
?>
10
<div id="wpsg_produkte_table">
10
<div id="wpsg_produkte_table">
11
<?php echo wpsg_drawForm_AdminboxStart(__('Bestelldaten', 'wpsg')); ?>
11
<?php echo wpsg_drawForm_AdminboxStart(__('Bestelldaten', 'wpsg')); ?>
12
    <table class="wpsg_produkte table">
-
 
13
        <tr class="wpsg_kopf">
-
 
14
            <th class="wpsg_cell_name"><?php echo __('Produktname', 'wpsg'); ?></th>
-
 
15
            <th class="wpsg_cell_preis"><?php echo __('Einzelpreis', 'wpsg'); ?></th>
-
 
16
            <?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
-
 
17
            <th class="wpsg_cell_mwst"><?php echo __("MwSt.", "wpsg"); ?></th>
-
 
18
            <?php } ?>
-
 
19
            <th class="wpsg_cell_menge"><?php echo __("Anzahl", "wpsg"); ?></th>
-
 
20
            <th class="wpsg_cell_gesamtpreis"><?php echo __("Gesamtpreis", "wpsg"); ?></th>
-
 
21
        </tr>
-
 
22
        <?php $i = 0; foreach ($this->view['basket']['produkte'] as $produkt_key => $p) { $i ++; ?>
-
 
23
        <tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?>">
-
 
24
            <td class="wpsg_cell_name">
-
 
25
                <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'); ?>">
-
 
26
                    <?php echo wpsg_hspc($this->getProductName($this->getProduktID($p['id']))); ?>
-
 
27
                </a>
-
 
28
            	<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>
12
    <div id="wpsg_product_table_wrap">
29
            	<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>
13
        <?php $this->render(WPSG_PATH_VIEW.'order/product_table.phtml'); ?>
30
            </td>
-
 
31
            <td class="wpsg_cell_preis"><?php echo wpsg_ff($p['preis']); ?> <?php echo $this->get_option('wpsg_currency'); ?></td>
-
 
32
            <?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
-
 
33
            <td class="wpsg_cell_mwst"><?php echo wpsg_ff($p['mwst_value']); ?> %</td>
-
 
34
            <?php } ?>
-
 
35
            <td class="wpsg_cell_menge"><?php echo wpsg_hspc($p['menge']); ?></td>
-
 
36
            <td class="wpsg_cell_gesamtpreis"><?php echo wpsg_ff($p['menge'] * $p['preis']); ?> <?php echo $this->get_option('wpsg_currency'); ?></td>
-
 
37
        </tr>
-
 
38
        <?php if (wpsg_isSizedArray($p['order_allowedshipping'])) { ?>
-
 
39
        <tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?>">
-
 
40
            <td class="wpsg_cell_name">
-
 
41
                <?php echo __('Mögliche Versandarten', 'wpsg'); ?>:
-
 
42
            </td>
-
 
43
            <td class="wpsg_cell_gesamtpreis" colspan="<?php echo ((sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1')?4:3); ?>">
-
 
44
                <?php $j = 0; foreach ($p['order_allowedshipping'] as $shipping) { $j ++; ?>
-
 
45
                <?php echo $this->getShippingName($shipping); ?><?php if ($j < sizeof($p['order_allowedshipping'])) { ?>, <?php } ?>
-
 
46
                <?php } ?>
-
 
47
            </td>
-
 
48
        </tr>
-
 
49
        <?php } ?>
-
 
50
        <?php $this->callMods('order_view_row', array(&$p, $i)); ?>
-
 
51
        <?php } ?>
-
 
52
        <?php $gs_id = 0;
-
 
53
        if ((isset($this->view['basket']['gs'])) && ($this->view['basket']['gs']['value'] > 0)) { ?>
-
 
54
        <tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?> wpsg_gutschein">
-
 
55
        	<?php
-
 
56
        		$gs_id = 0;
-
 
57
        		if (array_key_exists('gs_id', $_REQUEST))
-
 
58
        		{
-
 
59
        			$gs_id = wpsg_getInt($_REQUEST['gs_id']);
-
 
60
        		}
-
 
61
        		else
-
 
62
        		{
-
 
63
        			$gs_id = wpsg_getInt($this->view['data']['gs_id']);
-
 
64
        		}
-
 
65
        		$o_id = $_REQUEST['edit_id'];
-
 
66
        		$link1 = '<span id="gsname_'.$gs_id.'" class="editable editable-click" data-original-title="" title="">'.$this->view['basket']['gs']['code'].'</span>';
-
 
67
        		$val = '-'.wpsg_ff($this->view['basket']['sum']['gs']);
-
 
68
        		$link2 = '<span id="gsvalue_'.$gs_id.'" class="editable editable-click" data-original-title="" title="">'.$val.'</span>';
-
 
69
 
-
 
70
        	?>
-
 
71
            <td class="wpsg_cell_name"><?php echo __('Gutschein', 'wpsg'); ?> <?php echo ($this->view['basket']['gs']['code'] != '')? '('.$link1.')':'' ?>
-
 
72
            	<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>
-
 
73
            </td>
-
 
74
            <td class="wpsg_cell_preis"><?php echo $link2.' '.$this->get_option('wpsg_currency'); ?></td>
-
 
75
            <?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
-
 
76
            <td class="wpsg_cell_mwst"><?php echo __('anteilig', 'wpsg'); ?></td>
-
 
77
            <?php } ?>
-
 
78
            <td class="wpsg_cell_menge">1</td>
-
 
79
            <td class="wpsg_cell_gesamtpreis"><?php echo '-'.wpsg_ff($this->view['basket']['sum']['gs'], $this->get_option('wpsg_currency')); ?></td>
-
 
80
        </tr>
-
 
81
        <?php } ?>
-
 
82
        <?php $prval = 0;
-
 
83
        if (isset($this->view['basket']['sum']['preis_rabatt']) && $this->view['basket']['sum']['preis_rabatt'] > 0) {
-
 
84
        	$o_id = $_REQUEST['edit_id'];
-
 
85
        	$prval = '-'.wpsg_ff($this->view['basket']['sum']['preis_rabatt']);
-
 
86
        	$link2 = '<span id="discountvalue_'.$o_id.'" class="editable editable-click" data-original-title="" title="">'.$prval.'</span>';
-
 
87
        ?>
-
 
88
        <tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?> wpsg_row_rabatt">
-
 
89
            <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_rabatt_label">
-
 
90
                <?php echo __('Abzüglich Rabatt', 'wpsg'); ?>
-
 
91
                <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>
-
 
92
            </td>
-
 
93
            <td class="wpsg_cell_rabatt_value wpsg_cell_gesamtpreis">
-
 
94
                <?php echo $link2.' '.$this->get_option('wpsg_currency'); ?>
-
 
95
            </td>
-
 
96
        </tr>
-
 
97
        <?php } ?>
-
 
98
        <tr class="wpsg_row_summe">
-
 
99
            <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
-
 
100
                <?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?>
-
 
101
                    <?php echo wpsg_translate(__('Summe (zzgl. #1#)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
-
 
102
                <?php } else { ?>
-
 
103
                    <?php //if ($this->getFrontendTaxview() == WPSG_NETTO)
-
 
104
                    //if ($this->view['basket']['price_frontend'] == WPSG_NETTO)
-
 
105
                    if ($this->get_option('wpsg_preisangaben') == WPSG_NETTO)
-
 
106
                    { ?>
-
 
107
                    <?php echo wpsg_translate(__('Summe (zzgl. #1#, zzgl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
-
 
108
                    <?php } else { ?>
-
 
109
                    <?php echo wpsg_translate(__('Summe (zzgl. #1#, inkl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
-
 
110
                    <?php } ?>
-
 
111
                <?php } ?>
-
 
112
            </td>
-
 
113
            <td class="wpsg_cell_summe_value wpsg_cell_gesamtpreis">
-
 
114
                <?php echo wpsg_ff($this->view['basket']['sum']['preis']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
-
 
115
            </td>
-
 
116
        </tr>
-
 
117
        <?php if ($this->view['basket']['sum']['preis_shipping'] != 0 || $this->get_option('wpsg_hideemptyshipping') != '1') { ?>
-
 
118
        <tr class="wpsg_row_shipping">
-
 
119
            <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_shipping_label">
-
 
120
                <a href="<?php echo $this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN); ?>" target="_blank"><?php echo __('Versandkosten', 'wpsg'); ?></a>
-
 
121
                <?php
-
 
122
                //$order = $this->view['oOrder'];
-
 
123
                $o_id = $_REQUEST['edit_id'];
-
 
124
                $oOrder = wpsg_order::getInstance($o_id);
-
 
125
                $sid = $oOrder->getShippingID();
-
 
126
                echo __('  ('.$this->arShipping[$sid]['name'].')', 'wpsg');
-
 
127
                ?>
-
 
128
                <a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Versandart ändern', 'wpsg'); ?>"
-
 
129
                   onclick="return WPSG_BE_Pay_Ship.changeShipping('<?php echo $sid; ?>', <?php echo $o_id; ?>);"><span class="glyphicon glyphicon-pencil"></span></a>
-
 
130
            </td>
-
 
131
            <td class="wpsg_cell_shipping_value wpsg_cell_gesamtpreis">
-
 
132
                <span id="wpsg_cell_shipping_value"><?php echo wpsg_ff($this->view['basket']['sum']['preis_shipping']); ?> </span>
-
 
133
                <?php echo $this->get_option('wpsg_currency'); ?>
-
 
134
            </td>
-
 
135
        </tr>
-
 
136
        <?php } ?>
-
 
137
        <?php if ($this->view['basket']['sum']['preis_payment'] != 0 || $this->get_option('wpsg_hideemptypayment') != '1') { ?>
-
 
138
        <tr class="wpsg_row_payment">
-
 
139
            <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_payment_label">
-
 
140
                <?php echo __('Zahlungsart', 'wpsg');
-
 
141
                //$order = $this->view['oOrder'];
-
 
142
                $oOrder = wpsg_order::getInstance($_REQUEST['edit_id']);
-
 
143
                $pid = $oOrder->getPaymentID();
-
 
144
                echo __('  ('.$this->arPayment[$pid]['name'].')', 'wpsg');
-
 
145
                ?>
-
 
146
                <!-- <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> -->
14
    </div>
147
                <a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Zahlungsart ändern', 'wpsg'); ?>"
-
 
148
                   onclick="return WPSG_BE_Pay_Ship.changePayment('<?php echo $pid; ?>', <?php echo $o_id; ?>);"><span class="glyphicon glyphicon-pencil"></span></a>
-
 
149
            </td>
-
 
150
            <td class="wpsg_cell_payment_value wpsg_cell_gesamtpreis" >
-
 
151
                <span id="wpsg_cell_payment_value"><?php echo wpsg_ff($this->view['basket']['sum']['preis_payment']); ?> </span>
-
 
152
                <?php echo $this->get_option('wpsg_currency'); ?>
-
 
153
            </td>
-
 
154
        </tr>
-
 
155
        <?php } ?>
-
 
156
        <?php if ($this->get_option('wpsg_preisangaben') == '1' && $this->get_option('wpsg_kleinunternehmer') != '1') { ?>
-
 
157
        <?php foreach ($this->view['basket']['mwst'] as $mwst_id => $mwst) { ?>
-
 
158
        <tr class="wpsg_row_mwst">
-
 
159
            <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
-
 
160
                <?php echo wpsg_translate(__('zuzüglich MwSt. (#1#)', 'wpsg'), $mwst['name']); ?>
-
 
161
            </td>
-
 
162
            <td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
-
 
163
                <?php echo wpsg_ff($mwst['sum']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
-
 
164
            </td>
-
 
165
        </tr>
-
 
166
        <?php } ?>
-
 
167
        <?php } ?>
-
 
168
        <tr class="wpsg_row_gesamt">
-
 
169
            <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_gesamt_label">
-
 
170
                <?php echo __('Gesamtpreis', 'wpsg'); ?>
-
 
171
            </td>
-
 
172
            <td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
-
 
173
                <strong><?php echo wpsg_ff($this->view['basket']['sum']['preis_gesamt']); ?> <?php echo $this->get_option('wpsg_currency'); ?></strong>
-
 
174
            </td>
-
 
175
        </tr>
-
 
176
        <?php if ($this->get_option('wpsg_kleinunternehmer') == '1' || $this->get_option('wpsg_preisangaben') != WPSG_NETTO) { ?>
-
 
177
        <?php foreach ($this->view['basket']['mwst'] as $mwst_id => $mwst) { ?>
-
 
178
        <tr class="wpsg_row_mwst">
-
 
179
            <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
-
 
180
                <?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?>
-
 
181
                    <?php echo $this->get_option('wpsg_kleinunternehmer_text'); ?>
-
 
182
                <?php } else { ?>
-
 
183
                    <?php
-
 
184
                    //if ($this->view['basket']['price_frontend'] == WPSG_NETTO) {
-
 
185
                    if ($this->get_option('wpsg_preisangaben') == WPSG_NETTO) {
-
 
186
                    	echo wpsg_translate(__('zuzüglich MwSt. (#1#)', 'wpsg'), $mwst['name']);
-
 
187
                    } else {
-
 
188
                    	echo wpsg_translate(__('darin enthaltene MwSt. (#1#)', 'wpsg'), $mwst['name']); ?>
-
 
189
                    <?php } ?>
-
 
190
                <?php } ?>
-
 
191
            </td>
-
 
192
            <td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
-
 
193
                <?php echo wpsg_ff($mwst['sum']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
-
 
194
            </td>
-
 
195
        </tr>
-
 
196
        <?php } ?>
-
 
197
        <?php } ?>
-
 
198
    </table>
-
 
199
 
-
 
200
 
15
 
201
<script type="text/javascript">/* <![CDATA[ */
16
<script type="text/javascript">/* <![CDATA[ */
202
 
17
 
203
<?php if ($this->hasMod('wpsg_mod_gutschein')) { ?>
18
<?php if ($this->hasMod('wpsg_mod_gutschein')) { ?>
204
	<?php if ((array_key_exists('gs', $this->view['basket'])) && ($this->view['basket']['gs']['value'] > 0)) { ?>
19
	<?php if ((array_key_exists('gs', $this->view['basket'])) && ($this->view['basket']['gs']['value'] > 0)) { ?>
Line 327... Line 142...
327
		return false;
142
		return false;
328
		
143
		
329
	}
144
	}
330
	
145
	
331
    jQuery(document).ready(function() {
146
    jQuery(document).ready(function() {
332
		gs_id = <?php echo $gs_id; ?>;
-
 
333
		prval = <?php echo $prval; ?>;
-
 
-
 
147
		 
334
 
148
 
335
		wpsg_view_orderdata_show();
149
		//wpsg_view_orderdata_show();
336
 
150
 
337
    } );
151
    } );
338
 
152
 
339
    function wpsg_view_orderdata_show() {
153
    function wpsg_view_orderdata_show() {
-
 
154
                
340
        jQuery('#LinkGutscheinNeu').show();
155
        jQuery('#LinkGutscheinNeu').show();
341
        jQuery('#LinkRabattNeu').show();
156
        jQuery('#LinkRabattNeu').show();
342
        jQuery('#LinkProduktNeu').show();
157
        jQuery('#LinkProduktNeu').show();
343
        jQuery('#LinkSendMail').show();
158
        jQuery('#LinkSendMail').show();
344
 
159
 
345
		if (gs_id > 0) { jQuery('#LinkGutscheinNeu').hide(); }
160
		//if (gs_id > 0) { jQuery('#LinkGutscheinNeu').hide(); }
346
		if (prval != 0) { jQuery('#LinkRabattNeu').hide(); }
161
		//if (prval != 0) { jQuery('#LinkRabattNeu').hide(); }
347
    }
162
    }
348
 
163
 
349
    function wpsg_view_orderdata_hide() {
164
    function wpsg_view_orderdata_hide() {
350
    	jQuery('#LinkGutscheinNeu').hide();
165
    	jQuery('#LinkGutscheinNeu').hide();
351
        jQuery('#LinkRabattNeu').hide();
166
        jQuery('#LinkRabattNeu').hide();
Line 363... Line 178...
363
    };
178
    };
364
    //Modul2.methode();
179
    //Modul2.methode();
365
 
180
 
366
 
181
 
367
    var WPSG_BE_Pay_Ship = {
182
    var WPSG_BE_Pay_Ship = {
-
 
183
    		 
-
 
184
        changeShippingPayment: function (id, oid) {
368
 
185
 
608
 
230
 
-
 
231
        } // function dialogShippingOK()
-
 
232
  
609
    };	// WPSG_BE_Pay_Ship
233
    };	// WPSG_BE_Pay_Ship
610
    //WPSG_BE_Pay_Ship.changePayment2(1, 2);
-
 
611
 
-
 
612
 
234
 
613
    var WPSG_BE_Product = {
235
    var WPSG_BE_Product = {
614
 
236
 
847
 
309
 
848
		},	// findAllIndex()
310
                }
-
 
311
            } );
849
 
312
 
850
		/**
-
 
851
		 * Suchen des Indexes in productinfos an Hand der order_product_id
-
 
852
		 */
-
 
853
		findIndex: function(id) {
-
 
854
			var
-
 
855
				pid,
-
 
856
				pval;
-
 
857
			for (key in this.productinfos) {
-
 
858
				if (id == this.productinfos[key].order_product_id) {
-
 
859
					return key;
-
 
860
				}
-
 
861
			}
-
 
862
			return false;
313
            return false;
863
 
-
 
864
		},	// findIndex()
-
 
865
 
-
 
866
		changeProduct2: function (id, oid) {
-
 
867
 
-
 
868
			alert('TEST OK neu2');
-
 
869
 
-
 
870
		} // function changeProduct2(id, oid)
-
 
871
 
-
 
872
    };	// WPSG_BE_Product
-
 
873
    //WPSG_BE_Product.changeProduct2(1, 2);
-
 
874
 
314
 
-
 
315
        }
-
 
316
        
-
 
317
    }
-
 
318
    
-
 
319
    var WPSG_BE_Discount = {
-
 
320
        
-
 
321
        editDiscount: function() {
-
 
322
 
-
 
323
            jQuery('#wpsg_discount_dialog .modal-body').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
-
 
324
            jQuery('#wpsg_discount_dialog').modal( { } ).modal('show'); 
-
 
325
 
-
 
326
            jQuery.ajax( {
-
 
327
                url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=view&subaction=editDiscount&edit_id=<?php echo $_REQUEST['edit_id']; ?>&noheader=1',                 
-
 
328
                success: function(data) {
-
 
329
 
-
 
330
                    jQuery('#wpsg_discount_dialog .modal-body').html(data);
-
 
331
 
-
 
332
                }
-
 
333
            } );
-
 
334
 
-
 
335
            return false;
-
 
336
            
-
 
337
        },
-
 
338
        
-
 
339
        saveDiscount: function() {
-
 
340
 
-
 
341
            jQuery('#wpsg_discount_dialog').modal('hide');
-
 
342
            jQuery('#wpsg_product_table_wrap').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
-
 
343
 
-
 
344
            jQuery.ajax( {
-
 
345
                url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=view&subaction=editDiscount&do=submit&edit_id=<?php echo $_REQUEST['edit_id']; ?>&noheader=1',
-
 
346
                data: jQuery('#wpsg_be_discount_form').serialize(),
-
 
347
                success: function(data) {
-
 
348
 
-
 
349
                    jQuery('#wpsg_product_table_wrap').html(data.product_table);
-
 
350
 
-
 
351
                }
-
 
352
            } );
-
 
353
 
-
 
354
            return false;
-
 
355
            
-
 
356
        }
-
 
357
        
-
 
358
    }
-
 
359
    
875
	/* ]]> */</script>
360
	/* ]]> */</script>
876
 
361
 
877
</div>
362
</div>
878
 
363
 
-
 
364
<!-- Modaldialog für Rabatt -->
-
 
365
<div class="modal fade" id="wpsg_discount_dialog" tabindex="-1" role="dialog">
-
 
366
    <div class="modal-dialog" role="document">
-
 
367
        <div class="modal-content">
-
 
368
            <div class="modal-header">
-
 
369
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
-
 
370
                <h4 class="modal-title" id="myModalLabel"><?php echo __('Rabatt hinzufügen/bearbeiten', 'wpsg'); ?></h4>
-
 
371
            </div>
-
 
372
            <div class="modal-body"></div>
-
 
373
            <div class="modal-footer">
-
 
374
                <button type="button" class="btn btn-default" data-dismiss="modal">Abbrechen</button>
-
 
375
                <button type="button" class="btn btn-primary" data-dismiss="modal" onclick="return WPSG_BE_Discount.saveDiscount();">OK</button>
-
 
376
            </div>
-
 
377
        </div>
-
 
378
    </div>
-
 
379
</div>
879
 
380
 
880
<!-- Modaldialog für Produkte -->
381
<!-- Modaldialog für Produkte -->
881
<div class="modal fade" id="wpsg_product_dialog" tabindex="-1" role="dialog">
382
<div class="modal fade" id="wpsg_product_dialog" tabindex="-1" role="dialog">
882
  <div class="modal-dialog" role="document">
383
  <div class="modal-dialog" role="document">
883
    <div class="modal-content">
384
    <div class="modal-content">
884
      <div class="modal-header">
385
      <div class="modal-header">
885
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
386
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
886
        <h4 class="modal-title" id="myModalLabel"><?php echo __('Produkt', 'wpsg'); ?></h4>
387
        <h4 class="modal-title" id="myModalLabel"><?php echo __('Produkt hinzufügen/bearbeiten', 'wpsg'); ?></h4>
887
      </div>
-
 
888
      <div class="modal-body">
-
 
889
      	<br />
-
 
890
      	<?php
-
 
891
      	$i = 0;
-
 
892
      	// $this
-
 
893
      	?>
-
 
894
        <div class="row">
-
 
895
          <div class="col-md-3 col-sm-6 control_label"><label for="productid" ><?php echo _("Produkt"); ?></label></div>
-
 
896
          <div class="col-md-3">
-
 
897
			<select name="productid" id="productid" onchange="return WPSG_BE_Product.dialogProductChange();" class="form-control input-sm" size="1" class="select">
-
 
898
				<option value=0>"[unbekannt]"</option>
-
 
899
			</select>
-
 
900
		  </div>
-
 
901
        </div>
-
 
902
        <div class="clearfix wpsg_clear"></div>
-
 
903
        <div class="clearfix wpsg_clear"></div>
-
 
904
 
-
 
905
		<div id="wpsg_product_data">
-
 
906
	        <div class="row">
-
 
907
	          <div class="col-md-3 col-sm-6 control_label"><label for="productvalue"><?php echo _("Preis"); ?></label></div>
-
 
908
	          <div class="col-md-3">
-
 
909
				<input type="text" name="productvalue" id="productvalue" class="form-control input-sm" size="1" class="select">
-
 
910
			  </div>
-
 
911
	        </div>
-
 
912
	        <div class="clearfix wpsg_clear"></div>
-
 
913
	        <div class="row">
-
 
914
	          <div class="col-md-3 col-sm-6 control_label"><label for="productmenge"><?php echo _("Menge"); ?></label></div>
-
 
915
	          <div class="col-md-3">
-
 
916
				<input type="text" name="productmenge" id="productmenge" class="form-control input-sm" size="1" class="select">
-
 
917
			  </div>
-
 
918
	        </div>
-
 
919
	        <div class="clearfix wpsg_clear"></div>
-
 
920
	        <div class="row">
-
 
921
	          <div class="col-md-3 col-sm-6 control_label"><label for="productid" ><?php echo _("MwSt:"); ?></label></div>
-
 
922
	          <div class="col-md-3">
-
 
923
				<select name="productmwst" id="productmwst" class="form-control input-sm" size="1" class="select">
-
 
924
					<option value=0>"[unbekannt]"</option>
-
 
925
				</select>
-
 
926
			  </div>
-
 
927
	        </div>
-
 
928
	        <div class="clearfix wpsg_clear"></div>
-
 
929
 
-
 
930
        </div>
-
 
931
 
-
 
932
      </div>
388
      </div>
-
 
389
      <div class="modal-body"></div>
933
      <div class="modal-footer">
390
      <div class="modal-footer">
934
        <button type="button" class="btn btn-default" data-dismiss="modal">Abbrechen</button>
391
        <button type="button" class="btn btn-default" data-dismiss="modal">Abbrechen</button>
935
        <button type="button" class="btn btn-primary" data-dismiss="modal" onclick="return WPSG_BE_Product.dialogProductOK();">OK</button>
392
        <button type="button" class="btn btn-primary" data-dismiss="modal" onclick="return WPSG_BE_Product.saveProduct();">OK</button>
936
      </div>
393
      </div>
937
    </div>
394
    </div>
938
  </div>
395
  </div>
939
</div>
396
</div>
940
 
397
 
941
 
-
 
942
<!-- Modaldialog für Versandart -->
398
<!-- Modaldialog für Versandart / Zahlungsart -->
943
<div class="modal fade" id="wpsg_shipping_dialog" tabindex="-1" role="dialog">
399
<div class="modal fade" id="wpsg_shipping_dialog" tabindex="-1" role="dialog">
944
  <div class="modal-dialog" role="document">
400
  <div class="modal-dialog" role="document">
945
    <div class="modal-content">
401
    <div class="modal-content">
946
      <div class="modal-header">
402
      <div class="modal-header">
947
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
403
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
948
        <h4 class="modal-title" id="myModalLabel"><?php echo __('Versandart', 'wpsg'); ?></h4>
404
        <h4 class="modal-title" id="myModalLabel"><?php echo __('Versandart', 'wpsg'); ?></h4>
949
      </div>
405
      </div>
950
      <div class="modal-body">
-
 
951
      	<br />
-
 
952
        <div class="row">
-
 
953
          <div class="col-md-3 col-sm-6 control_label"><label for="versandartid" ><?php echo _("Versandart"); ?></label></div>
-
 
954
          <div class="col-md-3">
-
 
955
			<select name="versandartid" id="versandartid" onchange="return WPSG_BE_Pay_Ship.dialogShippingChange();" class="form-control input-sm" size="1" class="select">
-
 
956
				<option value=0>"[unbekannt]"</option>
-
 
957
			</select>
-
 
958
		  </div>
-
 
959
        </div>
-
 
960
        <div class="clearfix wpsg_clear"></div>
-
 
961
        <div class="clearfix wpsg_clear"></div>
-
 
962
        <br />
-
 
963
        <div class="row">
-
 
964
          <div class="col-md-3 col-sm-6 control_label"><label for="versandartvalue"><?php echo _("Gebühr/Kosten"); ?></label></div>
-
 
965
          <div class="col-md-3">
-
 
966
			<input type="text" name="versandartvalue" id="versandartvalue" class="form-control input-sm" size="1" class="select">
-
 
967
		  </div>
-
 
968
        </div>
-
 
969
        <div class="clearfix wpsg_clear"></div>
-
 
970
 
-
 
971
      </div>
-
 
972
      <div class="modal-footer">
-
 
973
        <button type="button" class="btn btn-default" data-dismiss="modal">Abbrechen</button>
-
 
974
        <button type="button" class="btn btn-primary" data-dismiss="modal" onclick="return WPSG_BE_Pay_Ship.dialogShippingOK();">OK</button>
-
 
975
      </div>
-
 
976
    </div>
-
 
977
  </div>
-
 
978
</div>
-
 
979
 
-
 
980
 
-
 
981
<!-- Modaldialog für Zahlungsart -->
-
 
982
<div class="modal fade" id="wpsg_payment_dialog" tabindex="-1" role="dialog">
-
 
983
  <div class="modal-dialog" role="document">
-
 
984
    <div class="modal-content">
-
 
985
      <div class="modal-header">
-
 
986
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
-
 
987
        <h4 class="modal-title" id="myModalLabel"><?php echo __('Zahlungsart', 'wpsg'); ?></h4>
-
 
988
      </div>
-
 
989
      <div class="modal-body">
406
      <div class="modal-body"></div>
990
      	<br />
-
 
991
        <div class="row">
-
 
992
          <div class="col-md-3 col-sm-6 control_label"><label for="zahlungsartid" ><?php echo _("Zahlungsart"); ?></label></div>
-
 
993
          <div class="col-md-3">
-
 
994
			<select name="zahlungsartid" id="zahlungsartid" onchange="return WPSG_BE_Pay_Ship.dialogPaymentChange();" class="form-control input-sm" size="1" class="select">
-
 
995
				<option value=0>"[unbekannt]"</option>
-
 
996
			</select>
-
 
997
		  </div>
-
 
998
        </div>
-
 
999
        <div class="clearfix wpsg_clear"></div>
-
 
1000
        <div class="clearfix wpsg_clear"></div>
-
 
1001
        <br />
-
 
1002
        <div class="row">
-
 
1003
          <div class="col-md-3 col-sm-6 control_label"><label for="zahlungsartvalue"><?php echo _("Gebühr/Kosten"); ?></label></div>
-
 
1004
          <div class="col-md-3">
-
 
1005
			<input type="text" name="zahlungsartvalue" id="zahlungsartvalue" class="form-control input-sm" size="1" class="select">
-
 
1006
		  </div>
-
 
1007
        </div>
-
 
1008
        <div class="clearfix wpsg_clear"></div>
-
 
1009
 
-
 
1010
      </div>
-
 
1011
      <div class="modal-footer">
407
      <div class="modal-footer">
1012
        <button type="button" class="btn btn-default" data-dismiss="modal">Abbrechen</button>
408
        <button type="button" class="btn btn-default" data-dismiss="modal">Abbrechen</button>
1013
        <button type="button" class="btn btn-primary" data-dismiss="modal" onclick="return WPSG_BE_Pay_Ship.dialogPaymentOK();">OK</button>
409
        <button type="button" class="btn btn-primary" data-dismiss="modal" onclick="return WPSG_BE_Pay_Ship.updateShippingPayment();">OK</button>
1014
      </div>
410
      </div>
1015
    </div>
411
    </div>
1016
  </div>
412
  </div>
1017
</div>
413
</div>
1018
 
414
 
1019
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
-