Subversion-Projekte lars-tiefland.content-management

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

<?
        $self=basename($PHP_SELF);
        $DB="Logins_to_Verteiler";
        require_once "../Online-Shop/connect.php";

        if (!$Modus) {$Modus = 0;}
        switch($Modus)
        {
                case 0:
                        $query1="select ID,Name from Verteiler order by ID";
                        break;
                case 1:
                        $query1="select ID,E_Mail from Logins order by ID";
                        break;
        }
?>
<html>
<head>
<title>Content-Management-System - Webagentur Niewerth</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel=stylesheet type="text/css" href="../buttons.css">
<style type="text/css"><!-- a {  color: #<? echo $webs[font_color_seite] ?>} --></style>
<meta name="description" content="Redaktionssystem">
<meta name="author" content="Webagentur Niewerth">
<meta name="robots" content="noindex">
</head>
<script language="Javascript">
        active=false;
        function activate(tagID)
        {
                if (active)
                {
                        document.getElementById("td_"+active).style.backgroundColor="#<? echo $webs[bgcolor_seite] ?>";
                        document.getElementById("link_"+active).style.color="#<? echo $webs[font_color_seite] ?>";
                }

                document.getElementById("td_"+tagID).style.backgroundColor="<? echo $webs[bgcolor_rechts] ?>";
                document.getElementById("link_"+tagID).style.color="<? echo $webs[font_color_rechts] ?>";

                active = tagID;
        }
</script>
<body bgcolor="#<? echo $webs[bgcolor_seite] ?>" leftmargin="20" topmargin="10" marginwidth="20" marginheight="10" text="#<? echo $webs[font_color_rechts] ?>">
<form method="post" action="<? echo $self ?>" name="formname">
  <table height="100%" border="0" cellspacing="0" cellpadding="0">
    <tr valign="top"> 
      <td colspan="2"> 
        <select name="Modus" onChange="this.form.submit()">
          <option value="0"<? if ($Modus == 0) {echo " selected";} ?>>Verteiler -&gt; Mail-Adressen</option>
          <option value="1"<? if ($Modus == 1) {echo " selected";} ?>>Mail-Adressen -&gt; Verteiler</option>
        </select>
      </td>
    </tr>
    <tr valign="top"> 
      <td width="240" height="100%"> 
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <?
                $result1 = mysql_query ($query1) or die (mysql_errno().": ".mysql_error());
                if (mysql_num_rows($result1) == 0)
                {
                }
                else
                {
                        while ($zeile1=mysql_fetch_array($result1))
                        {
?>
                  <tr>
                    <td id="td_<? echo $zeile1[0] ?>">
                        <a id="link_<? echo $zeile1[0] ?>" href="window2.php?Modus=<? echo $Modus ?>&ref=<? echo $zeile1[0] ?>" target="window2" onClick="activate('<? echo $zeile1[0] ?>')"> 
                        <? echo $zeile1[1]; ?>
                        </a>
                        </td>
                  </tr>
<?
                        }
                }
?>
                </table>
      </td>
      <td height="100%"><iframe frameborder="0" name="window2" width="250" height="100%" src="window2.php?Modus=<? echo $Modus ?>"></iframe></td>
    </tr>
  </table>
</form>
</body>