Line 6... |
Line 6... |
6 |
//wpsg_debug($this->view);
|
6 |
//wpsg_debug($this->view);
|
7 |
?>
|
7 |
?>
|
8 |
|
8 |
|
9 |
<script type="text/javascript">/* <![CDATA[ */
|
9 |
<script type="text/javascript">/* <![CDATA[ */
|
10 |
|
10 |
|
11 |
function wpsg_editShippingAdress()
|
11 |
function wpsg_saveShippingAdress()
|
12 |
{
|
12 |
{
|
13 |
|
13 |
|
14 |
jQuery('#wpsg_ShippingDialog').dialog( {
|
- |
|
15 |
'dialogClass': 'wp-dialog',
|
- |
|
16 |
'modal': true,
|
- |
|
17 |
'width': 600,
|
- |
|
18 |
'title': '<?php echo __('Lieferanschrift ändern', 'wpsg'); ?>',
|
- |
|
19 |
'autoOpen': true,
|
- |
|
20 |
'closeOnEscape': true,
|
- |
|
21 |
'buttons': {
|
- |
|
22 |
"<?php echo __('Speichern', 'wpsg'); ?>": function() {
|
- |
|
23 |
|
- |
|
24 |
jQuery('#wpsg_backend_loading').show();
|
14 |
jQuery('#wpsg_backend_loading').show();
|
25 |
jQuery(this).dialog('close');
|
- |
|
26 |
|
15 |
|
27 |
jQuery.ajax( {
|
16 |
jQuery.ajax( {
|
28 |
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',
|
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',
|
29 |
data: {
|
18 |
data: {
|
30 |
form_data: jQuery('#wpsg_ShippingDialog input, #wpsg_ShippingDialog select').serialize()
|
19 |
form_data: jQuery('#shipping_dialog_content input, #shipping_dialog_content select').serialize()
|
31 |
},
|
20 |
},
|
32 |
success: function(data) {
|
21 |
success: function(data) {
|
33 |
|
22 |
|
34 |
location.href = location.href;
|
23 |
location.href = location.href;
|
35 |
|
- |
|
36 |
}
|
- |
|
37 |
} );
|
- |
|
38 |
|
24 |
|
39 |
}
|
25 |
}
|
40 |
}
|
26 |
} );
|
41 |
} );
|
- |
|
42 |
|
27 |
|
43 |
return false;
|
28 |
return false;
|
44 |
|
29 |
|
45 |
}
|
- |
|
- |
|
30 |
} // function wpsg_saveShippingAdress()
|
46 |
|
31 |
|
47 |
/* ]]> */</script>
|
32 |
/* ]]> */</script>
|
48 |
|
33 |
|
49 |
<div class="wpsg_form_field">
|
34 |
<div class="modal fade" tabindex="-1" role="dialog" id="wpsg_customer_shipping_edit">
|
50 |
<div class="wpsg_form_left">
|
35 |
<div class="modal-dialog" role="document">
|
51 |
<?php echo __('Lieferadresse', 'wpsg'); ?>:
|
36 |
<div class="modal-content">
|
52 |
<a style="float:none; display:inline-block;" onclick="return wpsg_editShippingAdress();" class="wpsg_icon wpsg_icon_edit" href="#" title="<?php echo __('Rechnungsanschrift ändern', 'wpsg'); ?>"></a>
|
- |
|
53 |
</div>
|
- |
|
54 |
<div class="wpsg_form_right">
|
37 |
<div class="modal-header">
|
55 |
<p>
|
- |
|
56 |
<?php if (trim($this->view['wpsg_mod_shippingadress']['shipping_firma']) != '') { ?>
|
38 |
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
57 |
<?php echo wpsg_hspc($this->view['wpsg_mod_shippingadress']['shipping_firma']); ?><br />
|
39 |
<h4 class="modal-title"><?php echo __('Lieferanschrift beatbeiten', 'wpsg'); ?></h4>
|
58 |
<?php } ?>
|
40 |
</div>
|
59 |
<?php echo wpsg_hspc($this->view['wpsg_mod_shippingadress']['shipping_title']); ?> <?php echo wpsg_hspc($this->view['wpsg_mod_shippingadress']['shipping_vname']); ?> <?php echo wpsg_hspc($this->view['wpsg_mod_shippingadress']['shipping_name']); ?><br />
|
41 |
<div class="modal-body">
|
60 |
<?php echo wpsg_hspc($this->view['wpsg_mod_shippingadress']['shipping_strasse']); ?><br />
|
- |
|
61 |
<?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 />
|
- |
|
62 |
</p>
|
- |
|
63 |
</div>
|
- |
|
64 |
|
42 |
|
65 |
<div id="wpsg_ShippingDialog" class="wpsg_dialog" style="display:none;">
|
43 |
<div id="shipping_dialog_content">
|
66 |
<?php echo wpsg_drawForm_Input('dialog_shipping_firma', __('Firma', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_firma']); ?>
|
44 |
<?php echo wpsg_drawForm_Input('dialog_shipping_firma', __('Firma', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_firma']); ?>
|
67 |
<?php echo wpsg_drawForm_Select('dialog_shipping_title', __('Anschrift', 'wpsg'), $this->view['arTitles'], $this->view['wpsg_mod_shippingadress']['shipping_title'], array('noIndex' => true)); ?>
|
45 |
<?php echo wpsg_drawForm_Select('dialog_shipping_title', __('Anschrift', 'wpsg'), $this->view['arTitles'], $this->view['wpsg_mod_shippingadress']['shipping_title'], array('noIndex' => true)); ?>
|
68 |
<?php echo wpsg_drawForm_Input('dialog_shipping_vname', __('Vorname', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_vname']); ?>
|
46 |
<?php echo wpsg_drawForm_Input('dialog_shipping_vname', __('Vorname', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_vname']); ?>
|
69 |
<?php echo wpsg_drawForm_Input('dialog_shipping_name', __('Name', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_name']); ?>
|
47 |
<?php echo wpsg_drawForm_Input('dialog_shipping_name', __('Name', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_name']); ?>
|
70 |
<?php echo wpsg_drawForm_Input('dialog_shipping_strasse', __('Straße', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_strasse']); ?>
|
48 |
<?php echo wpsg_drawForm_Input('dialog_shipping_strasse', __('Straße', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_strasse']); ?>
|
71 |
<?php echo wpsg_drawForm_Input('dialog_shipping_plz', __('Postleitzahl', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_plz']); ?>
|
49 |
<?php echo wpsg_drawForm_Input('dialog_shipping_plz', __('Postleitzahl', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_plz']); ?>
|
72 |
<?php echo wpsg_drawForm_Input('dialog_shipping_ort', __('Ort', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_ort']); ?>
|
50 |
<?php echo wpsg_drawForm_Input('dialog_shipping_ort', __('Ort', 'wpsg'), $this->view['wpsg_mod_shippingadress']['shipping_ort']); ?>
|
73 |
<?php echo wpsg_drawForm_Select('dialog_shipping_land', __('Land', 'wpsg'), $this->view['arCountry'], $this->view['wpsg_mod_shippingadress']['shipping_land']); ?>
|
51 |
<?php echo wpsg_drawForm_Select('dialog_shipping_land', __('Land', 'wpsg'), $this->view['arCountry'], $this->view['wpsg_mod_shippingadress']['shipping_land']); ?>
|
74 |
</div>
|
52 |
</div>
|
75 |
|
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>
|
76 |
</div>
|
61 |
</div>
|
- |
|
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')
|
- |
|
71 |
echo $this->view['arTitles'][$this->view['wpsg_mod_shippingadress']['shipping_title']];
|
- |
|
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'); ?>">
|
77 |
<div class="wpsg_clear"></div>
|
78 |
<span class="glyphicon glyphicon-pencil"></span>
|
- |
|
79 |
</a>
|
- |
|
80 |
|
- |
|
81 |
<?php echo wpsg_drawForm_TextEnd(__('Lieferadresse', 'wpsg')); ?>
|
- |
|
82 |
|