PHP - Realizar consulta de datos forma horizontal

 
Vista:

Realizar consulta de datos forma horizontal

Publicado por Elías (2 intervenciones) el 01/03/2013 17:50:59
Hola,
Estoy intentando buscar información de como puedo poner los datos de una consulta en forma horizontal, pero no logro encontralo.
Estoy intentando modificar un módulo joomla para que muestre los datos de la consulta en vez de forma vertical de forma horizontal.
¿Alguién podría indicarme como se hace?
Gracias

PD: Os dejo el codigo

<table align="center" cellpadding="3" border="0" class="jsm_restable">
<?php
if(count($list)){
foreach ($list as $match) :

if($old_date != $match->m_date.' '.$match->m_time){
?>
<tr>
<td colspan="2" class="match_date">
<div align="center">
<?php
echo date_bl($match->m_date,$match->m_time);
?>
</div></td>
</tr>
<?php
}
$old_date = $match->m_date.' '.$match->m_time;
?>
<?php
if($embl_is && (is_file('media/bearleague/'.$match->emb1) || is_file('media/bearleague/'.$match->emb2))){
echo "<tr><td class='emblem_thome'>";
if($match->emb1 && is_file('media/bearleague/'.$match->emb1) && $embl_is){

echo '<img src="'.JURI::base().'media/bearleague/'.$match->emb1.'" width="40">';

}
echo "</td>";
echo "<td>&nbsp;</td>";
echo "<td class='emblem_taway'>";
if($match->emb2 && is_file('media/bearleague/'.$match->emb2) && $embl_is){

echo '<img src="'.JURI::base().'media/bearleague/'.$match->emb2.'" width="40">';

}
echo "</td></tr>";
}
?>
<tr>

<td class="team_thome"><?php
echo '<a href="'.JRoute::_('index.php?option=com_joomsport&task=team&tid='.$match->hm_id.'&sid='.($params->get( 'season_id' )).'&Itemid='.$cItemId).'">'.$match->home.'</a>';
?></td>
<td nowrap="nowrap" class="match_result">: <?php
echo $match->score1?></td>
</tr>
<tr>
<td class="team_thome"><span class="team_taway">
<?php
echo '<a href="'.JRoute::_('index.php?option=com_joomsport&task=team&tid='.$match->aw_id.'&sid='.($params->get( 'season_id' )).'&Itemid='.$cItemId).'">'.$match->away.'</a>';

?>
</span></td>
<td nowrap="nowrap" class="match_result"> : <?php echo $match->score2; //if($et && $match->is_extra){ echo " (".$bl_lang['BL_RES_EXTRA'].")";}
echo '</a>';
?></td>
</tr>
<?php endforeach;
}
?>
</table>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder