Ver Mensaje Individual
  #2 (permalink)  
Antiguo 30/12/2014, 08:57
mauritosuarez
 
Fecha de Ingreso: octubre-2014
Ubicación: Buenos Aires
Mensajes: 278
Antigüedad: 9 años, 6 meses
Puntos: 12
Respuesta: Mostrar resultados en una sola fila

Hola Raul, por lo que se ve a simple vista esta mal definida la tabla, y otra cosa utiliza los highligth del combo para resaltar el código y así entenderte mejor.

Te dejo un ejemplo, tendrías que adecuarlo a tus necesidades.

Código PHP:
Ver original
  1. <table class="table">
  2.                                 <tbody>
  3.                                     <tr>
  4.                                         <th>Usuario</th>
  5.                                         <th>Perfil</th>
  6.                                         <th>Acci&oacute;n</th>
  7.                                     </tr>
  8.                                         <?php for($i=0; $i<sizeof($reg); $i++) { // $reg contiene el array con los datos traidos de la db ?>
  9.                                         <tr>
  10.                                             <td><?php echo strtoupper($reg[$i]["Usuario"]); ?></td>
  11.                                             <td><?php echo $reg[$i]["Perfil"]; ?></td>
  12.                                             <td>
  13.                                                 <!--<img alt="Examinar" title="Examinar" src="<?php print Conectar::Url(); ?>img/icon/eye.png" />&nbsp;
  14.                                                 <a href="<?php print Conectar::Url(); ?>?action=usuarios&token<?php print $_GET["token"]; ?>&id=<?php echo $reg[$i]["IdUsuario"]; ?>" title="Examinar">Examinar</a>&nbsp;
  15.                                                 -->
  16.                                                 <img alt="Editar usuario" title="Editar usuario" src="<?php print Conectar::Url(); ?>img/icon/b_usredit.png" />&nbsp;
  17.                                                 <a onclick="Load();" href="<?php print Conectar::Url(); ?>?action=editusuarios&token=<?php print $_GET["token"]; ?>&option=edit&id=<?php echo $reg[$i]["IdUsuario"]; ?>" title="Editar usuario">Editar</a>&nbsp;
  18.                                                 <!--<img alt="Asignar perfil" title="Asignar perfil" src="<?php print Conectar::Url(); ?>img/icon/b_sdb.png" />&nbsp;
  19.                                                 <a href="<?php print Conectar::Url(); ?>?action=usuarios&amp;token=<?php print $_GET["token"]; ?>&amp;option=perfiles" title="Asignar perfil">Asignar modulos</a>&nbsp;
  20.                                                 -->
  21.                                             </td>
  22.                                         </tr>
  23.                                     <?php } ?>
  24.                                 </tbody>
  25.                             </table>


Espero te sirva.

Saludos.
__________________
http://www.sp-vision.net