Subversion Repositories wpShopGermany4

Rev

Rev 6081 | Rev 6104 | 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']); ?>
45
                    <?php echo wpsg_drawForm_Select('dialog_shipping_title', __('Anschrift', 'wpsg'), $this->view['arTitles'], $this->view['wpsg_mod_shippingadress']['shipping_title'], array('noIndex' => true)); ?>
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']); ?>
49
                    <?php echo wpsg_drawForm_Input('dialog_shipping_plz', __('Postleitzahl', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_plz']); ?>
50
                    <?php echo wpsg_drawForm_Input('dialog_shipping_ort', __('Ort', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_ort']); ?>
51
                    <?php echo wpsg_drawForm_Select('dialog_shipping_land', __('Land', 'wpsg'), $this->view['arCountry'], $this->view['wpsg_mod_shippingadress']['shipping_land']); ?>
52
                </div>
53
 
54
            </div>
55
            <div class="modal-footer">
56
                <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo __('Schließen', 'wpsg'); ?></button>
57
                <button type="button" class="btn btn-primary" onclick="return wpsg_saveShippingAdress();"><?php echo __('Speichern', 'wpsg'); ?></button>
58
            </div>
59
        </div>
60
    </div>
1414 daniel 61
</div>
5720 daniel 62
 
63
<?php echo wpsg_drawForm_TextStart(); ?>
64
 
65
    <?php if (trim($this->view['wpsg_mod_shippingadress']['shipping_firma']) != '') { ?>
66
    <?php echo wpsg_hspc($this->view['wpsg_mod_shippingadress']['shipping_firma']); ?><br />
67
    <?php } ?>
68
    <?php
69
 
70
        if (wpsg_isSizedString($this->view['wpsg_mod_shippingadress']['shipping_title']) && $this->view['wpsg_mod_shippingadress']['shipping_title'] != '-1')
6094 hartmut 71
            echo $this->view['wpsg_mod_shippingadress']['shipping_title'];
5720 daniel 72
 
73
    ?> <?php echo wpsg_hspc($this->view['wpsg_mod_shippingadress']['shipping_vname']); ?> <?php echo wpsg_hspc($this->view['wpsg_mod_shippingadress']['shipping_name']); ?><br />
74
    <?php echo wpsg_hspc($this->view['wpsg_mod_shippingadress']['shipping_strasse']); ?><br />
75
    <?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($this->view['shipping_country']['kuerzel']); ?><br />
76
 
77
    <a style="position: absolute; right:25px; top:10px; display:inline-block;" data-toggle="modal" data-target="#wpsg_customer_shipping_edit" href="#" title="<?php echo __('Rechnungsanschrift ändern', 'wpsg'); ?>">
78
        <span class="glyphicon glyphicon-pencil"></span>
79
    </a>
80
 
81
<?php echo wpsg_drawForm_TextEnd(__('Lieferadresse', 'wpsg')); ?>
82