echo "<input type=\"button\" value=\"" . __('No') . "\" onclick=\"self.location='" . get_settings('siteurl') . "/wp-admin/edit.php?p={$p}&amp;c=1#comments';\" />\n";
     echo "</form>\n";
     echo "</div>\n";
     break;
 case 'deletecomment':
     check_admin_referer();
     $comment = (int) $_GET['comment'];
     $p = (int) $_GET['p'];
     if (isset($_GET['noredir'])) {
         $noredir = true;
     } else {
         $noredir = false;
     }
     $postdata = get_post($p) or die(sprintf(__('Oops, no post with this ID. <a href="%s">Go back</a>!'), 'edit.php'));
     $commentdata = get_commentdata($comment, 1, true) or die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'post.php'));
     if (!user_can_delete_post_comments($user_ID, $commentdata['comment_post_ID'])) {
         die(__('You are not allowed to edit comments on this post.'));
     }
     wp_set_comment_status($comment, "delete");
     do_action('delete_comment', $comment);
     if ($_SERVER['HTTP_REFERER'] != "" && false == $noredir) {
         header('Location: ' . $_SERVER['HTTP_REFERER']);
     } else {
         header('Location: ' . get_settings('siteurl') . '/wp-admin/edit.php?p=' . $p . '&c=1#comments');
     }
     break;
 case 'unapprovecomment':
     require_once './admin-header.php';
     check_admin_referer();
     $comment = (int) $_GET['comment'];
     $p = (int) $_GET['p'];
            ?>
#comment-<?php 
            comment_ID();
            ?>
" class="edit"><?php 
            _e('View');
            ?>
</a></td>
    <td><?php 
            if (user_can_edit_post_comments($user_ID, $comment->comment_post_ID)) {
                echo "<a href='post.php?action=editcomment&amp;comment={$comment->comment_ID}' class='edit'>" . __('Edit') . "</a>";
            }
            ?>
</td>
    <td><?php 
            if (user_can_delete_post_comments($user_ID, $comment->comment_post_ID)) {
                echo "<a href=\"post.php?action=deletecomment&amp;p=" . $comment->comment_post_ID . "&amp;comment=" . $comment->comment_ID . "\" onclick=\"return confirm('" . sprintf(__("You are about to delete this comment by \\'%s\\'\\n  \\'Cancel\\' to stop, \\'OK\\' to delete."), $comment->comment_author) . "')\"    class='delete'>" . __('Delete') . "</a>";
            }
            ?>
</td>
  </tr>
		<?php 
        }
        // end foreach
        ?>
</table>
    <p><a href="javascript:;" onclick="checkAll(document.getElementById('deletecomments')); return false; "><?php 
        _e('Invert Checkbox Selection');
        ?>
</a></p>
            <p class="submit"><input type="submit" name="Submit" value="<?php