function panel_gold_user_info($user_id) { //Users table . gives current totals global $locale, $golddata; $image = "<img src='" . THEME . "images/bullet.gif' alt='*' /> "; echo "<hr /><div align='center'><a href='" . INFUSIONS . "user_gold/'><strong>" . $locale['urg_panels_100'] . "</strong></a></div><br />"; echo "<img src='" . GOLD_IMAGE . "cash.png' title='" . $locale['urg_panels_118'] . "' alt='" . $locale['urg_panels_118'] . "' /> " . formatMoney($golddata['cash']) . "<br />"; echo "<img src='" . GOLD_IMAGE . "bank.png' title='" . $locale['urg_panels_119'] . "' alt='" . $locale['urg_panels_119'] . "' /> " . formatMoney($golddata['bank']) . "<br />"; echo "<img src='" . GOLD_IMAGE . "karma.png' title='" . $locale['urg_panels_120'] . "' alt='" . $locale['urg_panels_120'] . "' /> " . $golddata['karma'] . "<br />"; echo "<img src='" . GOLD_IMAGE . "chips.png' title='" . $locale['urg_panels_121'] . "' alt='" . $locale['urg_panels_121'] . "' /> " . $golddata['chips'] . "<br /><hr />"; echo "<div align='center'>" . $locale['urg_panels_105'] . "<br />" . showribbons($golddata['owner_id'], false) . "</div><br />"; }
} elseif ($profile_method == "display") { include_once INFUSIONS . "user_gold/infusion_db.php"; include_once INFUSIONS . "user_gold/functions.php"; $user_id = isnum($_GET['lookup']) ? $_GET['lookup'] : 0; if ($user_id) { list($name) = dbarraynum(dbquery("SELECT user_name FROM " . DB_USERS . " WHERE user_id=" . $user_id)); list($cash, $bank, $karma, $chips) = dbarraynum(dbquery("SELECT cash, bank, karma, chips FROM " . DB_UG3 . " WHERE owner_id=" . $user_id)); echo "</table>"; echo "<div style='margin:5px'></div>\n"; echo "<table cellpadding='0' cellspacing='1' width='400' class='tbl-border center'>\n<tr>\n"; echo "<td class='tbl2' colspan='2'><strong>" . $locale['uf_user_ug3-information'] . "</strong></td>\n"; echo "</tr>\n<tr>\n"; echo "<td class='tbl1' colspan='2'>"; echo "<table width='100%'>\n<tr>\n"; echo "<td class='tbl1' width='50%'><img src='" . GOLD_IMAGE . "cash.png' title='" . UGLD_GOLDTEXT . "' alt='" . UGLD_GOLDTEXT . "' /> " . formatMoney($cash) . "</td>"; echo "<td class='tbl1' width='50%'><img src='" . GOLD_IMAGE . "bank.png' title='" . UGLD_GOLDTEXT . $locale['uf_user_ug3-information_001'] . "' alt='" . UGLD_GOLDTEXT . $locale['uf_user_ug3-information_001'] . "' /> " . formatMoney($bank) . "</td>"; echo "</tr><tr>"; echo "<td class='tbl1' width='50%'><img src='" . GOLD_IMAGE . "karma.png' title='" . $locale['uf_user_ug3-information_003'] . "' alt='" . $locale['uf_user_ug3-information_003'] . "' /> " . formatMoney($karma) . "</td>"; echo "<td class='tbl1' width='50%'><img src='" . GOLD_IMAGE . "chips.png' title='" . $locale['uf_user_ug3-information_002'] . "' alt='" . $locale['uf_user_ug3-information_002'] . "' /> " . formatMoney($chips) . "</td>"; echo "</tr><tr>"; echo "<td class='tbl1' colspan='2' width='100%'><hr /><div style='text-align: center;'>" . $locale['uf_user_ug3-information_004'] . "<br />" . showribbons($user_id, false) . "</div></td>"; echo "</tr>\n</table>\n"; echo "</td>\n"; echo "</tr>\n"; $user_fields++; } } elseif ($profile_method == "validate_insert") { //Nothing } elseif ($profile_method == "validate_update") { //Nothing }