Subversion Repositories wpShopGermany4

Rev

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

Rev 7867 Rev 7932
Line 2... Line 2...
2
	
2
	
3
	/**
3
	/**
4
	 * Template für die Übersicht der Bestellungen
4
	 * Template für die Übersicht der Bestellungen
5
	 */
5
	 */
6
 
6
 
-
 
7
	$arPaymentKeySelect = [];
-
 
8
	
-
 
9
	foreach ($this->getPaymentArray() as $payment_key => $payment) {
-
 
10
	    
-
 
11
	    $arPaymentKeySelect[$payment_key] = $payment['name'];
-
 
12
	    
-
 
13
    }
-
 
14
	
7
?>
15
?>
8
 
16
 
9
<div class="wpsg_order" id="wpsg-bs">
17
<div class="wpsg_order" id="wpsg-bs">
10
 
18
 
11
	<nav class="navbar navbar-default">
19
	<nav class="navbar navbar-default">
Line 44... Line 52...
44
						<input id="wpsg_order" type="hidden" name="filter[order]" value="<?php echo @$this->view['arFilter']['order']; ?>" />
52
						<input id="wpsg_order" type="hidden" name="filter[order]" value="<?php echo @$this->view['arFilter']['order']; ?>" />
45
						<input id="wpsg_ascdesc" type="hidden" name="filter[ascdesc]" value="<?php echo @$this->view['arFilter']['ascdesc']; ?>" />
53
						<input id="wpsg_ascdesc" type="hidden" name="filter[ascdesc]" value="<?php echo @$this->view['arFilter']['ascdesc']; ?>" />
46
 
54
 
47
						<?php echo wpsg_drawForm_Input('filter[s]', __('Suchfeld', 'wpsg'), wpsg_getStr($this->view['arFilter']['s'])); ?>
55
						<?php echo wpsg_drawForm_Input('filter[s]', __('Suchfeld', 'wpsg'), wpsg_getStr($this->view['arFilter']['s'])); ?>
48
                        <?php echo wpsg_drawForm_Input('filter[k_id]', __('Kunde (ID)', 'wpsg'), wpsg_getStr($this->view['arFilter']['k_id'])); ?>
56
                        <?php echo wpsg_drawForm_Input('filter[k_id]', __('Kunde (ID)', 'wpsg'), wpsg_getStr($this->view['arFilter']['k_id'])); ?>
-
 
57
                        <?php echo wpsg_drawForm_Select('filter[payment_key]', __('Zahlungsart', 'wpsg'), $arPaymentKeySelect, wpsg_getStr($this->view['arFilter']['payment_key'])); ?>
49
						<?php echo wpsg_drawForm_Select('filter[status]', __('Bestellstatus', 'wpsg'), wpsg_array_merge(array('-1' => __('Alle', 'wpsg')), $this->arStatus), @$this->view['arFilter']['status']); ?>
58
						<?php echo wpsg_drawForm_Select('filter[status]', __('Bestellstatus', 'wpsg'), wpsg_array_merge(array('-1' => __('Alle', 'wpsg')), $this->arStatus), @$this->view['arFilter']['status']); ?>
50
						
59
						
