Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> PHP pomoc z wyświetlaniem tabeli
jensej
post
Post #1





Grupa: Zarejestrowani
Postów: 1
Pomógł: 0
Dołączył: 11.04.2013

Ostrzeżenie: (0%)
-----


Witam.
(IMG:http://3.imgland.net/27rKO_.jpg)
chciałbym aby tak wyświetlała się tak tabela, kod :
  1. <table class="table table-bordered table-stripped" style="background:white;">
  2.  
  3. <tbody>
  4.  
  5. <tr>
  6. <td style="width: 20%; heigh: 50px;">
  7. <?php if($status == 1){ ?>
  8. <span class="badge badge-success"><i class="icon-ok icon-white"></i></span>&nbsp;
  9. <?php } else { ?>
  10. <span class="badge badge-important"><i class="icon-remove icon-white"></i></span>&nbsp;
  11. <?php } ?>
  12. <?php echo $server_data['ip'] . ":" . $server_data['port']; ?>
  13.  
  14.  
  15. </td>
  16.  
  17. <td style="width: 20%; heigh: 50px;"> <?php echo $server_data['name']; ?><br /></td>
  18. <td style="width: 20%; heigh: 50px;"><a href="">WWW</a></td>
  19. <td style="width: 20%; heigh: 50px;"><?php if(!empty($info['Players'])) {echo $info['Players'] . "/" . $info['MaxPlayers'];} else { echo "Offline"; } ?><br /></td>
  20. <td style="width: 20%; heigh: 50px;"><?php echo $last_updateM; ?> minutes ago<br /></td>
  21. <td style="width: 20%; heigh: 50px;"> <?php echo $server_data['votes']; ?></td>
  22.  
  23. <td style="width: 20%; heigh: 50px;"><a href="server.php?id=<?php echo $server_data['id']; ?>"><img src="includes/img/icon_details.gif" title="Server Informations" alt="details" /></a></td>
  24. </tr>
  25. </tbody>
  26. </table>
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.12.2025 - 14:57