aqui les dejo el codigo:
Código PHP:
<div id="featured">
<h3>Proyectos mas recientes</h3>
<table width="100%">
<tr>
<th>Nombre del Proyecto</th>
<th>Propuestas</th>
<th>Tipo</th>
<th>Iniciado</th>
<th>Termina</th>
</tr>
<?php
foreach ($standard as $feature):
?>
<tr>
<td width="350">
<a href="/project/<?php echo $feature['Project']['project_id'];?>"> <?php echo $feature['Project']['name'];?> </a>
<?php
if ($feature['Project']['featured'] == 1) {
?>
<span class="featureproject">Urgente</span>
<?php } ?>
</td>
<td align="center" width="50">
<?php
echo $feature['Project']['count'];
?>
</td>
<td width="250">
<?php
$tmp = "";
for ($x = 1; $x<=5; $x++) {
if ($feature['Project']['cat'.$x] != "0") {
$tmp.=$feature['Project']['cat'.$x].", ";
}
}
$tmp = trim($tmp, ", ");
echo $tmp;
?>
</td>
<td width="100" align="center">
<?php echo date("m-d-Y", $feature['Project']['date_created']);?>
</td>
<td width="100" align="center">
<?php echo date("m-d-Y", $feature['Project']['date_end']);?>
</td>
</tr>
<?php
endforeach;
?>
</table>
</div>