Subversion-Projekte lars-tiefland.content-management

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

<html>
<head>
<title>Unbenanntes Dokument</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFF00">
<?
        require_once "../Online-Shop/connect2.php";


print_r($_GET['id']);

$query = "select * from Logins where ID = ".$_GET['id'];
$result = mysql_query ($query) or die (mysql_errno().": ".mysql_error());
$zeile = mysql_fetch_array($result);

?><br><br>
<table>
  <tr> 
    <td valign="top" class="links"><a href="../logins/logins.php?action=edit&ID=<? echo $zeile[Login] ?>">Kunde:</a><br>
      Userlevel: <? echo $zeile[Status] ?> </td>
    <td class="rechts"> <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFF00">
        <tr> 
          <td height="24"><? echo $zeile[Name1] ?>&nbsp;</td>
          <td><? echo $zeile[Strasse] ?>&nbsp;</td>
          <td><a style="text-decoration:none" href="dial:<? echo $zeile[Telefon] ?>"> 
            <? echo $zeile[Telefon] ?> &nbsp;&nbsp;<img src="../images/Online-Shop/telefon.gif" border="0"></a>&nbsp;</td>
          <td><? echo $zeile[Fax] ?>&nbsp;</td>
        </tr>
        <tr> 
          <td><? echo $zeile[Name2] ?>&nbsp;</td>
          <td><? echo $zeile[PLZ] ?>&nbsp;<? echo $zeile[ORT] ?></td>
          <td>
            <? if ($zeile[E_Mail]) { ?>
            <a href="mailto:<? echo $zeile[E_Mail] ?>"><? echo $zeile[E_Mail] ?></a>
            <? }?>
            &nbsp;</td>
          <td><? echo $zeile[Land] ?>&nbsp;</td>
        </tr>
      </table></td>
  </tr>
  <tr> 
    <td valign="top" class="links">Artikel:</td>
    <td align="right class="rechts""> <table width="100%" border="0" cellspacing="2" cellpadding="2">
        <?
        $summe=0;$runner=0;
        $query_artikel="
                select
                        artikel_to?_Bestellung.ID,
                        artikel_to_Bestellung.status,
                        artikel_to_Bestellung.Preis_pro_Stueck,
                        artikel_to_Bestellung.Menge,
                        artikel_to_Bestellung.Bezeichnung,
                        artikel.*
                from
                        artikel_to_Bestellung,
                        artikel
                where
                        artikel_to_Bestellung.Bestellung = $zeile[ID]
                and
                        artikel_to_Bestellung.artikel=artikel.ID
                and
                        artikel.language='DE'
                order by
                        artikel.Father desc,
                        artikel.Kennung
                ";
//      $result_artikel = mysql_query ($query_artikel) or die (mysql_errno().": ".mysql_error());
//      while($zeile_artikel=mysql_fetch_array($result_artikel))
//      {
                $summe+=$zeile_artikel[2]*$zeile_artikel[Menge];
                if ($zeile_artikel[Father] > -3) 
                {
?>
        <tr class="<? if ($runner++ % 2 != 0) {?>lightgray<? } else { ?>darkgray<? } ?>"> 
          <td width="5%" valign="top"> <? echo $zeile_artikel[kennung] ?> </td>
          <td width="90%"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td align="right" nowrap valign="top"> &nbsp; <? echo $zeile_artikel[Menge] ?> 
                  &nbsp;x&nbsp;</td>
                <td width="100%" > 
                  <?
                                                        if ($zeile_artikel[Bezeichnung])
                                                        {
                                                                $zeile_artikel[kurzbezeichnung]=$zeile_artikel[Bezeichnung];
                                                        }
                                                        echo strip_tags($zeile_artikel[kurzbezeichnung]);
                                                ?>
                </td>
                <td align="right" nowrap valign="top"> <? echo number_format($zeile_artikel[2],2,',','.') ?>&nbsp;&euro;&nbsp; 
                </td>
              </tr>
            </table></td>
          <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"<? } ?>>&nbsp;O&nbsp;</a></td>
          <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"<? } ?>>&nbsp;B&nbsp;</a></td>
          <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"<? } ?>>&nbsp;E&nbsp;</a></td>
        </tr>
        <?
                }
                else
                {
                        $Versand_Artikel=$zeile_artikel;
?>
        <tr class="<? if ($runner++ % 2 != 0) {?>lightgray<? } else { ?>darkgray<? } ?>"> 
          <td width="5%" valign="top">&nbsp; </td>
          <td width="90%"><br> <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td nowrap valign="top">&nbsp; Versand:&nbsp; <? echo strip_tags($zeile_artikel[kurzbezeichnung]); ?> 
                </td>
                <td align="right" nowrap valign="top"> <? echo number_format(($zeile_artikel[2]), 2, ',', '.') ?>&nbsp;&euro;&nbsp; 
                </td>
              </tr>
            </table></td>
          <td colspan=3>&nbsp;</td>
        </tr>
        <?
                }
//      }
?>
        <tr> 
          <td width="5%" valign="top">&nbsp;</td>
          <td align="right"> Bestellwert: <? echo number_format($summe, 2, ',', '.') ?> 
            &euro;&nbsp;</td>
          <td align="right" colspan="3">&nbsp;</td>
        </tr>
        <tr> 
          <td valign="top">&nbsp;</td>
          ? 
          <td>&nbsp;&nbsp;Versandstatus (O=offen; F=freigegeben; V=versand)</td>
          <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"<? } ?>>&nbsp;O&nbsp;</a></td>
          <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"<? } ?>>&nbsp;F&nbsp;</a></td>
          <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"<? } ?>>&nbsp;V&nbsp;</a></td>
        </tr>
      </table>
      <table width="100%">
        <tr> 
          <td align="center" nowrap class="status_red" width="33%">offene Position</td>
          <td align="center" nowrap class="status_yellow" width="33%">&nbsp;in 
            Bearbeitung&nbsp;</td>
          <td align="center" nowrap class="status_green" width="33%">&nbsp;erledigt</td>
        </tr>
      </table></td>
  </tr>
</table>


</body>
</html>