Subversion Repositories wpShopGermany4

Rev

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

Rev 8068 Rev 8069
Line 233... Line 233...
233
	<?php $this->render(WPSG_PATH_VIEW.'/admin/pager.phtml'); ?>
233
	<?php $this->render(WPSG_PATH_VIEW.'/admin/pager.phtml'); ?>
234
 
234
 
235
	<div class="wpsg_clear"></div>
235
	<div class="wpsg_clear"></div>
236
 
236
 
237
	<div class="content">
237
	<div class="content">
238
		<form method="post" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&noheader=1" enctype="multipart/form-data">
238
		<form method="post" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&noheader=1" enctype="multipart/form-data" id="order_form">
239
 
239
 
240
		<?php if (is_array($this->view['arData']) && sizeof($this->view['arData']) > 0) { ?>
240
		<?php if (is_array($this->view['arData']) && sizeof($this->view['arData']) > 0) { ?>
241
 
241
 
242
            <table class="table table-bordered table-hover table-striped wpsg-table-order">
242
            <table class="table table-bordered table-hover table-striped wpsg-table-order">
243
                <thead>
243
                <thead>
Line 449... Line 449...
449
                <script>
449
                <script>
450
                    
450
                    
451
                    let el_customer_inform = document.getElementById('customer_inform');
451
                    let el_customer_inform = document.getElementById('customer_inform');
452
                    
452
                    
453
                    document.getElementById('wpsg_action').addEventListener('change', (event) => {
453
                    document.getElementById('wpsg_action').addEventListener('change', (event) => {
454
                    	
454
                    	 
455
                    	if (parseInt(event.target.value) >= 0) {
455
                    	if (parseInt(event.target.value) >= 0) {
456
                    		
456
                    		
457
                    		el_customer_inform.style.display = 'inline-block';
457
                    		el_customer_inform.style.display = 'inline-block';
458
                    		
458
                    		
459
                        } else {
459
                        } else {
460
                    		
460
                    		
461
                    		el_customer_inform.style.display = 'none';
461
                    		el_customer_inform.style.display = 'none';
462
                    		
462
                    		
463
                        }
463
                        }
464
                    	
464
                    	
-
 
465
						let el_doaction = document.getElementById('doaction');
-
 
466
						
-
 
467
						if (event.target.value === 'writeMultiRechnung') {
-
 
468
							
-
 
469
							el_doaction.style.display = 'none';
-
 
470
							
-
 
471
                        } else {
-
 
472
							
-
 
473
							el_doaction.style.display = 'block';
-
 
474
							
-
 
475
                        }
-
 
476
						
465
                    });
477
                    });
466
                    
478
                    
467
                </script>
479
                </script>
468
 
480
 
469
                <div class="multiRechnung_tab" id="multiRechnung_inform" style="display:none;">
481
                <div class="multiRechnung_tab" id="multiRechnung_inform" style="display:none;">
Line 482... Line 494...
482
                    <input type="checkbox" name="wpsg_Multirechnung_url" value="1" id="invoice_url" />
494
                    <input type="checkbox" name="wpsg_Multirechnung_url" value="1" id="invoice_url" />
483
                    <label for="invoice_url"><?php echo __('URL Benachrichtigung', 'wpsg'); ?></label>
495
                    <label for="invoice_url"><?php echo __('URL Benachrichtigung', 'wpsg'); ?></label>
484
                    <br />
496
                    <br />
485
                    <label for="invoice_date"><?php echo __('Rechnungsdatum', 'wpsg') ;?></label>
497
                    <label for="invoice_date"><?php echo __('Rechnungsdatum', 'wpsg') ;?></label>
486
                    <input type="date" value="<?php echo date('Y-m-d'); ?>" name="wpsg_Multirechnung_datum" id="invoice_date" />
498
                    <input type="date" value="<?php echo date('Y-m-d'); ?>" name="wpsg_Multirechnung_datum" id="invoice_date" />
-
 
499
                    
-
 
500
                    <br />
-
 
501
                    
-
 
502
                    <input type="hidden" name="preview" id="wpsg_mod_rechnungen_preview" />
-
 
503
                    
-
 
504
                    <input type="submit" name="wpsg_order_doaction" value="<?php echo _('Vorschau'); ?>" id="wpsg_mod_rechnungen_button_preview" />                    
-
 
505
                    <input type="submit" name="wpsg_order_doaction" value="<?php echo _('Erstellen'); ?>" id="wpsg_mod_rechnungen_button_submit"  />
-
 
506
                    
-
 
507
                    <script>
-
 
508
                        
-
 
509
                        let el_order_form = document.getElementById('order_form'); 
-
 
510
                    
-
 
511
                        document.getElementById('wpsg_mod_rechnungen_button_preview').addEventListener('click', () => {
-
 
512
							
-
 
513
							el_order_form.setAttribute('target', '_blank');
-
 
514
							document.getElementById('wpsg_mod_rechnungen_preview').value = '1'; 
-
 
515
						
-
 
516
						} );
-
 
517
						
-
 
518
                        document.getElementById('wpsg_mod_rechnungen_button_submit').addEventListener('click', () => { 
-
 
519
						
-
 
520
							el_order_form.setAttribute('target', '');
-
 
521
							document.getElementById('wpsg_mod_rechnungen_preview').value = '0'; 
-
 
522
						
-
 
523
						} );
-
 
524
                            
-
 
525
                    </script>
-
 
526
                    
487
                </div>
527
                </div>
488
 
528
 
489
                <script>
529
                <script>
490
                    
530
                    
491
                    let el_multiRechnung_inform = document.getElementById('multiRechnung_inform');
531
                    let el_multiRechnung_inform = document.getElementById('multiRechnung_inform');
Line 501... Line 541...
501
                    		el_multiRechnung_inform.style.display = 'none';
541
                    		el_multiRechnung_inform.style.display = 'none';
502
                    		
542
                    		
503
                        }
543
                        }
504
                    	
544
                    	
505
                    });
545
                    });
506
                    
546
                     
507
                </script>
547
                </script>
508
                
548
                
509
            </div>
549
            </div>
510
 
550
 
511
            <div style="margin-right:-15px;">
551
            <div style="margin-right:-15px;">