Subversion-Projekte lars-tiefland.content-management

Revision

Revision 1 | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
        {assign var=artikel_anzahl value=$daten.Bestellung.artikel|@count}
2
        <span class="noprint">
3
        {if isset($user_rechte.Warenwirtschaft.bestellung.preise_anzeigen)}
4
        <a href="javascript:drucken_ohne_preis();">Drucken ohne Preise</a>
5
        {/if}
6
        </span>
7
        <form method="post" action="{$SCRIPT_NAME}#{$daten.Bestellung.ID}" name="formname" enctype="multipart/form-data">
8
            <input type="hidden" name="Bestellung" value="{$daten.Bestellung.ID}" id="best_id">
9
            <table width="900" border="1" cellspacing="0" cellpadding="3" bordercolorlight="#FFFFFF" bordercolordark="#999999">
10
                <tr>
11
                    <td colspan="{if $d_colspan}3{else}2{/if}" class="links noprint">Bestellung: Bearbeiten
12
                    </td>
13
                </tr>
14
                <tr>
15
                    <td class="links noprint">Bestellnummer:</td>
2 lars 16
                    <td ondblclick="display_s_id();">{$daten.Bestellung.ID} &nbsp;-&nbsp; {$daten.Bestellung.Language} - Shop: {html_options options=$c_shops name="s_id" id="s_id" style="display:none" selected=$daten.Bestellung.shops_ID onchange="document.getElementById('s_changed').value=1"}<span id="s_name">{$daten.Bestellung.shop}</span>{if $bestellarten}, {if isset( $web_rechte.Warenwirtschaft.bestellung.bestellartChange)}{else}{$daten.Bestellung.Bestellart}{/if}{/if}
1 lars 17
                    <input type="hidden" name="s_changed" id="s_changed" value="0">
18
                    </td>
19
                    {if $d_colspan}
20
                    <td width="200">
21
                        {if isset($user_rechte.Warenwirtschaft.bestellung.fremd_id)}
22
                        {if !$web_rechte.Warenwirtschaft.bestellung.fremd_id}
23
                            fremde Bestellnummer
24
                        {else}
25
                            {$web_rechte.Warenwirtschaft.bestellung.fremd_id|trim:":"}
26
                        {/if}: {$daten.Bestellung.fremd_id}
27
                        {else}
28
                        &nbsp;
29
                        {/if}
30
                    <!-- Bezahlstatus START -->
31
                    {if isset($web_rechte.Warenwirtschaft.bezahlstatus.bezahlstatus)}
32
                        <input type="hidden" name="bezahlt" value="{$daten.Bestellung.bezahlt}">
33
                        <script type="text/javascript">
34
                            function buildBezahltBox(divID,selID) {
35
                                optArr = new Array("nicht bezahlt","bezahlt");
36
 
37
                                selectBox = "";
38
                                selectBox += "Bezahlstatus: <select name=\"bezahlt\">\n";
39
                                for(i=0;i<optArr.length;i++) {
40
                                    var selected="";
41
                                    if(i==selID) {
42
                                        selected = " selected=\"selected\" ";
43
                                    }
44
                                    selectBox += "<option value=\""+i+"\" "+selected+">"+optArr[i]+"</option>";
45
                                }
46
                                selectBox += "</select>\n";
47
                                divID.innerHTML = selectBox;
48
                            }
49
                        </script>
50
                        <div style="cursor:pointer;float:right;" id="bezahltBox" ondblclick="buildBezahltBox(this,{$daten.Bestellung.bezahlt});"><div style="float:left;">Bezahlstatus:&nbsp;&nbsp;</div>
51
                        {if $daten.Bestellung.bezahlt==1}
52
                        <font style="font-weight:bold;color:#0f0">bezahlt</font>
53
                        {else}
54
                        <font style="font-weight:bold;color:#f00">nicht bezahlt</font>
55
                        {/if}
56
                        </div>
57
                    {/if}
58
                    <!-- Bezahlstatus ENDE -->
59
                    </td>
60
                    {/if}
61
                </tr>
62
                {if isset($user_rechte.Warenwirtschaft.logistiker.logistiker)}
63
                <tr>
64
                    <td class="links">Logistiker: </td>
65
                    <td>
66
                        {html_options name="logistiker_id" options=$logistiker selected=$logistiker_sel}
67
                    </td>
68
                </tr>
69
                {/if}
70
                <tr>
71
                    <td valign="top" class="links noprint">
72
                        <a href="../logins/logins.php?action=edit&ID={$daten.Bestellung.Login}">Kunde:</a> {$daten.Bestellung.Login}<br>
73
                        Userlevel: {$daten.Bestellung.Status}
74
                    </td>
75
                    <td class="rechts" {$d_colspan}>
76
                        <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFF00">
77
                            <tr>
78
                                <td height="24">
79
                                    {if $daten.Bestellung.Anrede}
80
                                        {$daten.Bestellung.Anrede}
81
                                    {/if}
82
                                    {if $daten.Bestellung.Vorname}
83
                                        {$daten.Bestellung.Vorname}
84
                                    {/if}
85
                                    {$daten.Bestellung.Name1}&nbsp;
86
                                </td>
87
                                <td>
88
                                    {$daten.Bestellung.Strasse}&nbsp;{$daten.Bestellung.Hausnummer}
89
                                </td>
90
                                <td>
91
                                    <a style="text-decoration:none" href="callto:{$daten.Bestellung.Telefon}">
92
                                        {$daten.Bestellung.Telefon}
93
                                        &nbsp;&nbsp;<img src="../images/Online-Shop/telefon.gif" border="0">
94
                                    </a>&nbsp;
95
                                </td>
96
                                <td>
97
                                    {$daten.Bestellung.Fax}&nbsp;
98
                                </td>
99
                            </tr>
100
                            <tr>
101
                                <td height="41">
102
                                    {if $daten.Bestellung.Name2}
103
                                    <strong>Firma / Organisation</strong><br>
104
                                    {$daten.Bestellung.Name2}&nbsp;
105
                                    {/if}
106
                                    {if $daten.Bestellung.strasse2}
107
                                    <br>
108
                                    <strong>Abteilung</strong><br>
109
                                    {$daten.Bestellung.strasse2}
110
                                    {/if}
111
                                </td>
112
                                <td>
113
                                    {$daten.Bestellung.PLZ}&nbsp;{$daten.Bestellung.ORT}
114
                                </td>
115
                                <td>
116
                                    {if $daten.Bestellung.E_Mail}
117
                                    {if isset($user_rechte.Warenwirtschaft.bestellung.mail_client)}
2 lars 118
                                    <input style="width:200px;" type="text" class="status_red noprint" value="{$daten.Bestellung.E_Mail}" />
119
 
120
                                    <input name="update[list]" type="button" class="status_red noprint" value="@" onclick="window.open('MailClient/index.php?id=0&Bestellung={$daten.Bestellung.ID}&shop={$daten.Bestellung.shops_ID}&button=Mailausgang', 'MailClient', 'status, menubar, height=600, width=900, scrollbars=yes');" />
121
 
1 lars 122
                                    {else}
123
                                    <a href="mailto:{$daten.Bestellung.E_Mail}" class="noprint">{$daten.Bestellung.E_Mail}</a>
124
                                    {/if}
125
                                    <span class="print">{$daten.Bestellung.E_Mail}</span>
126
                                    {/if}
