<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="top" background="/graphics/box_big_up.gif" width="511" height="32"> </td>
</tr>
<tr>
<td align="left" valign="top" background="/graphics/box_big_mid.gif" width="511" height="32">
<table cellspacing="0" cellpadding="0">
<tr>
<td width="10"></td>
<td width="200" valign="top">
<?
$query_categoria="SELECT * FROM genere WHERE id=".$rowlimit["id_categoria"];
$result_categoria=mysql_query($query_categoria) or die ($query_categoria);
$row_categoria=mysql_fetch_array($result_categoria);
?>
<? $query_immagine = "SELECT * from immagine WHERE id_notizia = ".$rowlimit["id"];
$result_immagine=mysql_query($query_immagine) or die (mysql_error().$query_immagine);
$row_immagine=mysql_fetch_array($result_immagine);?>
<? $categoria = str_replace(" ","_",$row_categoria["nome"]); ?>
<? $titolo_link = str_replace(" ","_",$rowlimit["titolo"]); ?>
<a href="/gioco/<?=$categoria ?>/<?=$rowlimit["id"]?>/<?=$titolo_link ?>.html" title="Gioco <?= ucwords($rowlimit["titolo"]) ?>">
<img src="<?=$notizie_folder?>/image_resize.php?image_path=<?=$notizie_folder?>/img/<?=$row_immagine["immagine"]?>&max_width=200&max_height=200" align="left" border="0"></a>
</td>
<td width="291" valign="top">
<? //DATA IN ITALIANO
$rowlimit["data"]=mysql2date($rowlimit[data]);
?>
<? // calcolo lo staff rating
if ($rowlimit["voto"]=="0") $staff_rating = "no rating";
else $staff_rating = ($rowlimit["voto"] * 10)." su 100";
?>
<? $titolo_link = str_replace(" ","_",$rowlimit["titolo"]); ?>
<font class="link_giochi_index">
<a href="/gioco/<?=$categoria ?>/<?=$rowlimit["id"] ?>/<?=$titolo_link ?>.html">
<?= ucwords($rowlimit["titolo"]) ?> <?= ucwords($rowlimit["titolo_description"]) ?></a></font>
<img src="/img/auth_rating/<?=$rowlimit["voto"]?>_star.gif">
<?php
if (count($row_dis)) {
if ($row_dis["descrizione"]) {
if (strlen($rowlimit["description"]) > $maxchar) {
echo "<br>\n";
echo "<span class=\"content\" style=\"text-align: justify\">\n";
echo "<img width=\"10\" height=\"10\" src=\"../graphics/checked.gif\"> ".TextParse::TagliaStringa($rowlimit["description"], $maxchar);
echo "</span>\n";
} else {
echo "<br>\n";
echo "<span class=\"content\" style=\"text-align: justify\">\n";
echo "<img width=\"10\" height=\"10\" src=\"../graphics/checked.gif\"> ".$rowlimit["description"];
echo "</span>\n";
}
}
if ($row_dis["tag_links"]) {
$keys = explode(",", stripslashes($rowlimit["keywords"]));
echo "<br>\n";
echo "<span class=\"content\">\n";
foreach($keys as $k => $key) {
$key = trim($key);
$keytit = str_replace("-", " ", $key);
if (strcmp($tag, $key) != 0)
echo "<a href=\"/giochi/".str_replace(array(" ", "'"), "-", $key).".html\">$keytit</a> / ";
else
echo "<a href=\"/giochi/".str_replace(array(" ", "'"), "-", $key).".html\"> $keytit</a> / ";
}
echo "</span>\n";
}
}
?>
</td>
<td width="10"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center" valign="top" background="/graphics/box_big_down.gif" width="511" height="32"> </td>
</tr>
<? $i++;
} ?>
</table>