Line 32... |
Line 32... |
32 |
<form method="POST" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=switchStatus&edit_id=<?php echo $this->view['oOrder']->id; ?>&noheader=1" enctype="multipart/form-data">
|
32 |
<form method="POST" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=switchStatus&edit_id=<?php echo $this->view['oOrder']->id; ?>&noheader=1" enctype="multipart/form-data">
|
33 |
|
33 |
|
34 |
<?php echo wpsg_drawForm_Select('status', __('Neuer Status', 'wpsg'), $this->arStatus, $this->view['data']['status']); ?>
|
34 |
<?php echo wpsg_drawForm_Select('status', __('Neuer Status', 'wpsg'), $this->arStatus, $this->view['data']['status']); ?>
|
35 |
<?php echo wpsg_drawForm_Checkbox('sendMail', __('Kunden informieren', 'wpsg'), 0); ?>
|
35 |
<?php echo wpsg_drawForm_Checkbox('sendMail', __('Kunden informieren', 'wpsg'), 0); ?>
|
36 |
|
36 |
|
- |
|
37 |
<?php if ($this->hasMod('wpsg_mod_rechnungen')) { $db_invoice = $this->callMod('wpsg_mod_rechnungen', 'getOrderInvoice', [$this->view['oOrder']->id]); ?>
|
- |
|
38 |
<?php if (wpsg_isSizedInt($db_invoice['id'])) { ?>
|
- |
|
39 |
<script>
|
- |
|
40 |
|
- |
|
41 |
jQuery('#sendMail').on('click', function() {
|
- |
|
42 |
|
- |
|
43 |
if (jQuery(this).prop('checked')) {
|
- |
|
44 |
|
- |
|
45 |
jQuery('#layer_attachInvoice').show();
|
- |
|
46 |
|
- |
|
47 |
} else {
|
- |
|
48 |
|
- |
|
49 |
jQuery('#layer_attachInvoice').hide();
|
- |
|
50 |
|
- |
|
51 |
}
|
- |
|
52 |
|
- |
|
53 |
}).click();
|
- |
|
54 |
|
- |
|
55 |
</script>
|
- |
|
56 |
<div id="layer_attachInvoice">
|
- |
|
57 |
<?php echo wpsg_drawForm_Checkbox('attachInvoice', __('Rechnung anhängen', 'wpsg'), 0); ?>
|
- |
|
58 |
</div>
|
- |
|
59 |
<?php } ?>
|
- |
|
60 |
<?php } ?>
|
- |
|
61 |
|
37 |
<br />
|
62 |
<br />
|
38 |
<?php $this->callMods('order_view_switchStatus', array(&$this->view['data']['id'])); ?>
|
63 |
<?php $this->callMods('order_view_switchStatus', array(&$this->view['data']['id'])); ?>
|
39 |
|
64 |
|
40 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
65 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
41 |
<input type="submit" class="button" value="<?php echo __('Status ändern', 'wpsg'); ?>" />
|
66 |
<input type="submit" class="button" value="<?php echo __('Status ändern', 'wpsg'); ?>" />
|