• 22.08.2025, 02:07
  • Register
  • Login
  • You are not logged in.

 

ACiD

Unregistered

Dreamweaver und Tabellen!

Saturday, July 19th 2003, 4:39pm

hi, ich bin grad dabei mir ne HP zu machen, das grundlayout mache ich mit dreamweaver und Fireworks, allerdings hab ich das Problem, dass der Dreamweaver, auch bei ner PHP-Page :P immer die Tabellen im linken und im rechen "Rahmen" auf die gleiche GRöße bringen will :P

Kann man dass irgendwie ändern?


Und Ich suche eine Shoutbox, ganz simple, mit textdatei-speicherung, und wenn es geht nur eine Datei, ohne diesen ganzen Admin-Quatsch :P
Wozu braucht man sowas bei ner Shoutbox ?!


thx 4 ya Help ;)

xx_ElBarto

God

Re: Dreamweaver und Tabellen!

Saturday, July 19th 2003, 4:43pm

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
function mutate(&$txt)  
{
      $txt = htmlspecialchars(stripslashes($txt));
      return $txt;
}

function demutate(&$txt) 
{
      $txt = str_replace("&","&",$txt);
      $txt = str_replace(""","\"",$txt);
      $txt = str_replace("<img","<img",$txt);
      $txt = str_replace(">",">",$txt);
      return $txt;
}

echo("<table width=\"170\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"left\">");
echo("<tr>");
echo("<td width=\"28\" rowspan=\"3\">²</td>");
echo("            <td align=\"left\"><font size=1 face=verdana><br><br><b>Shoutbox</b><br><br></font></td>");
echo("<td width=\"5\" rowspan=\"3\">²</td>");
echo("</tr>");
echo("<tr>");
echo("            <td><font size=1 face=verdana>");
                                                              
$show = isset($show) ? $show : " ";
$name = isset($name) ? $name : " ";
$text = isset($text) ? $text : " ";
$shout = isset($shout) ? $shout : " ";

$ink = "0";

if ($name != " " && $text != " " && $shout && $shout != " " && $text != "Text" && $name != "Name") 
{
$name = mutate($name);
$text = demutate(mutate(wordwrap($text)));

mysql_query("INSERT INTO shout (name,text) VALUES ('$name','$text')");

$result = mysql_query("SELECT nummer,name,text FROM shout ORDER BY nummer desc ");

while ($row = mysql_fetch_array($result)) 
{
$ink = $ink+1;
if ($ink=="11")
break 1;
$name = $row['name'];
$text = $row['text'];
echo("<font size=1 face=verdana><i>".$name."</i>: ".$text."<br><br></font>");
}
} 
else
{
$result = mysql_query("SELECT nummer,name,text FROM shout ORDER BY nummer desc ");

while ($row = mysql_fetch_array($result)) 
{
$ink = $ink+1;
if ($ink=="11")
break 1;
$name = $row['name'];
$text = $row['text'];
echo("<font size=1 face=verdana><i>".$name."</i>: ".$text."<br><br></font>");
}
}

echo("</font></td>");
echo("</tr>");

echo("<tr>");
echo("<td>");

echo("<form action=\"index.php\" method=\"post\">");
echo("<input style=\"FONT-SIZE: 10; WIDTH: 100pt; COLOR: #000000; FONT-FAMILY: verdana; BORDER-STYLE: 1px solid #000000\" type=\"text\" name=\"name\" size=\"10\" class=\"text\" maxlength=\"20\" align=\"right\" autocomplete=\"on\" onblur=\"if (value=='') {value='Name'}\" onfocus=\"if (value=='Name') {value=''}\" value=\"Name\"><br>");
echo("<input style=\"FONT-SIZE: 10; WIDTH: 100pt; COLOR: #000000; FONT-FAMILY: verdana; BORDER-STYLE: 1px solid #000000\" type=\"text\" name=\"text\" size=\"10\" class=\"text\" maxlength=\"250\" align=\"right\" autocomplete=\"on\" onblur=\"if (value=='') {value='Text'}\" onfocus=\"if (value=='Text') {value=''}\" value=\"Text\"><br>");
echo("<input type=\"hidden\" name=\"section\" value=\"".$section."\">");
echo("<input type=\"hidden\" name=\"show\" value=\"".$show."\">");
echo("<input style=\"FONT-SIZE: 10; WIDTH: 100pt; COLOR: #000000; FONT-FAMILY: verdana; BORDER-STYLE: 1px solid #000000\" type=\"submit\" name=\"shout\" value=\"²²senden²²\" class=\"submit\">");
echo("</form>");

echo("</td>");
echo("</tr>");
echo("</table>");

ACiD

Unregistered

Re: Dreamweaver und Tabellen!

Saturday, July 19th 2003, 4:45pm

danke barto ;) :-*