Subversion Repositories wpShopGermany4

Rev

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

Rev 7804 Rev 7807
Line 6... Line 6...
6
    
6
    
7
    $view = $this->view['wpsg_mod_abo'];
7
    $view = $this->view['wpsg_mod_abo'];
8
    
8
    
9
?>
9
?>
10
       
10
       
11
<?php foreach ($this->view['arOrderedAboProducts'] as $oOrderProduct) { ?>
11
<?php foreach ($this->view['arOrderedAboProducts'] as $oOrderProduct) {
-
 
12
 
-
 
13
    $oAbo = wpsg_abo::getFromOrderAndProduct($view['oOrder']->getId(), $oOrderProduct->getId());
-
 
14
	
-
 
15
	?>
12
 
16
 
13
    <?php echo wpsg_drawForm_AdminboxStart($oOrderProduct->getProduct()->getProductName()); ?>
17
    <?php echo wpsg_drawForm_AdminboxStart($oOrderProduct->getProduct()->getProductName()); ?>
14
 
18
 
15
        <?php $tExpire = strtotime($this->callMod('wpsg_mod_abo', 'getOrderAboExpiration', Array($_REQUEST['edit_id'], $oOrderProduct->getProductKey()))); ?>
19
        <?php $tExpire = strtotime($this->callMod('wpsg_mod_abo', 'getOrderAboExpiration', Array($_REQUEST['edit_id'], $oOrderProduct->getProductKey()))); ?>
16
		<?php echo wpsg_drawForm_Text(__('Laufzeit', 'wpsg'), wpsg_formatTimestamp($tExpire), 'wpsg_mod_abo_duration', Array('class_content_wrap' => (($tExpire > time())?'wpsg_mod_abo_future_expire':'wpsg_mod_abo_expired'))); ?>
20
		<?php echo wpsg_drawForm_Text(__('Laufzeit', 'wpsg'), wpsg_formatTimestamp($tExpire), 'wpsg_mod_abo_duration', Array('class_content_wrap' => 'wpsg_abo_state wpsg_abo_state_class_'.$oAbo->getState())); ?>
17
	
21
	
18
		<script>
22
		<script>
19
 
23
 
20
            moment.locale('de');
24
            moment.locale('de');
21
			
25
			
22
            jQuery('#wpsg_mod_abo_duration').editable({
26
            jQuery('#wpsg_mod_abo_duration').editable({
23
				type: 'combodate',
27
				type: 'combodate',
-
 
28
                display: function(value) {
-
 
29
				    
-
 
30
                    jQuery(this).html(value.format('DD.MM.YYYY HH:mm:ss'));
-
 
31
				    
-
 
32
				},
24
                success: function(response, newValue) {
33
                success: function(response, newValue) {
25
				    
34
				    
26
					jQuery.ajax({
35
					jQuery.ajax({
27
                        url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_abo&subaction=admin_inlineEdit&noheader=1',
36
                        url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_abo&subaction=admin_inlineEdit&noheader=1',
28
						data: {
37
						data: {
Line 30... Line 39...
30
							product_key: '<?php echo $oOrderProduct->getProductKey(); ?>',
39
							product_key: '<?php echo $oOrderProduct->getProductKey(); ?>',
31
							order_id: '<?php echo $view['oOrder']->getId() ?>',
40
							order_id: '<?php echo $view['oOrder']->getId() ?>',
32
							date: newValue.format()
41
							date: newValue.format()
33
                        },
42
                        },
34
						success: function(response) {
43
						success: function(response) {
35
                             
44
 
-
 
45
                            jQuery('.wpsg_abo_state').attr("class", "col-sm-6 wpsg_abo_state_class_" + response.state)
-
 
46
                                                        
36
						}
47
						}
37
					})
48
					})
38
				    
49
				    
39
                },
50
                },
40
                format: 'DD.MM.YYYY HH:mm:ss',
51
                format: 'DD.MM.YYYY HH:mm:ss',
Line 48... Line 59...
48
            }); 
59
            }); 
49
			
60
			
50
		</script>
61
		</script>
51
 
62
 
52
        <?php echo wpsg_drawForm_Text(wpsg_translate(__('Preis (#1# Tage):', 'wpsg'), $oOrderProduct->getProduct()->wpsg_mod_abo_durration), wpsg_ff($oOrderProduct->getProduct()->wpsg_mod_abo_price, $this->get_option('wpsg_currency'))); ?>
63
        <?php echo wpsg_drawForm_Text(wpsg_translate(__('Preis (#1# Tage):', 'wpsg'), $oOrderProduct->getProduct()->wpsg_mod_abo_durration), wpsg_ff($oOrderProduct->getProduct()->wpsg_mod_abo_price, $this->get_option('wpsg_currency'))); ?>
-
 
64
		<?php
-
 
65
	
-
 
66
			$strURL = $this->callMod('wpsg_mod_abo', 'getRebuyLink', [$view['oOrder']->getId(), $oOrderProduct->getProductKey()]);
-
 
67
			$strURL = '<a href="'.$strURL.'">'.$strURL.'</a>';
-
 
68
	
-
 
69
			echo wpsg_drawForm_Text(__('URL für den Kauf einer Verlängerung', 'wpsg'), $strURL); 
-
 
70
			
-
 
71
		?>
53
    
72
    
54
        <?php echo wpsg_drawForm_TextStart(); ?>
73
        <?php echo wpsg_drawForm_TextStart(); ?>
55
        
74
        
56
            <?php $abo_product_status = $this->callMod('wpsg_mod_abo', 'getAboProductStatus', Array($_REQUEST['edit_id'], $oOrderProduct->getProductKey())); ?>
75
            <?php $abo_product_status = $this->callMod('wpsg_mod_abo', 'getAboProductStatus', Array($_REQUEST['edit_id'], $oOrderProduct->getProductKey())); ?>
57
    
76