Changeset 2832
- Timestamp:
- 08/31/2005 02:39:17 AM (20 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-functions.php
r2830 r2832 443 443 $pad = str_repeat('— ', $level); 444 444 if ( current_user_can('manage_categories') ) 445 $edit = "<a href='categories.php?action=edit&cat_ID=$category->cat_ID' class='edit'>" . __('Edit') . "</a></td><td><a href='categories.php?action=delete&cat_ID=$category->cat_ID' onclick=\"return confirm('". sprintf(__("You are about to delete the category \'%s\'. All of its posts will go to the default category.\\n \'OK\' to delete, \'Cancel\' to stop."), $wpdb->escape($category->cat_name)) . "')\" class='delete'>" . __('Delete') . "</a>";445 $edit = "<a href='categories.php?action=edit&cat_ID=$category->cat_ID' class='edit'>" . __('Edit') . "</a></td><td><a href='categories.php?action=delete&cat_ID=$category->cat_ID' onclick=\"return deleteSomething( 'cat', $category->cat_ID, '" . sprintf(__("You are about to delete the category "%s". All of its posts will go to the default category.\\n"OK" to delete, "Cancel" to stop."), wp_specialchars($category->cat_name, 1)) . "' );\" class='delete'>" . __('Delete') . "</a>"; 446 446 else 447 447 $edit = ''; 448 448 449 449 $class = ('alternate' == $class) ? '' : 'alternate'; 450 echo "<tr class='$class'><th scope='row'>$category->cat_ID</th><td>$pad $category->cat_name</td>450 echo "<tr id='cat-$category->cat_ID' class='$class'><th scope='row'>$category->cat_ID</th><td>$pad $category->cat_name</td> 451 451 <td>$category->category_description</td> 452 452 <td>$count</td> … … 474 474 $class = ('alternate' == $class) ? '' : 'alternate'; 475 475 ?> 476 <tr class='<?php echo $class; ?>'>476 <tr id='page-<?php echo $id; ?>' class='<?php echo $class; ?>'> 477 477 <th scope="row"><?php echo $post->ID; ?></th> 478 478 <td> … … 483 483 <td><a href="<?php the_permalink(); ?>" rel="permalink" class="edit"><?php _e('View'); ?></a></td> 484 484 <td><?php if ( current_user_can('edit_pages') ) { echo "<a href='post.php?action=edit&post=$id' class='edit'>" . __('Edit') . "</a>"; } ?></td> 485 <td><?php if ( current_user_can('edit_pages') ) { echo "<a href='post.php?action=delete&post=$id' class='delete' onclick=\"return confirm('" . sprintf(__("You are about to delete this post \'%s\'\\n \'OK\' to delete, \'Cancel\' to stop."), the_title('','',0)) . "')\">" . __('Delete') . "</a>"; } ?></td>485 <td><?php if ( current_user_can('edit_pages') ) { echo "<a href='post.php?action=delete&post=$id' class='delete' onclick=\"return deleteSomething( 'page', " . $id . ", '" . sprintf(__("You are about to delete the "%s" page.\\n"OK" to delete, "Cancel" to stop."), wp_specialchars(get_the_title('','',0), 1)) . "' );\">" . __('Delete') . "</a>"; } ?></td> 486 486 </tr> 487 487 -
trunk/wp-admin/admin-header.php
r2820 r2832 77 77 </script> 78 78 <script type="text/javascript" src="../wp-includes/js/fat.js"></script> 79 <script type="text/javascript" src="../wp-includes/js/tw-sack.js"></script> 80 <script type="text/javascript" src="list-manipulation.js"></script> 79 81 <?php if ( isset( $editing ) ) : ?> 80 82 <?php if ( 'true' == get_user_option('rich_editing') ) :?> … … 105 107 106 108 <?php if ( current_user_can('manage_categories') ) : ?> 107 <script type="text/javascript" src="../wp-includes/js/tw-sack.js"></script>108 109 <script type="text/javascript"> 109 110 var ajaxCat = new sack(); -
trunk/wp-admin/categories.php
r2762 r2832 121 121 <h2><?php _e('Categories') ?> </h2> 122 122 <?php endif; ?> 123 <table width="100%" cellpadding="3" cellspacing="3">123 <table id="the-list-x" width="100%" cellpadding="3" cellspacing="3"> 124 124 <tr> 125 125 <th scope="col"><?php _e('ID') ?></th> … … 133 133 ?> 134 134 </table> 135 136 <div id="ajax-response"></div> 135 137 136 138 </div> -
trunk/wp-admin/edit-comments.php
r2756 r2832 77 77 $start = ''; 78 78 79 echo "<ol class='commentlist' $start>";79 echo "<ol id='the-list' class='commentlist' $start>"; 80 80 $i = 0; 81 81 foreach ($comments as $comment) { … … 87 87 if ($i % 2) 88 88 $class .= ' alternate'; 89 echo "<li class='$class'>";89 echo "<li id='comment-$comment->comment_ID' class='$class'>"; 90 90 ?> 91 91 <p><strong><?php _e('Name:') ?></strong> <?php comment_author() ?> <?php if ($comment->comment_author_email) { ?>| <strong><?php _e('E-mail:') ?></strong> <?php comment_author_email_link() ?> <?php } if ($comment->comment_author_url && 'http://' != $comment->comment_author_url ) { ?> | <strong><?php _e('URI:') ?></strong> <?php comment_author_url_link() ?> <?php } ?>| <strong><?php _e('IP:') ?></strong> <a href="http://ws.arin.net/cgi-bin/whois.pl?queryinput=<?php comment_author_IP() ?>"><?php comment_author_IP() ?></a></p> … … 98 98 } 99 99 if ( current_user_can('edit_post', $comment->comment_post_ID) ) { 100 echo " | <a href=\"post.php?action=deletecomment&p=".$comment->comment_post_ID."&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) . "')\">" . __('Delete Comment') . "</a> — ";100 echo " | <a href=\"post.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."), wp_specialchars( $comment->comment_author, 1 )) . "' );\">" . __('Delete Comment') . "</a> — "; 101 101 } // end if any comments to show 102 102 // Get post title … … 111 111 <?php } // end foreach ?> 112 112 </ol> 113 114 <div id="ajax-response"></div> 113 115 114 116 <?php -
trunk/wp-admin/edit-pages.php
r2763 r2832 15 15 if ($posts) { 16 16 ?> 17 <table width="100%" cellpadding="3" cellspacing="3">17 <table id="the-list-x" width="100%" cellpadding="3" cellspacing="3"> 18 18 <tr> 19 19 <th scope="col"><?php _e('ID') ?></th> … … 27 27 <?php page_rows(); ?> 28 28 </table> 29 30 <div id="ajax-response"></div> 31 29 32 <?php 30 33 } else { -
trunk/wp-admin/edit.php
r2720 r2832 129 129 ?> 130 130 131 <table width="100%" cellpadding="3" cellspacing="3">131 <table id="the-list-x" width="100%" cellpadding="3" cellspacing="3"> 132 132 <tr> 133 133 … … 143 143 $class = ('alternate' == $class) ? '' : 'alternate'; 144 144 ?> 145 <tr class='<?php echo $class; ?>'>145 <tr id='post-<?php echo $id; ?>' class='<?php echo $class; ?>'> 146 146 147 147 <?php … … 203 203 case 'control_delete': 204 204 ?> 205 <td><?php if ( current_user_can('edit_post',$post->ID) ) { echo "<a href='post.php?action=delete&post=$id' class='delete' onclick=\"return confirm('" . sprintf(__("You are about to delete this post \'%s\'\\n \'OK\' to delete, \'Cancel\' to stop."), wp_specialchars(get_the_title('', ''), 1) ) . "')\">" . __('Delete') . "</a>"; } ?></td>205 <td><?php if ( current_user_can('edit_post',$post->ID) ) { echo "<a href='post.php?action=delete&post=$id' class='delete' onclick=\"return deleteSomething( 'post', " . $id . ", '" . sprintf(__("You are about to delete this post "%s".\\n"OK" to delete, "Cancel" to stop."), wp_specialchars(get_the_title('', ''), 1) ) . "' );\">" . __('Delete') . "</a>"; } ?></td> 206 206 <?php 207 207 break; … … 226 226 } // end if ($posts) 227 227 ?> 228 </table> 228 </table> 229 230 <div id="ajax-response"></div> 229 231 230 232 <div class="navigation"> -
trunk/wp-admin/link-categories.php
r2714 r2832 277 277 <div class="wrap"> 278 278 <h2><?php _e('Link Categories:') ?></h2> 279 <table width="100%" cellpadding="5" cellspacing="0" border="0">279 <table id="the-list" width="100%" cellpadding="5" cellspacing="0" border="0"> 280 280 <tr> 281 281 <th rowspan="2" valign="bottom"><?php _e('Name') ?></th> … … 335 335 } 336 336 ?> 337 <tr valign="middle" align="center" <?php echo $style ?> style="border-bottom: 1px dotted #9C9A9C;">337 <tr id="link-category-<?php echo $row->cat_id; ?>" valign="middle" align="center" <?php echo $style ?> style="border-bottom: 1px dotted #9C9A9C;"> 338 338 <td><?php echo wp_specialchars($row->cat_name)?></td> 339 339 <td ><?php echo $row->cat_id?></td> … … 350 350 <td><?php echo $row->list_limit ?></td> 351 351 <td><a href="link-categories.php?cat_id=<?php echo $row->cat_id?>&action=Edit" class="edit"><?php _e('Edit') ?></a></td> 352 <td><a href="link-categories.php?cat_id=<?php echo $row->cat_id?>&action=Delete" onclick="return confirm('<?php _e("You are about to delete this category.\\n \'Cancel\' to stop, \'OK\' to delete.") ?>');" class="delete"><?php _e('Delete') ?></a></td>352 <td><a href="link-categories.php?cat_id=<?php echo $row->cat_id?>&action=Delete" onclick="return deleteSomething( 'link category', <?php echo $row->cat_id . ", '" . sprintf(__("You are about to delete the "%s" link category.\\n"Cancel" to stop, "OK" to delete."), wp_specialchars($row->cat_name,1)); ?>' );" class="delete"><?php _e('Delete') ?></a></td> 353 353 </tr> 354 354 <?php … … 358 358 </table> 359 359 <p><?php _e('These are the defaults for when you call a link category with no additional arguments. All of these settings may be overwritten.') ?></p> 360 361 <div id="ajax-response"></div> 360 362 361 363 </div> -
trunk/wp-admin/link-manager.php
r2714 r2832 630 630 <input type="hidden" name="order_by" value="<?php echo wp_specialchars($order_by, 1); ?>" /> 631 631 <input type="hidden" name="cat_id" value="<?php echo (int) $cat_id ?>" /> 632 <table width="100%" cellpadding="3" cellspacing="3">632 <table id="the-list-x" width="100%" cellpadding="3" cellspacing="3"> 633 633 <tr> 634 634 <th width="15%"><?php _e('Name') ?></th> … … 672 672 $visible = ($link->link_visible == 'Y') ? __('Yes') : __('No'); 673 673 ++$i; 674 $style = ($i % 2) ? ' class="alternate"' : '';675 ?> 676 <tr valign="middle" <?php echo $style; ?>>674 $style = ($i % 2) ? '' : ' class="alternate"'; 675 ?> 676 <tr id="link-<?php echo $link->link_id; ?>" valign="middle" <?php echo $style; ?>> 677 677 <td><strong><?php echo $link->link_name; ?></strong><br /> 678 678 <?php … … 689 689 if ($show_buttons) { 690 690 echo '<td><a href="link-manager.php?link_id=' . $link->link_id . '&action=linkedit" class="edit">' . __('Edit') . '</a></td>'; 691 echo '<td><a href="link-manager.php?link_id=' . $link->link_id . '&action=Delete"' . " onclick=\"return confirm('" . __("You are about to delete this link.\\n \'Cancel\' to stop, \'OK\' to delete.") . "');" . '" class="delete">' . __('Delete') . '</a></td>';691 echo '<td><a href="link-manager.php?link_id=' . $link->link_id . '&action=Delete"' . " onclick=\"return deleteSomething( 'link', $link->link_id , '" . sprintf(__("You are about to delete the "%s" link to %s.\\n"Cancel" to stop, "OK" to delete."), wp_specialchars($link->link_name,1), wp_specialchars($link->link_url)) . '\' );" class="delete">' . __('Delete') . '</a></td>'; 692 692 echo '<td><input type="checkbox" name="linkcheck[]" value="' . $link->link_id . '" /></td>'; 693 693 } else { 694 694 echo "<td> </td><td> </td><td> </td>\n"; 695 695 } 696 echo "\n \t</tr>";696 echo "\n </tr>\n"; 697 697 } 698 698 } 699 699 ?> 700 700 </table> 701 702 <div id="ajax-response"></div> 701 703 702 704 </div> -
trunk/wp-admin/moderation.php
r2782 r2832 131 131 <form name="approval" action="moderation.php" method="post"> 132 132 <input type="hidden" name="action" value="update" /> 133 <ol id=" comments" class="commentlist">133 <ol id="the-list" class="commentlist"> 134 134 <?php 135 135 $i = 0; … … 148 148 <a href="<?php echo get_permalink($comment->comment_post_ID); ?>"><?php _e('View Post') ?></a> | 149 149 <?php 150 echo " <a href=\"post.php?action=deletecomment&p=".$comment->comment_post_ID."&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) . "')\">" . __('Delete just this comment') . "</a> | "; ?> <?php _e('Bulk action:') ?>150 echo " <a href=\"post.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."), wp_specialchars($comment->comment_author, 1)) . "' );\">" . __('Delete just this comment') . "</a> | "; ?> <?php _e('Bulk action:') ?> 151 151 <input type="radio" name="comment[<?php echo $comment->comment_ID; ?>]" id="comment[<?php echo $comment->comment_ID; ?>]-approve" value="approve" /> <label for="comment[<?php echo $comment->comment_ID; ?>]-approve"><?php _e('Approve') ?></label> 152 152 <input type="radio" name="comment[<?php echo $comment->comment_ID; ?>]" id="comment[<?php echo $comment->comment_ID; ?>]-spam" value="spam" /> <label for="comment[<?php echo $comment->comment_ID; ?>]-spam"><?php _e('Spam') ?></label> … … 160 160 ?> 161 161 </ol> 162 163 <div id="ajax-response"></div> 162 164 163 165 <p class="submit"><input type="submit" name="submit" value="<?php _e('Moderate Comments »') ?>" /></p>
Note: See TracChangeset
for help on using the changeset viewer.