| 1 |
lars |
1 |
<html>
|
|
|
2 |
<head>
|
|
|
3 |
<title>Unbenanntes Dokument</title>
|
|
|
4 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
5 |
</head>
|
|
|
6 |
|
|
|
7 |
<body bgcolor="#FFFF00">
|
|
|
8 |
<?
|
|
|
9 |
require_once "../Online-Shop/connect2.php";
|
|
|
10 |
|
|
|
11 |
|
|
|
12 |
print_r($_GET['id']);
|
|
|
13 |
|
|
|
14 |
$query = "select * from Logins where ID = ".$_GET['id'];
|
|
|
15 |
$result = mysql_query ($query) or die (mysql_errno().": ".mysql_error());
|
|
|
16 |
$zeile = mysql_fetch_array($result);
|
|
|
17 |
|
|
|
18 |
?><br><br>
|
|
|
19 |
<table>
|
|
|
20 |
<tr>
|
|
|
21 |
<td valign="top" class="links"><a href="../logins/logins.php?action=edit&ID=<? echo $zeile[Login] ?>">Kunde:</a><br>
|
|
|
22 |
Userlevel: <? echo $zeile[Status] ?> </td>
|
|
|
23 |
<td class="rechts"> <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFF00">
|
|
|
24 |
<tr>
|
|
|
25 |
<td height="24"><? echo $zeile[Name1] ?> </td>
|
|
|
26 |
<td><? echo $zeile[Strasse] ?> </td>
|
|
|
27 |
<td><a style="text-decoration:none" href="dial:<? echo $zeile[Telefon] ?>">
|
|
|
28 |
<? echo $zeile[Telefon] ?> <img src="../images/Online-Shop/telefon.gif" border="0"></a> </td>
|
|
|
29 |
<td><? echo $zeile[Fax] ?> </td>
|
|
|
30 |
</tr>
|
|
|
31 |
<tr>
|
|
|
32 |
<td><? echo $zeile[Name2] ?> </td>
|
|
|
33 |
<td><? echo $zeile[PLZ] ?> <? echo $zeile[ORT] ?></td>
|
|
|
34 |
<td>
|
|
|
35 |
<? if ($zeile[E_Mail]) { ?>
|
|
|
36 |
<a href="mailto:<? echo $zeile[E_Mail] ?>"><? echo $zeile[E_Mail] ?></a>
|
|
|
37 |
<? }?>
|
|
|
38 |
</td>
|
|
|
39 |
<td><? echo $zeile[Land] ?> </td>
|
|
|
40 |
</tr>
|
|
|
41 |
</table></td>
|
|
|
42 |
</tr>
|
|
|
43 |
<tr>
|
|
|
44 |
<td valign="top" class="links">Artikel:</td>
|
|
|
45 |
<td align="right class="rechts""> <table width="100%" border="0" cellspacing="2" cellpadding="2">
|
|
|
46 |
<?
|
|
|
47 |
$summe=0;$runner=0;
|
|
|
48 |
$query_artikel="
|
|
|
49 |
select
|
|
|
50 |
artikel_to?_Bestellung.ID,
|
|
|
51 |
artikel_to_Bestellung.status,
|
|
|
52 |
artikel_to_Bestellung.Preis_pro_Stueck,
|
|
|
53 |
artikel_to_Bestellung.Menge,
|
|
|
54 |
artikel_to_Bestellung.Bezeichnung,
|
|
|
55 |
artikel.*
|
|
|
56 |
from
|
|
|
57 |
artikel_to_Bestellung,
|
|
|
58 |
artikel
|
|
|
59 |
where
|
|
|
60 |
artikel_to_Bestellung.Bestellung = $zeile[ID]
|
|
|
61 |
and
|
|
|
62 |
artikel_to_Bestellung.artikel=artikel.ID
|
|
|
63 |
and
|
|
|
64 |
artikel.language='DE'
|
|
|
65 |
order by
|
|
|
66 |
artikel.Father desc,
|
|
|
67 |
artikel.Kennung
|
|
|
68 |
";
|
|
|
69 |
// $result_artikel = mysql_query ($query_artikel) or die (mysql_errno().": ".mysql_error());
|
|
|
70 |
// while($zeile_artikel=mysql_fetch_array($result_artikel))
|
|
|
71 |
// {
|
|
|
72 |
$summe+=$zeile_artikel[2]*$zeile_artikel[Menge];
|
|
|
73 |
if ($zeile_artikel[Father] > -3)
|
|
|
74 |
{
|
|
|
75 |
?>
|
|
|
76 |
<tr class="<? if ($runner++ % 2 != 0) {?>lightgray<? } else { ?>darkgray<? } ?>">
|
|
|
77 |
<td width="5%" valign="top"> <? echo $zeile_artikel[kennung] ?> </td>
|
|
|
78 |
<td width="90%"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
79 |
<tr>
|
|
|
80 |
<td align="right" nowrap valign="top"> <? echo $zeile_artikel[Menge] ?>
|
|
|
81 |
x </td>
|
|
|
82 |
<td width="100%" >
|
|
|
83 |
<?
|
|
|
84 |
if ($zeile_artikel[Bezeichnung])
|
|
|
85 |
{
|
|
|
86 |
$zeile_artikel[kurzbezeichnung]=$zeile_artikel[Bezeichnung];
|
|
|
87 |
}
|
|
|
88 |
echo strip_tags($zeile_artikel[kurzbezeichnung]);
|
|
|
89 |
?>
|
|
|
90 |
</td>
|
|
|
91 |
<td align="right" nowrap valign="top"> <? echo number_format($zeile_artikel[2],2,',','.') ?> €
|
|
|
92 |
</td>
|
|
|
93 |
</tr>
|
|
|
94 |
</table></td>
|
|
|
95 |
<td valign="top" nowrap><a href="<? echo $self ?>?Bestellung=<? echo $Bestellung ?>&artikelstatus[<? echo $zeile_artikel[0] ?>]=O" style="text-decoration:none;" <? if ($zeile_artikel[1] == 'offen') { ?>class="statu?s_red"<? } else { ?>class="status_off"<? } ?>> O </a></td>
|
|
|
96 |
<td valign="top" nowrap><a href="<? echo $self ?>?Bestellung=<? echo $Bestellung ?>&artikelstatus[<? echo $zeile_artikel[0] ?>]=B" style="text-decoration:none;" <? if ($zeile_artikel[1] == 'in Bearbeitung') { ?>class="status_yellow"<? } else { ?>class="status_off"<? } ?>> B </a></td>
|
|
|
97 |
<td valign="top" nowrap><a href="<? echo $self ?>?Bestellung=<? echo $Bestellung ?>&artikelstatus[<? echo $zeile_artikel[0] ?>]=E" style="text-decoration:none" <? if ($zeile_artikel[1] == 'erledigt') { ?>class="status_green"<? } else { ?>class="status_off"<? } ?>> E </a></td>
|
|
|
98 |
</tr>
|
|
|
99 |
<?
|
|
|
100 |
}
|
|
|
101 |
else
|
|
|
102 |
{
|
|
|
103 |
$Versand_Artikel=$zeile_artikel;
|
|
|
104 |
?>
|
|
|
105 |
<tr class="<? if ($runner++ % 2 != 0) {?>lightgray<? } else { ?>darkgray<? } ?>">
|
|
|
106 |
<td width="5%" valign="top"> </td>
|
|
|
107 |
<td width="90%"><br> <table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
108 |
<tr>
|
|
|
109 |
<td nowrap valign="top"> Versand: <? echo strip_tags($zeile_artikel[kurzbezeichnung]); ?>
|
|
|
110 |
</td>
|
|
|
111 |
<td align="right" nowrap valign="top"> <? echo number_format(($zeile_artikel[2]), 2, ',', '.') ?> €
|
|
|
112 |
</td>
|
|
|
113 |
</tr>
|
|
|
114 |
</table></td>
|
|
|
115 |
<td colspan=3> </td>
|
|
|
116 |
</tr>
|
|
|
117 |
<?
|
|
|
118 |
}
|
|
|
119 |
// }
|
|
|
120 |
?>
|
|
|
121 |
<tr>
|
|
|
122 |
<td width="5%" valign="top"> </td>
|
|
|
123 |
<td align="right"> Bestellwert: <? echo number_format($summe, 2, ',', '.') ?>
|
|
|
124 |
€ </td>
|
|
|
125 |
<td align="right" colspan="3"> </td>
|
|
|
126 |
</tr>
|
|
|
127 |
<tr>
|
|
|
128 |
<td valign="top"> </td>
|
|
|
129 |
?
|
|
|
130 |
<td> Versandstatus (O=offen; F=freigegeben; V=versand)</td>
|
|
|
131 |
<td valign="top" nowrap class=darkgray><a href="<? echo $self ?>?Bestellung=<? echo $Bestellung ?>&artikelstatus[<? echo $Versand_Artikel[0] ?>]=O" style="text-decoration:none;" <? if ($Versand_Artikel[1] == 'offen') { ?>class="status_red"<? } else { ?>class="status_off"<? } ?>> O </a></td>
|
|
|
132 |
<td valign="top" nowrap class=darkgray><a href="<? echo $self ?>?Bestellung=<? echo $Bestellung ?>&artikelstatus[<? echo $Versand_Artikel[0] ?>]=F" style="text-decoration:none;" <? if ($Versand_Artikel[1] == 'freigegeben') { ?>class="status_yellow"<? } else { ?>class="status_off"<? } ?>> F </a></td>
|
|
|
133 |
<td valign="top" nowrap class=darkgray><a href="<? echo $self ?>?Bestellung=<? echo $Bestellung ?>&artikelstatus[<? echo $Versand_Artikel[0] ?>]=V" style="text-decoration:none" <? if ($Versand_Artikel[1] == 'versand') { ?>class="status_green"<? } else { ?>class="status_off"<? } ?>> V </a></td>
|
|
|
134 |
</tr>
|
|
|
135 |
</table>
|
|
|
136 |
<table width="100%">
|
|
|
137 |
<tr>
|
|
|
138 |
<td align="center" nowrap class="status_red" width="33%">offene Position</td>
|
|
|
139 |
<td align="center" nowrap class="status_yellow" width="33%"> in
|
|
|
140 |
Bearbeitung </td>
|
|
|
141 |
<td align="center" nowrap class="status_green" width="33%"> erledigt</td>
|
|
|
142 |
</tr>
|
|
|
143 |
</table></td>
|
|
|
144 |
</tr>
|
|
|
145 |
</table>
|
|
|
146 |
|
|
|
147 |
|
|
|
148 |
</body>
|
|
|
149 |
</html>
|