Subversion Repositories wpShopGermany4

Rev

Rev 6792 | Rev 7247 | 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']); ?>
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>
6793 hartmut 55
 
5720 daniel 56
            <div class="modal-footer">
57
                <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo __('Schließen', 'wpsg'); ?></button>
58
                <button type="button" class="btn btn-primary" onclick="return wpsg_saveShippingAdress();"><?php echo __('Speichern', 'wpsg'); ?></button>
59
            </div>
60
        </div>
61
    </div>
1414 daniel 62
</div>
5720 daniel 63
 
64
<?php echo wpsg_drawForm_TextStart(); ?>
65
 
66
    <?php if (trim($this->view['wpsg_mod_shippingadress']['shipping_firma']) != '') { ?>
67
    <?php echo wpsg_hspc($this->view['wpsg_mod_shippingadress']['shipping_firma']); ?><br />
68
    <?php } ?>
69
    <?php
70
 
71
        if (wpsg_isSizedString($this->view['wpsg_mod_shippingadress']['shipping_title']) && $this->view['wpsg_mod_shippingadress']['shipping_title'] != '-1')
6104 hartmut 72
            echo $this->view['arTitles'][$this->view['wpsg_mod_shippingadress']['shipping_title']];
5720 daniel 73
 
74
    ?> <?php echo wpsg_hspc($this->view['wpsg_mod_shippingadress']['shipping_vname']); ?> <?php echo wpsg_hspc($this->view['wpsg_mod_shippingadress']['shipping_name']); ?><br />
75
    <?php echo wpsg_hspc($this->view['wpsg_mod_shippingadress']['shipping_strasse']); ?><br />
6675 hartmut 76
	<?php $lk = $this->view['wpsg_mod_shippingadress']['oCountry']->getShorttext(); ?>
77
    <?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 78
    <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 79
        <span class="glyphicon glyphicon-pencil"></span>
80
    </a>
81
 
82
<?php echo wpsg_drawForm_TextEnd(__('Lieferadresse', 'wpsg')); ?>
83