127
                                    &nbsp;
128
                                </td>
129
                                <td>
130
                                    {$daten.Bestellung.Land}&nbsp;
131
                                </td>
132
                            </tr>
133
                            {if $daten.Bestellung.comment}
134
                            <tr>
135
                                <td colspan="4">
136
                                    {$daten.Bestellung.comment|nl2br}
137
                                </td>
138
                            </tr>
139
                            {/if}
140
                        </table>
141
                        {if $daten.Bestellung.liefer_Strasse}
142
                        <br>
143
                        <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFF00">
144
                            <tr>
145
                                <td height="24" class="rechts">
146
                                    <strong>Lieferadresse:</strong>
147
                                </td>
148
                                <td class="rechts">
149
                                    Name:<br>
150
                                    {$daten.Bestellung.liefer_Anrede} {$daten.Bestellung.liefer_Vorname} {$daten.Bestellung.liefer_Name}
151
                                </td>
152
                                <td class="rechts">
153
                                {if $daten.Bestellung.liefer_Firma != ''}
154
                                    Firma / Organisation:<br>
155
                                    {$daten.Bestellung.liefer_Firma}&nbsp;
156
                                {/if}
157
                                {if $daten.Bestellung.liefer_strasse2}
158
                                    <br>
159
                                    <strong>Abteilung</strong><br>
160
                                    {$daten.Bestellung.liefer_strasse2}
161
                                {/if}
162
                                </td>
163
                            </tr>
164
                            <tr>
165
                                <td height="41" class="rechts">
166
                                    {$daten.Bestellung.liefer_Strasse}&nbsp;{$daten.Bestellung.liefer_Str_Nr}
167
                                </td>
168
                                <td class="rechts">
169
                                    {$daten.Bestellung.liefer_PLZ}&nbsp;{$daten.Bestellung.liefer_Ort}
170
                                </td>
171
                                <td class="rechts">
172
                                    {$daten.Bestellung.liefer_Land}
173
                                </td>
174
                            </tr>
175
                            {if $daten.Bestellung.liefer_comment}
176
                            <tr>
177
                                <td colspan="4">
178
                                    {$daten.Bestellung.liefer_comment|nl2br}
179
                                </td>
180
                            </tr>
181
                            {/if}
182
                        </table>
183
                        {/if}
184
                        {if ( isset($user_rechte.Warenwirtschaft.bestellung.lieferadresse_aendern) )}
185
                        <input type="button" onclick="window.open('change_lieferadresse.php?b_id={$daten.Bestellung.ID}');" value="Lieferadresse {if $daten.Bestellung.liefer_Strasse !=
186
        ''}bearbeiten{else}anlegen{/if}" class="noprint">
187
                        {/if}
188
                    </td>
189
                </tr>
190
                {if $daten.paketdienst.nummern}
191
                <tr>
192
                    <td class="noprint links">
193
                    {if isset($user_rechte.Warenwirtschaft.bestellung.tracking)}
194
                        {$daten.paketdienst.name}
195
                    {elseif isset($user_rechte.Warenwirtschaft.logistiker.logistiker)}
196
                        Trackinglink:
197
                    {/if}
198
                    </td>
199
                    <td class="rechts" {$d_colspan}>
200
                        <table>
201
                            {section loop=$daten.paketdienst.nummern name=p_ind}
202
                            <tr>
203
                                <td>
204
                {if isset($user_rechte.Warenwirtschaft.bestellung.tracking)}
205
                                    <input class="noprint" type="button" value="{$daten.paketdienst.nummern[p_ind].nummer}" onclick="window.open('{$daten.paketdienst.url}{$daten.paketdienst.nummern[p_ind].nummer}');" /><div class="onprint">{$daten.paketdienst.name} {$daten.paketdienst.nummern[p_ind].nummer}&nbsp;</div>
206
                {elseif isset($user_rechte.Warenwirtschaft.logistiker.logistiker)}
207
                                    {$daten.paketdienst.nummern[p_ind].name}:
208
                                    <input class="noprint" type="button" value="{$daten.paketdienst.nummern[p_ind].nummer}" onclick="window.open('{$daten.paketdienst.nummern[p_ind].url}{$daten.paketdienst.nummern[p_ind].nummer}');" /><span class="onprint"> {$daten.paketdienst.nummern[p_ind].nummer}&nbsp;</span>
209
                {/if}
210
                                    vom {$daten.paketdienst.nummern[p_ind].datum|date_format:"%d.%m.%Y"}
211
 
212
                                </td>
213
                            </tr>
214
                            {/section}
215
                        </table>
216
                    </td>
217
                </tr>
218
                {/if}
219
                <tr>
220
                    <td valign="top" class="links noprint">
221
                        <p>Artikel:</p>
222
                    </td>
223
                    <td align="right" class="rechts" {$d_colspan}>
224
                        <table width="100%" border="0" cellspacing="2" cellpadding="2">
225
                            <tr>
226
                                <td {$d_colspan}>&nbsp;&nbsp;&nbsp;</td>
227
                                <td>
228
                                    <table border="0">
229
                                        <tr>
230
                                            <td width="140" class="rechts" colspan="5">Artikelstatus</td>
231
                                            <td>&nbsp;&nbsp;&nbsp;</td>
232
                                            {if isset($user_rechte.Warenwirtschaft.bestellung.rechnungStatus)}
233
                                            <td width="80" class="rechts" colspan="3">Rechnung</td>
234
                                            {/if}
235
                                            <td>&nbsp;&nbsp;&nbsp;</td>
236
                                            {if isset($user_rechte.Warenwirtschaft.bestellung.lieferscheinStatus)}
237
                                            <td width="90" colspan="3" class="rechts">Lieferung</td>
238
                                            {else}
239
                                            <td width="90" colspan="3"></td>
240
                                            {/if}
241
                                            <td>&nbsp;&nbsp;&nbsp;</td>
242
                                            {if isset($user_rechte.Warenwirtschaft.bestellung.mahnungStatus)}
243
                                            <td colspan="3" class="rechts">Mahnung</td>
244
                                            {else}
245
                                            <td colspan="3"></td>
246
                                            {/if}
247
                                            <td>&nbsp;&nbsp;&nbsp;</td>
248
                                            {if isset($user_rechte.Warenwirtschaft.bestellung.garantieStatus)}
249
                                            <td {$d_colspan} class="rechts">Garantieantrag</td>
250
                                            {else}
251
                                            <td {$d_colspan}></td>
252
                                            {/if}
253
                                            <td></td>
254
                                        </tr>
255
                                    </table>
256
                                </td>
257
                            </tr>
258
                            {section loop=$daten.Bestellung.artikel name=a_ind}
259
                            {if $daten.Bestellung.artikel[a_ind].Father!=-3}
260
                            <tr class="{cycle values="darkgray,lightgray"}">
261
                                <td width="5%">
262
                                    {if $daten.Bestellung.artikel[a_ind].status=="storniert"}
263
                                        {$daten.Bestellung.artikel[a_ind].kennung|strike}
264
                                    {else}
265
                                        {$daten.Bestellung.artikel[a_ind].kennung}
266
                                    {/if}
267
                                </td>
268
                                <td width="90%" ondblclick="display_artikel({$daten.Bestellung.artikel[a_ind].ab_id},'');">
269
 
