Subversion Repositories wpShopGermany4

Rev

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

Rev 6834 Rev 7804
Line 2... Line 2...
2
 
2
 
3
    /**
3
    /**
4
     * Template für die Anzeige des Abo Statuses in der Hauptbestellung
4
     * Template für die Anzeige des Abo Statuses in der Hauptbestellung
5
     */
5
     */
6
    
6
    
-
 
7
    $view = $this->view['wpsg_mod_abo'];
7
    
8
    
8
?>
9
?>
9
      
10
       
10
<?php foreach ($this->view['arOrderedAboProducts'] as $oOrderProduct) { ?>
11
<?php foreach ($this->view['arOrderedAboProducts'] as $oOrderProduct) { ?>
11
 
12
 
12
    <?php echo wpsg_drawForm_AdminboxStart($oOrderProduct->getProduct()->getProductName()); ?>
13
    <?php echo wpsg_drawForm_AdminboxStart($oOrderProduct->getProduct()->getProductName()); ?>
13
 
14
 
14
        <?php $tExpire = strtotime($this->callMod('wpsg_mod_abo', 'getOrderAboExpiration', Array($_REQUEST['edit_id'], $oOrderProduct->getProductKey()))); echo wpsg_drawForm_Text(__('Laufzeit', 'wpsg'), wpsg_formatTimestamp($tExpire), false, Array('class_content_wrap' => (($tExpire > time())?'wpsg_mod_abo_future_expire':'wpsg_mod_abo_expired'))); ?>
15
        <?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'))); ?>
-
 
17
	
-
 
18
		<script>
-
 
19
 
-
 
20
            moment.locale('de');
-
 
21
			
-
 
22
            jQuery('#wpsg_mod_abo_duration').editable({
-
 
23
				type: 'combodate',
-
 
24
                success: function(response, newValue) {
-
 
25
				    
-
 
26
					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',
-
 
28
						data: {
-
 
29
                            field: 'duration',
-
 
30
							product_key: '<?php echo $oOrderProduct->getProductKey(); ?>',
-
 
31
							order_id: '<?php echo $view['oOrder']->getId() ?>',
-
 
32
							date: newValue.format()
-
 
33
                        },
-
 
34
						success: function(response) {
-
 
35
                             
-
 
36
						}
-
 
37
					})
-
 
38
				    
-
 
39
                },
-
 
40
                format: 'DD.MM.YYYY HH:mm:ss',
-
 
41
                viewformat: 'DD.MM.YYYY HH:mm:ss',
-
 
42
                template: 'D MMM YYYY  HH:mm:ss',
-
 
43
                combodate: {
-
 
44
                    minYear: 2000,
-
 
45
                    maxYear: <?php echo (intval(date('Y')) + 1); ?>,
-
 
46
                    minuteStep: 1
-
 
47
                }
-
 
48
            }); 
-
 
49
			
-
 
50
		</script>
15
 
51
 
16
        <?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'))); ?>
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'))); ?>
17
    
53
    
18
        <?php echo wpsg_drawForm_TextStart(); ?>
54
        <?php echo wpsg_drawForm_TextStart(); ?>
19
        
55