| 1 |
lars |
1 |
<?
|
|
|
2 |
require_once "../connect2.php";
|
|
|
3 |
require_once "../webs.php";
|
|
|
4 |
|
|
|
5 |
$query="SELECT * FROM gaestebuch_design where site='$site'";
|
|
|
6 |
$result = mysql_query ($query) or die (mysql_errno().": ".mysql_error());
|
|
|
7 |
$design=mysql_fetch_array($result);
|
|
|
8 |
?>
|
|
|
9 |
<html>
|
|
|
10 |
<head>
|
|
|
11 |
<title>Gästebuch</title>
|
|
|
12 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
13 |
<meta name="author" content="Webagentur Niewerth - www.weban.de">
|
|
|
14 |
<meta name="revisit-after" content="30 days">
|
|
|
15 |
<meta name="language" content="deutsch, de">
|
|
|
16 |
<meta name="distribution" content="global">
|
|
|
17 |
<meta name="robots" content="all">
|
|
|
18 |
</head>
|
|
|
19 |
|
|
|
20 |
<body bgcolor="#<? echo $design[bgcolor] ?>" <? if ($design[background]) {?>background="/images/gaestebuch/<? echo $design[background]?>"<? } ?> text="#<? echo $design[textcolor] ?>">
|
|
|
21 |
<div align="center">
|
|
|
22 |
<form method="post" action="http://forum.<? echo $site ?>/gaestebuch.php">
|
|
|
23 |
<table width="50%" border="0" cellspacing="0" cellpadding="0">
|
|
|
24 |
<tr>
|
|
|
25 |
<td width="24%"><font face="<? echo $design[textart] ?>" size="<? echo $design[textgroesse] ?>" color="#<? $design[textcolor] ?>">Überschrift:</font></td>
|
|
|
26 |
<td width="76%">
|
|
|
27 |
<input type="text" name="headline">
|
|
|
28 |
</td>
|
|
|
29 |
</tr>
|
|
|
30 |
<tr>
|
|
|
31 |
<td width="24%" valign="top"><font face="<? echo $design[textart] ?>" size="<? echo $design[textgroesse] ?>" color="#<? echo $design[textcolor] ?>">Text:</font></td>
|
|
|
32 |
<td width="76%">
|
|
|
33 |
<textarea name="text"></textarea>
|
|
|
34 |
</td>
|
|
|
35 |
</tr>
|
|
|
36 |
<tr>
|
|
|
37 |
<td colspan="2"> </td>
|
|
|
38 |
</tr>
|
|
|
39 |
<tr>
|
|
|
40 |
<td width="24%"><font face="<? echo $design[textart] ?>" size="<? echo $design[textgroesse] ?>" color="#<? echo $design[textcolor] ?>">Name:</font></td>
|
|
|
41 |
<td width="76%">
|
|
|
42 |
<input type="text" name="Name">
|
|
|
43 |
</td>
|
|
|
44 |
</tr>
|
|
|
45 |
<tr>
|
|
|
46 |
<td width="24%"><font face="<? echo $design[textart] ?>" size="<? echo $design[textgroesse] ?>" color="#<? echo $design[textcolor] ?>">E-Mail:</font></td>
|
|
|
47 |
<td width="76%">
|
|
|
48 |
<input type="text" name="mail">
|
|
|
49 |
</td>
|
|
|
50 |
</tr>
|
|
|
51 |
<tr>
|
|
|
52 |
<td width="24%"><font face="<? echo $design[textart] ?>" size="<? echo $design[textgroesse] ?>" color="#<? echo $design[textcolor] ?>">Homepage:</font></td>
|
|
|
53 |
<td width="76%">
|
|
|
54 |
<input type="text" name="homepage">
|
|
|
55 |
</td>
|
|
|
56 |
</tr>
|
|
|
57 |
<tr>
|
|
|
58 |
<td width="24%"><font face="<? echo $design[textart] ?>" size="<? echo $design[textgroesse] ?>" color="#<? echo $design[textcolor] ?>">Stadt:</font></td>
|
|
|
59 |
<td width="76%">
|
|
|
60 |
<input type="text" name="Stadt">
|
|
|
61 |
</td>
|
|
|
62 |
</tr>
|
|
|
63 |
<tr>
|
|
|
64 |
<td width="24%"><font face="<? echo $design[textart] ?>" size="<? echo $design[textgroesse] ?>" color="#<? echo $design[textcolor] ?>">Bundesland:</font></td>
|
|
|
65 |
<td width="76%">
|
|
|
66 |
<input type="text" name="Bundesland">
|
|
|
67 |
</td>
|
|
|
68 |
</tr>
|
|
|
69 |
<tr>
|
|
|
70 |
<td width="24%"><font face="<? echo $design[textart] ?>" size="<? echo $design[textgroesse] ?>" color="#<? echo $design[textcolor] ?>">Staat:</font></td>
|
|
|
71 |
<td width="76%">
|
|
|
72 |
<input type="text" name="Staat">
|
|
|
73 |
</td>
|
|
|
74 |
</tr>
|
|
|
75 |
<tr align="right">
|
|
|
76 |
<td colspan="2">
|
|
|
77 |
<input type="hidden" name="site" value="<? echo $webs[domain]?>">
|
|
|
78 |
<input type="submit" value="Abschicken">
|
|
|
79 |
<input type="reset" value="Zurücksetzen">
|
|
|
80 |
</td>
|
|
|
81 |
</tr>
|
|
|
82 |
</table>
|
|
|
83 |
</form><br><br>
|
|
|
84 |
<table width="50%" border="0" cellspacing="0" cellpadding="0">
|
|
|
85 |
<tr>
|
|
|
86 |
<td align="center"><font face="<? echo $design[textart] ?>" size="<? echo $design[textgroesse] ?>" color="#<? echo $design[textcolor] ?>">start</font></td>
|
|
|
87 |
</tr>
|
|
|
88 |
<?
|
|
|
89 |
$query="SELECT * FROM gaestebuch_eintraege where site='$site' order by erstellt_am";
|
|
|
90 |
$result = mysql_query ($query) or die (mysql_errno().": ".mysql_error());
|
|
|
91 |
while ($zeile=mysql_fetch_array($result))
|
|
|
92 |
{
|
|
|
93 |
?>
|
|
|
94 |
<tr>
|
|
|
95 |
<td><font face="<? echo $design[textart] ?>" size="<? echo $design[textgroesse] ?>" color="#<? echo $design[textcolor] ?>">
|
|
|
96 |
<? echo $zeile[headline] ?></font> </td>
|
|
|
97 |
</tr>
|
|
|
98 |
<tr>
|
|
|
99 |
<td><font face="<? echo $design[textart] ?>" size="<? echo $design[textgroesse] ?>" color="#<? echo $design[textcolor] ?>">
|
|
|
100 |
<? echo nl2br($zeile[text]) ?></font> </td>
|
|
|
101 |
</tr>
|
|
|
102 |
<?
|
|
|
103 |
if ($design[trennbild])
|
|
|
104 |
{
|
|
|
105 |
?>
|
|
|
106 |
<tr>
|
|
|
107 |
<td><img src="/images/gaestebuch/<? echo $design[trennbild] ?>"></td>
|
|
|
108 |
</tr>
|
|
|
109 |
<?
|
|
|
110 |
}
|
|
|
111 |
?>
|
|
|
112 |
<?
|
|
|
113 |
}
|
|
|
114 |
?>
|
|
|
115 |
<tr>
|
|
|
116 |
<td align="center"><font face="<? echo $design[textart] ?>" size="<? echo $design[textgroesse] ?>" color="#<? echo $design[textcolor] ?>">stop</font></td>
|
|
|
117 |
</tr>
|
|
|
118 |
</table>
|
|
|
119 |
</div>
|
|
|
120 |
</body>
|
|
|
121 |
</html>
|