Subversion Repositories wpShopGermany4

Rev

Rev 6793 | Rev 7305 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1414 daniel 1
<?php
2
 
3
	/**
4
	 * Template für die Integration der Versandadresse in die Bestellansicht
5
	 */
2706 david 6
	//wpsg_debug($this->view);
1414 daniel 7
?>
5049 daniel 8
 
9
<script type="text/javascript">/* <![CDATA[ */
10
 
5720 daniel 11
	function wpsg_saveShippingAdress()
5049 daniel 12
	{
13
 
5720 daniel 14
        jQuery('#wpsg_backend_loading').show();
5049 daniel 15
 
5720 daniel 16
        jQuery.ajax( {
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
            data: {
19
                form_data: jQuery('#shipping_dialog_content input, #shipping_dialog_content select').serialize()
20
            },
21
            success: function(data) {
5049 daniel 22
 
5720 daniel 23
                location.href = location.href;
24
 
25
            }
26
        } );
27
 
5049 daniel 28
		return false;
29
 
5720 daniel 30
	} // function wpsg_saveShippingAdress()
5049 daniel 31
 
32
/* ]]> */</script>
33
 
5720 daniel 34
<div class="modal fade" tabindex="-1" role="dialog" id="wpsg_customer_shipping_edit">
35
    <div class="modal-dialog" role="document">
36
        <div class="modal-content">
37
            <div class="modal-header">
38
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
6081 hartmut 39
                <h4 class="modal-title"><?php echo __('Lieferanschrift bearbeiten', 'wpsg'); ?></h4>
5720 daniel 40
            </div>
41
            <div class="modal-body">
42
 
43
                <div id="shipping_dialog_content">
44
                    <?php echo wpsg_drawForm_Input('dialog_shipping_firma', __('Firma', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_firma']); ?>
6792 hartmut 45
                    <?php echo wpsg_drawForm_Select('dialog_shipping_title', __('Anrede', 'wpsg'), $this->view['arTitles'], $this->view['wpsg_mod_shippingadress']['shipping_title'], array('noIndex' => true)); ?>
5720 daniel 46
                    <?php echo wpsg_drawForm_Input('dialog_shipping_vname', __('Vorname', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_vname']); ?>
47
                    <?php echo wpsg_drawForm_Input('dialog_shipping_name', __('Name', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_name']); ?>
48
                    <?php echo wpsg_drawForm_Input('dialog_shipping_strasse', __('Straße', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_strasse']); ?>
7247 daniel 49
 
50
					<?php if (($this->view['pflicht']['wpsg_showNr']??'') === '1') { ?>
51
 
52
						<?php echo wpsg_drawForm_Input('dialog_shipping_nr', __('Hausnummer', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_nr']); ?>
53
 
54
					<?php } ?>
55
 
5720 daniel 56
                    <?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']); ?>
58
                    <?php echo wpsg_drawForm_Select('dialog_shipping_land', __('Land', 'wpsg'), $this->view['arCountry'], $this->view['wpsg_mod_shippingadress']['shipping_land']); ?>
59
                </div>
60
 
61
            </div>
6793 hartmut 62
 
5720 daniel 63
            <div class="modal-footer">
64
                <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo __('Schließen', 'wpsg'); ?></button>
65
                <button type="button" class="btn btn-primary" onclick="return wpsg_saveShippingAdress();"><?php echo __('Speichern', 'wpsg'); ?></button>
66
            </div>
67
        </div>
68
    </div>
1414 daniel 69
</div>
5720 daniel 70
 
71
<?php echo wpsg_drawForm_TextStart(); ?>
72
 
73
    <?php if (trim($this->view['wpsg_mod_shippingadress']['shipping_firma']) != '') { ?>
74
    <?php echo wpsg_hspc($this->view['wpsg_mod_shippingadress']['shipping_firma']); ?><br />
75
    <?php } ?>
76
    <?php
77
 
78
        if (wpsg_isSizedString($this->view['wpsg_mod_shippingadress']['shipping_title']) && $this->view['wpsg_mod_shippingadress']['shipping_title'] != '-1')
6104 hartmut 79
            echo $this->view['arTitles'][$this->view['wpsg_mod_shippingadress']['shipping_title']];
5720 daniel 80
 
81
    ?> <?php echo wpsg_hspc($this->view['wpsg_mod_shippingadress']['shipping_vname']); ?> <?php echo wpsg_hspc($this->view['wpsg_mod_shippingadress']['shipping_name']); ?><br />
7247 daniel 82
    <?php echo wpsg_hspc($this->view['wpsg_mod_shippingadress']['shipping_strasse'].rtrim(' '.($this->view['wpsg_mod_shippingadress']['shipping_nr']??''))); ?><br />
6675 hartmut 83
	<?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 />
6667 thomas 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'); ?>">
5720 daniel 86
        <span class="glyphicon glyphicon-pencil"></span>
87
    </a>
88
 
89
<?php echo wpsg_drawForm_TextEnd(__('Lieferadresse', 'wpsg')); ?>
90