Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 20th, 2012  |  syntax: None  |  size: 1.43 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.                                 $botList = $db->getBotsIdArray();
  2.                                         foreach ($botList as $botId) {
  3.                                         $botData = $db->getBotArray($botId);
  4.                                         $n = $botData['packsCount'];
  5.                                                 echo '
  6.                                                         <article class="formulaire">
  7.                                                                 <h1>'. $botData['name'] .'</h1>
  8.                                                                 Channel : '. $botData['chan'] .'<br />
  9.                                                                 Packs : '. $botData['packsCount'] .'<br />
  10.                                                                 <table cellspacing="0" style="width:100%;">
  11.                                                                         <tbody>
  12.                                                                                 <tr>
  13.                                                                                         <th style="text-align: left; padding: 5px;" class="bigBold">Fichier</th>
  14.                                                                                         <th style="text-align: left; padding: 5px;" class="bigBold">Taille</th>
  15.                                                                                         <th style="text-align: left; padding: 5px;" class="bigBold">Pack</th>
  16.                                                                                         <th style="text-align: left; padding: 5px;" class="bigBold">Téléchargé</th>
  17.                                                                                 </tr>';
  18.                                                         for ($pos = $n - 10];$pos < $n;$pos++) {
  19.                                                                 $pack = $botData['packs'][$pos];
  20.                                                                 if ($i /2 == intval($i /2)) $item = 'item1';
  21.                                                                 else $item = 'item2';
  22.                                                                 echo '<tr id="'. $item .'">
  23.                                                                                         <td style="text-align: left; padding: 5px;">'. $pack['file'] .'</td>
  24.                                                                                         <td style="text-align: left; padding: 5px;">'. $db->wsize($pack['size']) .'</td>
  25.                                                                                         <td style="text-align: left; padding: 5px;">#'. $pack['pack'] .'</td>
  26.                                                                                         <td style="text-align: left; padding: 5px;">'. $pack['gets'] .'x</td>
  27.                                                                                 </tr>';
  28.                                                         }
  29.                                                         echo '
  30.                                                                         </tbody>
  31.                                                                 </table>
  32.                                                         </article>';
  33.                                         }
  34.                                 ?>