<?
$vocations = simplexml_load_file($config['site']['server_path'].'/data/XML/vocations.xml') or die('<b>Could not load vocations!</b>');
$out = "<table width='100%' cellspacing='0'>
<tr>
<td>Name</td>
<td>Damage Multipilers</td>
<td>Health Gain</td>
<td>Mana Gain</td>
<td>From Voc. ID</td>
</tr>";
foreach($vocations->vocation as $voc)
{
$dmg = $vocations->vocation->formula;
$out .= "<tr>
<td>".$voc['name']."</td>
<td>".$dmg['meleeDamage']." | ".$dmg['distDamage']." | ".$dmg['magDamage']."</td>
<td>".$voc['gainhp']."</td>
<td>".$voc['gainmana']."</td>
<td>".$voc['fromvoc']."</td>
</tr>";
}
$out .= "</table>";
$main_content .= $out;
?>