Beste CP'ers.
Ik zit met het grootste probleem totheden die ik heb.
Ik probeer al aantal dagen de probleem uit me index te krijgen.
Het is zo, de tables worden niet steeds volledig weergegeven. Als bijvoorbeeld de menu uitklapt, worden de tables van index groter maar niet volledig weergegeven.
Ik weet niet of ik het duidelijk genoeg heb vertelt.
Ik weet dat de scripting bagger is, maar dat wil ik hierna proberen te repareren
PHP
<body style="margin: 5px;">
<table align="center" width=100%>
<tr>
<? include('banner.php'); ?>
<tr><td valign="top">
<table width=100% cellpadding=0 cellspacing=0>
<td valign="top">
<table width=100% height=100% cellpadding=0 cellspacing=0>
<tr><td width=150 height=150 valign="top" align="center">
<?php /* ------------------------- */
$dbres = mysql_query("SELECT `id` FROM `[users]` WHERE `activated`=1");
$members = mysql_num_rows($dbres);
$dbres = mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300");
$online = mysql_num_rows($dbres);
$dbres = mysql_query("SELECT `id` FROM `[users]` WHERE `level` & 0x80 AND UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 ORDER BY `login`");
$admin = mysql_num_rows($dbres);
$query = mysql_query("SELECT id FROM `[messages]` WHERE `read`=0 AND `inbox`=1 AND `to`='{$data->login}'");
$inboxnew = mysql_num_rows($query);
$laatstelid = mysql_query("select `login` from `[users]` order by id desc limit 1");
$lastmember = @mysql_result($laatstelid,0,0);
print <<<ENDHTML
<table width=150><form>
<tr><td class="mainTxt" align="center"><b>Active: $online/$members</b></td></tr>
<tr><td align="center"><input type="text" name="time" style="text-align: center;"></td></tr>
</form></table>
ENDHTML;
if($data) {
print <<<ENDHTML
<table class="menu" width=150 cellpadding=0 cellspacing=0>
<tr><td><table width=100% cellpadding=0 cellspacing=0>
<tr> <td width=5 class="menuTitle"><a style="color: #FFFFFF;" onClick="showMenu('main')"><IMG src="images/star22.jpg" vspace="2" hspace="2" border="0" align="absmiddle"></a> </td>
<td class="menuTitle"><b>General</b></td></tr>
</table>
<table width=100% cellpadding=0 cellspacing=0 ID="main" style="position: absolute; left: -100; top: -100;">
<tr bgcolor="#364E5A" height="20"><td onmouseover="this.style.background='#42606F';this.style.cursor='hand';" onmouseout="this.style.background='#364E5A';" style="border-right:1px solid #FFFFFF;border-bottom:1px solid #4E6F81;" onclick="top.frames['hoofd'].location.href='home.php';"> <a title="Go to Forum page" href="home.php"><font size="1.5" color="#CCCCCC"><b>Home</b></font></a></td></tr>
<tr bgcolor="#364E5A" height="20"><td onmouseover="this.style.background='#42606F';this.style.cursor='hand';" onmouseout="this.style.background='#364E5A';" style="border-right:1px solid #FFFFFF;border-bottom:1px solid #4E6F81;" onclick="top.frames['hoofd'].location.href='disclaimer.php';"> <a title="Go to Disclaimers" href="disclaimer.php"><font size="1.5" color="#CCCCCC"><b>FAQ</b></font></a></td></tr>
<tr bgcolor="#364E5A" height="20"><td onmouseover="this.style.background='#42606F';this.style.cursor='hand';" onmouseout="this.style.background='#364E5A';" style="border-right:1px solid #FFFFFF;border-bottom:1px solid #4E6F81;" onclick="top.frames['hoofd'].location.href=login.php?x=logout';"> <a title="Logout directly" href="login.php?x=logout"><font size="1.5" color="#CCCCCC"><b>Logout</b></font></a></td></tr>
</table></td></tr>
</table>
<table class="menu" width=150 cellpadding=0 cellspacing=0>
<tr><td><table width=100% cellpadding=0 cellspacing=0>
<tr> <td width=5 class="menuTitle"><a style="color: #FFFFFF;" onClick="showMenu('control')"><IMG src="images/star22.jpg" vspace="2" hspace="2" border="0" align="absmiddle"></a> </td>
<td class="menuTitle"><b>User</b></td></tr>
</table>
<table width=100% cellpadding=0 cellspacing=0 ID="control" style="position: absolute; left: -100; top: -100; visibility: hidden;">
<tr bgcolor="#364E5A" height="20"><td onmouseover="this.style.background='#42606F';this.style.cursor='hand';" onmouseout="this.style.background='#364E5A';" style="border-right:1px solid #FFFFFF;border-bottom:1px solid #4E6F81;" onclick="top.frames['hoofd'].location.href='list.php';"> <a title="View the members" href="list.php"><font size="1.5" color="#CCCCCC"><b>Members</b></font></a></td></tr>
<tr bgcolor="#364E5A" height="20"><td onmouseover="this.style.background='#42606F';this.style.cursor='hand';" onmouseout="this.style.background='#364E5A';" style="border-right:1px solid #FFFFFF;border-bottom:1px solid #4E6F81;" onclick="top.frames['hoofd'].location.href='list.php?s=online';"> <a title="See all active users" href="list.php?s=online"><font size="1.5" color="#CCCCCC"><b>Online[$online]</b></font></a></td></tr>
<tr bgcolor="#364E5A" height="20"><td onmouseover="this.style.background='#42606F';this.style.cursor='hand';" onmouseout="this.style.background='#364E5A';" style="border-right:1px solid #FFFFFF;border-bottom:1px solid #4E6F81;" onclick="top.frames['hoofd'].location.href='message.php?p=inbox';"> <a title="Go to your inbox" href="message.php?p=inbox"><font size="1.5" color="#CCCCCC"><b>Inbox[$inboxnew]</b></font></a></td></tr>
<tr bgcolor="#364E5A" height="20"><td onmouseover="this.style.background='#42606F';this.style.cursor='hand';" onmouseout="this.style.background='#364E5A';" style="border-right:1px solid #FFFFFF;border-bottom:1px solid #4E6F81;" onclick="top.frames['hoofd'].location.href='forum.php';"> <a title="Go to the forum" href="forum.php"><font size="1.5" color="#CCCCCC"><b>Forum</b></font></a></td></tr>
</table></td></tr>
</table>
<table class="menu" width=150 cellpadding=0 cellspacing=0>
<tr><td><table width="100%" cellpadding=0 cellspacing=0>
<tr> <td width=5 class="menuTitle"><a style="color: #FFFFFF;" onClick="showMenu('fam')"><IMG src="images/star22.jpg" vspace="2" hspace="2" border="0" align="absmiddle"></a> </td>
<td class="menuTitle"><b>Family</b></td></tr>
</table>
<table width="100%" cellpadding=0 cellspacing=0 ID="fam" style="position: absolute; left: -100; top: -100; visibility: hidden;">
<tr bgcolor="#364E5A" height="20"><td onmouseover="this.style.background='#42606F';this.style.cursor='hand';" onmouseout="this.style.background='#364E5A';" style="border-right:1px solid #FFFFFF;border-bottom:1px solid #4E6F81;" onclick="top.frames['hoofd'].location.href=';"> <a title="There are no options available yet"><font size="1.5" color="#CCCCCC"><b>No options</b></font></a></td></tr>
</table></td></tr>
</table>
ENDHTML;
if($data->level == 4) {
print <<<ENDHTML
<table class="menu" width=150 cellpadding=0 cellspacing=0>
<tr><td><table width=100% cellpadding=0 cellspacing=0>
<tr><td width=5 class="menuTitle"><a style="color: #FFFFFF;" onClick="showMenu('admin')"><IMG src="images/star22.jpg" vspace="2" hspace="2" border="0" align="absmiddle"></a> </td>
<td class="menuTitle"><b>Admin</b></td></tr>
</table>
<table width=100% cellpadding=0 cellspacing=0 ID="admin" style="position: absolute; left: -100; top: -100; visibility: hidden;">
<tr bgcolor="#364E5A" height="20"><td onmouseover="this.style.background='#42606F';this.style.cursor='hand';" onmouseout="this.style.background='#364E5A';" style="border-right:1px solid #FFFFFF;border-bottom:1px solid #4E6F81;" onclick="top.frames['hoofd'].location.href='link/admin.php';"> <a title="Go to edit of linkers" href="link/admin.php"><font size="1.5" color="#CCCCCC"><b>Linkpartners</b></font></a></td></tr>
</table></td></tr>
</table>
ENDHTML;
}
else
print " </td>\n";
}
else {
print <<<ENDHTML
<table class="menu" width=150 cellpadding=0 cellspacing=0>
<tr bgcolor="#364E5A" height="20"><td onmouseover="this.style.background='#42606F';this.style.cursor='hand';" onmouseout="this.style.background='#364E5A';" style="border-right:1px solid #FFFFFF;border-bottom:1px solid #4E6F81;" onclick="top.frames['hoofd'].location.href='home.php';"> <a title="Go to Homepage" href="home.php"><font size="1.5" color="#CCCCCC"><b>Home</b></font></a></td></tr>
<tr bgcolor="#364E5A" height="20"><td onmouseover="this.style.background='#42606F';this.style.cursor='hand';" onmouseout="this.style.background='#364E5A';" style="border-right:1px solid #FFFFFF;border-bottom:1px solid #4E6F81;" onclick="top.frames['hoofd'].location.href='bulletlist.php';"> <a title="Go to Bulletchart v3.0" href="bulletlist.php"><font size="1.5" color="#FF0000"><b>Bulletchart</b></font></a></td></tr>
<tr bgcolor="#364E5A" height="20"><td onmouseover="this.style.background='#42606F';this.style.cursor='hand';" onmouseout="this.style.background='#364E5A';" style="border-right:1px solid #FFFFFF;border-bottom:1px solid #4E6F81;" onclick="top.frames['hoofd'].location.href='bodyguards.php';"> <a title="Go to Bodyguard training" href="bodyguards.php"><font size="1.5" color="#FF0000"><b>Bodyguards</b></font></a></td></tr>
<tr bgcolor="#364E5A" height="20"><td onmouseover="this.style.background='#42606F';this.style.cursor='hand';" onmouseout="this.style.background='#364E5A';" style="border-right:1px solid #FFFFFF;border-bottom:1px solid #4E6F81;" onclick="top.frames['hoofd'].location.href='link/index.php';"> <a title="Go to our linkpartners" href="link/index.php"><font size="1.5" color="#CCCCCC"><b>Linkpartners</b></font></a></td></tr>
<tr bgcolor="#364E5A" height="20"><td onmouseover="this.style.background='#42606F';this.style.cursor='hand';" onmouseout="this.style.background='#364E5A';" style="border-right:1px solid #FFFFFF;border-bottom:1px solid #4E6F81;" onclick="top.frames['hoofd'].location.href='home.php';"> <a title="Go to our mIRC Bots" href="home.php"><font size="1.5" color="#CCCCCC"><b>mIRC Bots</b></font></a></td></tr>
<tr bgcolor="#364E5A" height="20"><td onmouseover="this.style.background='#42606F';this.style.cursor='hand';" onmouseout="this.style.background='#364E5A';" style="border-right:1px solid #FFFFFF;border-bottom:1px solid #4E6F81;" onclick="top.frames['hoofd'].location.href='news.php';"> <a title="Go to latest news" href="news.php"><font size="1.5" color="#CCCCCC"><b>News</b></font></a></td></tr>
<tr bgcolor="#364E5A" height="20"><td onmouseover="this.style.background='#42606F';this.style.cursor='hand';" onmouseout="this.style.background='#364E5A';" style="border-right:1px solid #FFFFFF;border-bottom:1px solid #4E6F81;" onclick="top.frames['hoofd'].location.href='home.php';"> <a title="Go to Forum page" href="home.php"><font size="1.5" color="#CCCCCC"><b>Forum</b></font></a></td></tr>
</table>
<table class="menu" width=150 cellpadding=0 cellspacing=0>
<tr>
<tr><td class="menuTitle" align="center"><b>Not able to login!</b></td></tr>
<tr><td class="menuLink">
<form method="post" action="login.php" method="post"><table align="center" width="100%">
<tr><td align=center>Login:</td></tr><tr> <td align=center><input type="text" name="login" maxlength=16 style="text-align: center;"></td></tr>
<tr><td align=center>Password:</td></tr><tr> <td align=center><input type="password" name="pass" maxlength=16 style="text-align: center;"></td></tr>
<tr><td colspan=2><input type="submit" value="Login" style="width: 100px; height: 20px;"></td></tr>
</table>
</form>
</td>
</tr>
</table>
ENDHTML;
}
/* ------------------------- */ ?>
<td width=15></td>
<td valign="top"><table width=100% height=100% cellspacing=0 cellpadding=0>
<tr><td height=5><br></td></tr>
<tr><td><iframe src="<?php echo ($data) ? "news.php" : "home.php" ?>" name="mainFrame" width=100% height=100% frameborder=0></iframe></td></tr>
</table></td></tr>
</table></td></tr>
</table></td></tr>
</table><center>
</table>
</body>
Toon Meer