<select name="langID" class="loginSelect"> <?php echo showLang(); ?> </select> </td></tr> <tr><td><?php echo C_LANG119; ?> </td><td> <select name="genderID" class="loginSelect"> <?php echo getUserGenders('0'); ?> </select> </td></tr> <tr><td> </td><td><input type="image" height="24" width="140" src="templates/default/images/login.gif" name="newLogin" value="<?php echo C_LANG122; ?> "></td></tr> <tr><td colspan="2"> </td></tr> </table> </form> <br> <form method="post" action="index.php" name="doReg">
<?php } ?> </td></tr> <tr><td><?php echo C_LANG119; ?> :</td><td> <?php if (isset($_REQUEST['edit'])) { ?> <select name="profileGender"> <?php echo getUserGenders($gender); ?> </select> <?php } else { ?> <?php echo getProfileGenders($gender); ?> <?php } ?> </td></tr> <tr><td><?php echo C_LANG146;
function getAdminProfiles($findUser) { $tmp = mysql_query("\n\t\tSELECT * \n\t\tFROM prochatrooms_profiles\n\t\tWHERE username = '******'\n\t\t") or die(mysql_error()); $html = ''; $html .= '<tr><td colspan="2"><b>:: Search All Profiles</b></td></tr>'; $html .= '<tr><td colspan="2"><b> </b></td></tr>'; $html .= '<tr><td width="100">Username:</td><td><input type="text" name="findUser" value=""> <input type="submit" name="submit" value="Find!"> (enter full username)</td></tr>'; $html .= '<tr><td colspan="2"><b> </b></td></tr>'; $html .= '</table>'; $html .= '<br>'; $html .= '<table>'; $html .= '<tr class="header"><td colspan="2">:: User Details</td></tr>'; if (!mysql_num_rows($tmp)) { $html .= '<tr><td colspan="2">no results found, search for a username above ...</td></tr>'; } while ($i = mysql_fetch_array($tmp)) { $html .= '<input type="hidden" name="updateUser" value="' . $i['id'] . '">'; $html .= '<tr><td colspan="2"> </td></tr>'; $html .= '<tr><td>Username</td><td>' . urldecode($i['username']) . '</td></tr>'; $html .= '<tr><td>Real Name</td><td><input type="text" name="real_name" value="' . $i['real_name'] . '"></td></tr>'; $html .= '<tr><td>Age</td><td><select name="age">' . getUserAge($i['age']) . '</select></td></tr>'; $html .= '<tr><td>Gender</td><td><select name="gender">' . getUserGenders($i['gender']) . '</select></td></tr>'; $html .= '<tr><td>Photo</td><td><a href="../profiles/view.php?id=' . $i['id'] . '" target="_blank"><img src="../profiles/view.php?id=' . $i['id'] . '" height="100" width="120" border="0"></a></td></tr>'; $html .= '<tr><td> </td><td><input type="checkbox" name="del" value="' . $i['id'] . '"> Delete Image?</td></tr>'; $html .= '<tr><td>Location</td><td><input type="text" name="location" value="' . urldecode($i['location']) . '"></td></tr>'; $html .= '<tr><td>Hobbies</td><td><input type="text" name="hobbies" value="' . urldecode($i['hobbies']) . '"></td></tr>'; $html .= '<tr><td>About Me</td><td><textarea name="aboutme">' . urldecode($i['aboutme']) . '</textarea></td></tr>'; } if (mysql_num_rows($tmp)) { $html .= '<tr><td> </td><td><input type="submit" name="update" value="Update User"><br><br></td></tr>'; } return $html; }