<?
include( 'up.php' );
include( 'config.php' );
$text = '<p align="center">'
.'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="775">'
.'<tr>';
$res = mysql_query( 'SELECT c.column_id,c.name as cat_name,g.id,g.name FROM gm_games g LEFT JOIN gm_cat c ON c.id=g.cat WHERE c.id IS NOT NULL ORDER BY c.name,g.views DESC' ); {
$cats[ intval($row['column_id']) ][ $row['cat_name'] ][ $row['id'] ] = $row[ 'name']; }
for( $i = 0; $i < count($cats); $i++ ) {
$text .= '<td width="25%" valign="top">';
if($i == 0)
{
$text .='<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="180">'
.'<tr>'
.'<td width=8 height="18"><img border="0" src="images/games4youlayout_12.png" width="8" height="18" alt="games" /></td>'
.'<td width=163 background="images/games4youlayout_13.png" height="18" alt="fun" ><p align="center"><font face="Verdana" size="2" color="#FFFFFF">Partners</font></td>'
.'<td width=9 height="18"><img border="0" src="images/games4youlayout_15.png" width="9" height="18" alt="sex "/></td>'
.'</tr>'
.'<tr>'
.'<td height="5" valign="top"><img border="0" src="images/games4youlayout_60.png" width="8" height="5" alt="spelletjes" /></td>'
.'<td height="5" valign="top"><img border="0" src="images/games4youlayout_61.png" width="164" height="5" alt="games" /></td>'
.'<td height="5" valign="top"><img border="0" src="images/games4youlayout_62.png" width="8" height="5" alt="gratis" /></td>'
.'</tr>'
.'<tr>'
.'<td valign="top" height="100%"><img border="0" src="images/games4youlayout_63.png" width=8 height="100%" alt="games4you" /></td>'
.'<td valign="top" background="images/games4youlayout_64.png" width=164 height="100%">';
$lijst_select = "SELECT * FROM gm_partners ORDER BY inuniek DESC";
if($lijst_bestaat == 0)
{
$text .='<a class=games href="partners.php">Partner worden?</a><br>'
.'<a class=games href="partners.php">Partner worden?</a><br>'
.'<a class=games href="partners.php">Partner worden?</a><br>'
.'<a class=games href="partners.php">Partner worden?</a><br>'
.'<a class=games href="partners.php">Partner worden?</a><br>';
}
else
{
{
$text .='<a class=games href="uit.php?id='.$lijst->id.'" target="_new">'.$lijst->naam.'</a><br>';
}
}
$text .='<p align="center"><a href="uit.php?id=3" target="_new"><img border="0" src="gamestop.gif" width="120" height="60" alt="gametop" /></a></p><td valign="top" height="100%">'
.'<img border="0" src="images/games4youlayout_66.png" width="9" height="100%" alt="start" /></td>'
.'</tr>'
.'<tr>'
.'<td valign="top"><img border="0" src="images/games4youlayout_68.png" width="8" height="6" alt="sexgames" /></td>'
.'<td valign="top" background="images/games4youlayout_69.png"></td>'
.'<td valign="top"><img border="0" src="images/games4youlayout_71.png" width="9" height="6" alt="free" /></td>'
.'</tr>'
.'</table>';
}
foreach( $cats[$i] as $cat_name => $games )
{
if($i == 0)
{
$text .='<p align="left">';
}
if($i == 1)
{
$text .='<p align="center">';
}
if($i == 2)
{
$text .='<p align="center">';
}
if($i == 3)
{
$text .='<p align="right">';
}
$text .= '<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="180">'
.'<tr>'
.'<td width=8 height="18"><img border="0" src="images/games4youlayout_12.png" width="8" height="18" alt="gratis spelletjes" /></td>'
.'<td width=163 background="images/games4youlayout_13.png" height="18" alt="op games4you"><p align="center"><font face="Verdana" size="2" color="#FFFFFF">'.$cat_name.'</font></td>'
.'<td width=9 height="18"><img border="0" src="images/games4youlayout_15.png" width="9" height="18" alt="actie" /></td>'
.'</tr>'
.'<tr>'
.'<td height="5" valign="top"><img border="0" src="images/games4youlayout_60.png" width="8" height="5" alt="sponge bob"/></td>'
.'<td height="5" valign="top"><img border="0" src="images/games4youlayout_61.png" width="164" height="5" alt="bob de bouwer"/></td>'
.'<td height="5" valign="top"><img border="0" src="images/games4youlayout_62.png" width="8" height="5" alt="pacman "/></td>'
.'</tr>'
.'<tr>'
.'<td valign="top" height="100%"><img border="0" src="images/games4youlayout_63.png" width=8 height="100%" alt="allemaal gratis" /></td>'
.'<td valign="top" background="images/games4youlayout_64.png" width=164 height="100%">';
foreach( $games as $id => $name )
{
$text .= '<a class=games href="/speel.php?game='.$id.'">'.$name.'</a><br />';
}
$text .= '</td>'
.'<td valign="top" height="100%">'
.'<img border="0" src="images/games4youlayout_66.png" width="9" height="100%" alt="kom snel"/></td>'
.'</tr>'
.'<tr>'
.'<td valign="top"><img border="0" src="images/games4youlayout_68.png" width="8" height="6" alt="naar deze"/></td>'
.'<td valign="top" background="images/games4youlayout_69.png"></td>'
.'<td valign="top"><img border="0" src="images/games4youlayout_71.png" width="9" height="6" alt="suppercoole website" /></td>'
.'</tr>'
.'</table>';
}
$text .= '</td>';
}
echo '<p align="center"><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="775" id="AutoNumber1"> <tr>
<td width="100%" align="center">
<script src="http://www.ringtonio.nl/logo/?rtlo=23525&rthide2=1&rthide4=1&rttype=9&rtcols=7&rtcat=58&rtrows=2"></script></td>
</tr>
</table></p>';
include('down.php');
?>