270
                                    <input type="hidden" id="artikel_{$daten.Bestellung.artikel[a_ind].ab_id}_changed" name="artikel_{$daten.Bestellung.artikel[a_ind].ab_id}_changed" value="0">
2 lars 271
                                    <table width="100%" border="0" cellpadding="0" cellspacing="2">
1 lars 272
                                        <tr>
273
                                            <td align="right" valign="top" nowrap="nowrap">
274
                                                <span id="eingabe_menge_{$daten.Bestellung.artikel[a_ind].ab_id}" style="display:none;">
275
                                                    <input type="text" name="cmd[artikel_to_Bestellung][{$daten.Bestellung.artikel[a_ind].ab_id}][Menge]" size="2" value="{$daten.Bestellung.artikel[a_ind].Menge}">&nbsp;x&nbsp;
276
                                                </span>
277
                                                <span id="ausgabe_menge_{$daten.Bestellung.artikel[a_ind].ab_id}">
278
                                                {if $daten.Bestellung.artikel[a_ind].status=="storniert"}
279
                                                {$daten.Bestellung.artikel[a_ind].Menge|strike}<strike>&nbsp;x&nbsp;</strike>
280
                                                {else}
281
                                                {$daten.Bestellung.artikel[a_ind].Menge}&nbsp;x&nbsp;
282
                                                {/if}
283
                                                </span>
284
                                            </td>
2 lars 285
                                            <td align="left">
1 lars 286
                                                <span id="eingabe_bez_{$daten.Bestellung.artikel[a_ind].ab_id}" style="display:none;">
287
                                                    <input type="text" name="cmd[artikel_to_Bestellung][{$daten.Bestellung.artikel[a_ind].ab_id}][Bezeichnung]" size="45" value="{$daten.Bestellung.artikel[a_ind].Bezeichnung|htmlentities|default:$daten.Bestellung.artikel[a_ind].kurzbezeichnung|htmlentities}">
288
                                                </span>
289
                                                <span id="ausgabe_bez_{$daten.Bestellung.artikel[a_ind].ab_id}" class="bestandskennzeichnung" {if $daten.Bestellung.artikel[a_ind].bestandsmenge > 0}style="background-color: {$bestandskennzeichnungsfarbe};" {/if}>
290
                                                {if $daten.Bestellung.artikel[a_ind].status=="storniert"}
291
                                                {$daten.Bestellung.artikel[a_ind].hersteller|strike} {$daten.Bestellung.artikel[a_ind].Bezeichnung|default:$daten.Bestellung.artikel[a_ind].kurzbezeichnung|strike} {$daten.Bestellung.artikel[a_ind].option_eingabe|strike}
292
                                                {else}
293
                                                {$daten.Bestellung.artikel[a_ind].hersteller} {$daten.Bestellung.artikel[a_ind].Bezeichnung|default:$daten.Bestellung.artikel[a_ind].kurzbezeichnung} {$daten.Bestellung.artikel[a_ind].option_eingabe}
294
                                                {/if}
295
                                                </span>
296
                                                (
297
                                                {if $daten.Bestellung.artikel[a_ind].artikel}
298
 
299
                                                <a href="{if $d_shops[$daten.Bestellung.shops_ID].domain}http://redaktion.{$d_shops[$daten.Bestellung.shops_ID].domain}{/if}/Online-Shop/artikel.php?action=edit&ID={$daten.Bestellung.artikel[a_ind].artikel}" target="_blank" class="noprint">?</a>
300
                                                {if $d_shops[$daten.Bestellung.shops_ID].domain}
301
                                                &nbsp;|&nbsp;
302
                                                <a href="http://www.{$d_shops[$daten.Bestellung.shops_ID].domain}/index.php?item={$daten.Bestellung.artikel[a_ind].artikel}" target="_blank">S</a>
303
                                                {/if}
304
                                                {/if}
305
                                                {include file="ipad_edit.tpl" id=$daten.Bestellung.artikel[a_ind].ab_id art=""}
306
                                                {if ( isset( $user_rechte["Warenwirtschaft"]["bestellung"]["lieferantenbestellung"] ) )}
307
                                                {if $daten.Bestellung.artikel[a_ind].Preis_pro_Stueck > 0}
308
                                                | <a class="lager" id="lager_{$daten.Bestellung.artikel[a_ind].artikel}_{$daten.Bestellung.ID}_{$daten.Bestellung.shops_ID}" style="display:inline;">LB</a>
309
                                                {/if}
310
                                                {/if}
311
                                                )
312
                                                {if $daten.Bestellung.artikel[a_ind].ebay_art_id}
313
                                                {if $daten.Bestellung.artikel[a_ind].status=="storniert"}
314
                                                <strike>
315
                                                {/if}
316
                                                (<a href="http://cgi.ebay.de/ws/eBayISAPI.dll?ViewItem&rd=1&item={$daten.Bestellung.artikel[a_ind].ebay_art_id}" target="_blank">ebay-Auktion</a>)
317
                                                {if $daten.Bestellung.artikel[a_ind].status=="storniert"}
318
                                                </strike>
319
                                                {/if}
320
                                                {/if}
321
                                            </td>
322
                                            <td align="right" nowrap="nowrap" valign="top">
323
                                                {if $preise_anzeigen}
324
                                                <span id="eingabe_preis_{$daten.Bestellung.artikel[a_ind].ab_id}" style="display:none;">
325
                                                    <input type="text" name="cmd[artikel_to_Bestellung][{$daten.Bestellung.artikel[a_ind].ab_id}][Preis_pro_Stueck]" size="3" value="{$daten.Bestellung.artikel[a_ind].Preis_pro_Stueck}" onkeyup="this.value=killkomma(this.value);">&nbsp;&euro;&nbsp;
326
                                                    <a onclick="change_status('a',{$daten.Bestellung.ID},{$daten.Bestellung.artikel[a_ind].ab_id},'S','storniert');self.location.reload();" style="cursor:pointer">X</a>
327
                                                </span>
328
                                                <span id="ausgabe_preis_{$daten.Bestellung.artikel[a_ind].ab_id}" class="preise">
329
                                                {if $daten.Bestellung.artikel[a_ind].status=="storniert"}
330
                                                {$daten.Bestellung.artikel[a_ind].Preis_pro_Stueck|money_format_red:2:$daten.Bestellung.locale|strike}
331
                                                {else}
332
                                                {$daten.Bestellung.artikel[a_ind].Preis_pro_Stueck|money_format_red:2:$daten.Bestellung.locale}
333
                                                {/if}
334
                                                </span>
335
                                                {/if}
336
                                            </td>
337
                                            {if isset($web_rechte["Warenwirtschaft"]["bestellung"]["artikel_sortieren"])}
338
                                            <td class="noprint">
339
                                                {if $daten.Bestellung.artikel[a_ind].ab_Rang > 0}
340
                                                <a href="{$script_name}?Bestellung={$daten.Bestellung.ID}&dir=up&id={$daten.Bestellung.artikel[a_ind].ab_id}"><img src="../images/Online-Shop/directory/scroll_up.gif" alt="auf" border="0" width="11" /></a>
341
                                                {/if}
342
                                                {if $smarty.section.a_ind.index < $artikel_anzahl -1}
343
                                                <a href="{$script_name}?Bestellung={$daten.Bestellung.ID}&dir=down&id={$daten.Bestellung.artikel[a_ind].ab_id}"><img src="../images/Online-Shop/directory/scroll_down.gif" alt="auf" border="0" width="11" /></a>
