<?php
$file = __FILE__;
include ("inc/inc_common.php");
include ("inc/inc_connect.php");
include ("inc/inc_admincheck.php");
include ("inc/inc_getdate.php");

if ($cAdminLevel < 2)
{
    //kick out non-moderators...
    header("Location: topics.php?groupid=$groupid");
    exit;
}

include ("inc/inc_forumname.php");
$page = "Change $userid's Avatar";
$pagelink = $file."?userid=".$userid;
include("inc/inc_setonline.php");
$title = $userid."&acute;s Profile : Change Avatar";
include ("inc/inc_head.php");
include ("inc/inc_body.php");
print "<center><br><br><br><br><br> <table border=1 cellpadding=0 cellspacing=0 bordercolor=\"$bordercolor\" width=\"60%\" bgcolor=\"$fgcolour\"><tr><td><br><table border=0 width=\"100%\" cellpadding=0 cellspacing=0>
<tr><td width=\"45%\" align=\"right\">";

$result = mysql_query( "SELECT * FROM $userstable WHERE strName = '$userid'" );
$num_rows = mysql_num_rows( $result );
//Dispay records
while ( $a_row = mysql_fetch_object( $result ) )
{
    print "<form method=\"POST\" action=\"setavatar.php\"><img src=\"$a_row->strAvatar\"></td>
    <td valign=\"middle\" align=\"center\"><br><input type=\"text\" onfocus=\"document.onkeypress=function(){};\" size=\"35\" name=\"avatar\" value=\"$a_row->strAvatar\" style=\"background-image: url('images/textbox_background.gif')\"><br><br><input type=\"submit\" value=\"Change\"><input type=\"hidden\" value=\"$userid\" name=\"userid\"></form>";
}


?>

</td></tr></table><br></td></tr></table>
<br><br><br>
<?php
include("inc/inc_footer.php");
?>
