From 17cd8ab158085be8d7ee4d4661f2bdf220d1eea8 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Mon, 8 Apr 2013 19:26:38 -0400 Subject: [PATCH] Update driver to display side-by-side table --- d3hog_driver.php | 62 ++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 52 insertions(+), 10 deletions(-) diff --git a/d3hog_driver.php b/d3hog_driver.php index aaceb5c..e6bb4bb 100644 --- a/d3hog_driver.php +++ b/d3hog_driver.php @@ -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.'); } - $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.'); } ?>
-Hall Score: hallScore(), 2, '.', ','); ?>

- -DPS Score: DPSScore(), 2, '.', ','); ?>
-EHP Score: EHPScore(), 2, '.', ','); ?>
-Sustain Score: sustainScore(), 2, '.', ','); ?>
-Move Score: moveScore(), 2, '.', ','); ?>
-Paragon Score: paragonScore(), 2, '.', ','); ?>
-Misc Score: miscScore(), 2, '.', ','); ?>
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PvEPvP
Hall ScorehallScore(), 2, '.', ','); ?>hallScore(), 2, '.', ','); ?>
DPS ScoreDPSScore(), 2, '.', ','); ?>DPSScore(), 2, '.', ','); ?>
EHP ScoreEHPScore(), 2, '.', ','); ?>EHPScore(), 2, '.', ','); ?>
Sustain ScoresustainScore(), 2, '.', ','); ?>sustainScore(), 2, '.', ','); ?>
Move ScoremoveScore(), 2, '.', ','); ?>moveScore(), 2, '.', ','); ?>
Paragon ScoreparagonScore(), 2, '.', ','); ?>paragonScore(), 2, '.', ','); ?>
Misc ScoremiscScore(), 2, '.', ','); ?>miscScore(), 2, '.', ','); ?>