344
                                                {/if}
345
                                            </td>
346
                                            {/if}
347
                                            <td align="right" nowrap="nowrap" valign="top">&nbsp;</td>
348
                                        </tr>
349
                                    </table>
350
                                </td>
351
                                <td colspan="21" bgcolor="#FFFF00">
352
                                    <input type="hidden" id="a_{$daten.Bestellung.artikel[a_ind].ab_id}_status_f" value="{$daten.Bestellung.artikel[a_ind].status}">
353
                                    {if isset($user_rechte.Warenwirtschaft.bestellung.rechnungStatus)}
354
                                    <input type="hidden" id="r_{$daten.Bestellung.artikel[a_ind].ab_id}_status_f" value="{$daten.Bestellung.artikel[a_ind].rechnungstatus}">
355
                                    {/if}
356
                                    {if isset($user_rechte.Warenwirtschaft.bestellung.lieferscheinStatus)}
357
                                    <input type="hidden" id="l_{$daten.Bestellung.artikel[a_ind].ab_id}_status_f" value="{$daten.Bestellung.artikel[a_ind].lieferscheinStatus}">
358
                                    {/if}
359
                                    {if isset($user_rechte.Warenwirtschaft.bestellung.mahnungStatus)}
360
                                    <input type="hidden" id="m_{$daten.Bestellung.artikel[a_ind].ab_id}_status_f" value="{$daten.Bestellung.artikel[a_ind].mahnungStatus}">
361
                                    {/if}
362
                                    {if isset($user_rechte.Warenwirtschaft.bestellung.garantieStatus)}
363
                                    <input type="hidden" id="m_{$daten.Bestellung.artikel[a_ind].ab_id}_status_f" value="{$daten.Bestellung.artikel[a_ind].garantieStatus}">
364
                                    {/if}
365
                                    <table border="0" cellspacing="2" cellpadding="2">
366
                                        <tr>
367
                                        {section loop=$daten.artikel_stati name=as_ind}
368
                                            {if $daten.Bestellung.artikel[a_ind].status==$daten.artikel_stati[as_ind].name}
369
                                                {assign var=class value=$daten.artikel_stati[as_ind].class}
370
                                            {else}
371
                                                {assign var=class value="status_off"}
372
                                            {/if}
373
                                            <td valign="top" nowrap="nowrap" {if $daten.artikel_stati[as_ind].name} class="darkgray"{/if}><a class="{$class}" onclick="change_status('a', {$daten.Bestellung.ID},{$daten.Bestellung.artikel[a_ind].ab_id},'{$daten.artikel_stati[as_ind].short}','{$daten.artikel_stati[as_ind].name}');return false;" style="cursor:pointer" id="a_{$daten.Bestellung.artikel[a_ind].ab_id}_{$daten.artikel_stati[as_ind].short}" title="{$daten.artikel_stati[as_ind].name}">&nbsp;{$daten.artikel_stati[as_ind].short}&nbsp;</a></td>
374
                                        {/section}
375
                                            <td valign="top" nowrap="nowrap">&nbsp;&nbsp;&nbsp;</td>
376
                                    {if isset($user_rechte.Warenwirtschaft.bestellung.rechnungStatus)}
377
                                        {section loop=$daten.rechnung_stati name=rs_ind}
378
                                            <td valign="top" nowrap="nowrap" {if $daten.rechnung_stati[rs_ind].name} class="darkgray"{/if}>
379
                                            {if $daten.Bestellung.artikel[a_ind].rechnungstatus==$daten.rechnung_stati[rs_ind].name}
380
                                                {assign var=class value=$daten.rechnung_stati[rs_ind].class}
381
                                            {else}
382
                                                {assign var=class value="status_off"}
383
                                            {/if}
384
                                                <a class="{$class}" onclick="change_status('r', {$daten.Bestellung.ID},{$daten.Bestellung.artikel[a_ind].ab_id},'{$daten.rechnung_stati[rs_ind].short}','{$daten.rechnung_stati[rs_ind].name}');return false;" style="cursor:pointer" id="r_{$daten.Bestellung.artikel[a_ind].ab_id}_{$daten.rechnung_stati[rs_ind].short}" title="{$daten.rechnung_stati[rs_ind].name}">&nbsp;{$daten.rechnung_stati[rs_ind].short}&nbsp;</a>
385
                                            </td>
386
                                        {/section}
387
                                    {/if}
388
                                            <td valign="top" nowrap="nowrap">&nbsp;&nbsp;&nbsp;</td>
389
                                        {section loop=$daten.lieferschein_stati name=ls_ind}
390
                                            {if isset($user_rechte.Warenwirtschaft.bestellung.lieferscheinStatus)}
391
                                            <td valign="top" nowrap="nowrap" {if $daten.lieferschein_stati[ls_ind].name} class="darkgray"{/if}>
392
                                            {if $daten.Bestellung.artikel[a_ind].lieferscheinStatus==$daten.lieferschein_stati[ls_ind].name}
393
                                                {assign var=class value=$daten.lieferschein_stati[ls_ind].class}
394
                                            {else}
395
                                                {assign var=class value="status_off"}
396
                                            {/if}
397
                                                <a class="{$class}" onclick="change_status('l', {$daten.Bestellung.ID},{$daten.Bestellung.artikel[a_ind].ab_id},'{$daten.lieferschein_stati[ls_ind].short}','{$daten.lieferschein_stati[ls_ind].name}');return false;" style="cursor:pointer" id="l_{$daten.Bestellung.artikel[a_ind].ab_id}_{$daten.lieferschein_stati[ls_ind].short}" title="{$daten.lieferschein_stati[ls_ind].name}">&nbsp;{$daten.lieferschein_stati[ls_ind].short}&nbsp;</a>
398
                                            </td>
399
                                        {else}
400
                                            <td></td>
401
                                        {/if}
402
                                        {/section}
403
                                            <td valign="top" nowrap="nowrap">&nbsp;&nbsp;&nbsp;</td>
404
                                        {section loop=$daten.mahnung_stati name=ms_ind}
405
                                            {if isset($user_rechte.Warenwirtschaft.bestellung.mahnungStatus)}
406
                                            <td valign="top" nowrap="nowrap" {if $daten.mahnung_stati[ms_ind].name} class="darkgray"{/if}>
407
                                            {if $daten.Bestellung.artikel[a_ind].mahnungStatus==$daten.mahnung_stati[ms_ind].name}
408
                                                {assign var=class value=$daten.mahnung_stati[ms_ind].class}
409
                                            {else}
410
                                                {assign var=class value="status_off"}
411
                                            {/if}
412
                                                <a class="{$class}" onclick="change_status('m', {$daten.Bestellung.ID},{$daten.Bestellung.artikel[a_ind].ab_id},'{$daten.mahnung_stati[ms_ind].short}','{$daten.mahnung_stati[ms_ind].name}');return false;" style="cursor:pointer" id="m_{$daten.Bestellung.artikel[a_ind].ab_id}_{$daten.mahnung_stati[ms_ind].short}" title="{$daten.mahnung_stati[ms_ind].name}">&nbsp;{$daten.mahnung_stati[ms_ind].short}&nbsp;</a>
413
                                             </td>
414
                                        {else}
415
                                            <td></td>
416
                                        {/if}
417
                                        {/section}
