Subversion-Projekte lars-tiefland.content-management

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

<?
        require_once "connect2.php";
        session_start();
        if (!$language) {$language="DE";}
        // $charset laden um die jeweiligen ISO-Zeichensätzte zu laden.
        require_once "charset.php";
?>
<html>
<head>
<title><?=$webs[kunde_bezeichnung] ?>: Redaktionssystem</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$charset ?>">
<link rel=stylesheet type="text/css" href="redaktion.css">
<style type="text/css">
<!--
A:link                  {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #000000}
A:visited               {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #333333}
A:active                {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #CC0000}
A:hover                 {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #669933}
p                               {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #000096}
p.error                 {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #000000; font-weight: bold}
span                    {font-family: Arial, Helvetica, sans-serif; font-size: 10pt}
span.blue               {font-family: Arial, Helvetica, sans-serif; color: #FFFFFF; background-color:#0000A0; font-size: 10pt}
span.small              {font-family: Arial, Helvetica, sans-serif; font-size: 8pt; text-decoration: none}
td                              {font-family: Arial, Helvetica, sans-serif; font-size: 10pt}
td.timeout              {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #FF0000;}
td.small                {font-family: Arial, Helvetica, sans-serif; font-size: 8pt}
td.headline     {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #FFFFFF; font-weight: bold}
td.haupt                {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; font-weight: bold}
td.selectet_language {border: 1px outset; border-color: #CCCCCC #999999 #999999 #CCCCCC}
input                   {font-family: Arial, Helvetica, sans-serif; font-size: 8pt}
select                  {font-family: Arial, Helvetica, sans-serif; font-size: 8pt}
textarea                {font-family: Arial, Helvetica, sans-serif; font-size: 8pt}
.button                 {width: 100%; border-style: outset; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; cursor: auto}
#Branche                {display: block;}
#Branche img    {background-color:#FFFFFF;}
#Branche strong {width: 200px; background-color:#<? echo $webs[bgcolor_links] ?>; color: #FFFFFF;}


-->
</style>
</head>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" marginheight="0">
<?php
        $query="SELECT * FROM Branche where Father = -1 order by Name";
        $result = mysql_query ($query) or die (mysql_errno().": ".mysql_error()."<hr>$query<hr>");
        $rows=mysql_num_rows($result);
        $counter=0;     
        if ($rows) 
        {
                while ($zeile=mysql_fetch_assoc($result)) 
                {
?>
<div id="Branche">
        <img src="../images/Online-Shop/directory/subdir_open.gif" border="0"><strong><?= $zeile['Name'] ?></strong>
</div>
    <?php
                        // Alle Firmen der jeweiligen Branche holen
                        $query2="
                                SELECT * FROM 
                                        Branche2Firma, Firma 
                                WHERE 
                                        Branche2Firma.Branche=".$zeile['ID']." 
                                AND 
                                        Firma.ID=Branche2Firma.Firma 
                                ORDER BY 
                                        Firma 
                                ASC
                        ";
                        
                        // AND (shop_link_table.ID != Firma.ID AND  shop_link_table.Father != ".$_GET['Father']['ID'].")
                        
                        $result2 = mysql_query ($query2) or die (mysql_errno().": ".mysql_error()."<hr>$query2<hr>");
                        $rows2=mysql_num_rows($result2);
                        if ($rows2) 
                        {
                                while ($zeile2=mysql_fetch_assoc($result2)) 
                                {
        ?>
        <div id="Firma" style="padding-left: 20px; display: inline">
        <img src="../images/Online-Shop/directory/subdir_closed.gif" border="0">
        <a href="firma_verlinken_ansicht.php?child[ID]=<?=$zeile2['ID'] ?>&child[typ]=f&Father[ID]=<?= $_GET['Father']['ID'] ?>&Father[typ]=<?=$_GET["Target"]["typ"];?>"
            target="firma_verlinken_tool"
        >
        <?=$zeile2['Name']; ?>
        </a>
    <br />
    <?php
                                }
                        }
        ?>
</div><br />
<?php
                }
        } 
?>
</body>
</html>