Changeset 3617 for trunk/wp-admin/link-manager.php
- Timestamp:
- 03/06/2006 02:52:18 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/link-manager.php
r3597 r3617 88 88 89 89 <div class="wrap"> 90 90 91 <h2><?php _e('Bookmark Management'); ?></h2> 91 <form name="cats" method="post" action=""> 92 <table width="75%" cellpadding="3" cellspacing="3"> 93 <tr> 94 <td> 95 <?php _e('<strong>Show</strong> bookmarks in category:'); ?><br /> 96 </td> 97 <td> 98 <?php _e('<strong>Order</strong> by:');?> 99 </td> 100 <td> </td> 101 </tr> 102 <tr> 103 <td> 104 <?php $categories = get_categories("hide_empty=1&type=link"); ?> 105 <select name="cat_id"> 106 <option value="all" <?php echo ($cat_id == 'all') ? " selected='selected'" : ''; ?>><?php _e('All') ?></option> 107 <?php foreach ($categories as $cat): ?> 108 <option value="<?php echo $cat->cat_ID; ?>"<?php echo ($cat->cat_ID == $cat_id) ? " selected='selected'" : ''; ?>><?php echo wp_specialchars($cat->cat_name); ?> 109 </option> 110 <?php endforeach; ?> 111 </select> 112 </td> 113 <td> 114 <select name="order_by"> 115 <option value="order_id" <?php if ($order_by == 'order_id') echo " selected='selected'";?>><?php _e('Bookmark ID') ?></option> 116 <option value="order_name" <?php if ($order_by == 'order_name') echo " selected='selected'";?>><?php _e('Name') ?></option> 117 <option value="order_url" <?php if ($order_by == 'order_url') echo " selected='selected'";?>><?php _e('URI') ?></option> 118 <option value="order_desc" <?php if ($order_by == 'order_desc') echo " selected='selected'";?>><?php _e('Description') ?></option> 119 </select> 120 </td> 121 <td> 122 <input type="submit" name="action" value="<?php _e('Show') ?>" /> 123 </td> 124 </tr> 125 </table> 92 <p><?php _e('Here you add links to sites that you visit often and share them on your blog. When you have a list of links in your sidebar to other blogs, it’s called a “blogroll.”'); ?></p> 93 <form id="cats" method="get" action=""> 94 <p>Currently showing 95 <?php $categories = get_categories("hide_empty=1&type=link"); ?> 96 <select name="cat_id"> 97 <option value="all" <?php echo ($cat_id == 'all') ? " selected='selected'" : ''; ?>><?php _e('All') ?></option> 98 <?php foreach ($categories as $cat): ?> 99 <option value="<?php echo $cat->cat_ID; ?>"<?php echo ($cat->cat_ID == $cat_id) ? " selected='selected'" : ''; ?>><?php echo wp_specialchars($cat->cat_name); ?> 100 </option> 101 <?php endforeach; ?> 102 </select> 103 bookmarks ordered by 104 <select name="order_by"> 105 <option value="order_id" <?php if ($order_by == 'order_id') echo " selected='selected'";?>><?php _e('Bookmark ID') ?></option> 106 <option value="order_name" <?php if ($order_by == 'order_name') echo " selected='selected'";?>><?php _e('Name') ?></option> 107 <option value="order_url" <?php if ($order_by == 'order_url') echo " selected='selected'";?>><?php _e('URI') ?></option> 108 </select> 109 <input type="submit" name="action" value="<?php _e('Update »') ?>" /> 126 110 </form> 127 111 128 <form name="links"id="links" method="post" action="link.php">112 <form id="links" method="post" action="link.php"> 129 113 <input type="hidden" name="link_id" value="" /> 130 114 <input type="hidden" name="action" value="" /> … … 139 123 <th><?php _e('Visible') ?></th> 140 124 <th colspan="2"><?php _e('Action') ?></th> 141 <th> </th>125 <th><input type="checkbox" onclick="checkAll(document.getElementById('links'));" /></th> 142 126 </tr> 143 127 <?php … … 187 171 echo '<td><a href="link.php?link_id='.$link->link_id.'&action=edit" class="edit">'.__('Edit').'</a></td>'; 188 172 echo '<td><a href="link.php?link_id='.$link->link_id.'&action=delete"'." class='delete' onclick=\"return deleteSomething( 'link', $link->link_id , '".sprintf(__("You are about to delete the "%s" bookmark 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>'; 189 echo '<td ><input type="checkbox" name="linkcheck[]" value="'.$link->link_id.'" /></td>';173 echo '<td align="center"><input type="checkbox" name="linkcheck[]" value="'.$link->link_id.'" /></td>'; 190 174 echo "\n </tr>\n"; 191 175 } … … 195 179 <div id="ajax-response"></div> 196 180 197 <table width="100%" cellpadding="3" cellspacing="3"> 198 <tr> 199 <td> 200 <p class="submit"><input type="submit" class="button" name="deletebookmarks" id="deletebookmarks" value="<?php _e('Delete Checked Bookmarks') ?>" onclick="return confirm('<?php _e("You are about to delete these bookmarks permanently \\n \'Cancel\' to stop, \'OK\' to delete.") ?>')" /></p> 201 </td> 202 <td align="right"> 203 <a href="#" onclick="checkAll(document.getElementById('links')); return false; "><?php _e('Toggle Checkboxes') ?></a> 204 </td> 205 </tr> 206 </table> 181 <p class="submit"><input type="submit" class="button" name="deletebookmarks" id="deletebookmarks" value="<?php _e('Delete Checked Bookmarks') ?>" onclick="return confirm('<?php _e("You are about to delete these bookmarks permanently \\n \'Cancel\' to stop, \'OK\' to delete.") ?>')" /></p> 207 182 </div> 208 183 </form>
Note: See TracChangeset
for help on using the changeset viewer.