418
                                            <td valign="top" nowrap="nowrap">&nbsp;&nbsp;&nbsp;</td>
419
                                        {section loop=$daten.garantie_stati name=gs_ind}
420
                                            {if isset($user_rechte.Warenwirtschaft.bestellung.garantieStatus)}
421
                                            <td valign="top" nowrap="nowrap" {if $daten.garantie_stati[gs_ind].name} class="darkgray"{/if}>
422
                                            {if $daten.Bestellung.artikel[a_ind].garantiestatus==$daten.garantie_stati[gs_ind].name}
423
                                                {assign var=class value=$daten.garantie_stati[gs_ind].class}
424
                                            {else}
425
                                                {assign var=class value="status_off"}
426
                                            {/if}
427
                                                <a class="{$class}" onclick="change_status('g', {$daten.Bestellung.ID},{$daten.Bestellung.artikel[a_ind].ab_id},'{$daten.garantie_stati[gs_ind].short}','{$daten.garantie_stati[gs_ind].name}');return false;" style="cursor:pointer" id="g_{$daten.Bestellung.artikel[a_ind].ab_id}_{$daten.garantie_stati[gs_ind].short}" title="{$daten.garantie_stati[gs_ind].name}">&nbsp;{$daten.garantie_stati[gs_ind].short}&nbsp;</a>
428
                                            </td>
429
                                        {else}
430
                                            <td></td>
431
                                        {/if}
432
                                        {/section}
433
                                            <td valign="top" nowrap="nowrap">&nbsp;&nbsp;&nbsp;</td>
434
                                        </tr>
435
                                    </table>
436
                                </td>
437
                            </tr>
438
                            {else}
439
                            {assign var=versand_artikel value=$daten.Bestellung.artikel[a_ind].ab_id}
440
                            {assign var=versand_status value=$daten.Bestellung.artikel[a_ind].status}
441
                            {assign var=versand_name value=$daten.Bestellung.artikel[a_ind].short_line_1}
442
                            <tr class="{cycle values="darkgray,lightgray"}">
443
                                <td width="5%" valign="top">&nbsp; </td>
444
                                <td width="90%" ondblclick="display_artikel({$daten.Bestellung.artikel[a_ind].ab_id},'V')">
445
                                    <input type="hidden" id="a_{$daten.Bestellung.artikel[a_ind].ab_id}_status_f" value="{$daten.Bestellung.artikel[a_ind].status}">
446
                                    <input type="hidden" id="artikel_{$daten.Bestellung.artikel[a_ind].ab_id}_changed" name="artikel_{$daten.Bestellung.artikel[a_ind].ab_id}_changed" value="0">
447
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
448
                                        <tr>
449
                                            <td nowrap="nowrap" align="left" valign="top">
450
                                            &nbsp; Versand:&nbsp;
451
                                                <span id="eingabe_bez_{$daten.Bestellung.artikel[a_ind].ab_id}" style="display:none;">
452
                                                    <input type="text" name="cmd[artikel_to_Bestellung][{$daten.Bestellung.artikel[a_ind].ab_id}][Bezeichnung]" size="45" value="{$daten.Bestellung.artikel[a_ind].Bezeichnung|default:$daten.Bestellung.artikel[a_ind].kurzbezeichnung}" onchange="document.getElementById('artikel_'+{$daten.Bestellung.artikel[a_ind].ab_id}+'_changed').value='1';">
453
                                                </span>
454
                                                <span id="ausgabe_bez_{$daten.Bestellung.artikel[a_ind].ab_id}">
455
                                                    {$daten.Bestellung.artikel[a_ind].Bezeichnung|default:$daten.Bestellung.artikel[a_ind].kurzbezeichnung}
456
                                                </span>
457
                                                {if $daten.Bestellung.artikel[a_ind].artikel}
458
                                                (
459
                                                {include file="ipad_edit.tpl" id=$daten.Bestellung.artikel[a_ind].ab_id art="V"}
460
                                                )
461
                                                {/if}
462
                                            </td>
463
                                            <td align="right" nowrap="nowrap" valign="top">
464
                                                <span id="eingabe_preis_{$daten.Bestellung.artikel[a_ind].ab_id}" style="display:none;">
465
                                                    <input type="text" name="cmd[artikel_to_Bestellung][{$daten.Bestellung.artikel[a_ind].ab_id}][Preis_pro_Stueck]" size="3" value="{$daten.Bestellung.artikel[a_ind].Preis_pro_Stueck}" onchange="document.getElementById('artikel_'+{$daten.Bestellung.artikel[a_ind].ab_id}+'_changed').value='1';" onkeyup="this.value=killkomma(this.value);">&nbsp;&euro;&nbsp;
466
                                                </span>
467
                                                <span id="ausgabe_preis_{$daten.Bestellung.artikel[a_ind].ab_id}" class="preise">
468
                                                {$daten.Bestellung.artikel[a_ind].Preis_pro_Stueck|money_format_red:2:$daten.Bestellung.locale}
469
                                                </span>
470
                                            </td>
471
                                        </tr>
472
                                    </table>
473
                                </td>
474
                            </tr>
475
                            {/if}
476
                            {/section}
477
                            {if !$versand_artikel}
478
                            <tr class="{cycle values="darkgray,lightgray"} noprint" align="left">
479
                                <td width="5%"></td>
480
                                <td width="90%">
481
                                {html_options options=$daten.Versand name="versandItem"}
482
                                <input type="submit" name="enterVersand" value="OK">
483
                                </td>
484
                                <td colspan="9" align="center">&nbsp;</td>
485
                            </tr>
486
                            {/if}
487
                            <tr class="noprint">
488
                                <td width="5%"></td>
489
                                <td width="90%"></td>
490
                                <td colspan="21">
491
                                    <table border="0" cellspacing="2" cellpadding="2">
492
                                        <tr>
493
                                        {section loop=$daten.artikel_stati name=as_ind}
494
                                            <td valign="top" nowrap="nowrap" {if $daten.artikel_stati[as_ind].name} class="darkgray"{/if}>
495
                                                {assign var=class value=$daten.artikel_stati[as_ind].class}
496
                                                <a class="{$class}" onclick="change_status('a', {$daten.Bestellung.ID},0,'{$daten.artikel_stati[as_ind].short}','{$daten.artikel_stati[as_ind].name}');return false;" style="cursor:pointer" title="{$daten.artikel_stati[as_ind].name}">&nbsp;&#x2211;&nbsp;</a>
497
                                            </td>
498
                                        {/section}
499
                                            <td valign="top" nowrap="nowrap">&nbsp;&nbsp;&nbsp;</td>
500
                                    {if isset($user_rechte.Warenwirtschaft.bestellung.rechnungStatus)}
501
                                        {section loop=$daten.rechnung_stati name=rs_ind}
502
                                            <td valign="top" nowrap="nowrap" {if $daten.rechnung_stati[rs_ind].name} class="darkgray"{/if}>
503
                                                {assign var=class value=$daten.rechnung_stati[rs_ind].class}
504
                                                <a class="{$class}" onclick="change_status('r', {$daten.Bestellung.ID},0,'{$daten.rechnung_stati[rs_ind].short}','{$daten.rechnung_stati[rs_ind].name}');return false;" style="cursor:pointer" title="{$daten.rechnung_stati[rs_ind].name}">&nbsp;&#x2211;&nbsp;</a>
505
                                            </td>
