include $DOCUMENT_ROOT."/functions.php"; ?> # DISPLAYCHARTABLE # displays a quick table with a selection of characters and basic values # # must be fed with a MySQL $result that will be treated # # if $displayplayer is set to true, will also display the name of the character's user # if $displaynews is set to true, will also display if the character has any news in his story # it will also assume only the current user's characters are displayed and give access to selecting one of them # if $displaychoice is set to true, will also add a radio button selection (needed for choosing an adversary) # if $podium is set to true, will isolate the first three character of the list $factor = 3; # reduction factor for character sprites echo "
| ";
if ($displayplayer) {
echoA($numcharacters." "); } if ($displaynews) { echo ""; $size = GetImageSize (Inc($image)); $charsizeX = (int)($size[0]/$factor); $charsizeY = (int)($size[1]/$factor); echo " $name "; echoA ($Trace[$race]." ".$Tclass[$class]." ".$level." "); echoA ("HPs "); if ($hp <= -10) { echoA ("".$hp.""); } else { if ($hp <= 0) { echoA ("".$hp.""); } else { echoA ($hp); } } echoA (", XPs ".$xp." "); if ($report <> "") { echo " ";
}
if ($newmessages) {
echo " ";
}
} else {
if ($displaylist) {
echo "";
echoAL ($name);
echo "\n";
} else {
echoA ($name);
}
}
if ($displayplayer) {
echo " | "; echoA ($user); } if ($displaybuilding) { echo " | "; echoA ($buildname); echo " | "; } if ($displaychoice) { echo ""; echo ""; echo " | "; } if ($podium) { echo "";
if (($Fratio <> 0) and ($Fratio == $Fratiomax)) {
echo " ";
}
if (($xpvalue <> 0) and ($xpvalue == $XPvalmax)) {
echo " ";
}
if ($FP > 0) {
if (($FP <= 20) and (($FW / $FP) >= 0.95)) {
echo " ";
}
}
if ($FW >= 5) {
$progress = $XP / $FW;
if ($progress == $progressmax) {
echo " ";
}
}
echo " | ";
}
echo "";
if ($n==4) { echo "
| "; } if ($podium) { if ($numcharacters == 3) { echo " | ||||