5720 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
7787 |
daniel |
4 |
* User: Daschmi (https://daschmi.de)
|
5720 |
daniel |
5 |
* Date: 06.08.2016
|
|
|
6 |
* Time: 11:22
|
|
|
7 |
*/
|
|
|
8 |
|
|
|
9 |
?>
|
|
|
10 |
<?php echo wpsg_drawForm_AdminboxStart(__('Allgemein', 'wpsg')); ?>
|
|
|
11 |
|
|
|
12 |
<?php echo wpsg_drawForm_Text(__('Bestellnummer', 'wpsg'), $this->view['oOrder']->getNr().' ['.$this->view['oOrder']->getStateLabel().']'); ?>
|
|
|
13 |
<?php echo wpsg_drawForm_Text(__('Bestelldatum', 'wpsg'), wpsg_formatTimestamp($this->view['oOrder']->cdate)); ?>
|
6846 |
hartmut |
14 |
<?php echo wpsg_drawForm_Text(__('Bestellwert', 'wpsg'), wpsg_ff($this->view['oOrder']->getAmount(), $this->get_option('wpsg_currency')), 'wpsg_be_orderamount'); ?>
|
5720 |
daniel |
15 |
<?php echo wpsg_drawForm_Text(__('Bestellkommentar (Admin)', 'wpsg'), $this->view['data']['admincomment'], 'wpsg_order_admincomment', array('inlineEdit' => true, 'inlineEdit_type' => 'textarea', 'inlineEdit_url' => WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Order&noheader=1&action=setAdminComment&edit_id='.$this->view['data']['id'])); ?>
|
|
|
16 |
|
|
|
17 |
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
|
|
|
18 |
|
6683 |
daniel |
19 |
<?php $comment = $this->view['oOrder']->comment; if (wpsg_isSizedString($comment)) { ?>
|
|
|
20 |
|
|
|
21 |
<?php echo wpsg_drawForm_AdminboxStart(__('Bestellkommentar (Kunde)', 'wpsg')); ?>
|
|
|
22 |
|
|
|
23 |
<p>
|
|
|
24 |
<?php echo $comment; ?>
|
|
|
25 |
</p>
|
|
|
26 |
|
|
|
27 |
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
|
|
|
28 |
|
|
|
29 |
<?php } ?>
|
|
|
30 |
|
5720 |
daniel |
31 |
<?php echo wpsg_drawForm_AdminboxStart(__('Statusänderung', 'wpsg')); ?>
|
6909 |
thomas |
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">
|
5720 |
daniel |
33 |
|
|
|
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); ?>
|
|
|
36 |
|
8214 |
daniel |
37 |
<?php if ($this->hasMod('wpsg_mod_rechnungen')) {
|
|
|
38 |
|
|
|
39 |
$arInvoice = \wpsg\wpsg_invoice::findByOrderId($this->view['oOrder']->id);
|
|
|
40 |
|
|
|
41 |
if (sizeof($arInvoice) > 0) { ?>
|
7719 |
daniel |
42 |
<script>
|
|
|
43 |
|
|
|
44 |
jQuery('#sendMail').on('click', function() {
|
|
|
45 |
|
|
|
46 |
if (jQuery(this).prop('checked')) {
|
|
|
47 |
|
|
|
48 |
jQuery('#layer_attachInvoice').show();
|
|
|
49 |
|
|
|
50 |
} else {
|
|
|
51 |
|
|
|
52 |
jQuery('#layer_attachInvoice').hide();
|
|
|
53 |
|
|
|
54 |
}
|
|
|
55 |
|
|
|
56 |
}).click();
|
|
|
57 |
|
|
|
58 |
</script>
|
|
|
59 |
<div id="layer_attachInvoice">
|
|
|
60 |
<?php echo wpsg_drawForm_Checkbox('attachInvoice', __('Rechnung anhängen', 'wpsg'), 0); ?>
|
|
|
61 |
</div>
|
|
|
62 |
<?php } ?>
|
|
|
63 |
<?php } ?>
|
|
|
64 |
|
5720 |
daniel |
65 |
<br />
|
6350 |
hartmut |
66 |
<?php $this->callMods('order_view_switchStatus', array(&$this->view['data']['id'])); ?>
|
|
|
67 |
|
5720 |
daniel |
68 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
|
|
69 |
<input type="submit" class="button" value="<?php echo __('Status ändern', 'wpsg'); ?>" />
|
|
|
70 |
<?php echo wpsg_drawForm_TextEnd(); ?>
|
|
|
71 |
|
|
|
72 |
</form>
|
|
|
73 |
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
|
6220 |
hartmut |
74 |
|
6222 |
hartmut |
75 |
<?php if ($this->hasMod('wpsg_mod_orderupload')) { ?>
|
|
|
76 |
<?php echo wpsg_drawForm_AdminboxStart(__('Bestelluploads', 'wpsg')); ?>
|
|
|
77 |
|
|
|
78 |
<div class="inside">
|
|
|
79 |
<?php if (!wpsg_isSizedArray($this->view['arFiles'])) { ?>
|
|
|
80 |
<p class="wpsg_checkout_orderupload_backend">
|
|
|
81 |
<?php echo __('Keine Dateien hochgeladen.', 'wpsg'); ?>
|
|
|
82 |
</p>
|
|
|
83 |
<?php } else { ?>
|
|
|
84 |
<?php foreach ($this->view['arFiles'] as $f) { ?>
|
|
|
85 |
<p class="wpsg_checkout_orderupload_backend">
|
|
|
86 |
<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=view&edit_id=<?php echo $this->view['data']['id']; ?>&noheader=1&action=ajax&mod=wpsg_mod_orderupload&wpsg_mod_orderupload_download=<?php echo rawurlencode($f); ?>"><?php echo $f; ?></a><br />
|
|
|
87 |
<span class="wpsg_checkout_orderupload_backend_weight">(<?php echo wpsg_formatSize($this->callMod('wpsg_mod_orderupload', 'getSavePath', array($this->view['data']['id'])).$f); ?>)</span>
|
|
|
88 |
</p>
|
|
|
89 |
<?php } ?>
|
|
|
90 |
<?php } ?>
|
|
|
91 |
</div>
|
|
|
92 |
|
|
|
93 |
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
|
|
|
94 |
<?php } ?>
|