die('Error!<br /><br />No character was selected. Please try again'); } echo "<center>Step 2/3</center>"; $name = $_POST['char_f_name']; $pre = $CHDB->select("SELECT `guid`, `race`, `class`, `gender`, `level`,`zone` FROM characters WHERE name LIKE '$name'"); foreach($pre as $row) { $guid1 = $row['guid']; $preoldrace = $row['race']; $oldclass = $row['class']; $oldgender = $row['gender']; $level = $row['level']; $pos = $MANG->get_zone_name($row['zone']); } ?> <br /> <?php write_metalborder_header(); ?> <table cellpadding='3' cellspacing='0' width='100%'> <tbody> <tr> <td class="rankingHeader" align="center" colspan='5' nowrap="nowrap">Current Selected Character</td> </tr> <tr> <td class="rankingHeader" align="center" nowrap="nowrap"><?php echo $lang['name'];?> </td> <td class="rankingHeader" align="center" nowrap="nowrap"><?php echo $lang['race'];?> </td> <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()"
</span><br><br> </li> </ul> </td> </tr> </table> <?php write_metalborder_footer(); ?> <br /> <br /> <center> <?php // Start Loading of vote sites if ($vote_sites != FALSE) { write_metalborder_header(); ?> <table cellpadding='3' cellspacing='0' width='100%'> <tbody> <tr> <td class="rankingHeader" align="center" colspan='6' nowrap="nowrap">Choose a Votesite</td> </tr> <tr> <td class="rankingHeader" align="center" nowrap="nowrap"><?php echo $lang['voting_sites']; ?> </td> <td class="rankingHeader" align="center" nowrap="nowrap"><?php echo $lang['voted']; ?> </td>
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(); } }