1067 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Template für die Ansicht einer Bestellung im Backend
|
|
|
5 |
*/
|
|
|
6 |
|
|
|
7 |
?>
|
5720 |
daniel |
8 |
<div class="wpsg_order_view" id="wpsg-bs">
|
5049 |
daniel |
9 |
|
5720 |
daniel |
10 |
<nav class="navbar navbar-default">
|
|
|
11 |
<div class="container-fluid">
|
|
|
12 |
<div class="navbar-header">
|
|
|
13 |
<a class="navbar-brand" href="#"><?php echo __('wpShopGermany', 'wpsg'); ?></a>
|
|
|
14 |
</div>
|
|
|
15 |
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
|
|
16 |
<ul class="nav navbar-nav">
|
6683 |
daniel |
17 |
<li role="presentation" class="<?php echo ((!isset($_REQUEST['action']))?'active':''); ?>"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order"><?php echo __("Bestellübersicht", "wpsg"); ?></a></li>
|
6602 |
roger |
18 |
<li role="presentation" class="wpsg_showhide_filter active"><a onclick="return false;"><?php echo __("Bestellansicht (Detail)", "wpsg"); ?></a></li>
|
6846 |
hartmut |
19 |
<li role="presentation" class="wpsg_top_extend" id="wpsg_be_orderdata">
|
6683 |
daniel |
20 |
|
|
|
21 |
<?php echo $this->view['oOrder']->getInvoiceFirstName().' '.$this->view['oOrder']->getInvoiceName().' / '.wpsg_ff($this->view['oOrder']->getAmount($this->getBackendTaxview()), $this->get_option('wpsg_currency')); ?>
|
|
|
22 |
|
|
|
23 |
<?php if (trim($this->view['oOrder']->admincomment) != "") { ?>
|
|
|
24 |
<a title="<?php echo __("Kommentar (Admin): ", "wpsg").htmlspecialchars($this->view['oOrder']->admincomment); ?>" onclick="return false;" class="glyphicon glyphicon-question-sign commenticon admincomment" href="#"></a>
|
|
|
25 |
<?php } ?>
|
|
|
26 |
|
|
|
27 |
<?php if (trim($this->view['oOrder']->comment) != "") { ?>
|
|
|
28 |
<a title="<?php echo __("Kommentar (Kunde): ", "wpsg").htmlspecialchars($this->view['oOrder']->comment); ?>" onclick="return false;" class="glyphicon glyphicon-question-sign commenticon customercomment" href="#"></a>
|
|
|
29 |
<?php } ?>
|
|
|
30 |
|
|
|
31 |
</li>
|
5720 |
daniel |
32 |
</ul>
|
|
|
33 |
<ul class="nav navbar-nav navbar-right">
|
5049 |
daniel |
34 |
|
5720 |
daniel |
35 |
</ul>
|
|
|
36 |
</div>
|
|
|
37 |
</div>
|
6350 |
hartmut |
38 |
|
5720 |
daniel |
39 |
</nav>
|
6503 |
daniel |
40 |
|
|
|
41 |
<div class="wpsg_msg_wrap"><hr class="wp-header-end wpsg-wp-header-end"/></div>
|
5049 |
daniel |
42 |
|
5720 |
daniel |
43 |
<div class="wpsg_admin_submenu">
|
1371 |
daniel |
44 |
|
5720 |
daniel |
45 |
<div class="list-group" id="wpsg_order_view_tabs">
|
|
|
46 |
<span class="list-group-head list-group-item"><?php echo wpsg_translate(__('Bestellung ID:#1#', 'wpsg'), $this->view['data']['id']); ?></span>
|
1401 |
daniel |
47 |
|
5720 |
daniel |
48 |
<?php $i = 0; foreach ($this->view['arSubAction'] as $k => $v) { $i ++; ?>
|
7398 |
florian |
49 |
|
7188 |
thomas |
50 |
<a class="list-group-item <?php echo ((wpsg_getStr($_COOKIE['wpsg_order_view_tab'], 'general') == $k)?'active':''); ?>" wpsg-data-target="<?php echo $k; ?>" href="#"><?php echo $v['title']; ?></a>
|
|
|
51 |
|
5720 |
daniel |
52 |
<?php } ?>
|
7179 |
daniel |
53 |
|
5720 |
daniel |
54 |
</div>
|
5049 |
daniel |
55 |
|
7179 |
daniel |
56 |
<div class="tag_actions orderdata_action">
|
|
|
57 |
|
|
|
58 |
<a href="" id="LinkProduktNeu" onclick="return WPSG_BE_Product.addProduct();"><span class="glyphicon glyphicon-plus"></span>
|
7188 |
thomas |
59 |
|
7179 |
daniel |
60 |
<?php echo __("Neues Produkt", "wpsg"); ?>
|
7188 |
thomas |
61 |
|
7173 |
daniel |
62 |
</a><div class="wpsg_clear"></div>
|
7188 |
thomas |
63 |
|
|
|
64 |
<a href="" id="LinkPaymantNeu" onclick="return WPSG_BE_Pay_Ship.changeShippingPayment();"><span class="glyphicon glyphicon-credit-card"></span>
|
|
|
65 |
|
|
|
66 |
<?php echo __("Versand- und Zahlungsart bearbeiten", "wpsg"); ?>
|
|
|
67 |
|
|
|
68 |
</a><div class="wpsg_clear"></div>
|
7179 |
daniel |
69 |
|
|
|
70 |
<?php if ($this->hasMod('wpsg_mod_gutschein')) { ?>
|
7188 |
thomas |
71 |
|
7490 |
daniel |
72 |
<a href="" id="LinkGutscheinNeu" onclick="return WPSG_BE_Voucher.editVoucher(-1);"><span class="glyphicon glyphicon-plus"></span>
|
7188 |
thomas |
73 |
|
7179 |
daniel |
74 |
<?php echo __("Gutschein bearbeiten", "wpsg"); ?>
|
7188 |
thomas |
75 |
|
7179 |
daniel |
76 |
</a><div class="wpsg_clear"></div>
|
7188 |
thomas |
77 |
|
7179 |
daniel |
78 |
<?php } ?>
|
|
|
79 |
|
|
|
80 |
<div class="wpsg_clear"></div>
|
7188 |
thomas |
81 |
|
7179 |
daniel |
82 |
<?php if ($this->hasMod('wpsg_mod_discount')) { ?>
|
7190 |
thomas |
83 |
<a href="" id="LinkRabattNeu" onclick="return WPSG_BE_Discount.editDiscount(<?php echo $_REQUEST['edit_id']; ?>);"><span class="glyphicon glyphicon-euro"></span>
|
7188 |
thomas |
84 |
|
7179 |
daniel |
85 |
<?php echo __("Rabatt bearbeiten", "wpsg"); ?>
|
7188 |
thomas |
86 |
|
7179 |
daniel |
87 |
</a><div class="wpsg_clear"></div>
|
7188 |
thomas |
88 |
|
7179 |
daniel |
89 |
<?php } ?>
|
7188 |
thomas |
90 |
|
7179 |
daniel |
91 |
<a href="" id="LinkSendMail" onclick="return WPSG_BE_Mail.sendCustomerMail(<?php echo $_REQUEST['edit_id']; ?>);"><span class="glyphicon glyphicon-envelope"></span>
|
7188 |
thomas |
92 |
|
7938 |
daniel |
93 |
<?php echo __("Bestellbestätigung (Kunde) versenden", "wpsg"); ?>
|
7188 |
thomas |
94 |
|
7179 |
daniel |
95 |
</a><br />
|
7938 |
daniel |
96 |
|
|
|
97 |
<a href="" id="LinkSendMail" onclick="return WPSG_BE_Mail.sendAdminMail(<?php echo $_REQUEST['edit_id']; ?>);"><span class="glyphicon glyphicon-envelope"></span>
|
|
|
98 |
|
|
|
99 |
<?php echo __("Bestellbestätigung (Admin) versenden", "wpsg"); ?>
|
|
|
100 |
|
|
|
101 |
</a><br />
|
6350 |
hartmut |
102 |
|
7179 |
daniel |
103 |
</div>
|
|
|
104 |
|
5922 |
hartmut |
105 |
<div id='wpsg_kv_list'>
|
|
|
106 |
</div>
|
7179 |
daniel |
107 |
|
5720 |
daniel |
108 |
</div>
|
1405 |
daniel |
109 |
|
5720 |
daniel |
110 |
<div class="wpsg_admin_content form-horizontal">
|
1405 |
daniel |
111 |
|
7210 |
daniel |
112 |
<?php if ($this->view['oCalculation']->restored) { ?>
|
|
|
113 |
|
|
|
114 |
<div id="restored_notice">
|
|
|
115 |
<strong>Die Berechnung dieser Bestellung wurde rekonstruiert, da zum Bestellzeitpunkt nicht alle Shop Einstellungen erfasst wurden. Bitte überprüfen sie die Berechnung und vergleichen diese ggf. mit dem Bestellprotokoll. </strong>
|
|
|
116 |
</div>
|
|
|
117 |
|
|
|
118 |
<?php } ?>
|
|
|
119 |
|
5720 |
daniel |
120 |
<?php $i = 0; foreach ($this->view['arSubAction'] as $k => $v) { $i ++; ?>
|
|
|
121 |
<div id="tab<?php echo $k; ?>" style="display:<?php echo ((wpsg_getStr($_COOKIE['wpsg_order_view_tab'], 'general') == $k)?'block':'none'); ?>;" class="wpsg_order_view_tab_content">
|
1405 |
daniel |
122 |
|
5720 |
daniel |
123 |
<?php echo $v['content']; ?>
|
1405 |
daniel |
124 |
|
5720 |
daniel |
125 |
</div>
|
|
|
126 |
<?php } ?>
|
1405 |
daniel |
127 |
|
5720 |
daniel |
128 |
</div>
|
1405 |
daniel |
129 |
|
5720 |
daniel |
130 |
</div>
|
1405 |
daniel |
131 |
|
7179 |
daniel |
132 |
<script type="text/javascript">
|
|
|
133 |
|
5922 |
hartmut |
134 |
/**
|
6081 |
hartmut |
135 |
* Sendet eine eMail
|
6350 |
hartmut |
136 |
*/
|
5979 |
hartmut |
137 |
function wpsg_sendMail(oid)
|
|
|
138 |
{
|
7561 |
daniel |
139 |
|
5979 |
hartmut |
140 |
jQuery('#wpsg_produkte_table').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
|
6350 |
hartmut |
141 |
|
5979 |
hartmut |
142 |
jQuery.ajax( {
|
|
|
143 |
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=sendMail&do=send&edit_id=' + oid + '&noheader=1',
|
|
|
144 |
success: function(data) {
|
|
|
145 |
jQuery('#wpsg_produkte_table').replaceWith(data);
|
6285 |
hartmut |
146 |
location.href = location.href;
|
5979 |
hartmut |
147 |
}
|
|
|
148 |
} );
|
6350 |
hartmut |
149 |
|
5979 |
hartmut |
150 |
return false;
|
6350 |
hartmut |
151 |
|
5979 |
hartmut |
152 |
} // function wpsg_sendMail()
|
|
|
153 |
|
5720 |
daniel |
154 |
jQuery(document).ready(function() {
|
1405 |
daniel |
155 |
|
5720 |
daniel |
156 |
jQuery('#wpsg_order_view_tabs a.list-group-item').bind('click', function() {
|
1405 |
daniel |
157 |
|
5720 |
daniel |
158 |
jQuery('#wpsg_order_view_tabs a').removeClass('active');
|
|
|
159 |
jQuery('.wpsg_order_view_tab_content').hide();
|
1405 |
daniel |
160 |
|
7179 |
daniel |
161 |
jQuery('.tag_actions').hide(); //ordertab_action
|
|
|
162 |
jQuery('.' + jQuery(this).attr('wpsg-data-target') + '_action').show();
|
|
|
163 |
|
|
|
164 |
jQuery(this).addClass('active');
|
5720 |
daniel |
165 |
jQuery('#tab' + jQuery(this).attr('wpsg-data-target')).show();
|
1405 |
daniel |
166 |
|
5720 |
daniel |
167 |
jQuery.cookie('wpsg_order_view_tab', jQuery(this).attr('wpsg-data-target'));
|
|
|
168 |
jQuery(this).blur();
|
1405 |
daniel |
169 |
|
5720 |
daniel |
170 |
} );
|
2759 |
daniel |
171 |
|
7179 |
daniel |
172 |
var co = jQuery.cookie('wpsg_order_view_tab');
|
|
|
173 |
|
6066 |
hartmut |
174 |
if (co === undefined) {
|
7179 |
daniel |
175 |
|
6066 |
hartmut |
176 |
jQuery("[wpsg-data-target='general']").trigger("click");
|
7179 |
daniel |
177 |
|
6066 |
hartmut |
178 |
} else {
|
7179 |
daniel |
179 |
|
6350 |
hartmut |
180 |
jQuery("[wpsg-data-target='" + co + "']").trigger("click");
|
7179 |
daniel |
181 |
|
6066 |
hartmut |
182 |
}
|
7179 |
daniel |
183 |
|
5720 |
daniel |
184 |
} );
|
|
|
185 |
|
7179 |
daniel |
186 |
</script>
|