Subversion Repositories wpShopGermany4

Rev

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

Rev 7305 Rev 7613
Line 1... Line 1...
1
<?php
1
<?php
2
 
2
 
3
	/**
3
	/**
4
	 * Template für die Integration der Versandadresse in die Bestellansicht
4
	 * Template für die Integration der Versandadresse in die Bestellansicht
5
	 */
5
	 */
6
	//wpsg_debug($this->view);
-
 
-
 
6
	
7
?>
7
?>
8
 
8
 
9
<script type="text/javascript">/* <![CDATA[ */
9
<script>
10
 
10
 
11
	function wpsg_saveShippingAdress()
11
	function wpsg_saveShippingAdress() {
12
	{
-
 
13
 
12
 
14
        jQuery('#wpsg_backend_loading').show();
13
        jQuery('#wpsg_backend_loading').show();
15
 
14
 
16
        jQuery.ajax( {
15
        jQuery.ajax( {
-
 
16
            url: '<?php 
-
 
17
				
17
            url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_shippingadress&edit_id=<?php echo $this->view['data']['id']; ?>&noheader=1',
18
				echo wpsg_admin_url('Order', 'ajax', ['mod' => 'wpsg_mod_shippingadress', 'edit_id' => $this->view['data']['id']], ['noheader' => '1'], true);
-
 
19
				
-
 
20
			?>',
18
            data: {
21
            data: {
19
                form_data: jQuery('#shipping_dialog_content input, #shipping_dialog_content select').serialize()
22
                form_data: jQuery('#shipping_dialog_content input, #shipping_dialog_content select').serialize()
20
            },
23
            },
21
            success: function(data) {
24
            success: function() {
22
 
25
 
23
                location.href = location.href;
26
				location.reload();
24
 
27
 
25
            }
28
            }
26
        } );
29
        } );
27
 
30
 
28
		return false;
31
		return false;
29
		
32
		
30
	} // function wpsg_saveShippingAdress()
-
 
-
 
33
	} 
31
 
34
 
32
/* ]]> */</script>
35
</script>
33
 
36
 
34
<div class="modal fade" tabindex="-1" role="dialog" id="wpsg_customer_shipping_edit">
37
<div class="modal fade" tabindex="-1" role="dialog" id="wpsg_customer_shipping_edit">
35
    <div class="modal-dialog" role="document">
38
    <div class="modal-dialog" role="document">
36
        <div class="modal-content">
39
        <div class="modal-content">
37
            <div class="modal-header">
40
            <div class="modal-header">
Line 54... Line 57...
54
					<?php } ?>
57
					<?php } ?>
55
						
58
						
