Changeset 16014 for trunk/wp-admin/network/sites.php
- Timestamp:
- 10/27/2010 04:06:40 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/network/sites.php
r16001 r16014 81 81 } 82 82 83 $ action = isset( $_REQUEST['action'] ) ? $_REQUEST['action'] : 'list';83 $wp_list_table->prepare_items(); 84 84 85 switch ( $action ) { 86 // Edit site 87 case 'editblog': 88 // No longer used. 89 break; 85 require_once( '../admin-header.php' ); 86 ?> 90 87 91 // List sites 92 case 'list': 93 default: 94 $wp_list_table->prepare_items(); 88 <div class="wrap"> 89 <?php screen_icon('ms-admin'); ?> 90 <h2><?php _e('Sites') ?> 91 <?php echo $msg; ?> 92 <a href="<?php echo network_admin_url('site-new.php'); ?>" class="button add-new-h2"><?php echo esc_html_x( 'Add New', 'sites' ); ?></a> 93 <?php if ( isset( $_REQUEST['s'] ) && $_REQUEST['s'] ) { 94 printf( '<span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', esc_html( $s ) ); 95 } ?> 96 </h2> 95 97 96 require_once( '../admin-header.php' ); 97 ?> 98 <form action="" method="get" id="ms-search"> 99 <p class="search-box"> 100 <input type="hidden" name="action" value="blogs" /> 101 <input type="text" name="s" value="<?php echo esc_attr( $s ); ?>" /> 102 <input type="submit" class="button" value="<?php esc_attr_e( 'Search Site by' ) ?>" /> 103 <select name="searchaction"> 104 <option value="name" selected="selected"><?php _e( 'Name' ); ?></option> 105 <option value="id"><?php _e( 'ID' ); ?></option> 106 <option value="ip"><?php _e( 'IP address' ); ?></option> 107 </select> 108 </p> 109 </form> 98 110 99 <div class="wrap"> 100 <?php screen_icon('ms-admin'); ?> 101 <h2><?php _e('Sites') ?> 102 <?php echo $msg; ?> 103 <a href="<?php echo network_admin_url('site-new.php'); ?>" class="button add-new-h2"><?php echo esc_html_x( 'Add New', 'sites' ); ?></a> 104 <?php if ( isset( $_REQUEST['s'] ) && $_REQUEST['s'] ) { 105 printf( '<span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', esc_html( $s ) ); 106 } ?> 107 </h2> 108 109 <form action="" method="get" id="ms-search"> 110 <p class="search-box"> 111 <input type="hidden" name="action" value="blogs" /> 112 <input type="text" name="s" value="<?php echo esc_attr( $s ); ?>" /> 113 <input type="submit" class="button" value="<?php esc_attr_e( 'Search Site by' ) ?>" /> 114 <select name="searchaction"> 115 <option value="name" selected="selected"><?php _e( 'Name' ); ?></option> 116 <option value="id"><?php _e( 'ID' ); ?></option> 117 <option value="ip"><?php _e( 'IP address' ); ?></option> 118 </select> 119 </p> 120 </form> 121 122 <form id="form-site-list" action="edit.php?action=allblogs" method="post"> 123 <?php $wp_list_table->display(); ?> 124 </form> 125 </div> 126 <?php 127 break; 128 } // end switch( $action ) 111 <form id="form-site-list" action="edit.php?action=allblogs" method="post"> 112 <?php $wp_list_table->display(); ?> 113 </form> 114 </div> 115 <?php 129 116 130 117 require_once( '../admin-footer.php' ); ?>
Note: See TracChangeset
for help on using the changeset viewer.