506
                                        {/section}
507
                                    {/if}
508
                                            <td valign="top" nowrap="nowrap">&nbsp;&nbsp;&nbsp;</td>
509
                                        {section loop=$daten.lieferschein_stati name=ls_ind}
510
                                            {if isset($user_rechte.Warenwirtschaft.bestellung.lieferscheinStatus)}
511
                                            <td valign="top" nowrap="nowrap" {if $daten.lieferschein_stati[ls_ind].name} class="darkgray"{/if}>
512
                                                {assign var=class value=$daten.lieferschein_stati[ls_ind].class}
513
                                                <a class="{$class}" onclick="change_status('l', {$daten.Bestellung.ID},0,'{$daten.lieferschein_stati[ls_ind].short}','{$daten.lieferschein_stati[ls_ind].name}');return false;" style="cursor:pointer" title="{$daten.lieferschein_stati[ls_ind].name}">&nbsp;&#x2211;&nbsp;</a>
514
                                            </td>
515
                                        {else}
516
                                            <td></td>
517
                                        {/if}
518
                                        {/section}
519
                                            <td valign="top" nowrap="nowrap">&nbsp;&nbsp;&nbsp;</td>
520
                                        {section loop=$daten.mahnung_stati name=ms_ind}
521
                                            {if isset($user_rechte.Warenwirtschaft.bestellung.mahnungStatus)}
522
                                            <td valign="top" nowrap="nowrap" {if $daten.mahnung_stati[ms_ind].name} class="darkgray"{/if}>
523
                                                {assign var=class value=$daten.mahnung_stati[ms_ind].class}
524
                                                <a class="{$class}" onclick="change_status('m', {$daten.Bestellung.ID},0,'{$daten.mahnung_stati[ms_ind].short}','{$daten.mahnung_stati[ms_ind].name}');return false;" style="cursor:pointer" title="{$daten.mahnung_stati[ms_ind].name}">&nbsp;&#x2211;&nbsp;</a>
525
                                             </td>
526
                                        {else}
527
                                            <td></td>
528
                                        {/if}
529
                                        {/section}
530
                                            <td valign="top" nowrap="nowrap">&nbsp;&nbsp;&nbsp;</td>
531
                                        {section loop=$daten.garantie_stati name=gs_ind}
532
                                            {if isset($user_rechte.Warenwirtschaft.bestellung.garantieStatus)}
533
                                            <td valign="top" nowrap="nowrap" {if $daten.garantie_stati[gs_ind].name} class="darkgray"{/if}>
534
                                                {assign var=class value=$daten.garantie_stati[gs_ind].class}
535
                                                <a class="{$class}" onclick="change_status('g', {$daten.Bestellung.ID},0,'{$daten.garantie_stati[gs_ind].short}','{$daten.garantie_stati[gs_ind].name}');return false;" style="cursor:pointer" title="{$daten.garantie_stati[gs_ind].name}">&nbsp;&#x2211;&nbsp;</a>
536
                                            </td>
537
                                        {else}
538
                                            <td></td>
539
                                        {/if}
540
                                        {/section}
541
                                            <td valign="top" nowrap="nowrap">&nbsp;&nbsp;&nbsp;</td>
542
                                        </tr>
543
                                    </table>
544
                                </td>
545
                            </tr>
546
                            <tr>
547
                                <td width="5%"></td>
548
                                <td align="right" class="right">
549
                                    <span class="preise">
550
                                    Bestellwert: {$daten.Bestellung.gesamtsumme_buffer|money_format_red:2:$daten.Bestellung.locale}
551
                                    </span>
552
                                </td>
553
                                <td colspan="9" align="left" class="noprint">
554
                                    <input name="manu" value="Neuen Artikel anlegen" type="button" onclick="fenster=window.open('bestellung_liste_manu.php?Bestellung={$daten.Bestellung.ID}', 'fenster','width=800,toolbar=no,status=no,menubar=no,scrollbars=yes')">
555
                                </td>
556
                            </tr>
557
                            {if $versand_artikel}
558
                            <tr>
559
                                <td width="5%">&nbsp;</td>
560
                                <td width="90%" class="noprint">
561
                                    Versandstatus (O=offen; F=freigegeben; V=versand)
562
                                </td>
563
                                <td colspan="21" bgcolor="#FFFF00">
564
                                    <table border="0" cellspacing="2" cellpadding="2">
565
                                        <tr>
566
                                            <td class="darkgray" valign="top" nowrap="nowrap">
567
                                            {if $versand_status=="offen"}
568
                                                {assign var=class value="status_red"}
569
                                            {else}
570
                                                {assign var=class value="status_off"}
571
                                            {/if}
572
                                                <a class="{$class}" onclick="change_status('a', {$daten.Bestellung.ID},{$versand_artikel},'O','offen');return false;" style="cursor:pointer" id="a_{$versand_artikel}_O" title="offen">&nbsp;O&nbsp;</a>
573
                                            </td>
574
                                            <td class="darkgray" valign="top" nowrap="nowrap">
575
                                            {if $versand_status=="freigegeben"}
576
                                                {assign var=class value="status_yellow"}
577
                                            {else}
578
                                                {assign var=class value="status_off"}
579
                                            {/if}
580
                                                <a class="{$class}" onclick="change_status('a', {$daten.Bestellung.ID},{$versand_artikel},'F','freigegeben');return false;" style="cursor:pointer" id="a_{$versand_artikel}_F" title="freigegeben">&nbsp;F&nbsp;</a>
581
                                            </td>
582
                                            <td class="darkgray" valign="top" nowrap="nowrap">
583
                                            {if $versand_status=="versand"}
584
                                                {assign var=class value="status_green"}
585
                                            {else}
586
                                                {assign var=class value="status_off"}
587
                                            {/if}
588
                                                <a class="{$class}" onclick="change_status('a', {$daten.Bestellung.ID},{$versand_artikel},'V','versand');return false;" style="cursor:pointer" id="a_{$versand_artikel}_V" title="Versand">&nbsp;V&nbsp;</a>
589
                                            </td>
590
                                            <td valign="top" nowrap="nowrap">&nbsp;&nbsp;&nbsp;</td>
591
                                            <td valign="top" nowrap="nowrap">&nbsp;</td>
592
                                            <td valign="top" nowrap="nowrap">&nbsp;</td>
593
                                            <td valign="top" nowrap="nowrap">&nbsp;</td>
594
                                            <td valign="top" nowrap="nowrap">&nbsp;</td>
595
                                            <td valign="top" nowrap="nowrap">&nbsp;</td>
596
                                            <td valign="top" nowrap="nowrap">&nbsp;</td>
597
                                            <td valign="top" nowrap="nowrap">&nbsp;</td>
598
                                            <td valign="top" nowrap="nowrap">&nbsp;</td>
599
                                            <td valign="top" nowrap="nowrap">&nbsp;</td>
600
                                            <td valign="top" nowrap="nowrap">&nbsp;</td>
601
                                            <td valign="top" nowrap="nowrap">&nbsp;</td>
602
                                            <td valign="top" nowrap="nowrap">&nbsp;</td>
603
                                            <td valign="top" nowrap="nowrap">&nbsp;</td>
604
                                            <td valign="top" nowrap="nowrap">&nbsp;</td>
605
                                        </tr>
606
                                    </table>
607
                                </td>
608
                            </tr>
609
                            {/if}
610
                        </table>
