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