nghienmu
16-03-12, 10:30 PM
E chỉnh file như thế này
<table width="66%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td><li class="style2"><a href="javascript:void(0);" onclick="generate('content','index.php?page=news')">TIN TỨC</a></li></td>
</tr>
<tr>
<td><li class="style2"><a href="javascript:void(0);" onclick="generate('content','index.php?page=downloads')">TẢI TRÒ CHƠI</a></li></td>
</tr>
<tr>
<td><li class="style2"><a href="javascript:void(0);" onclick="generate('content','index.php?page=register')">ĐĂNG KÍ</a></li></td>
</tr>
<tr>
<td><li class="style2"><a href="javascript:void(0);" onclick="generate('content','index.php?page=statistics')">THỐNG KÊ</a></li></td>
</tr>
<tr>
<td><li class="style2"><a href="javascript:void(0);" onclick="generate('content','index.php?page=rankings')">BẢNG XẾP HẠNG</a></li></td>
</tr>
<tr>
<td><li class="style2"><a href="javascript:void(0);" onclick="generate('content','index.php?page=online')">THỐNG KÊ TRƯC TUYẾN</a></li></td>
</tr>
<tr>
<td><li class="style2"><a href="javascript:void(0);" onclick="generate('content','index.php?page=gamemasters')">NGƯỜI CHƠI</a></li></td>
</tr>
<?php
$select = $DB->Execute("SELECT Name,Link,Type,needSQL from BMW_Mainmenu");
foreach($select as $row){
if ($row['Type'] == "Blank") { $target = "target='_Blank'";} else {$target = "target='_Self'";}
?>
<tr>
<td><li class="style2"><a href="javascript:void(0);" <? print $target;?> onclick="generate('content','<? print $row[1]; ?>')"><? print $row[0]; ?></a></li></td>
</tr>
<?php } ?>
</table>
Rồi e ra xem trang chủ thì nó chả ra chữ gì cả mong cac ban giúp phát
<table width="66%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td><li class="style2"><a href="javascript:void(0);" onclick="generate('content','index.php?page=news')">TIN TỨC</a></li></td>
</tr>
<tr>
<td><li class="style2"><a href="javascript:void(0);" onclick="generate('content','index.php?page=downloads')">TẢI TRÒ CHƠI</a></li></td>
</tr>
<tr>
<td><li class="style2"><a href="javascript:void(0);" onclick="generate('content','index.php?page=register')">ĐĂNG KÍ</a></li></td>
</tr>
<tr>
<td><li class="style2"><a href="javascript:void(0);" onclick="generate('content','index.php?page=statistics')">THỐNG KÊ</a></li></td>
</tr>
<tr>
<td><li class="style2"><a href="javascript:void(0);" onclick="generate('content','index.php?page=rankings')">BẢNG XẾP HẠNG</a></li></td>
</tr>
<tr>
<td><li class="style2"><a href="javascript:void(0);" onclick="generate('content','index.php?page=online')">THỐNG KÊ TRƯC TUYẾN</a></li></td>
</tr>
<tr>
<td><li class="style2"><a href="javascript:void(0);" onclick="generate('content','index.php?page=gamemasters')">NGƯỜI CHƠI</a></li></td>
</tr>
<?php
$select = $DB->Execute("SELECT Name,Link,Type,needSQL from BMW_Mainmenu");
foreach($select as $row){
if ($row['Type'] == "Blank") { $target = "target='_Blank'";} else {$target = "target='_Self'";}
?>
<tr>
<td><li class="style2"><a href="javascript:void(0);" <? print $target;?> onclick="generate('content','<? print $row[1]; ?>')"><? print $row[0]; ?></a></li></td>
</tr>
<?php } ?>
</table>
Rồi e ra xem trang chủ thì nó chả ra chữ gì cả mong cac ban giúp phát