611
                    </td>
612
                </tr>
613
                {if isset($user_rechte.Warenwirtschaft.bestellung.shortline1)}
614
                <tr>
615
                    <td valign="top" class="links noprint">{$daten.sl1.name}</td>
616
                    <td class="rechts" {$d_colspan}>
617
                        <span class="print">{$daten.sl1.name}</span>
618
                        <input type="text" name="shortline1" value="{$daten.Bestellung.shortline1}" size="{$daten.sl1.size}" maxlength="{$daten.sl1.size}">
619
                    </td>
620
                </tr>
621
                {/if}
622
                {if isset($user_rechte.Warenwirtschaft.bestellung.shortline2)}
623
                <tr>
624
                    <td valign="top" class="links">{$daten.sl2.name}</td>
625
                    <td class="rechts" {$d_colspan}>
626
                        <input type="text" name="shortline2" value="{$daten.Bestellung.shortline2}" size="{$daten.sl2.size}" maxlength="{$daten.sl2.size}">
627
                    </td>
628
                </tr>
629
                {/if}
630
                {if isset($user_rechte.Warenwirtschaft.bestellung.status1)}
631
                <tr>
632
                    <td valign="top" class="links">{$status1_name}</td>
633
                    <td class="rechts" {$d_colspan}>
634
                        {html_options options=$status1_options name="status1" selected=$daten.Bestellung.status1}
635
                    </td>
636
                </tr>
637
                {/if}
638
                <tr>
639
                    <td class="links noprint">Bemerkung:</td>
640
                    <td class="rechts" {$d_colspan}>
641
                        <div class="print">Bemerkung<br></div>
2 lars 642
                        <textarea cols="70" rows="8" name="Bemerkung" id="bemerkung" class="noprint">{$daten.Bestellung.Bemerkung}</textarea>
1 lars 643
                        <span class="print">{$daten.Bestellung.Bemerkung|nl2br}</span>
644
                    </td>
645
                </tr>
646
                {if isset($user_rechte.Warenwirtschaft.bestellung.Bemerkung_extern)}
647
                <tr>
648
                    <td class="links noprint">Bemerkung extern:</td>
649
                    <td class="rechts" {$d_colspan}>
650
                        <textarea cols="70" rows="8" name="Bemerkung_extern" class="noprint">{$daten.Bestellung.Bemerkung_extern}</textarea>
651
                        <span class="print">{$daten.Bestellung.Bemerkung_extern|nl2br}</span>
652
                    </td>
653
                </tr>
654
                {/if}
655
                {if isset($user_rechte.Warenwirtschaft.bestellung.dokument_read)}
656
                {section loop=$daten.dokumente name=d_ind}
657
                <tr>
658
                    <td class="links noprint">Dokument {$daten.dokumente[d_ind].nr}</td>
659
                    <td class="rechts" {$d_colspan}>
660
                        <table width="100%">
661
                            <tr class="links">
662
                                <td width="58%">
663
                                    {html_image file=$daten.dokumente[d_ind].icon alt="Dateityp: {$daten.dokumente[d_ind].type}"}
664
                                    <a href="{$daten.dokPath}{$daten.dokumente[d_ind].name}" target="_blank">
665
                                    {$daten.dokumente[d_ind].name} ({$daten.dokumente[d_ind].size|fsize_format:'':2:',':'.'})
666
                                    </a>
667
                                </td>
668
                                <td width="3%">
669
                                    {if isset($user_rechte.Warenwirtschaft.bestellung.dokument_delete) && $daten.dokumente[d_ind].deleteable}
670
                                    {html_image file="../dokumente/gfx/delete_record.gif" onclick="{$daten.dokumente[d_ind].del_document}" border="0" style="cursor:pointer"}
671
                                    {/if}
672
                                </td>
673
                                <td width="3%">
674
                                    {if isset($user_rechte.Warenwirtschaft.bestellung.dokument_add)}
675
                                    {html_image file="../dokumente/gfx/add.gif" onclick="{$daten.dokumente[d_ind].add_document}" border="0" style="cursor:pointer"}
676
                                    {/if}
677
                                </td>
678
                                <td width="23%">
679
                                    {$daten.dokumente[d_ind].date|date_format:"d.m.Y"}
680
                                    um: {$daten.dokumente[d_ind].date|date_format:"H:i:s"}
681
                                </td>
682
                                <td width="13%">
683
                                    {$daten.dokumente[d_ind].author|default:"&nbsp;"}
684
                                </td>
685
                            </tr>
686
                        </table>
687
                    </td>
688
                </tr>
689
                {sectionelse}
690
                {if isset($user_rechte.Warenwirtschaft.bestellung.dokument_add)}
691
                <tr class="noprint">
692
                    <td class="links">Dokument</td>
693
                    <td class="rechts" {$d_colspan}>
694
                        <a onclick="{$daten.add_document}" style="cursor:pointer;" href="#">
695
                        {html_image file="../dokumente/gfx/add.gif" onclick="{$daten.add_document}" border="0" style="cursor:pointer"}Datei anhängen
696
                        </a>
697
                    </td>
698
                </tr>
699
                {/if}
700
                {/section}
701
                {/if}
702
                <tr>
703
                    <td class="links noprint">Bestellt:</td>
704
                    <td class="rechts" {$d_colspan}>
705
                        <span class="print">Bestellt: </span>
706
                        {$daten.Bestellung.erstellt_am|date_format:"d.m.Y"}
707
                        um: {$daten.Bestellung.erstellt_am|date_format:"H:i:s"}
708
                    </td>
709
                </tr>
710
 
711
                <tr id="erstellt_von_row"{if !$daten.Bestellung.erstellt_von}style="display:none;"{/if}>
712
                    <td class="links noprint">Erstbearbeiter:</td>
713
                    <td class="rechts" id="erstellt_von" {$d_colspan}>
714
                        <span class="print">Erstbearbeiter: </span>
715
                        {$daten.Bestellung.erstellt_von}
716
                    </td>
717
                </tr>
718
                <tr>
719
                    <td class="links noprint">letzte Änderung:</td>
720
                    <td class="rechts" id="letzte_Aenderung" {$d_colspan}>
721
                        <span class="print">letzte Änderung: </span>
722
                        {$daten.Bestellung.letzte_Aenderung_am|date_format:"d.m.Y"}
723
                        um: {$daten.Bestellung.letzte_Aenderung_am|date_format:"H:i:s"}
724
                        von: {$daten.Bestellung.letzte_Aenderung_von}
725
                    </td>
726
                </tr>
727
                {if isset($web_rechte.admin.toolbox.logbuch)}
728
                <tr class="noprint">
729
                    <td class="links">Änderungsprotokoll</td>
730
                    <td id="logbuch" class="rechts" {$d_colspan}>
731
                        <a href="/toolbox/logbuch.php?mode=bestellung&id={$daten.Bestellung.ID}" target="logbuch">anzeigen</a>
732
                    </td>
733
                </tr>
734
                {/if}
735
                <tr class="noprint">
736
                    <td class="links" colspan="3" align="right">
2 lars 737
                    {foreach $daten.buttons as $button}
738
                        <input type="{$button.type}" value="{$button.value}" onclick="{$button.onClick}" class="{$button.class}">
739
                    {/foreach}
740
                    <div>&nbsp;</div>
741
                    <div>
