</td>
					<td width="14%"><?php 
echo $lang_profile['From'];
?>
</td>
					<?php 
if ($forum_user['is_admmod']) {
    echo '<td width="2%">' . $lang_profile['Delete'] . '</td>';
}
?>
				</tr>
		</thead>
			<tbody>
					<?php 
while ($comment = $forum_db->fetch_assoc($comments)) {
    echo '<tr><td>' . get_userlink($comment['user_id']) . '</td><td>' . get_comment_input_sign($comment['input']) . '</td><td>' . $comment['text'] . '</td><td>' . get_userlink($comment['from_user_id']) . '</td>';
    if ($forum_user['is_admmod']) {
        echo '<td width="2%">' . reputation_get_delete_link($comment['id']) . '</td>';
    }
    echo '</tr>';
}
?>
			</tbody>
	</table>
</div>
			
<?php 
if (isset($_GET['action']) and isset($_GET['id'])) {
    if ($forum_user['is_admmod'] && $_GET['action'] == 'delete') {
        $id = $_GET['id'];
        if (!is_numeric($id)) {
function get_reputation_html_string($user_id)
{
    global $forum_db;
    $reputation_html = '<table>';
    $reputation_comments_array = get_reputation_comments($user_id);
    //print_r($reputation_comments_array);
    while ($comment = $forum_db->fetch_assoc($reputation_comments_array)) {
        $table_row = '<tr><td width="5%">' . date('y/m/d', $comment['date']) . '</td><td width="7%">' . get_comment_input_sign($comment['input']) . '</td>
		<td><i>' . $comment['text'] . '</i></td><td width="15%">' . get_userlink($comment['from_user_id']) . '</td></tr>';
        $reputation_html = $reputation_html . '' . $table_row;
    }
    $reputation_html = $reputation_html . '</table>';
    return $reputation_html;
}