Update driver to display side-by-side table

This commit is contained in:
Andrew Tomaka 2013-04-08 19:26:38 -04:00
parent 6f5bd88ff0
commit 17cd8ab158

View file

@ -16,21 +16,63 @@ if($_POST['submit']) {
die('Bad provider. Either your provider could not be detected or we do not support your provider at this time.'); die('Bad provider. Either your provider could not be detected or we do not support your provider at this time.');
} }
$character = DiabloClassFactory::createClassObject($stats->class, $stats, 'pvp'); $pve = DiabloClassFactory::createClassObject($stats->class, $stats, 'pve');
$pvp = DiabloClassFactory::createClassObject($stats->class, $stats, 'pvp');
if($character === FALSE) { if($pve === FALSE) {
die('Bad class. Either your class could not be detected or we do not support your class at this time.');
}
if($pvp === FALSE) {
die('Bad class. Either your class could not be detected or we do not support your class at this time.'); die('Bad class. Either your class could not be detected or we do not support your class at this time.');
} }
?> ?>
<hr/> <hr/>
<b>Hall Score: <?php echo number_format($character->hallScore(), 2, '.', ','); ?></b><br/><br/> <table border="1" cellpadding="3">
<thead>
DPS Score: <?php echo number_format($character->DPSScore(), 2, '.', ','); ?><br/> <tr>
EHP Score: <?php echo number_format($character->EHPScore(), 2, '.', ','); ?><br/> <th></th>
Sustain Score: <?php echo number_format($character->sustainScore(), 2, '.', ','); ?><br/> <th>PvE</th>
Move Score: <?php echo number_format($character->moveScore(), 2, '.', ','); ?><br/> <th>PvP</th>
Paragon Score: <?php echo number_format($character->paragonScore(), 2, '.', ','); ?><br/> </tr>
Misc Score: <?php echo number_format($character->miscScore(), 2, '.', ','); ?><br/> </thead>
<tbody>
<tr>
<td><b>Hall Score</b></td>
<td><?php echo number_format($pve->hallScore(), 2, '.', ','); ?></td>
<td><?php echo number_format($pvp->hallScore(), 2, '.', ','); ?></td>
</tr>
<tr>
<td><b>DPS Score</b></td>
<td><?php echo number_format($pve->DPSScore(), 2, '.', ','); ?></td>
<td><?php echo number_format($pvp->DPSScore(), 2, '.', ','); ?></td>
</tr>
<tr>
<td><b>EHP Score</b></td>
<td><?php echo number_format($pve->EHPScore(), 2, '.', ','); ?></td>
<td><?php echo number_format($pvp->EHPScore(), 2, '.', ','); ?></td>
</tr>
<tr>
<td><b>Sustain Score</b></td>
<td><?php echo number_format($pve->sustainScore(), 2, '.', ','); ?></td>
<td><?php echo number_format($pvp->sustainScore(), 2, '.', ','); ?></td>
</tr>
<tr>
<td><b>Move Score</b></td>
<td><?php echo number_format($pve->moveScore(), 2, '.', ','); ?></td>
<td><?php echo number_format($pvp->moveScore(), 2, '.', ','); ?></td>
</tr>
<tr>
<td><b>Paragon Score</b></td>
<td><?php echo number_format($pve->paragonScore(), 2, '.', ','); ?></td>
<td><?php echo number_format($pvp->paragonScore(), 2, '.', ','); ?></td>
</tr>
<tr>
<td><b>Misc Score</b></td>
<td><?php echo number_format($pve->miscScore(), 2, '.', ','); ?></td>
<td><?php echo number_format($pvp->miscScore(), 2, '.', ','); ?></td>
</tr>
</tbody>
</table>
<hr/> <hr/>
<?php <?php
} }