56
                    <?php echo wpsg_drawForm_Input('dialog_shipping_plz', __('Postleitzahl', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_plz']); ?>
59
                    <?php echo wpsg_drawForm_Input('dialog_shipping_plz', __('Postleitzahl', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_plz']); ?>
57
                    <?php echo wpsg_drawForm_Input('dialog_shipping_ort', __('Ort', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_ort']); ?>
60
                    <?php echo wpsg_drawForm_Input('dialog_shipping_ort', __('Ort', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_ort']); ?>
58
                    <?php echo wpsg_drawForm_Select('dialog_shipping_land', __('Land', 'wpsg'), $this->view['arCountry'], $this->view['wpsg_mod_shippingadress']['shipping_land']); ?>
61
                    <?php echo wpsg_drawForm_Select('dialog_shipping_land', __('Land', 'wpsg'), $this->view['arCountry'], $this->view['wpsg_mod_shippingadress']['shipping_land']); ?>
-
 
62
					
-
 
63
					<br />
-
 
64
					
-
 
65
					<?php echo wpsg_drawForm_Checkbox('dialog_delete', __('Lieferadresse löschen', 'wpsg'), false); ?>
-
 
66
					
59
                </div>
67
                </div>
60
 
68
 
61
            </div>
69
            </div>
62
            
70
            
63
            <div class="modal-footer">
71
            <div class="modal-footer">
Line 68... Line 76...
68
    </div>
76
    </div>
69
</div>
77
</div>
70
 
78
 
71
<?php echo wpsg_drawForm_TextStart(); ?>
79
<?php echo wpsg_drawForm_TextStart(); ?>
72
 
80
 
-
 
81
	<?php if (wpsg_isSizedArray($this->view['wpsg_mod_shippingadress'])) { ?>
-
 
82
	
73
    <?php if (trim($this->view['wpsg_mod_shippingadress']['shipping_firma']) != '') { ?>
83
		<?php if (trim($this->view['wpsg_mod_shippingadress']['shipping_firma']) != '') { ?>
74
    <?php echo wpsg_hspc($this->view['wpsg_mod_shippingadress']['shipping_firma']); ?><br />
84
		<?php echo wpsg_hspc($this->view['wpsg_mod_shippingadress']['shipping_firma']); ?><br />
75
    <?php } ?>
85
		<?php } ?>
76
    <?php
86
		<?php
77
 
87
	
78
        if (wpsg_isSizedString($this->view['wpsg_mod_shippingadress']['shipping_title']) && $this->view['wpsg_mod_shippingadress']['shipping_title'] != '-1')
88
			if (wpsg_isSizedString($this->view['wpsg_mod_shippingadress']['shipping_title']) && $this->view['wpsg_mod_shippingadress']['shipping_title'] != '-1')
79
            echo $this->view['arTitles'][$this->view['wpsg_mod_shippingadress']['shipping_title']];
89
				echo $this->view['arTitles'][$this->view['wpsg_mod_shippingadress']['shipping_title']];
80
 
90
	
81
    ?> <?php echo wpsg_hspc($this->view['wpsg_mod_shippingadress']['shipping_vname']); ?> <?php echo wpsg_hspc($this->view['wpsg_mod_shippingadress']['shipping_name']); ?><br />
91
		?> <?php echo wpsg_hspc($this->view['wpsg_mod_shippingadress']['shipping_vname']); ?> <?php echo wpsg_hspc($this->view['wpsg_mod_shippingadress']['shipping_name']); ?><br />
82
    <?php echo wpsg_hspc($this->view['wpsg_mod_shippingadress']['shipping_strasse'].rtrim(' '.wpsg_getStr($this->view['wpsg_mod_shippingadress']['shipping_nr']))); ?><br />
92
		<?php echo wpsg_hspc($this->view['wpsg_mod_shippingadress']['shipping_strasse'].rtrim(' '.wpsg_getStr($this->view['wpsg_mod_shippingadress']['shipping_nr']))); ?><br />
83
	<?php $lk = $this->view['wpsg_mod_shippingadress']['oCountry']->getShorttext(); ?>
93
		<?php $lk = $this->view['wpsg_mod_shippingadress']['oCountry']->getShorttext(); ?>
84
    <?php echo wpsg_hspc($this->view['wpsg_mod_shippingadress']['shipping_plz']); ?> <?php echo wpsg_hspc($this->view['wpsg_mod_shippingadress']['shipping_ort']); ?> <?php echo wpsg_hspc($lk); ?><br />
94
		<?php echo wpsg_hspc($this->view['wpsg_mod_shippingadress']['shipping_plz']); ?> <?php echo wpsg_hspc($this->view['wpsg_mod_shippingadress']['shipping_ort']); ?> <?php echo wpsg_hspc($lk); ?><br />
-
 
95
		<a style="position: absolute; right:25px; top:10px; display:inline-block;" data-toggle="modal" data-target="#wpsg_customer_shipping_edit" href="#" title="<?php echo __('Lieferanschrift ändern', 'wpsg'); ?>">
-
 
96
			<span class="glyphicon glyphicon-pencil"></span>
-
 
97
		</a>
-
 
98
 
-
 
99
	<?php } else { ?>
-
 
100
			
-
 
101
		<?php echo __('Keine abweichende Lieferadresse angegeben.', 'wpsg'); ?>
-
 
102
		
85
    <a style="position: absolute; right:25px; top:10px; display:inline-block;" data-toggle="modal" data-target="#wpsg_customer_shipping_edit" href="#" title="<?php echo __('Lieferanschrift ändern', 'wpsg'); ?>">
103
		<a style="position: absolute; right:25px; top:10px; display:inline-block;" data-toggle="modal" data-target="#wpsg_customer_shipping_edit" href="#" title="<?php echo __('Lieferanschrift ändern', 'wpsg'); ?>">
86
        <span class="glyphicon glyphicon-pencil"></span>
104
			<span class="glyphicon glyphicon-pencil"></span>
87
    </a>
105
		</a>
-
 
106
		
-
 
107
	<?php } ?>
88
 
108
 
89
<?php echo wpsg_drawForm_TextEnd(__('Lieferadresse', 'wpsg')); ?>
109
<?php echo wpsg_drawForm_TextEnd(__('Lieferadresse', 'wpsg')); ?>
90
 
110