
Untitled
By: a guest on
Jul 20th, 2012 | syntax:
None | size: 1.43 KB | hits: 12 | expires: Never
$botList = $db->getBotsIdArray();
foreach ($botList as $botId) {
$botData = $db->getBotArray($botId);
$n = $botData['packsCount'];
echo '
<article class="formulaire">
<h1>'. $botData['name'] .'</h1>
Channel : '. $botData['chan'] .'<br />
Packs : '. $botData['packsCount'] .'<br />
<table cellspacing="0" style="width:100%;">
<tbody>
<tr>
<th style="text-align: left; padding: 5px;" class="bigBold">Fichier</th>
<th style="text-align: left; padding: 5px;" class="bigBold">Taille</th>
<th style="text-align: left; padding: 5px;" class="bigBold">Pack</th>
<th style="text-align: left; padding: 5px;" class="bigBold">Téléchargé</th>
</tr>';
for ($pos = $n - 10];$pos < $n;$pos++) {
$pack = $botData['packs'][$pos];
if ($i /2 == intval($i /2)) $item = 'item1';
else $item = 'item2';
echo '<tr id="'. $item .'">
<td style="text-align: left; padding: 5px;">'. $pack['file'] .'</td>
<td style="text-align: left; padding: 5px;">'. $db->wsize($pack['size']) .'</td>
<td style="text-align: left; padding: 5px;">#'. $pack['pack'] .'</td>
<td style="text-align: left; padding: 5px;">'. $pack['gets'] .'x</td>
</tr>';
}
echo '
</tbody>
</table>
</article>';
}
?>