Changeset 3770 for trunk/wp-admin/edit-comments.php
- Timestamp:
- 05/10/2006 08:35:10 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-comments.php
r3763 r3770 40 40 <div class="wrap"> 41 41 <h2><?php _e('Comments'); ?></h2> 42 <form name="searchform" action="" method="get" >42 <form name="searchform" action="" method="get" id="editcomments"> 43 43 <fieldset> 44 44 <legend><?php _e('Show Comments That Contain...') ?></legend> … … 153 153 echo '<form name="deletecomments" id="deletecomments" action="" method="post"> '; 154 154 wp_nonce_field('bulk-comments'); 155 echo '<table width="100%" cellpadding="3" cellspacing="3"> 155 echo '<table class="widefat"> 156 <thead> 156 157 <tr> 157 <th scope="col"> *</th>158 <th scope="col" >' . __('Name') . '</th>159 <th scope="col" >' . __('E-mail') . '</th>160 <th scope="col" >' . __('IP') . '</th>161 <th scope="col" >' . __('Comment Excerpt') . '</th>158 <th scope="col"><input type="checkbox" onclick="checkAll(document.getElementById(\'deletecomments\'));" /></th> 159 <th scope="col" style="text-align: left">' . __('Name') . '</th> 160 <th scope="col" style="text-align: left">' . __('E-mail') . '</th> 161 <th scope="col" style="text-align: left">' . __('IP') . '</th> 162 <th scope="col" style="text-align: left">' . __('Comment Excerpt') . '</th> 162 163 <th scope="col" colspan="3">' . __('Actions') . '</th> 163 </tr>'; 164 </tr> 165 </thead>'; 164 166 foreach ($comments as $comment) { 165 167 $authordata = get_userdata($wpdb->get_var("SELECT post_author FROM $wpdb->posts WHERE ID = $comment->comment_post_ID")); … … 184 186 echo "<a href='comment.php?action=editcomment&comment=$comment->comment_ID' class='edit'>" . __('Edit') . "</a>"; } ?></td> 185 187 <td><?php if ( current_user_can('edit_post', $comment->comment_post_ID) ) { 186 echo "<a href=\"comment.php?action=deletecomment&p=".$comment->comment_post_ID."&comment=".$comment->comment_ID."\" onclick=\"return deleteSomething( 'comment', $comment->comment_ID, '" . sprintf(__("You are about to delete this comment by "%s".\\n"Cancel" to stop, "OK" to delete."), js_escape( $comment->comment_author )) . "' );\" class=' edit'>" . __('Delete') . "</a> ";188 echo "<a href=\"comment.php?action=deletecomment&p=".$comment->comment_post_ID."&comment=".$comment->comment_ID."\" onclick=\"return deleteSomething( 'comment', $comment->comment_ID, '" . sprintf(__("You are about to delete this comment by "%s".\\n"Cancel" to stop, "OK" to delete."), js_escape( $comment->comment_author )) . "' );\" class='delete'>" . __('Delete') . "</a> "; 187 189 } ?></td> 188 190 </tr> … … 190 192 } // end foreach 191 193 ?></table> 192 <p><a href="javascript:;" onclick="checkAll(document.getElementById('deletecomments')); return false; "><?php _e('Invert Checkbox Selection') ?></a></p> 193 <p class="submit"><input type="submit" name="delete_button" value="<?php _e('Delete Checked Comments »') ?>" onclick="var numchecked = getNumChecked(document.getElementById('deletecomments')); if(numchecked < 1) { alert('<?php _e("Please select some comments to delete"); ?>'); return false } return confirm('<?php printf(__("You are about to delete %s comments permanently \\n \'Cancel\' to stop, \'OK\' to delete."), "' + numchecked + '"); ?>')" /> 194 <p class="submit"><input type="submit" name="delete_button" value="<?php _e('Delete Checked Comments »') ?>" onclick="var numchecked = getNumChecked(document.getElementById('deletecomments')); if(numchecked < 1) { alert('<?php _e("Please select some comments to delete"); ?>'); return false } return confirm('<?php printf(__("You are about to delete %s comments permanently \\n \'Cancel\' to stop, \'OK\' to delete."), "' + numchecked + '"); ?>')" /> 194 195 <input type="submit" name="spam_button" value="<?php _e('Mark Checked Comments as Spam »') ?>" onclick="return confirm('<?php _e("You are about to mark these comments as spam \\n \'Cancel\' to stop, \'OK\' to mark as spam.") ?>')" /></p> 195 196 </form>
Note: See TracChangeset
for help on using the changeset viewer.