Subversion-Projekte lars-tiefland.content-management

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?
2
	$self=basename($PHP_SELF);
3
	$DB="Logins_to_Verteiler";
4
	require_once "../Online-Shop/connect.php";
5
 
6
	if (!$Modus) {$Modus = 0;}
7
	switch($Modus)
8
	{
9
		case 0:
10
			$query1="select ID,Name from Verteiler order by ID";
11
			break;
12
		case 1:
13
			$query1="select ID,E_Mail from Logins order by ID";
14
			break;
15
	}
16
?>
17
<html>
18
<head>
19
<title>Content-Management-System - Webagentur Niewerth</title>
20
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
21
<link rel=stylesheet type="text/css" href="../buttons.css">
22
<style type="text/css"><!-- a {  color: #<? echo $webs[font_color_seite] ?>} --></style>
23
<meta name="description" content="Redaktionssystem">
24
<meta name="author" content="Webagentur Niewerth">
25
<meta name="robots" content="noindex">
26
</head>
27
<script language="Javascript">
28
	active=false;
29
	function activate(tagID)
30
	{
31
		if (active)
32
		{
33
			document.getElementById("td_"+active).style.backgroundColor="#<? echo $webs[bgcolor_seite] ?>";
34
			document.getElementById("link_"+active).style.color="#<? echo $webs[font_color_seite] ?>";
35
		}
36
 
37
		document.getElementById("td_"+tagID).style.backgroundColor="<? echo $webs[bgcolor_rechts] ?>";
38
		document.getElementById("link_"+tagID).style.color="<? echo $webs[font_color_rechts] ?>";
39
 
40
		active = tagID;
41
	}
42
</script>
43
<body bgcolor="#<? echo $webs[bgcolor_seite] ?>" leftmargin="20" topmargin="10" marginwidth="20" marginheight="10" text="#<? echo $webs[font_color_rechts] ?>">
44
<form method="post" action="<? echo $self ?>" name="formname">
45
  <table height="100%" border="0" cellspacing="0" cellpadding="0">
46
    <tr valign="top">
47
      <td colspan="2">
48
        <select name="Modus" onChange="this.form.submit()">
49
          <option value="0"<? if ($Modus == 0) {echo " selected";} ?>>Verteiler -&gt; Mail-Adressen</option>
50
          <option value="1"<? if ($Modus == 1) {echo " selected";} ?>>Mail-Adressen -&gt; Verteiler</option>
51
        </select>
52
      </td>
53
    </tr>
54
    <tr valign="top">
55
      <td width="240" height="100%">
56
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
57
        <?
58
		$result1 = mysql_query ($query1) or die (mysql_errno().": ".mysql_error());
59
		if (mysql_num_rows($result1) == 0)
60
		{
61
		}
62
		else
63
		{
64
			while ($zeile1=mysql_fetch_array($result1))
65
			{
66
?>
67
		  <tr>
68
		    <td id="td_<? echo $zeile1[0] ?>">
69
			<a id="link_<? echo $zeile1[0] ?>" href="window2.php?Modus=<? echo $Modus ?>&ref=<? echo $zeile1[0] ?>" target="window2" onClick="activate('<? echo $zeile1[0] ?>')">
70
			<? echo $zeile1[1]; ?>
71
			</a>
72
			</td>
73
		  </tr>
74
<?
75
			}
76
		}
77
?>
78
		</table>
79
      </td>
80
      <td height="100%"><iframe frameborder="0" name="window2" width="250" height="100%" src="window2.php?Modus=<? echo $Modus ?>"></iframe></td>
81
    </tr>
82
  </table>
83
</form>
84
</body>