| 1 |
lars |
1 |
<?
|
|
|
2 |
define("Range",100);
|
|
|
3 |
define ("modul_name", "Warenwirtschaft");
|
|
|
4 |
define ("tool_name", "bestellung");
|
|
|
5 |
require_once "../Online-Shop/connect2.php";
|
|
|
6 |
|
|
|
7 |
require_once "includes/bestellungen/system/getBestellungLieferscheinStatus.php";
|
|
|
8 |
require_once "includes/bestellungen/system/getBestellungRechnungStatus.php";
|
|
|
9 |
require_once "includes/bestellungen/system/getBestellungStatus.php";
|
|
|
10 |
require_once "includes/bestellungen/system/getBestellungSumme.php";
|
|
|
11 |
require_once "includes/bestellungen/system/mysql_query_logged.php";
|
|
|
12 |
require_once "includes/bestellungen/system/artikelDatabase.php";
|
|
|
13 |
require_once "includes/bestellungen/system/bestellung_puffern.php";
|
|
|
14 |
require_once "includes/bestellungen/system/getVersandItems.php";
|
|
|
15 |
|
|
|
16 |
session_start();
|
|
|
17 |
if (!$_GET["Bestellung"])
|
|
|
18 |
{
|
|
|
19 |
exit;
|
|
|
20 |
}
|
|
|
21 |
?>
|
|
|
22 |
<html>
|
|
|
23 |
<head>
|
|
|
24 |
<title><?=$webs[kunde_bezeichnung];?>: Redaktionssystem</title>
|
|
|
25 |
<meta http-equiv="Content-Type" content="text/html; charset=<?=$charset ?>">
|
|
|
26 |
<link rel=stylesheet type="text/css" href="/styles/styles.php">
|
|
|
27 |
<meta name="description" content="Redaktionssystem">
|
|
|
28 |
<meta name="author" content="Webagentur Niewerth">
|
|
|
29 |
<meta name="robots" content="noindex">
|
|
|
30 |
<style type="text/css">
|
|
|
31 |
<!--
|
|
|
32 |
.lightgray {color: #000000; background-color: #EEEEEE}
|
|
|
33 |
.darkgray {color: #000000; background-color: #CCCCCC}
|
|
|
34 |
.status_off {color: #000000;}
|
|
|
35 |
.status_red {color: #FFFFFF; background-color: #FF0000}
|
|
|
36 |
.status_yellow {color: #000000; background-color: #FFFF00}
|
|
|
37 |
.status_blue {color: #FFFFFF; background-color: #0000FF}
|
|
|
38 |
.status_green {color: #000000; background-color: #00FF00}
|
|
|
39 |
.status_white {color: #000000; background-color: #FFFFFF}
|
|
|
40 |
-->
|
|
|
41 |
</style>
|
|
|
42 |
</head>
|
|
|
43 |
<body leftmargin="20" topmargin="10" marginwidth="20" marginheight="10" bgcolor="#FFFFFF">
|
|
|
44 |
<!-- ########################################################################################################################################################## -->
|
|
|
45 |
|
|
|
46 |
<?
|
|
|
47 |
$query="
|
|
|
48 |
select
|
|
|
49 |
Bestellung.*,
|
|
|
50 |
Logins.Status,
|
|
|
51 |
Logins.user,
|
|
|
52 |
Logins.passwd,
|
|
|
53 |
Logins.Anrede,
|
|
|
54 |
Logins.Vorname,
|
|
|
55 |
Logins.Name1,
|
|
|
56 |
Logins.Name2,
|
|
|
57 |
Logins.Strasse,
|
|
|
58 |
Logins.Hausnummer,
|
|
|
59 |
Logins.PLZ,
|
|
|
60 |
Logins.ORT,
|
|
|
61 |
Logins.Telefon,
|
|
|
62 |
Logins.Fax,
|
|
|
63 |
Logins.E_Mail,
|
|
|
64 |
Logins.Land,
|
|
|
65 |
Logins.AP_Name,
|
|
|
66 |
Logins.AP_Handy,
|
|
|
67 |
Logins.AP_Bemerkung
|
|
|
68 |
from
|
|
|
69 |
Bestellung,
|
|
|
70 |
Logins
|
|
|
71 |
where
|
|
|
72 |
Bestellung.ID = $Bestellung
|
|
|
73 |
and
|
|
|
74 |
Logins.ID = Bestellung.Login
|
|
|
75 |
";
|
|
|
76 |
$result = mysql_query ($query) or die (mysql_errno().": ".mysql_error()."<hr>".nl2br($query)."<hr>");
|
|
|
77 |
$zeile=mysql_fetch_array($result);
|
|
|
78 |
$BestellData = $zeile;
|
|
|
79 |
?>
|
|
|
80 |
<table width="650" border="1" cellspacing="0" cellpadding="3">
|
|
|
81 |
<tr>
|
|
|
82 |
<td colspan="2" class="links">Bestellung: Bearbeiten</td>
|
|
|
83 |
</tr>
|
|
|
84 |
<tr>
|
|
|
85 |
<td class="links">Bestellnummer:</td>
|
|
|
86 |
<td class="rechts">
|
|
|
87 |
<?=$zeile[ID];?>
|
|
|
88 |
-
|
|
|
89 |
<?=$zeile[Language];?> - Shop:
|
|
|
90 |
<?=$_SESSION[shops][$zeile[shops_ID]][Name];?> </td>
|
|
|
91 |
</tr>
|
|
|
92 |
<tr>
|
|
|
93 |
<td valign="top" class="links">
|
|
|
94 |
Kunde:<br>
|
|
|
95 |
Userlevel: <?=$zeile[Status];?> </td>
|
|
|
96 |
<td class="rechts">
|
|
|
97 |
<table width="100%" border="1" cellpadding="0" cellspacing="0">
|
|
|
98 |
<tr>
|
|
|
99 |
<td>
|
|
|
100 |
<?=$zeile[Anrede];?>
|
|
|
101 |
<?=$zeile[Vorname];?>
|
|
|
102 |
<?=$zeile[Name1];?>
|
|
|
103 |
</td>
|
|
|
104 |
<td>
|
|
|
105 |
<?=$zeile[Strasse];?> <?=$zeile[Hausnummer];?> </td>
|
|
|
106 |
<td><?=$zeile[Telefon];?> </td>
|
|
|
107 |
<td>
|
|
|
108 |
<?=$zeile[Fax];?>
|
|
|
109 |
</td>
|
|
|
110 |
</tr>
|
|
|
111 |
<tr>
|
|
|
112 |
<td height="41">
|
|
|
113 |
<? if ($zeile[Name2] != '') { ?>
|
|
|
114 |
<strong>Firma / Organisation</strong><br>
|
|
|
115 |
<? } ?>
|
|
|
116 |
<?=$zeile[Name2];?>
|
|
|
117 |
</td>
|
|
|
118 |
<td>
|
|
|
119 |
<?=$zeile[PLZ];?> <?=$zeile[ORT];?> </td>
|
|
|
120 |
<td>
|
|
|
121 |
<? if ($zeile[E_Mail]) { ?>
|
|
|
122 |
<a href="mailto:<?=$zeile[E_Mail];?>">
|
|
|
123 |
<?=$zeile[E_Mail];?>
|
|
|
124 |
</a>
|
|
|
125 |
<? }?>
|
|
|
126 |
</td>
|
|
|
127 |
<td>
|
|
|
128 |
<?=$zeile[Land];?>
|
|
|
129 |
</td>
|
|
|
130 |
</tr>
|
|
|
131 |
</table>
|
|
|
132 |
<? if ($zeile[liefer_Strasse] != '') { ?>
|
|
|
133 |
<br>
|
|
|
134 |
<table width="100%" border="1" cellpadding="0" cellspacing="0">
|
|
|
135 |
<tr>
|
|
|
136 |
<td height="24"><strong>Lieferadresse:</strong></td>
|
|
|
137 |
<td>Name:<br>
|
|
|
138 |
<?
|
|
|
139 |
echo
|
|
|
140 |
$zeile[liefer_Anrede]." ".
|
|
|
141 |
$zeile[liefer_Vorname]." ".
|
|
|
142 |
$zeile[liefer_Name];
|
|
|
143 |
?>
|
|
|
144 |
</td>
|
|
|
145 |
<td>
|
|
|
146 |
<? if ($zeile[liefer_Firma] != '') { ?>
|
|
|
147 |
Firma / Organisation:<br>
|
|
|
148 |
<? } ?>
|
|
|
149 |
<?=$zeile[liefer_Firma];?>
|
|
|
150 |
</td>
|
|
|
151 |
</tr>
|
|
|
152 |
<tr>
|
|
|
153 |
<td height="41">
|
|
|
154 |
<?=$zeile[liefer_Strasse];?> <?=$zeile[liefer_Str_Nr];?> </td>
|
|
|
155 |
<td>
|
|
|
156 |
<?=$zeile[liefer_PLZ];?> <?=$zeile[liefer_Ort];?> </td>
|
|
|
157 |
<td>
|
|
|
158 |
<?=$zeile[liefer_Land];?> </td>
|
|
|
159 |
</tr>
|
|
|
160 |
</table>
|
|
|
161 |
<? } ?> </td>
|
|
|
162 |
</tr>
|
|
|
163 |
<tr>
|
|
|
164 |
<td valign="top" class="links"><p>Artikel:</p> </td>
|
|
|
165 |
<td align="right" class="rechts">
|
|
|
166 |
<table width="100%" border="0" cellspacing="2" cellpadding="2">
|
|
|
167 |
<?
|
|
|
168 |
$summe=0;$runner=0;
|
|
|
169 |
|
|
|
170 |
$cmd_buttons=array
|
|
|
171 |
(
|
|
|
172 |
array('O', 'offen', 'status_red', 'artikelStatus', 0),
|
|
|
173 |
array('B', 'in Bearbeitung', 'status_yellow', 'artikelStatus', 0),
|
|
|
174 |
array('R', 'reserviert', 'status_blue', 'artikelStatus', 0),
|
|
|
175 |
array('E', 'erledigt', 'status_green', 'artikelStatus', 0),
|
|
|
176 |
array('A', 'abgeschlossen', 'status_white', 'artikelStatus', 0),
|
|
|
177 |
str_repeat(" ", 3),
|
|
|
178 |
array('S', 'schreiben', 'status_red', 'rechnungStatus', 6),
|
|
|
179 |
array('G', 'geschrieben', 'status_yellow', 'rechnungStatus', 6),
|
|
|
180 |
array('B', 'bezahlt', 'status_green', 'rechnungStatus', 6),
|
|
|
181 |
str_repeat(" ", 3),
|
|
|
182 |
array('S', 'schreiben', 'status_yellow', 'lieferscheinStatus', 0),
|
|
|
183 |
array('G', 'geschrieben', 'status_green', 'lieferscheinStatus', 0),
|
|
|
184 |
array('O', 'offen', 'status_red', 'lieferscheinStatus', 0)
|
|
|
185 |
);
|
|
|
186 |
|
|
|
187 |
$user_rechte[modul_name][tool_name][artikelStatus]=&$user_rechte[modul_name][tool_name][status];
|
|
|
188 |
|
|
|
189 |
|
|
|
190 |
foreach(array_keys($cmd_buttons) as $buttonIndex)
|
|
|
191 |
{
|
|
|
192 |
if
|
|
|
193 |
(
|
|
|
194 |
(!isset($user_rechte[modul_name][tool_name][$cmd_buttons[$buttonIndex][3]]))
|
|
|
195 |
and
|
|
|
196 |
(is_array($cmd_buttons[$buttonIndex]))
|
|
|
197 |
)
|
|
|
198 |
{
|
|
|
199 |
unset($cmd_buttons[$buttonIndex]);
|
|
|
200 |
}
|
|
|
201 |
}
|
|
|
202 |
|
|
|
203 |
if ($filter[shops_ID] != "alle")
|
|
|
204 |
{
|
|
|
205 |
$shopsIDaddOn=" and shops.ID = ".$filter[shops_ID];
|
|
|
206 |
}
|
|
|
207 |
|
|
|
208 |
$query_artikel="
|
|
|
209 |
select
|
|
|
210 |
artikel_to_Bestellung.ID,
|
|
|
211 |
artikel_to_Bestellung.status as artikelStatus,
|
|
|
212 |
artikel_to_Bestellung.Preis_pro_Stueck,
|
|
|
213 |
artikel_to_Bestellung.Menge,
|
|
|
214 |
artikel_to_Bestellung.Bezeichnung,
|
|
|
215 |
artikel_to_Bestellung.Bestellung,
|
|
|
216 |
artikel_to_Bestellung.rechnungStatus,
|
|
|
217 |
artikel_to_Bestellung.lieferscheinStatus,
|
|
|
218 |
".artikelDatabase($zeile[shops_ID]).".*,
|
|
|
219 |
ifnull(".artikelDatabase($zeile[shops_ID]).".Father, 1) as Father,
|
|
|
220 |
ifnull(artikel_to_Bestellung.Bezeichnung, ".artikelDatabase($zeile[shops_ID]).".kurzbezeichnung) as kurzbezeichnung
|
|
|
221 |
from
|
|
|
222 |
artikel_to_Bestellung,
|
|
|
223 |
Bestellung,
|
|
|
224 |
shops
|
|
|
225 |
left join
|
|
|
226 |
".artikelDatabase($zeile[shops_ID])."
|
|
|
227 |
on
|
|
|
228 |
artikel_to_Bestellung.artikel=".artikelDatabase($zeile[shops_ID]).".ID
|
|
|
229 |
and
|
|
|
230 |
".artikelDatabase($zeile[shops_ID]).".language=Bestellung.Language
|
|
|
231 |
where
|
|
|
232 |
Bestellung.ID = ".$zeile[ID]."
|
|
|
233 |
and
|
|
|
234 |
artikel_to_Bestellung.Bestellung = Bestellung.ID
|
|
|
235 |
and
|
|
|
236 |
shops.ID = Bestellung.shops_ID
|
|
|
237 |
order by
|
|
|
238 |
Father desc,
|
|
|
239 |
".artikelDatabase($zeile[shops_ID]).".Kennung
|
|
|
240 |
";
|
|
|
241 |
//echo $query_artikel;
|
|
|
242 |
|
|
|
243 |
$itemList=array();
|
|
|
244 |
unset($Versand_Artikel);
|
|
|
245 |
$result_artikel = mysql_query ($query_artikel) or die (mysql_errno().": ".mysql_error()."<hr>".nl2br($query_artikel)."<hr>");
|
|
|
246 |
while($zeile_artikel=mysql_fetch_array($result_artikel))
|
|
|
247 |
{
|
|
|
248 |
if ($zeile_artikel[artikelStatus] != "storniert")
|
|
|
249 |
{
|
|
|
250 |
$summe+=$zeile_artikel[2]*$zeile_artikel[Menge];
|
|
|
251 |
}
|
|
|
252 |
/*
|
|
|
253 |
ein artikel ist kein versand, wenn
|
|
|
254 |
er einen vater > 3 hat
|
|
|
255 |
ODER KEINEN VATER hat
|
|
|
256 |
und der Status != versand
|
|
|
257 |
*/
|
|
|
258 |
if (
|
|
|
259 |
(($zeile_artikel[Father] > -3) or ($zeile_artikel[Father] == ""))
|
|
|
260 |
and
|
|
|
261 |
($zeile_artikel[artikelStatus] != 'versand')
|
|
|
262 |
)
|
|
|
263 |
{
|
|
|
264 |
$itemList[]=$zeile_artikel[0];
|
|
|
265 |
?>
|
|
|
266 |
<tr class="<? if ($runner++ % 2 != 0) {?>lightgray<? } else { ?>darkgray<? } ?>">
|
|
|
267 |
<td width="5%" valign="top">
|
|
|
268 |
<?
|
|
|
269 |
if($zeile_artikel[artikelStatus] == 'storniert'){echo '<strike>';}
|
|
|
270 |
echo $zeile_artikel[kennung];
|
|
|
271 |
if($zeile_artikel[artikelStatus] == 'storniert'){echo '</strike>';}
|
|
|
272 |
?> </td>
|
|
|
273 |
<td width="90%">
|
|
|
274 |
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
|
|
|
275 |
<tr>
|
|
|
276 |
<td align="right" valign="top" nowrap>
|
|
|
277 |
<?
|
|
|
278 |
if($zeile_artikel[artikelStatus] == 'storniert'){echo '<strike>';}
|
|
|
279 |
echo $zeile_artikel[Menge];
|
|
|
280 |
if($zeile_artikel[artikelStatus] == 'storniert'){echo '<strike>';}
|
|
|
281 |
?>
|
|
|
282 |
x </td>
|
|
|
283 |
<td width="100%" onDblClick="location.href='<?=$self?>?Bestellung=<?=$_GET[Bestellung];?><? if ($_GET[edit] != $zeile_artikel[0]) { ?>&edit=<?=$zeile_artikel[0];?><? } ?>'"><?
|
|
|
284 |
if ($zeile_artikel[Bezeichnung])
|
|
|
285 |
{
|
|
|
286 |
$zeile_artikel[kurzbezeichnung]=$zeile_artikel[Bezeichnung];
|
|
|
287 |
}
|
|
|
288 |
if($zeile_artikel[artikelStatus] == 'storniert')
|
|
|
289 |
{
|
|
|
290 |
echo '<strike>';
|
|
|
291 |
}
|
|
|
292 |
if ($zeile_artikel[hersteller])
|
|
|
293 |
{
|
|
|
294 |
echo $zeile_artikel[hersteller]." ";
|
|
|
295 |
}
|
|
|
296 |
|
|
|
297 |
|
|
|
298 |
echo strip_tags($zeile_artikel[kurzbezeichnung]);
|
|
|
299 |
|
|
|
300 |
|
|
|
301 |
if($zeile_artikel[artikelStatus] == 'storniert'){echo '</strike>';}
|
|
|
302 |
?>
|
|
|
303 |
|
|
|
304 |
<?
|
|
|
305 |
// Sonderausgaben wenn shop = eBay-shop - Nw 02.09.2004
|
|
|
306 |
if ($_SESSION[shops][$zeile[shops_ID]][ebay] == '1') { ?>
|
|
|
307 |
<? if($zeile_artikel[artikelStatus] == 'storniert'){echo '<strike>';} ?>
|
|
|
308 |
(eBay-Auktion
|
|
|
309 |
<?
|
|
|
310 |
$query_ebayartikel="
|
|
|
311 |
select
|
|
|
312 |
eBay_Auktionen.*
|
|
|
313 |
from
|
|
|
314 |
Bestellung,
|
|
|
315 |
eBay_Bestellung,
|
|
|
316 |
eBay_Auktionen
|
|
|
317 |
where
|
|
|
318 |
Bestellung.ID=$zeile_artikel[Bestellung]
|
|
|
319 |
and
|
|
|
320 |
Bestellung.ID=eBay_Bestellung.Bestellung_ID
|
|
|
321 |
and
|
|
|
322 |
eBay_Bestellung.eBay_Auktionen_ID=eBay_Auktionen.ID
|
|
|
323 |
";
|
|
|
324 |
$result_ebayartikel = mysql_query ($query_ebayartikel) or die (mysql_errno().": ".mysql_error());
|
|
|
325 |
$zeile_ebayartikel = mysql_fetch_array($result_ebayartikel);
|
|
|
326 |
?>
|
|
|
327 |
<a href="http://cgi.ebay.de/ws/eBayISAPI.dll?ViewItem&rd=1&item=<?=$zeile_ebayartikel[eBay_Id]; ?>">
|
|
|
328 |
<?=$zeile_ebayartikel[eBay_Id]; ?>
|
|
|
329 |
</a>)
|
|
|
330 |
<? if($zeile_artikel[artikelStatus] == 'storniert'){echo '</strike>';} ?>
|
|
|
331 |
<? } ?>
|
|
|
332 |
</td>
|
|
|
333 |
<td align="right" nowrap valign="top">
|
|
|
334 |
<? if ($_GET[edit] == $zeile_artikel[0]) { ?><? } else {
|
|
|
335 |
if($zeile_artikel[artikelStatus] == 'storniert'){echo '<strike>';}
|
|
|
336 |
echo number_format($zeile_artikel[2],2,',','.');
|
|
|
337 |
if($zeile_artikel[artikelStatus] == 'storniert'){echo '</strike>';}
|
|
|
338 |
} ?>
|
|
|
339 |
€ </td>
|
|
|
340 |
<td align="right" nowrap valign="top">
|
|
|
341 |
<?
|
|
|
342 |
// Storno- Button
|
|
|
343 |
if ($_GET[edit] == $zeile_artikel[0]) {
|
|
|
344 |
echo '<a href="'.$self.'?Bestellung='.$zeile[ID].'&artikelStatus['.$zeile_artikel[0].']=S">X</a>';
|
|
|
345 |
}
|
|
|
346 |
?> </td>
|
|
|
347 |
</tr>
|
|
|
348 |
</table> </td>
|
|
|
349 |
<td colspan=9 bgcolor="#FFFF00">
|
|
|
350 |
<table border="0" cellspacing="2" cellpadding="2">
|
|
|
351 |
<tr>
|
|
|
352 |
<?
|
|
|
353 |
$my_buttons=$cmd_buttons;
|
|
|
354 |
|
|
|
355 |
foreach(array("artikelStatus","rechnungStatus","lieferscheinStatus") as $wr_index)
|
|
|
356 |
{
|
|
|
357 |
$wr = &$web_rechte[modul_name][tool_name][$wr_index];
|
|
|
358 |
$wr = explode(";",$wr);
|
|
|
359 |
|
|
|
360 |
foreach($wr as $wr_key => $wr_value)
|
|
|
361 |
{
|
|
|
362 |
$wr[$wr_key] = explode("#",$wr[$wr_key]);
|
|
|
363 |
}
|
|
|
364 |
}
|
|
|
365 |
|
|
|
366 |
foreach($my_buttons as $my_buttons_index => $my_buttons_value)
|
|
|
367 |
{
|
|
|
368 |
if (!isset($user_rechte[modul_name][tool_name][rechnungStatus]))
|
|
|
369 |
{
|
|
|
370 |
if ($my_buttons_value[3] == "rechnungStatus")
|
|
|
371 |
{
|
|
|
372 |
$my_buttons[$my_buttons_index] = "";
|
|
|
373 |
}
|
|
|
374 |
|
|
|
375 |
}
|
|
|
376 |
}
|
|
|
377 |
unset($wr);
|
|
|
378 |
|
|
|
379 |
foreach($my_buttons as $my_button_index => $button)
|
|
|
380 |
{
|
|
|
381 |
echo "<td valign=top nowrap";
|
|
|
382 |
if (is_array($button))
|
|
|
383 |
{
|
|
|
384 |
echo " class=darkgray>";
|
|
|
385 |
echo "<a href=\"$self?Bestellung=$Bestellung&".$button[3]."[".$zeile_artikel[0]."]=".$button[0]."\" style=\"text-decoration:none;\"";
|
|
|
386 |
|
|
|
387 |
if ($zeile_artikel[$button[3]] == $button[1])
|
|
|
388 |
{
|
|
|
389 |
echo "class=".$button[2];
|
|
|
390 |
}
|
|
|
391 |
else
|
|
|
392 |
{
|
|
|
393 |
echo "class=status_off";
|
|
|
394 |
}
|
|
|
395 |
|
|
|
396 |
echo "> ";
|
|
|
397 |
|
|
|
398 |
//$my_output = &$web_rechte[modul_name][tool_name][$button[3]][$my_button_index-$button[4]][0];
|
|
|
399 |
if (empty($my_output)) { echo $button[0]; } else { echo $my_output; }
|
|
|
400 |
|
|
|
401 |
echo " </a>";
|
|
|
402 |
}
|
|
|
403 |
else
|
|
|
404 |
{
|
|
|
405 |
echo ">".$button;
|
|
|
406 |
}
|
|
|
407 |
echo "</td>";
|
|
|
408 |
}
|
|
|
409 |
?>
|
|
|
410 |
</tr>
|
|
|
411 |
</table> </td>
|
|
|
412 |
</tr>
|
|
|
413 |
<?
|
|
|
414 |
}
|
|
|
415 |
else
|
|
|
416 |
{
|
|
|
417 |
$Versand_Artikel=$zeile_artikel;
|
|
|
418 |
?>
|
|
|
419 |
<tr class="<? if ($runner++ % 2 != 0) {?>lightgray<? } else { ?>darkgray<? } ?>">
|
|
|
420 |
<td width="5%" valign="top"> </td>
|
|
|
421 |
<td width="90%">
|
|
|
422 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
423 |
<tr>
|
|
|
424 |
<td nowrap valign="top" onDblClick="location.href='<?=$self?>?Bestellung=<?=$_GET[Bestellung];?><? if ($_GET[edit] != $zeile_artikel[0]) { ?>&edit=<?=$zeile_artikel[0];?><? } ?>'"> Versand:
|
|
|
425 |
<?
|
|
|
426 |
if ($zeile_artikel[Bezeichnung])
|
|
|
427 |
{
|
|
|
428 |
$zeile_artikel[kurzbezeichnung]=$zeile_artikel[Bezeichnung];
|
|
|
429 |
}
|
|
|
430 |
|
|
|
431 |
|
|
|
432 |
if ($_GET[edit] == $zeile_artikel[0]) { ?><? } else {
|
|
|
433 |
echo strip_tags($zeile_artikel[kurzbezeichnung]);
|
|
|
434 |
} ?> </td>
|
|
|
435 |
<td align="right" nowrap valign="top" onDblClick="location.href='<?=$self?>?Bestellung=<?=$_GET[Bestellung];?><? if ($_GET[edit] != $zeile_artikel[0]) { ?>&edit=<?=$zeile_artikel[0];?><? } ?>'">
|
|
|
436 |
|
|
|
437 |
<? if ($_GET[edit] == $zeile_artikel[0]) { ?><? } else {
|
|
|
438 |
echo number_format($zeile_artikel[2],2,',','.');
|
|
|
439 |
} ?>
|
|
|
440 |
|
|
|
441 |
€ </td>
|
|
|
442 |
</tr>
|
|
|
443 |
</table> </td>
|
|
|
444 |
<td colspan=9 align="center"> </td>
|
|
|
445 |
</tr>
|
|
|
446 |
<?
|
|
|
447 |
}
|
|
|
448 |
}
|
|
|
449 |
?>
|
|
|
450 |
<tr>
|
|
|
451 |
<td width="5%" valign="top"> </td>
|
|
|
452 |
<td> </td>
|
|
|
453 |
<td>
|
|
|
454 |
<?
|
|
|
455 |
//if ($web_rechte[modul_name][tool_name]["massen_schalter"])
|
|
|
456 |
{
|
|
|
457 |
?><table border="0" cellspacing="2" cellpadding="2"><tr><?
|
|
|
458 |
$my_buttons=$cmd_buttons;
|
|
|
459 |
|
|
|
460 |
foreach(array("artikelStatus","rechnungStatus") as $wr_index)
|
|
|
461 |
{
|
|
|
462 |
$wr = &$web_rechte[modul_name][tool_name][$wr_index];
|
|
|
463 |
$wr = explode(";",$wr);
|
|
|
464 |
|
|
|
465 |
foreach($wr as $wr_key => $wr_value)
|
|
|
466 |
{
|
|
|
467 |
$wr[$wr_key] = explode("#",$wr[$wr_key]);
|
|
|
468 |
}
|
|
|
469 |
}
|
|
|
470 |
|
|
|
471 |
foreach($my_buttons as $my_buttons_index => $my_buttons_value)
|
|
|
472 |
{
|
|
|
473 |
if (!isset($user_rechte[modul_name][tool_name][rechnungStatus]))
|
|
|
474 |
{
|
|
|
475 |
if ($my_buttons_value[3] == "rechnungStatus")
|
|
|
476 |
{
|
|
|
477 |
$my_buttons[$my_buttons_index] = "";
|
|
|
478 |
}
|
|
|
479 |
}
|
|
|
480 |
}
|
|
|
481 |
unset($wr);
|
|
|
482 |
|
|
|
483 |
foreach($my_buttons as $my_button_index => $button)
|
|
|
484 |
{
|
|
|
485 |
echo "<td valign=top nowrap";
|
|
|
486 |
if (is_array($button))
|
|
|
487 |
{
|
|
|
488 |
echo " class=darkgray>";
|
|
|
489 |
echo "<a href=\"$self?Bestellung=$Bestellung";
|
|
|
490 |
foreach($itemList as $id)
|
|
|
491 |
{
|
|
|
492 |
echo "&".$button[3]."[".$id."]=".$button[0];
|
|
|
493 |
}
|
|
|
494 |
echo "\" style=\"text-decoration:none;\"";
|
|
|
495 |
echo "class=".$button[2];
|
|
|
496 |
echo "> ";
|
|
|
497 |
|
|
|
498 |
if (empty($my_output)) { echo "∑"; } else { echo $my_output; }
|
|
|
499 |
|
|
|
500 |
echo " </a>";
|
|
|
501 |
}
|
|
|
502 |
else
|
|
|
503 |
{
|
|
|
504 |
echo ">".$button;
|
|
|
505 |
}
|
|
|
506 |
echo "</td>";
|
|
|
507 |
}
|
|
|
508 |
?></tr></table><?
|
|
|
509 |
}
|
|
|
510 |
?> </td>
|
|
|
511 |
</tr>
|
|
|
512 |
<tr>
|
|
|
513 |
<td width="5%" valign="top"> </td>
|
|
|
514 |
<td align="right"> Bestellwert:
|
|
|
515 |
<? echo number_format($summe, 2, ',', '.') ?>
|
|
|
516 |
€ </td>
|
|
|
517 |
<td colspan="9"> </td>
|
|
|
518 |
</tr>
|
|
|
519 |
<?
|
|
|
520 |
if ($Versand_Artikel)
|
|
|
521 |
{
|
|
|
522 |
?>
|
|
|
523 |
<tr>
|
|
|
524 |
<td valign="top"> </td>
|
|
|
525 |
<td nowrap> Versandstatus (O=offen; F=freigegeben; V=versand)</td>
|
|
|
526 |
<td colspan=9 align="center" bgcolor="#FFFF00">
|
|
|
527 |
<table border="0" cellspacing="2" cellpadding="2">
|
|
|
528 |
<tr>
|
|
|
529 |
<td align="center" valign="top" nowrap class=darkgray><a href="<?=$self ?>?Bestellung=<?=$Bestellung ?>&artikelStatus[<?=$Versand_Artikel[0];?>]=O" style="text-decoration:none;" <? if ($Versand_Artikel[1] == 'offen') { ?>class="status_red"<? } else { ?>class="status_off"<? } ?>> O </a></td>
|
|
|
530 |
<td align="center" valign="top" nowrap class=darkgray><a href="<?=$self ?>?Bestellung=<?=$Bestellung ?>&artikelStatus[<?=$Versand_Artikel[0];?>]=F" style="text-decoration:none;" <? if ($Versand_Artikel[1] == 'freigegeben') { ?>class="status_yellow"<? } else { ?>class="status_off"<? } ?>> F </a></td>
|
|
|
531 |
<td align="center" valign="top" nowrap class=darkgray><a href="<?=$self ?>?Bestellung=<?=$Bestellung ?>&artikelStatus[<?=$Versand_Artikel[0];?>]=V" style="text-decoration:none" <? if ($Versand_Artikel[1] == 'versand') { ?>class="status_green"<? } else { ?>class="status_off"<? } ?>> V </a></td>
|
|
|
532 |
</tr>
|
|
|
533 |
</table> </td>
|
|
|
534 |
</tr>
|
|
|
535 |
<?
|
|
|
536 |
}
|
|
|
537 |
?>
|
|
|
538 |
</table>
|
|
|
539 |
<table cellspacing=3 cellpadding=2 class=darkgray>
|
|
|
540 |
<tr>
|
|
|
541 |
<?
|
|
|
542 |
foreach($my_buttons as $my_button_index => $button)
|
|
|
543 |
{
|
|
|
544 |
if (is_array($button))
|
|
|
545 |
{
|
|
|
546 |
?><td align="center" nowrap class="<?=$button[2];?>"><?
|
|
|
547 |
$my_output = &$web_rechte[modul_name][tool_name][$button[3]][$my_button_index-$button[4]][1];
|
|
|
548 |
if (empty($my_output)) { echo $button[1]; } else { echo $my_output; }
|
|
|
549 |
?></td><?
|
|
|
550 |
}
|
|
|
551 |
else
|
|
|
552 |
{
|
|
|
553 |
echo "</tr></table><table cellspacing=3 cellpadding=2 class=darkgray><tr>";
|
|
|
554 |
}
|
|
|
555 |
}
|
|
|
556 |
?>
|
|
|
557 |
</tr>
|
|
|
558 |
</table> </td>
|
|
|
559 |
</tr>
|
|
|
560 |
<tr>
|
|
|
561 |
<td valign="top" class="links">Bemerkung:</td>
|
|
|
562 |
<td class="rechts"><?=$zeile[Bemerkung];?></td>
|
|
|
563 |
</tr>
|
|
|
564 |
<?
|
|
|
565 |
$Feld="Bemerkung_extern";
|
|
|
566 |
if (isset($user_rechte[modul_name][tool_name][$Feld]))
|
|
|
567 |
{
|
|
|
568 |
?>
|
|
|
569 |
<tr>
|
|
|
570 |
<td valign="top" class="links">Bemerkung extern:</td>
|
|
|
571 |
<td class="rechts"><?=$zeile["Bemerkung_extern"];?></td>
|
|
|
572 |
</tr>
|
|
|
573 |
<? } ?>
|
|
|
574 |
<tr>
|
|
|
575 |
<td class="links">Bestellt: </td>
|
|
|
576 |
<td class="rechts">am:
|
|
|
577 |
<? $erstellt_am=datetime2human($zeile[erstellt_am]); ?>
|
|
|
578 |
<?=$erstellt_am[Datum];?>
|
|
|
579 |
um:
|
|
|
580 |
<?=$erstellt_am[Zeit];?>
|
|
|
581 |
</td>
|
|
|
582 |
</tr>
|
|
|
583 |
<? if ($zeile[erstellt_von]) { ?>
|
|
|
584 |
<tr>
|
|
|
585 |
<td nowrap class="links">Erstbearbeiter:</td>
|
|
|
586 |
<td class="rechts">
|
|
|
587 |
<?=$zeile[erstellt_von];?> </td>
|
|
|
588 |
</tr>
|
|
|
589 |
<? } ?>
|
|
|
590 |
<tr>
|
|
|
591 |
<td nowrap class="links">letzte Änderung: </td>
|
|
|
592 |
<td class="rechts">am:
|
|
|
593 |
<?
|
|
|
594 |
if (strpos ($zeile[letzte_Aenderung_am], " "))
|
|
|
595 |
{
|
|
|
596 |
$letzte_Aenderung_am=datetime2human($zeile[letzte_Aenderung_am]);
|
|
|
597 |
}
|
|
|
598 |
else
|
|
|
599 |
{
|
|
|
600 |
$letzte_Aenderung_am=timestamp2human($zeile[letzte_Aenderung_am]);
|
|
|
601 |
}
|
|
|
602 |
?>
|
|
|
603 |
<?=$letzte_Aenderung_am[Datum];?>
|
|
|
604 |
um:
|
|
|
605 |
<?=$letzte_Aenderung_am[Zeit];?>
|
|
|
606 |
von:
|
|
|
607 |
<?=$zeile[letzte_Aenderung_von];?> </td>
|
|
|
608 |
</tr>
|
|
|
609 |
</table>
|
|
|
610 |
|
|
|
611 |
<!-- ########################################################################################################################################################## -->
|
|
|
612 |
</body>
|
|
|
613 |
</html>
|