Subversion Repositories wpShopGermany4

Rev

Rev 7719 | Rev 7767 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5720 daniel 1
<?php
2
 
3
    /**
4
     * User: Daschmi (daschmi@daschmi.de)
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&amp;action=switchStatus&amp;edit_id=<?php echo $this->view['oOrder']->id; ?>&amp;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
 
7719 daniel 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
 
5720 daniel 62
    <br />
6350 hartmut 63
	<?php $this->callMods('order_view_switchStatus', array(&$this->view['data']['id'])); ?>
64
 
5720 daniel 65
    <?php echo wpsg_drawForm_TextStart(); ?>
66
    <input type="submit" class="button" value="<?php echo __('Status ändern', 'wpsg'); ?>" />
67
    <?php echo wpsg_drawForm_TextEnd(); ?>
68
 
69
</form>
70
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
6220 hartmut 71
 
7755 daniel 72
<?php echo wpsg_drawForm_AdminboxStart(__('Technische Einstellungen', 'wüsg')); ?>
73
<form method="POST" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=save&edit_id=<?php echo $this->view['oOrder']->id; ?>&noheader=1" enctype="multipart/form-data">
74
 
75
    <?php echo wpsg_drawForm_Checkbox('ext_payed', __('Externe Zahlungseingänge ignorieren', 'wpsg'), wpsg_getStr($this->view['data']['ext_payed'])); ?>
76
 
77
    <?php echo wpsg_drawForm_TextStart(); ?>
78
    <input type="submit" class="button button-primary" value="<?php echo __('Einstellungen speichern', 'wpsg'); ?>" />
79
    <?php echo wpsg_drawForm_TextEnd(); ?>
80
 
81
</form>
82
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
83
 
6222 hartmut 84
<?php if ($this->hasMod('wpsg_mod_orderupload')) { ?>
85
	<?php echo wpsg_drawForm_AdminboxStart(__('Bestelluploads', 'wpsg')); ?>
86
 
87
		<div class="inside">
88
			 <?php if (!wpsg_isSizedArray($this->view['arFiles'])) { ?>
89
			 <p class="wpsg_checkout_orderupload_backend">
90
			 	<?php echo __('Keine Dateien hochgeladen.', 'wpsg'); ?>
91
			 </p>
92
			 <?php } else { ?>
93
			 <?php foreach ($this->view['arFiles'] as $f) { ?>
94
			 <p class="wpsg_checkout_orderupload_backend">
95
			 	<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 />
96
			 	<span class="wpsg_checkout_orderupload_backend_weight">(<?php echo wpsg_formatSize($this->callMod('wpsg_mod_orderupload', 'getSavePath', array($this->view['data']['id'])).$f); ?>)</span>
97
			 </p>
98
			 <?php } ?>
99
			 <?php } ?>
100
		</div>
101
 
102
	<?php echo wpsg_drawForm_AdminboxEnd(); ?>
103
<?php } ?>