Make WordPress Core


Ignore:
Timestamp:
05/10/2006 08:35:10 PM (19 years ago)
Author:
matt
Message:

Lots of style and admin tweaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-comments.php

    r3763 r3770  
    4040<div class="wrap">
    4141<h2><?php _e('Comments'); ?></h2>
    42 <form name="searchform" action="" method="get">
     42<form name="searchform" action="" method="get" id="editcomments">
    4343  <fieldset>
    4444  <legend><?php _e('Show Comments That Contain...') ?></legend>
     
    153153        echo '<form name="deletecomments" id="deletecomments" action="" method="post"> ';
    154154        wp_nonce_field('bulk-comments');
    155         echo '<table width="100%" cellpadding="3" cellspacing="3">
     155        echo '<table class="widefat">
     156<thead>
    156157  <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>
    162163    <th scope="col" colspan="3">' .  __('Actions') . '</th>
    163   </tr>';
     164  </tr>
     165</thead>';
    164166        foreach ($comments as $comment) {
    165167        $authordata = get_userdata($wpdb->get_var("SELECT post_author FROM $wpdb->posts WHERE ID = $comment->comment_post_ID"));
     
    184186    echo "<a href='comment.php?action=editcomment&amp;comment=$comment->comment_ID' class='edit'>" .  __('Edit') . "</a>"; } ?></td>
    185187    <td><?php if ( current_user_can('edit_post', $comment->comment_post_ID) ) {
    186         echo "<a href=\"comment.php?action=deletecomment&amp;p=".$comment->comment_post_ID."&amp;comment=".$comment->comment_ID."\" onclick=\"return deleteSomething( 'comment', $comment->comment_ID, '" . sprintf(__("You are about to delete this comment by &quot;%s&quot;.\\n&quot;Cancel&quot; to stop, &quot;OK&quot; to delete."), js_escape( $comment->comment_author ))  . "' );\" class='edit'>" . __('Delete') . "</a> ";
     188        echo "<a href=\"comment.php?action=deletecomment&amp;p=".$comment->comment_post_ID."&amp;comment=".$comment->comment_ID."\" onclick=\"return deleteSomething( 'comment', $comment->comment_ID, '" . sprintf(__("You are about to delete this comment by &quot;%s&quot;.\\n&quot;Cancel&quot; to stop, &quot;OK&quot; to delete."), js_escape( $comment->comment_author ))  . "' );\" class='delete'>" . __('Delete') . "</a> ";
    187189        } ?></td>
    188190  </tr>
     
    190192        } // end foreach
    191193    ?></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 &raquo;') ?>" 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 &raquo;') ?>" 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 + '"); ?>')" />
    194195            <input type="submit" name="spam_button" value="<?php _e('Mark Checked Comments as Spam &raquo;') ?>" onclick="return confirm('<?php _e("You are about to mark these comments as spam \\n  \'Cancel\' to stop, \'OK\' to mark as spam.") ?>')" /></p>
    195196  </form>
Note: See TracChangeset for help on using the changeset viewer.