Subversion Repositories wpShopGermany4

Rev

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

Rev 7198 Rev 7210
Line 1... Line 1...
1
<?php
1
<?php
2
 
2
 
3
    /**
3
    /**
4
     * Template für die Produkttabelle im Backend der Bestellverwaltung
4
     * Template für die Produkttabelle im Backend der Bestellverwaltung
5
     */
5
     */
6
    
6
	    
7
    $arCalculation = $this->view['oCalculation']->getCalculationArray(true);
7
    $arCalculation = $this->view['oCalculation']->getCalculationArray(true);
8
	$arTax = $this->view['oCalculation']->getTaxLabelArray();
8
	$arTax = $this->view['oCalculation']->getTaxLabelArray();
9
	$arTaxShort = $this->view['oCalculation']->getTaxLabelArray(true);
9
	$arTaxShort = $this->view['oCalculation']->getTaxLabelArray(true);
10
	     
10
	     
11
    $this->view['colspan'] = 3;
11
    $this->view['colspan'] = 3;
Line 13... Line 13...
13
    
13
    
14
    $this->view['arCalculation'] = $arCalculation;
14
    $this->view['arCalculation'] = $arCalculation;
15
    
15
    
16
    if ($this->getBackendTaxView() === WPSG_NETTO) $display = 'netto';
16
    if ($this->getBackendTaxView() === WPSG_NETTO) $display = 'netto';
17
    else $display = 'brutto';
17
    else $display = 'brutto';
18
    
18
 
19
?>
19
?>
20
 
20
 
21
<style>
21
<style>
22
 
22
 
23
	.wpsg_row_small td { font-size:0.8em; }
23
	.wpsg_row_small td { font-size:0.8em; }
24
	#wpsg-bs .wpsg_row_small  .wpsg-glyphlink-td > span { margin-top:0px; }
24
	#wpsg-bs .wpsg_row_small  .wpsg-glyphlink-td > span { margin-top:0px; }
-
 
25
	/*.wpsg_productrow_add td { border-top:0px !important; }*/
25
 
26
 
26
</style>
27
</style>
27
 
28
 
-
 
29
<?php echo wpsg_drawForm_Select('tax_mode', __('Besteuerung'), [
-
 
30
		\wpsg\wpsg_calculation::TAXMODE_SMALLBUSINESS => __('Kleinunternehmerregelung'),
-
 
31
		\wpsg\wpsg_calculation::TAXMODE_B2C => __('Endkundenbesteuerung'),
-
 
32
		\wpsg\wpsg_calculation::TAXMODE_B2B => __('Firmenkundenbesteuerung')
-
 
33
	], $this->view['oCalculation']->getTaxMode(), ['onchange' => 'WPSG_BE.updateCalculation();']); ?>
-
 
34
 
-
 
35
<br />
28
 
36
 
29
<table class="wpsg_produkte table">
37
<table class="wpsg_produkte table">
30
	<thead>
38
	<thead>
31
		<tr class="wpsg_kopf">
39
		<tr class="wpsg_kopf">
32
			<th class="wpsg_cell_name"><?php echo __('Produktname', 'wpsg'); ?></th>
40
			<th class="wpsg_cell_name"><?php echo __('Produktname', 'wpsg'); ?></th>
Line 41... Line 49...
41
	<tbody>
49
	<tbody>
42
 
50
 
43
		<tr><td colspan="<?php echo $this->view['colspan'] + 1; ?>" style="line-height:2px; height:2px; background-color:#999999; padding:0px;"></td></tr>
51
		<tr><td colspan="<?php echo $this->view['colspan'] + 1; ?>" style="line-height:2px; height:2px; background-color:#999999; padding:0px;"></td></tr>
44
		<?php $i = 0; foreach ($arCalculation['product'] as $p) { $i ++; $product_price = $p[$display]; ?>
52
		<?php $i = 0; foreach ($arCalculation['product'] as $p) { $i ++; $product_price = $p[$display]; ?>
45
			<tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?>">
53
			<tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?>">
-
 
54
				<td colspan="<?php echo $this->view['colspan'] + 1; ?>">
-
 
55
					
46
				<td class="wpsg_cell_name">
56
					<?php if (wpsg_isTrue($p['eu'])) { ?>
-
 
57
						<img src="<?php echo WPSG_URL; ?>views/gfx/eu.png" alt="<?php echo __('Produkt unterliegt der EU-Leistungsortregel', 'wpsg'); ?>" title="<?php echo __('Produkt unterliegt der EU-Leistungsortregel', 'wpsg'); ?>" height="14" />
-
 
58
					<?php } ?>
-
 
59
					
47
					<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id=<?php echo $p['product_id']; ?>" title="<?php echo __('Zum Produkt', 'wpsg'); ?>">
60
					<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id=<?php echo $p['product_id']; ?>" title="<?php echo __('Zum Produkt', 'wpsg'); ?>">
48
						<?php echo wpsg_hspc($this->getProductName($p['product_id'])); ?>
61
						<?php echo wpsg_hspc($this->getProductName($p['product_id'])); ?>
49
					</a>
62
					</a>
50
					<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Produkt bearbeiten', 'wpsg'); ?>" onclick="return WPSG_BE_Product.editProduct(<?php echo $p['order_product_id']; ?>);"><span class="glyphicon glyphicon-pencil"></span></a>
63
					<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Produkt bearbeiten', 'wpsg'); ?>" onclick="return WPSG_BE_Product.editProduct(<?php echo $p['order_product_id']; ?>);"><span class="glyphicon glyphicon-pencil"></span></a>
51
					<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Produkt löschen', 'wpsg'); ?>" onclick="return WPSG_BE_Product.remvoeProduct(<?php echo $p['order_product_id']; ?>);"><span class="glyphicon glyphicon-trash"></span></a>
64
					<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']; ?>);"><span class="glyphicon glyphicon-trash"></span></a>
52
				</td>
65
				</td>
-
 
66
			</tr>
-
 
67
			<tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?> wpsg_productrow_add">
-
 
68
				<td class="wpsg_cell_name"></td>
53
				<td class="wpsg_cell_preis"><?php echo wpsg_ff($product_price); ?> <?php echo $this->get_option('wpsg_currency'); ?></td>
69
				<td class="wpsg_cell_preis"><?php echo wpsg_ff($product_price); ?> <?php echo $this->get_option('wpsg_currency'); ?></td>
54
				<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
70
				<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
55
					<td class="wpsg_cell_mwst"><?php echo $arTaxShort[$p['tax_key']]; ?></td>
71
					<td class="wpsg_cell_mwst"><?php echo $arTaxShort[$p['tax_key']]; ?></td>
56
				<?php } ?>
72
				<?php } ?>
57
				<td class="wpsg_cell_menge"><?php echo wpsg_hspc($p['amount']); ?></td>
73
				<td class="wpsg_cell_menge"><?php echo wpsg_hspc($p['amount']); ?></td>
Line 273... Line 289...
273
			
289
			
274
		<?php } ?>
290
		<?php } ?>
275
	
291
	
276
	</tbody>
292
	</tbody>
277
</table>
293
</table>
278
	
-
 
279
<?php wpsg_debug($arCalculation); ?>
-
 
280
294
	
-
 
295
281
296