<?php
$exp=getCharacterExp($char['charid']);
$warexp=$exp['war']/$expbase[$char['war']]*100;
$mnkexp=$exp['mnk']/$expbase[$char['mnk']]*100;
$whmexp=$exp['whm']/$expbase[$char['whm']]*100;
$blmexp=$exp['blm']/$expbase[$char['blm']]*100;
$rdmexp=$exp['rdm']/$expbase[$char['rdm']]*100;
$thfexp=$exp['thf']/$expbase[$char['thf']]*100;
$pldexp=$exp['pld']/$expbase[$char['pld']]*100;
$drkexp=$exp['drk']/$expbase[$char['drk']]*100;
$bstexp=$exp['bst']/$expbase[$char['bst']]*100;
$brdexp=$exp['brd']/$expbase[$char['brd']]*100;
$rngexp=$exp['rng']/$expbase[$char['rng']]*100;
$samexp=$exp['sam']/$expbase[$char['sam']]*100;
$ninexp=$exp['nin']/$expbase[$char['nin']]*100;
$drgexp=$exp['drg']/$expbase[$char['drg']]*100;
$smnexp=$exp['smn']/$expbase[$char['smn']]*100;
$bluexp=$exp['blu']/$expbase[$char['blu']]*100;
$corexp=$exp['cor']/$expbase[$char['cor']]*100;
$pupexp=$exp['pup']/$expbase[$char['pup']]*100;
$schexp=$exp['sch']/$expbase[$char['sch']]*100;
$dncexp=$exp['dnc']/$expbase[$char['dnc']]*100;
$geoexp=$exp['geo']/$expbase[$char['geo']]*100;
$runexp=$exp['run']/$expbase[$char['run']]*100;
$limexp=$exp['limits']/10000*100;
echo '
<td><table class="table table-hover">
<tr><td>WAR</td><td>';
if($char['war'] == 75){echo '<font color=blue><b>';}echo ''.$char['war'].'</td><td>MNK</td><td>';
if($char['mnk'] == 75){echo '<font color=blue><b>';}echo ''.$char['mnk'].'</td></tr>
<tr><td colspan=2><div class="opacity-50"><div class="progress"><div class="progress-bar progress-bar-striped progress-bar-animated bg-success" style="width:'.$warexp.'%">Exp: '.$exp['war'].'/'.$expbase[$char['war']].'</div></div></div></td>
<td colspan=2><div class="opacity-50"><div class="progress"><div class="progress-bar progress-bar-striped progress-bar-animated bg-success" style="width:'.$mnkexp.'%">Exp: '.$exp['mnk'].'/'.$expbase[$char['mnk']].'</div></div></td></tr>
<tr><td>WHM</td><td>';
if($char['whm'] == 75){echo '<font color=blue><b>';}echo ''.$char['whm'].'</td><td>BLM</td><td>';
if($char['blm'] == 75){echo '<font color=blue><b>';}echo ''.$char['blm'].'</td></tr>
<tr><td colspan=2><div class="opacity-50"><div class="progress"><div class="progress-bar progress-bar-striped progress-bar-animated bg-success" style="width:'.$whmexp.'%">Exp: '.$exp['whm'].'/'.$expbase[$char['whm']].'</div></div></td>
<td colspan=2><div class="opacity-50"><div class="progress"><div class="progress-bar progress-bar-striped progress-bar-animated bg-success" style="width:'.$blmexp.'%">Exp: '.$exp['blm'].'/'.$expbase[$char['blm']].'</div></div></td></tr>
<tr><td>RDM</td><td>';
if($char['rdm'] == 75){echo '<font color=blue><b>';}echo ''.$char['rdm'].'</td><td>THF</td><td>';
if($char['thf'] == 75){echo '<font color=blue><b>';}echo ''.$char['thf'].'</td></tr>
<tr><td colspan=2><div class="opacity-50"><div class="progress"><div class="progress-bar progress-bar-striped progress-bar-animated bg-success" style="width:'.$rdmexp.'%">Exp: '.$exp['rdm'].'/'.$expbase[$char['rdm']].'</div></div></td>
<td colspan=2><div class="opacity-50"><div class="progress"><div class="progress-bar progress-bar-striped progress-bar-animated bg-success" style="width:'.$thfexp.'%">Exp: '.$exp['thf'].'/'.$expbase[$char['thf']].'</div></div></td></tr>
<tr><td>PLD</td><td>';
if($char['pld'] == 75){echo '<font color=blue><b>';}echo ''.$char['pld'].'</td><td>DRK</td><td>';
if($char['drk'] == 75){echo '<font color=blue><b>';}echo ''.$char['drk'].'</td></tr>
<tr><td colspan=2><div class="opacity-50"><div class="progress"><div class="progress-bar progress-bar-striped progress-bar-animated bg-success" style="width:'.$pldexp.'%">Exp: '.$exp['pld'].'/'.$expbase[$char['pld']].'</div></div></td>
<td colspan=2><div class="opacity-50"><div class="progress"><div class="progress-bar progress-bar-striped progress-bar-animated bg-success" style="width:'.$drkexp.'%">Exp: '.$exp['drk'].'/'.$expbase[$char['drk']].'</div></div></td></tr>
<tr><td>BST</td><td>';
if($char['bst'] == 75){echo '<font color=blue><b>';}echo ''.$char['bst'].'</td><td>BRD</td><td>';
if($char['brd'] == 75){echo '<font color=blue><b>';}echo ''.$char['brd'].'</td></tr>
<tr><td colspan=2><div class="opacity-50"><div class="progress"><div class="progress-bar progress-bar-striped progress-bar-animated bg-success" style="width:'.$bstexp.'%">Exp: '.$exp['bst'].'/'.$expbase[$char['bst']].'</div></div></td>
<td colspan=2><div class="opacity-50"><div class="progress"><div class="progress-bar progress-bar-striped progress-bar-animated bg-success" style="width:'.$brdexp.'%">Exp: '.$exp['brd'].'/'.$expbase[$char['brd']].'</div></div></td></tr>
<tr><td>RNG</td><td>';
if($char['rng'] == 75){echo '<font color=blue><b>';}echo ''.$char['rng'].'</td><td>SAM</td><td>';
if($char['sam'] == 75){echo '<font color=blue><b>';}echo ''.$char['sam'].'</td></tr>
<tr><td colspan=2><div class="opacity-50"><div class="progress"><div class="progress-bar progress-bar-striped progress-bar-animated bg-success" style="width:'.$rngexp.'%">Exp: '.$exp['rng'].'/'.$expbase[$char['rng']].'</div></div></td>
<td colspan=2><div class="opacity-50"><div class="progress"><div class="progress-bar progress-bar-striped progress-bar-animated bg-success" style="width:'.$samexp.'%">Exp: '.$exp['sam'].'/'.$expbase[$char['sam']].'</div></div></td></tr>
<tr><td>NIN</td><td>';
if($char['nin'] == 75){echo '<font color=blue><b>';}echo ''.$char['nin'].'</td><td>DRG</td><td>';
if($char['drg'] == 75){echo '<font color=blue><b>';}echo ''.$char['drg'].'</td></tr>
<tr><td colspan=2><div class="opacity-50"><div class="progress"><div class="progress-bar progress-bar-striped progress-bar-animated bg-success" style="width:'.$ninexp.'%">Exp: '.$exp['nin'].'/'.$expbase[$char['nin']].'</div></div></td>
<td colspan=2><div class="opacity-50"><div class="progress"><div class="progress-bar progress-bar-striped progress-bar-animated bg-success" style="width:'.$drgexp.'%">Exp: '.$exp['drg'].'/'.$expbase[$char['drg']].'</div></div></td></tr>
<tr><td>SMN</td><td>';
if($char['smn'] == 75){echo '<font color=blue><b>';}echo ''.$char['smn'].'</td><td>BLU</td><td>';
if($char['blu'] == 75){echo '<font color=blue><b>';}echo ''.$char['blu'].'</td></tr>
<tr><td colspan=2><div class="opacity-50"><div class="progress"><div class="progress-bar progress-bar-striped progress-bar-animated bg-success" style="width:'.$smnexp.'%">Exp: '.$exp['smn'].'/'.$expbase[$char['smn']].'</div></div></td>
<td colspan=2><div class="opacity-50"><div class="progress"><div class="progress-bar progress-bar-striped progress-bar-animated bg-success" style="width:'.$bluexp.'%">Exp: '.$exp['blu'].'/'.$expbase[$char['blu']].'</div></div></td></tr>
<tr><td>COR</td><td>';
if($char['cor'] == 75){echo '<font color=blue><b>';}echo ''.$char['cor'].'</td><td>PUP</td><td>';
if($char['pup'] == 75){echo '<font color=blue><b>';}echo ''.$char['pup'].'</td></tr>
<tr><td colspan=2><div class="opacity-50"><div class="progress"><div class="progress-bar progress-bar-striped progress-bar-animated bg-success" style="width:'.$corexp.'%">Exp: '.$exp['cor'].'/'.$expbase[$char['cor']].'</div></div></td>
<td colspan=2><div class="opacity-50"><div class="progress"><div class="progress-bar progress-bar-striped progress-bar-animated bg-success" style="width:'.$pupexp.'%">Exp: '.$exp['pup'].'/'.$expbase[$char['pup']].'</div></div></td></tr>
<tr><td>SCH</td><td>';
if($char['sch'] == 75){echo '<font color=blue><b>';}echo ''.$char['sch'].'</td><td>DNC</td><td>';
if($char['dnc'] == 75){echo '<font color=blue><b>';}echo ''.$char['dnc'].'</td></tr>
<tr><td colspan=2><div class="opacity-50"><div class="progress"><div class="progress-bar progress-bar-striped progress-bar-animated bg-success" style="width:'.$schexp.'%">Exp: '.$exp['sch'].'/'.$expbase[$char['sch']].'</div></div></td>
<td colspan=2><div class="opacity-50"><div class="progress"><div class="progress-bar progress-bar-striped progress-bar-animated bg-success" style="width:'.$dncexp.'%">Exp: '.$exp['dnc'].'/'.$expbase[$char['dnc']].'</div></div></td></tr>
<tr><td>GEO</td><td>';
if($char['geo'] == 75){echo '<font color=blue><b>';}echo ''.$char['geo'].'</td><td>RUN</td><td>';
if($char['run'] == 75){echo '<font color=blue><b>';}echo ''.$char['run'].'</td></tr>
<tr><td colspan=2><div class="opacity-50"><div class="progress"><div class="progress-bar progress-bar-striped progress-bar-animated bg-success" style="width:'.$geoexp.'%">Exp: '.$exp['geo'].'/'.$expbase[$char['geo']].'</div></div></td>
<td colspan=2><div class="opacity-50"><div class="progress"><div class="progress-bar progress-bar-striped progress-bar-animated bg-success" style="width:'.$runexp.'%">Exp: '.$exp['run'].'/'.$expbase[$char['run']].'</div></div></td></tr>
<tr><td>MERITS</td><td>';
if($exp['merits'] == 30){echo '<font color=blue><b>';}echo ''.$exp['merits'].'</td><td></td><td></td></tr>
<tr><td colspan=2><div class="opacity-50"><div class="progress"><div class="progress-bar progress-bar-striped progress-bar-animated bg-success" style="width:'.$limexp.'%">Exp: '.$exp['limits'].'/10000</div></div></td>
<td colspan=2></td></tr>
</table>
</td>';
?>