742
                    {if isset($web_rechte.Warenwirtschaft.bestellung.online_retoure)}
743
                    {foreach $logistiker as $row}
744
                        {if $row.returnlink}
745
                            <button onclick="window.open('{$row.returnlink}');">{$row.kname} ONLINE Retoure</button>
746
                        {/if}
747
                    {/foreach}
748
                    {/if}
749
                    </div>
1 lars 750
                    <fieldset style="float:right; padding:0px; border:none;">
751
                        <legend>Speichern und ...</legend>
752
                        <input type="submit" name="update[current]" value="... nur speichern">
753
                        <input type="submit" name="update[prev]" value="... zurück">
754
                        <input type="submit" name="update[list]" value="... zur Übersicht">
755
                        <input type="submit" name="update[next]" value="... weiter">
756
                    </fieldset>
757
                    <div style="clear:both;">
758
                        <input type="reset" value="Zur&uuml;cksetzen">
759
                    </div>
760
                    {if ( isset($user_rechte.Warenwirtschaft.bestellung.termin) )}
761
                        <input name="button" type="button" onclick="systemtermin('Bestellung {$daten.Bestellung.ID} vom {$daten.Bestellung.letzte_Aenderung_am|date_format:"d.m.Y"}')" value="Termin">
762
                    {/if}
763
                    <div><br></div>
764
                    {if isset($user_rechte.Warenwirtschaft.bestellung.rechnung)}
765
                        <input type="button" onclick="window.open('rechnung.php?b_id={$daten.Bestellung.ID}')" value="Rechnung drucken" >
766
                    {/if}
767
                    {if isset($user_rechte.Warenwirtschaft.bestellung.lieferschein)}
768
                        <input type="button" onclick="window.open('lieferschein.php?b_id={$daten.Bestellung.ID}')" value="Lieferschein drucken" >
769
                    {/if}
770
                    {if isset($user_rechte.Warenwirtschaft.bestellung.drucken)}
771
                        <input type="button" onclick="window.open('auftrag.php?b_id={$daten.Bestellung.ID}')" value="Auftrag drucken" >
772
                    {/if}
773
                    {if isset($user_rechte.Warenwirtschaft.bestellung.angebot)}
774
                        <input type="button" onclick="window.open('angebot.php?b_id={$daten.Bestellung.ID}')" value="Angebot drucken" >
775
                    {/if}
776
                    <div><br></div>
777
                    {if isset($user_rechte.Warenwirtschaft.bestellung.bestconect)}
778
    				<input type="hidden" name="b_id" value="{$daten.Bestellung.ID}">
779
    				<input type="text" name="b_id_neu" value="">
780
	       			<input type="hidden" name="mode" value="combine">
781
		      		<input name="button" type="submit" value="Bestellpositionen verschieben">
782
                    {/if}
783
                    <div><br></div>
784
                    {if isset($user_rechte.Warenwirtschaft.bestellung.loeschen2)}
785
                    <input type="submit" name="delete2" value="Nur Bestellung l&ouml;schen" onclick="return confirm('Wollen sie diese Bestellung wirklich l&ouml;schen?')">
786
                    {/if}
787
                    {if isset($user_rechte.Warenwirtschaft.bestellung.loeschen)}
788
                    <input type="submit" name="delete" value="Bestellung + Kundendaten l&ouml;schen" onclick="return confirm('Wollen sie diese Bestellung und die dazugeh&ouml;rigen Kundendaten wirklich l&ouml;schen?')">
789
                    {/if}
790
                    {assign var=kk value=false}
791
                    {assign var=rufname value=$versand_name|lower}
792
                    {assign var=status value=$daten.Bestellung.kk_info.status|lower}
793
                    {if $rufname == "kreditkarte" && $status == "offen"}
794
                        {assign var=kk value=true}
795
                    {/if}
796
                    {if isset($user_rechte.Warenwirtschaft.bestellung["kk-zahlung"])}
797
                    {if $kk}
798
                        <input type="hidden" name="shops_ID" value="{$daten.Bestellung.shops_ID}">
799
                    <div><br></div>
800
                    {if $web_settings[$daten.Bestellung.shops_ID][119] == "saferpay"}
801
		      			<input type="hidden" name="orderid" value="{$daten.Bestellung.ID}">
802
			     		<input type="hidden" name="kk_info" value="{$daten.Bestellung.kk_info.code}">
803
                    {elseif $web_settings[$daten.Bestellung.shops_ID][119] == "acceptance"}
804
    					<input type="hidden" name="orderid" value="{$daten.Bestellung.ID}">
805
	   	       			<input type="hidden" name="amount" value="{$daten.Bestellung.kk_summe}">
806
			     		<input type="hidden" name="currency" value="EUR">
807
				    	<input type="hidden" name="language" value="de_DE">
808
                    {/if}
809
	       				<input type="hidden" name="operation" value="SAS">
810
        				<input name="anfordern" type="submit" value="Zahlung anfordern">
811
                    {/if}
812
                    {/if}
813
                {if isset($user_rechte.Warenwirtschaft.bestellung.gutscheinbutton) && $gs}
814
                        <input type="button" value="Gutschein erstellen" id="gen_gutschein">
815
                    </td>
816
                {/if}
817
                </tr>
818
            </table>
819
            <br>
820
            <div id="gutschein_meldung"></div>
821
        </form>
822
        {if $gs}
823
        <div id="gutschein_dialog" title="Gutschein erstellen">
824
            <form id="gutschein_form">
825
            <table>
826
                <tr>
827
                    <td>
828
                        <label for="gs_name">Name:</label>
829
                    </td>
830
                    <td>
831
                        <input type="text" name="gs_name" id="gs_name" value="{$gutschein.name}">
832
                    </td>
833
                </tr>
834
                <tr>
835
                    <td>
836
                        <label for="gs_gueltig_bis">gültig bis:</label>
837
                    </td>
838
                    <td>
839
                        <input type="text" name="gs_gueltig_bis" id="gs_gueltig_bis" value="{$gutschein.gueltig}">
840
                    </td>
841
                </tr>
842
            </table>
843
            <input type="hidden" name="gs_anfangswert" value="{$gutschein.anfangswert}">
844
            <input type="hidden" name="gs_restwert" value="{$gutschein.anfangswert}">
845
            <input type="hidden" name="gs_empfaenger" value="{$daten.Bestellung.Anrede} {$daten.Bestellung.Vorname} {$daten.Bestellung.Name1}">
846
            <input type="hidden" name="gs_status" value="1">
847
            <input type="hidden" name="gs_shop" value="0">
848
            <input type="hidden" name="b_id" value="{$daten.Bestellung.ID}">
849
            <input type="hidden" name="gs_artikel" id="gs_artikel" value="{$gutschein.gs_artikel}">
850
            <input type="hidden" name="gs_a_status" id="gs_status" value="{$gutschein.gs_a_status}">
851
            <input type="hidden" name="gs_a_status_k" id="gs_status_k" value="{$gutschein.gs_a_status_k}">
852
            <input type="hidden" name="action" value="insert">
853
            </form>
854
        </div>
855
        {/if}
856
 
857
{if ( isset( $user_rechte["Warenwirtschaft"]["bestellung"]["lieferantenbestellung"] ) )}
2 lars 858
<div id="lagerbestand" title="Lagerbestand für <span id='a_name'></span> (<span id='a_id'></span>)">
1 lars 859
</div>
860
{/if}