cData['Quests'] as $quest) {
foreach ($quest as $difficulty => $q) {
$quests .= "
$difficulty
";
foreach ($q as $k => $v) {
$kD = str_replace("_", " ", $k);
$kD = str_replace(" NM", "", $kD);
$kD = str_replace(" Hell", "", $kD);
if ($v == 1) {
$quests .= "
";
} else {
$quests .= "
";
}
}
}
}
$wps = null;
$wps .= "
";
foreach ($c->cData['Waypoints'] as $diff => $waypoints) {
$wps .= "
$diff
";
array_pop($waypoints);
foreach ($waypoints as $k => $v) {
$kD = str_replace("_", " ", $k);
$kD = str_replace(" NM", "", $kD);
$kD = str_replace(" Hell", "", $kD);
if ($v == 1 && $k != ''){
$wps .= "
";
} else {
$wps .= "
";
}
}
}
$option = '';
if ($c->cData['CharacterClass'] == 'Amazon'){
$option .= "
";
} else {
$option .= "
";
}
if ($c->cData['CharacterClass'] == 'Assassin'){
$option .= "
";
} else {
$option .= "
";
}
if ($c->cData['CharacterClass'] == 'Barbarian'){
$option .= "
";
} else {
$option .= "
";
}
if ($c->cData['CharacterClass'] == 'Druid'){
$option .= "
";
} else {
$option .= "
";
}
if ($c->cData['CharacterClass'] == 'Paladin'){
$option .= "
";
} else {
$option .= "
";
}
if ($c->cData['CharacterClass'] == 'Necromancer'){
$option .= "
";
} else {
$option .= "
";
}
if ($c->cData['CharacterClass'] == 'Sorceress'){
$option .= "
";
} else {
$option .= "
";
}
$radio = '';
if ($c->cData['Difficulty']['Norm'] == 1){
$radio .= '
Normal
';
} else {
$radio .= '
Normal
';
}
if ($c->cData['Difficulty']['NM'] == 1){
$radio .= '
NM
';
} else {
$radio .= '
NM
';
}
if ($c->cData['Difficulty']['Hell'] == 1){
$radio .= '
Hell
';
} else {
$radio .= '
Hell
';
}
if ($c->cData['Quests'][0]['Norm']["DenOfEvil"]) $a1q1 = "checked";
if ($c->cData['Quests'][0]['Norm']["SistersBurialGrounds"]) $a1q2 = "checked";
if ($c->cData['Quests'][0]['Norm']["TheSearchForCain"]) $a1q3 = "checked";
if ($c->cData['Quests'][0]['Norm']["TheForgottenTower"]) $a1q4 = "checked";
if ($c->cData['Quests'][0]['Norm']["ToolsOfTheTrade"]) $a1q5 = "checked";
if ($c->cData['Quests'][0]['Norm']["SistersToTheSlaughter"]) $a1q6 = "checked";
$skills = '';
foreach($c->cData['skills']['skills'] as $k => $skill){
$skills .= "
: {$skill['skill']}
";
}
// dump($c['Waypoints']);
$tabContent .= <<
EOT;
echo $tabContent;
}
?>