Dum fejl..
er der nogen der kan se hvorfor jeg ikke kan se tekstareaet når der ikke er nogen svar i forummet..?kan ses her:
http://4boys.4b.funpic.org/ny/forum/laes_indlaeg.php?bord_id=1&spm_id=1
koden:
<?php
include("../functions.php");
include("../settings.php");
cookie_user();
?>
<html>
<head>
<title>YourClan.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
#c A:link {COLOR: gray;TEXT-DECORATION: none}
#c A:visited {COLOR: gray; TEXT-DECORATION: none}
#c A:active {COLOR: gray;TEXT-DECORATION: none}
#c A:hover {COLOR: silver; TEXT-DECORATION: none}
body {margin: 0px 0px 0px 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background: #474747}
A:link {COLOR: whitesmoke;TEXT-DECORATION: none}
A:visited {COLOR: whitesmoke; TEXT-DECORATION: none}
A:active {COLOR: whitesmoke;TEXT-DECORATION: none}
A:hover {COLOR: #aeaeae; TEXT-DECORATION: none}
TD {color: whitesmoke; font: xx-small verdana,tahoma}
body {color: whitesmoke; font: xx-small verdana,tahoma,arial}
textarea {background: #1e1e1e; border: 1px solid #000000; color: gray; font: xx-small verdana}
input {background: #1e1e1e; border: 1px solid #000000; color: gray; font: xx-small verdana}
A.menulink {none}
A.menulink:hover {
background-color:#303030;
width: 193px;
}
</style>
</head>
<body>
<table border="0" style="background: url(<?=$side?>/img/onderkant.gif); height: 100%; width: 700px" cellspacing="0" cellpadding="0" align="center">
<tr>
<td style="background: url(<?=$side?>/img/links_r1.gif); width: 27px"></td>
<td valign="top" style="background: url(<?=$side?>/img/bg3.gif)">
<table border="0" cellpadding="0" cellspacing="0" width="151">
<tr>
<td><img src="<?=$side?>/img/logo.gif" width="151" height="159" border="0" alt=""></td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 15px; background: url(<?=$side?>/img/menu_links.gif)"></td>
<td width="118" style="background: url(<?=$side?>/img/menubg.gif)">
<?
require "../includes/brugermenu.php";
?> </td>
<td style="width: 18px; background: url(<?=$side?>/img/menu_rechts.gif)"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td><img src="<?=$side?>/img/menuonder.gif" width="151" height="13" border="0" alt=""></td>
</tr>
</table>
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="151">
<tr>
<td align="center"><img src="<?=$side?>/img/top2.gif" border="0" alt=""></td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 15px; background: url(<?=$side?>/img/menu_links.gif)"></td>
<td width="118" style="background: url(<?=$side?>/img/menubg.gif)">
<?
require "../includes/navigation.php";
?>
</td>
<td style="width: 18px; background: url(<?=$side?>/img/menu_rechts.gif)"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td><img src="<?=$side?>/img/menuonder.gif" width="151" height="13" border="0" alt=""></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td valign="top" background="<?=$side?>/img/bg2.gif">
<table style="background: url(<?=$side?>/img/inhoudbg2.gif)" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<table width="491" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left">
<object type="application/x-shockwave-flash" data="header.swf" width="491" height="105">
<param name="movie" value="<?=$side?>/header.swf">
<img src="<?=$side?>/header.jpg" width="491" height="105" alt="">
</object>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top">
<table width="491" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<img src="<?=$side?>/img/header_links.gif" width="25" height="55" border="0" alt="">
</td>
<td valign="top">
<img src="<?=$side?>/img/header_onder.gif" width="450" height="55" border="0" alt="">
</td>
<td valign="top"><img src="<?=$side?>/img/header_rechts.gif" width="17" height="55" border="0" alt=""></td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top">
<table border="0" cellpadding="0" cellspacing="0" style="width: 492px">
<tr>
<td style="width: 25px; background: url(<?=$side?>/img/inhoud_links.gif)"></td>
<td style="width: 492px; background: url(<?=$side?>/img/inhoudbg.gif); padding: 5px">
<!-- CONTENT START -->
<?
echo"<table width='100%' bgcolor='#666666'>";
echo"<tr>";
echo"<td width='40%'>";
$hent_overskrift = mysql_query("SELECT * FROM forum_spm WHERE spm_id = '$_GET[spm_id]'") or die(mysql_error());
while($vis_overskrift = mysql_fetch_array($hent_overskrift)) {
echo"<b>$vis_overskrift[overskrift]</b>";
}
echo"</td>";
echo"<td width='60%' align='right'>";
$hent_valgte_indlaeg = mysql_query("SELECT * FROM forum_spm WHERE spm_id = '$_GET[spm_id]'") or die(mysql_error());
while($vis_vi = mysql_fetch_array($hent_valgte_indlaeg)) {
echo"oprettet af <b>$vis_vi[brugernavn]</b> - d. $vis_vi[dato]";
}
echo"</td>";
echo"</tr>";
echo"</table>";
echo"<table width='100%' bgcolor='#CCCCCC'>";
echo"<tr>";
echo"<td width='100%'>";
echo"<br>";
$hent_spm = mysql_query("SELECT * FROM forum_spm WHERE spm_id = '$_GET[spm_id]'") or die(mysql_error());
while($vis_spm = mysql_fetch_array($hent_spm)) {
echo"<font color='000000'>$vis_spm[spg]</font>";
echo"<br>";
echo"</td>";
echo"</tr>";
echo"</table>";
echo"<br>";
}
?>
<table width="100%" cellpadding="3" cellspacing="3">
<?php
$pr_side = 10;
$antal = mysql_result(mysql_query("SELECT COUNT(*) FROM forum_svar WHERE forum_spm_id = '$_GET[spm_id]'"),0) or die(mysql_error());
$vis_fra = (isset($_GET["visfra"]) && is_numeric($_GET["visfra"]) && $_GET["visfra"] < $antal) ? $_GET["visfra"] : 0;
$query = mysql_query ("SELECT * FROM forum_svar WHERE forum_spm_id = '$_GET[spm_id]' limit $vis_fra, $pr_side") or die(mysql_error());
while ($row = mysql_fetch_array($query)) {
echo"<tr>";
echo"<td width='100%'>";
echo"<table width='100%' height='10' bgcolor='#666666'>";
echo"<tr><td width='50%' align='left'>";
echo"<small><small><small>indlæg af:<b> $row[brugernavn]</b></small></small></small>";
echo"</td><td width='50%' align='right'>";
echo"<small><small><small>oprettet d. $row[dato]</small></small></small>";
echo"</td></tr></table>";
echo"<table width='100%' bgcolor='#CCCCCC'>";
echo"<tr><td><font color='000000'>";
$tekst = "$row[svar]";
$tekst1 = nl2br($tekst);
$tekst2 = wordwrap($tekst1, 60, "<br />", 1);
$tekst2 = strip_tags($tekst2, '<b></b><i></i>');
$tekst2 = str_replace(':0¤','<img src="../img/ad.gif">', $tekst2);
$tekst2 = str_replace(':)','<img src="../img/glad.gif">', $tekst2);
$tekst2 = str_replace(':D','<img src="../img/griner.gif">', $tekst2);
$tekst2 = str_replace(':I','<img src="../img/hmm.gif">', $tekst2);
$tekst2 = str_replace(':Q','<img src="../img/oh.gif">', $tekst2);
$tekst2 = str_replace('|I','<img src="../img/sover.gif">', $tekst2);
$tekst2 = str_replace(':>','<img src="../img/tja.gif">', $tekst2);
$tekst2 = str_replace(':,(','<img src="../img/trist.gif">', $tekst2);
$tekst2 = str_replace(';(','<img src="../img/vred.gif">', $tekst2);
$tekst2 = preg_replace("/\[fed\](.+?)\[\/fed\]/is",'<b>\1</b>', $tekst2);
$tekst2 = preg_replace("/\[kursiv\](.+?)\[\/kursiv\]/is",'<i>\1</i>', $tekst2);
$tekst2 = preg_replace("/\[understreg\](.+?)\[\/understreg\]/is",'<u>\1</u>', $tekst2);
echo"$tekst2";
echo"</font></td></tr></table>";
echo"</td>";
echo"</tr>";
}
echo"</table>";
echo"<form action='tilfoj.php?bord_id=$_GET[bord_id]&spm_id=$_GET[spm_id]' method='post'>";
?>
<script>
function indsaet_smiley(hvilken){
document.getElementById('svar').value += ""+hvilken+"";
}
</script>
<?
echo"<table><tr><td>";
echo"<textarea name='svar' rows='10' cols='80'></textarea>";
echo"</td><tr><td>";
?>
<q onclick="indsaet_smiley(':0¤');"><img src="../img/ad.gif"></q>
<q onclick="indsaet_smiley(':)');"><img src="../img/glad.gif"></q>
<q onclick="indsaet_smiley(':D');"><img src="../img/griner.gif"></q>
<q onclick="indsaet_smiley(':I');"><img src="../img/hmm.gif"></q>
<q onclick="indsaet_smiley(':Q');"><img src="../img/hmm.gif"></q>
<q onclick="indsaet_smiley('|I');"><img src="../img/sover.gif"></q>
<q onclick="indsaet_smiley(':>');"><img src="../img/tja.gif"></q>
<q onclick="indsaet_smiley(':,(');"><img src="../img/trist.gif"></q>
<q onclick="indsaet_smiley(';(');"><img src="../img/vred.gif"></q>
<br>
<button style="border: 1px; font-family:Verdana; font-size:9; color:rgb(153,153,153); background-color:rgb(30,30,30); margin:1; border-color:black; border-style:solid;" onclick="indsaet_smiley('[fed]');">[Fed]</button>
<button style="border: 1px; font-family:Verdana; font-size:9; color:rgb(153,153,153); background-color:rgb(30,30,30); margin:1; border-color:black; border-style:solid;" onclick="indsaet_smiley('[/fed]');">[/Fed]</button>
<button style="border: 1px; font-family:Verdana; font-size:9; color:rgb(153,153,153); background-color:rgb(30,30,30); margin:1; border-color:black; border-style:solid;" onclick="indsaet_smiley('[kursiv]');">[kursiv]</button>
<button style="border: 1px; font-family:Verdana; font-size:9; color:rgb(153,153,153); background-color:rgb(30,30,30); margin:1; border-color:black; border-style:solid;" onclick="indsaet_smiley('[/kursiv]');">[/kursiv]</button>
<button style="border: 1px; font-family:Verdana; font-size:9; color:rgb(153,153,153); background-color:rgb(30,30,30); margin:1; border-color:black; border-style:solid;" onclick="indsaet_smiley('[understreg]');">[understreg]</button>
<button style="border: 1px; font-family:Verdana; font-size:9; color:rgb(153,153,153); background-color:rgb(30,30,30); margin:1; border-color:black; border-style:solid;" onclick="indsaet_smiley('[/understreg]');">[/understreg]</button>
<
/td><tr>
<?
echo"<td align='right'><input type='submit' name='send' value='Udfør'>";
echo"</td></tr></table></form>";
echo "<hr />";
if ($vis_fra > 0) {
$back= $vis_fra - $pr_side;
echo "<a href='$_SERVER[PHP_SELF]?bord_id=$_GET[bord_id]&spm_id=$_GET[spm_id]&visfra=$back'>Forrige</a> ";
}
$page = 1;
for ($start = 0; $antal > $start; $start = $start + $pr_side) {
if($vis_fra != $page * $pr_side - $pr_side) {
echo "<a href='$_SERVER[PHP_SELF]?bord_id=$_GET[bord_id]&spm_id=$_GET[spm_id]&visfra=$start'>$page</a> ";
} else {
echo $page." ";
}
$page++;
}
if ($vis_fra < $antal - $pr_side) {
$next = $vis_fra + $pr_side;
echo " <a href='$_SERVER[PHP_SELF]?bord_id=$_GET[bord_id]&spm_id=$_GET[spm_id]&visfra=$next'>Næste</a>";
}
?>
<!-- CONTENT ENDS -->
</td>
<td style="width: 17px; background: url(img/inhoud_rechts.gif)"></td>
</tr>
<tr>
<td><img src="<?=$side?>/img/inhoud_rechts_onder.gif" width="25" height="13" border="0" alt=""></td>
<td style="width: 492px;background: url(<?=$side?>/img/inhoud_onder.gif)"></td>
<td><img src="<?=$side?>/img/inhoud_links_onder.gif" width="17" height="13" border="0" alt=""></td>
</tr>
</table>
</td>
</tr>
</table>
<div style="text-align: center; color: gray" id="c">By <a href=" http://rdlt.com" target="_blank">Yellow19</a>, © 2004-2005 <a href=" http://clantemplatehq.com" target="_blank">Clantemplatehq.com</a> </div>
</td>
<td style="width: 10px; background: url(<?=$side?>/img/rechts_r2.gif)"></td>
<td style="background: url(<?=$side?>/img/rechts_r1.gif); width: 27px"></td>
</tr>
</table>
</body>
</html>
