<td class="rankingHeader" align="center" nowrap="nowrap"><?php echo $lang['class'];?> </td> <td class="rankingHeader" align="center" nowrap="nowrap"><?php echo $lang['level_short'];?> </td> <td class="rankingHeader" align="center" nowrap="nowrap"><?php echo $lang['location'];?> </td> </tr> <tr> <td class="serverStatus1"><b style="color: rgb(35, 67, 3);"><center><?php echo $name; ?></center></b></a></td> <td class="serverStatus1" align="center"><small style="color: rgb(102, 13, 2);"><img onmouseover="ddrivetip('<?php echo $MANG->characterInfoByID['character_race'][$preoldrace]; ?>','#ffffff')" onmouseout="hideddrivetip()" src="<?php echo $offtmp; ?>/images/icons/race/<?php echo $preoldrace;?>-<?php echo $oldgender;?>.gif" height="18" width="18" alt=""/></small></td> <td class="serverStatus1" align="center"><small style="color: (35, 67, 3);"><img onmouseover="ddrivetip('<?php echo $MANG->characterInfoByID['character_class'][$oldclass]; ?>','#ffffff')" onmouseout="hideddrivetip()" src="<?php echo $offtmp; ?>/images/icons/class/<?php echo $oldclass ?>.gif" height="18" width="18" alt=""/></small></td> <td class="serverStatus1" align="center"><b style="color: rgb(102, 13, 2);"><?php echo $level; ?></b></td> <td class="serverStatus1" align="center"><b style="color: rgb(35, 67, 3);"><?php echo $pos; ?></b></td> </tr> </tbody> </table> <?php write_metalborder_footer(); ?> <br /> <form action="index.php?n=account&sub=chartools" method="post"> <table width="540" border="0" cellpadding="2px" cellspacing="5px"> <tr> <td align="center" colspan="2"><font color="red">Warning!</font> Make sure you select a race that goes with your current class. Failure to do so will result in an error. You will be returned to this screen. </td> </tr> <tr> <td colspan="2" align="center"><?php if ($allow_faction_change == false) echo "<font color='red'>Faction Change Disabled. Please select a race current with your faction.</font>"; else echo "<font color='blue'>Faction Change is Enabled</font>"; ?> </td> </tr> <tr> <td align="right"><b style="color: rgb(102, 13, 2);">New Race:</b></td>
?> </td> <td class="rankingHeader" align="center" nowrap="nowrap"><?php echo $lang['choose']; ?> </td> </tr> <?php foreach ($vote_sites as $value) { $key = $value['id']; $disabled = ''; $Voted = $Voting[$key]['voted']; echo "\r\n\t\t\t\t<form action=\"?p=vote\" method=\"post\" target=\"_blank\">\r\n\t\t\t\t<input type=\"hidden\" name=\"site\" value=\"" . $key . "\" />\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<td class=\"serverStatus1\" align=\"center\" width=\"30%\">\r\n\t\t\t\t\t\t<img src=\"" . $value['image_url'] . "\" border=\"0\" alt=\"" . $value['hostname'] . "\" />\r\n\t\t\t\t\t</td>\r\n\t\t\t\t\t<td class=\"serverStatus1\" align=\"center\">"; if ($Voted == TRUE) { echo "<center><b style=\"color: rgb(102, 13, 2);\">" . $lang["yes"] . "</b></center>"; $disabled = " disabled=\"disabled\""; } else { echo "<center><b style=\"color: rgb(35, 67, 3);\">" . $lang["no"] . "</b></center>"; } echo "\t</td>\r\n\t\t\t\t\t<td class=\"serverStatus1\" align=\"center\">" . $Voting[$key]['reset'] . "</td>\r\n\t\t\t\t\t<td class=\"serverStatus1\" align=\"center\">\r\n\t\t\t\t\t\t<center>" . $value['points'] . "</center>\r\n\t\t\t\t\t</td>\r\n\t\t\t\t\t<td class=\"serverStatus1\" align=\"center\">\r\n\t\t\t\t\t\t<center><input type=\"submit\" name=\"submit\" target=\"_blank\" value=\"" . $lang['vote'] . "\"" . $disabled . " /></center>\r\n\t\t\t\t\t</td>\r\n\t\t\t\t</tr>\r\n\t\t\t\t</form>"; } ?> </tbody> </table> <?php write_metalborder_footer(); } ?> </center> <?php builddiv_end();
function show_rewards() { global $lang, $tab_rewards; if (count($tab_rewards) == 0) { echo "<br /> <font color='red'>There are no vote rewards in the database, click <a href='index.php?n=admin&sub=vote'>Here</a> to add some</font>"; } else { echo write_metalborder_header(); echo "<script type=\"text/javascript\" src=\"js/power.js\"></script>\r\n\t<table border=\"0\" cellspacing=\"0\" width=\"550\" cellpadding=\"3\" align=\"center\">\r\n\t<tr>\r\n\t\t<td class=\"rankingHeader\" align=\"center\" colspan=\"5\" nowrap=\"nowrap\">", $lang["available_awards"], "</td>\r\n\t</tr>\r\n\t<tr>\r\n\t\t<td class=\"rankingHeader\" align=\"left\" colspan=\"1\" nowrap=\"nowrap\"><center>Award<center></td>\r\n\t\t<td class=\"rankingHeader\" align=\"center\" colspan=\"1\" nowrap=\"nowrap\">Cost</td>\r\n\t\t<td class=\"rankingHeader\" align=\"center\" colspan=\"1\" nowrap=\"nowrap\">Choose</td>\r\n\t</tr>"; foreach ($tab_rewards as $vrw) { $vls = array($vrw['id'] => array($vrw['item_id'], $vrw['quanity'], $vrw['cost'], $vrw['quality'], $vrw['reward_text'])); foreach ($vls as $keyrew => $value) { $rwitemid = $value['0']; $rwquanity = $value['1']; $rwcost = $value['2']; $rwquality = $value['3']; $rwtext = $value['4']; if ($rwcost > $_SESSION["points"]) { $disabled = " disabled=\"disabled\""; } else { $disabled = ""; } echo "<form action=\"index.php?n=community&sub=vote\" method=\"post\"><input type=\"hidden\" name=\"reward\" value=\"", $keyrew, "\" />\r\n\t\t<tr><td class=\"serverStatus2\" align=\"left\">"; if ($rwitemid && $rwquality >= 0) { echo $rwquanity, " x <a class=\"q", $rwquality, "\" href=\"http://wowhead.com/?item=", $rwitemid, "\" target=\"_blank\">", $rwtext, "</a>"; } else { echo $rwtext; } echo "</td>\r\n\t\t<td class=\"serverStatus2\" align=\"center\"><center>", $rwcost, " ", $lang["points2"], "</center></td>\r\n\t\t<td class=\"serverStatus2\" align=\"center\"><center><input type=\"submit\" name=\"submit\" value=\"", $lang["choose"], "\"", $disabled, " /></center></td></tr></form>"; } } echo "</table>"; echo write_metalborder_footer(); } }