51
						<?php /* if ($this->hasMod('wpsg_mod_produktartikel')) { Vorbereitet aber Joins in wpsg_order nach den wp Ktegorien noch nicht umgesetzt! ?>
60
						<?php /* if ($this->hasMod('wpsg_mod_produktartikel')) { Vorbereitet aber Joins in wpsg_order nach den wp Ktegorien noch nicht umgesetzt! ?>
52
							
61
							
53
							<?php $arCatSelect = []; $arCat = $this->callMod('wpsg_mod_produktartikel', 'getProductcategorySelect'); foreach ($arCat as $cat) $arCatSelect[$cat['term_id']] = $cat['label']; ?>
62
							<?php $arCatSelect = []; $arCat = $this->callMod('wpsg_mod_produktartikel', 'getProductcategorySelect'); foreach ($arCat as $cat) $arCatSelect[$cat['term_id']] = $cat['label']; ?>
Line 244... Line 253...
244
                <tbody>
253
                <tbody>
245
                    <?php foreach ($this->view['arData'] as $oOrder) { ?>
254
                    <?php foreach ($this->view['arData'] as $oOrder) { ?>
246
                    <tr>
255
                    <tr>
247
                        <td class="col_checkbox">
256
                        <td class="col_checkbox">
248
 
257
 
249
                            <input class="col_set_checkbox" name="wpsg_multido[<?php echo $oOrder->id; ?>]" type="checkbox" />
258
                            <input class="col_set_checkbox" data-order_id="<?php echo $oOrder->id; ?>" name="wpsg_multido[<?php echo $oOrder->id; ?>]" type="checkbox" />
250
 
259
 
251
                        </td>
260
                        </td>
252
                        <td class="col_nr">
261
                        <td class="col_nr">
253
 
262
 
254
                            <?php echo $oOrder->getNr(); ?> <span class="wpsg_grey"><?php echo wpsg_formatTimestamp(strtotime($oOrder->cdate), false); ?></span><br />
263
                            <?php echo $oOrder->getNr(); ?> <span class="wpsg_grey"><?php echo wpsg_formatTimestamp(strtotime($oOrder->cdate), false); ?></span><br />
Line 415... Line 424...
415
                    <option value="multiDelete"><?php echo __('Bestellungen löschen', 'wpsg'); ?></option>
424
                    <option value="multiDelete"><?php echo __('Bestellungen löschen', 'wpsg'); ?></option>
416
                    <?php if ($this->hasMod('wpsg_mod_rechnungen')) { ?>
425
                    <?php if ($this->hasMod('wpsg_mod_rechnungen')) { ?>
417
                    <option value="writeRechnung"><?php echo __('Rechnung schreiben', 'wpsg'); ?></option>
426
                    <option value="writeRechnung"><?php echo __('Rechnung schreiben', 'wpsg'); ?></option>
418
                    <option value="showRechnung"><?php echo __('Rechnung ansehen', 'wpsg'); ?></option>
427
                    <option value="showRechnung"><?php echo __('Rechnung ansehen', 'wpsg'); ?></option>
419
                    <?php } ?>
428
                    <?php } ?>
-
 
429
                    <?php if ($this->hasMod('wpsg_mod_kundenkontakt')) { ?>
-
 
430
                    <option value="customercontact"><?php echo __('Kunden informieren', 'wpsg') ;?></option>
-
 
431
                    <?php } ?>
420
                </select>
432
                </select>
421
 
433
 
422
                <input onclick="if (jQuery('#wpsg_action').val() == 'multiDelete') { if (!confirm('<?php echo __('Sind Sie sich sicher?', 'wpsg'); ?>')) return false; }" type="submit" value="<?php echo __('Ausführen', 'wpsg'); ?>" class="button-secondary action" id="doaction" name="wpsg_order_doaction" />
434
                <input onclick="if (jQuery('#wpsg_action').val() == 'multiDelete') { if (!confirm('<?php echo __('Sind Sie sich sicher?', 'wpsg'); ?>')) return false; }" type="submit" value="<?php echo __('Ausführen', 'wpsg'); ?>" class="button-secondary action" id="doaction" name="wpsg_order_doaction" />
423
 
435
 
-
 
436
                <div id="customer_inform" style="display:none;">
-
 
437
                    <label class="mr-4 font-normal">
-
 
438
                        <input class="mt-0 mr-2" type="checkbox" name="inform" value="1" />&nbsp;<?php echo __('Kunden informieren', 'wpsg'); ?>
-
 
439
                    </label>
-
 
440
                </div>
-
 
441
                
-
 
442
                <script>
-
 
443
                    
-
 
444
                    let el_customer_inform = document.getElementById('customer_inform');
-
 
445
                    
-
 
446
                    document.getElementById('wpsg_action').addEventListener('change', (event) => {
-
 
447
                    	
-
 
448
                    	if (parseInt(event.target.value) >= 0) {
-
 
449
                    		
-
 
450
                    		el_customer_inform.style.display = 'inline-block';
-
 
451
                    		
-
 
452
                        } else {
-
 
453
                    		
-
 
454
                    		el_customer_inform.style.display = 'none';
-
 
455
                    		
-
 
456
                        }
-
 
457
                    	
-
 
458
                    });
-
 
459
                    
-
 
460
                </script>
-
 
461
                
424
            </div>
462
            </div>
425
 
463
 
426
            <div style="margin-right:-15px;">
464
            <div style="margin-right:-15px;">
427
                <?php $this->render(WPSG_PATH_VIEW.'/admin/pager.phtml'); ?>
465
                <?php $this->render(WPSG_PATH_VIEW.'/admin/pager.phtml'); ?>
428
            </div>
466
            </div>
Line 439... Line 477...
439
 
477
 
440
		<?php } ?>
478
		<?php } ?>
441
		<input id="noheader1" type="hidden" name="noheader1" value="1" />
479
		<input id="noheader1" type="hidden" name="noheader1" value="1" />
442
		</form>
480
		</form>
443
	</div>
481
	</div>
-
 
482
    
-
 
483
    <?php if ($this->hasMod('wpsg_mod_kundenkontakt')) { $this->callMod('wpsg_mod_kundenkontakt', 'order_index_bottom'); } ?>
444
 
484
 
445
<script type="text/javascript">/* <![CDATA[ */
485
<script>
446
 
486
 
447
    <?php if (wpsg_isSizedString($this->view['arFilter']['order']) && wpsg_isSizedString($this->view['arFilter']['ascdesc'])) { ?>
487
    <?php if (wpsg_isSizedString($this->view['arFilter']['order']) && wpsg_isSizedString($this->view['arFilter']['ascdesc'])) { ?>
448
    jQuery('th[data-order="<?php echo @$this->view['arFilter']['order']; ?>"]').addClass('wpsg_order_<?php echo strtolower(@$this->view['arFilter']['ascdesc']); ?>');
488
    jQuery('th[data-order="<?php echo @$this->view['arFilter']['order']; ?>"]').addClass('wpsg_order_<?php echo strtolower(@$this->view['arFilter']['ascdesc']); ?>');
449
    <?php } ?>
489
    <?php } ?>
450
 
490
 
Line 516... Line 556...
516
            return false;
556
            return false;
517
 
557
 
518
        } );
558
        } );
519
 
559
 
520
    } );
560
    } );
-
 
561
	
-
 
562
	<?php if ($this->hasMod('wpsg_mod_kundenkontakt')) { ?>
-
 
563
	document.getElementById('wpsg_action').addEventListener('click', (event) => {
-
 
564
		
-
 
565
		console.log('OK');
-
 
566
		
-
 
567
    });
-
 
568
	<?php } ?>
521
 
569
 
522
/* <![CDATA[ */</script>
-
 
523
570
</script>
-
 
571
524
572