| 1 |
lars |
1 |
<?
|
|
|
2 |
$self=basename($PHP_SELF);
|
|
|
3 |
$DB="verteiler";
|
|
|
4 |
require_once "../Online-Shop/connect2.php";
|
|
|
5 |
|
|
|
6 |
$Verteiler=array();
|
|
|
7 |
$result = mysql_query ("SELECT * FROM Verteiler order by name") or die (mysql_errno().": ".mysql_error());
|
|
|
8 |
while($zeile=mysql_fetch_array($result))
|
|
|
9 |
{
|
|
|
10 |
$Verteiler[$zeile[ID]]=$zeile;
|
|
|
11 |
}
|
|
|
12 |
|
|
|
13 |
if (!$Verteiler_NR)
|
|
|
14 |
{
|
|
|
15 |
$Verteiler_NR = array_keys($Verteiler);
|
|
|
16 |
$Verteiler_NR = $Verteiler_NR[0];
|
|
|
17 |
}
|
|
|
18 |
?>
|
|
|
19 |
<html>
|
|
|
20 |
<head>
|
|
|
21 |
<title>Mail versenden</title>
|
|
|
22 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
23 |
<meta name="author" content="Webagentur Niewerth - www.weban.de">
|
|
|
24 |
<meta name="revisit-after" content="30 days">
|
|
|
25 |
<meta name="language" content="deutsch, de">
|
|
|
26 |
<meta name="distribution" content="global">
|
|
|
27 |
<meta name="robots" content="all">
|
|
|
28 |
<link rel=stylesheet type="text/css" href="../buttons.css">
|
|
|
29 |
<style type="text/css">
|
|
|
30 |
<!--
|
|
|
31 |
a { color: #<? echo $webs[font_color_rechts] ?>}
|
|
|
32 |
-->
|
|
|
33 |
</style>
|
|
|
34 |
</head>
|
|
|
35 |
|
|
|
36 |
<body bgcolor="#<? echo $webs[bgcolor_seite] ?>" leftmargin="20" topmargin="10" marginwidth="20" marginheight="10" text="#<? echo $webs[font_color_rechts] ?>">
|
|
|
37 |
<form method="post" action="#" enctype="multipart/form-data">
|
|
|
38 |
<table width="600" border="1" cellspacing="0" cellpadding="3" bordercolorlight="#FFFFFF" bordercolordark="#999999">
|
|
|
39 |
<tr>
|
|
|
40 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" class="headline"><font color="#<? echo $webs[font_color_links] ?>">Verteiler
|
|
|
41 |
auswählen:</font></td>
|
|
|
42 |
</tr>
|
|
|
43 |
<?
|
|
|
44 |
$result = mysql_query ("SELECT * FROM Verteiler order by name") or die (mysql_errno().": ".mysql_error());
|
|
|
45 |
while($zeile=mysql_fetch_array($result))
|
|
|
46 |
{
|
|
|
47 |
?>
|
|
|
48 |
<tr>
|
|
|
49 |
<td bgcolor="#<? echo $webs[bgcolor_rechts] ?>">
|
|
|
50 |
<?
|
|
|
51 |
if (isset($user_rechte[mail_verteiler][versenden][html]))
|
|
|
52 |
{ $tool = "mail2.php"; }
|
|
|
53 |
else
|
|
|
54 |
{ $tool = "mail.php"; }
|
|
|
55 |
//$tool = "mail.php";
|
|
|
56 |
?>
|
|
|
57 |
<a href="<?=$tool;?>?Verteiler_NR=<?=$zeile[ID];?>"><?=$zeile[Name];?></a>
|
|
|
58 |
</td>
|
|
|
59 |
</tr>
|
|
|
60 |
<?
|
|
|
61 |
}
|
|
|
62 |
?>
|
|
|
63 |
<tr>
|
|
|
64 |
<td bgcolor="#<? echo $webs[bgcolor_links] ?>" class="headline"> </td>
|
|
|
65 |
</tr>
|
|
|
66 |
</table>
|
|
|
67 |
</form>
|
|
|
68 |
</body>
|
|
|
69 |
</html>
|