示例#1
0
 public function cache_echo_body($page)
 {
     MainWP_Cache::echoBody($page);
 }
示例#2
0
    public static function render()
    {
        $cachedSearch = MainWP_Cache::getCachedContext('Themes');
        self::renderHeader('Manage');
        ?>
		<div class="mainwp-search-form">
			<div class="postbox mainwp-postbox">
				<h3 class="mainwp_box_title"><i class="fa fa-binoculars"></i> <?php 
        _e('Step 1: Search Themes', 'mainwp');
        ?>
				</h3>

				<div class="inside">
					<div class="mainwp_info-box-blue">
						<?php 
        _e('To only <strong>View or Ignore</strong> themes select <strong>All Themes</strong>', 'mainwp');
        ?>
						<br/>
						<?php 
        _e('To <strong>Activate</strong> or <strong>Delete</strong> a Theme select <strong>Inactive</strong> (A theme needs to be Deactivated in order for it to be Enabled)', 'mainwp');
        ?>
						<br/>
					</div>
					<p>
						<?php 
        _e('Status:', 'mainwp');
        ?>
<br/>
						<select name="mainwp_theme_search_by_status" id="mainwp_theme_search_by_status">
							<option value="active" <?php 
        if ($cachedSearch != null && $cachedSearch['the_status'] == 'active') {
            echo 'selected';
        }
        ?>
><?php 
        _e('Active', 'mainwp');
        ?>
</option>
							<option value="inactive" <?php 
        if ($cachedSearch != null && $cachedSearch['the_status'] == 'inactive') {
            echo 'selected';
        }
        ?>
><?php 
        _e('Inactive', 'mainwp');
        ?>
</option>
							<option value="all" <?php 
        if ($cachedSearch != null && $cachedSearch['the_status'] == 'all') {
            echo 'selected';
        }
        ?>
><?php 
        _e('All Themes', 'mainwp');
        ?>
</option>
						</select>
					</p>
					<p>
						<?php 
        _e('Containing Keyword:', 'mainwp');
        ?>
<br/>
						<input type="text" id="mainwp_theme_search_by_keyword" class="" size="50" value="<?php 
        if ($cachedSearch != null) {
            echo $cachedSearch['keyword'];
        }
        ?>
"/>
					</p>
				</div>
			</div>
			<?php 
        MainWP_UI::select_sites_box(__('Step 2: Select Sites', 'mainwp'), 'checkbox', true, true, 'mainwp_select_sites_box_left');
        ?>
			<div style="clear: both;"></div>
			<input type="button" name="mainwp_show_themes" id="mainwp_show_themes" class="button-primary button button-hero button-right" value="<?php 
        _e('Show Themes', 'mainwp');
        ?>
"/>
			<br /><br />
			<span id="mainwp_themes_loading" class="mainwp-grabbing-info-note"> <i class="fa fa-spinner fa-pulse"></i> <em><?php 
        _e('Grabbing information from Child Sites', 'mainwp');
        ?>
</em></span>
			<span id="mainwp_themes_loading_info" class="mainwp-grabbing-info-note"> - <?php 
        _e('Automatically refreshing to get up to date information.', 'mainwp');
        ?>
</span>
			<br/><br/>
		</div>
		<div class="clear"></div>

		<div id="mainwp_themes_error"></div>
		<div id="mainwp_themes_main" <?php 
        if ($cachedSearch != null) {
            echo 'style="display: block;"';
        }
        ?>
>
			<div id="mainwp_themes_content">
				<?php 
        MainWP_Cache::echoBody('Themes');
        ?>
			</div>
		</div>
		<?php 
        if ($cachedSearch != null) {
            echo '<script>mainwp_themes_all_table_reinit();</script>';
        }
        self::renderFooter('Manage');
    }
示例#3
0
    public static function render()
    {
        $cachedSearch = MainWP_Cache::getCachedContext('Plugins');
        ?>
		<?php 
        self::renderHeader('Manage');
        ?>
		<div class="mainwp-search-form">
			<div class="postbox mainwp-postbox">
				<h3 class="mainwp_box_title"><i class="fa fa-binoculars"></i> <?php 
        _e('Step 1:', 'mainwp');
        ?>
 <?php 
        _e('Search Plugins', 'mainwp');
        ?>
				</h3>

				<div class="inside">
					<div class="mainwp_info-box-blue">
						<?php 
        _e('To only <strong>View or Ignore</strong> plugins select <strong>All Plugins</strong>', 'mainwp');
        ?>
						<br/>
						<?php 
        _e('To <strong>Deactivate</strong> a Plugin select <strong>Active</strong> (A plugin needs to be Active in order to be Deactivated)', 'mainwp');
        ?>
						<br/>
						<?php 
        _e('To <strong>Activate</strong> or <strong>Delete</strong> a Plugin select <strong>Inactive</strong> (A plugin needs to be Deactivated in order for it to be Activated or Deleted)', 'mainwp');
        ?>
						<br/>
					</div>
					<div class="mainwp_info-box-blue">
						<span><a href="http://docs.mainwp.com/why-does-the-mainwp-client-plugin-not-show-up-on-the-plugin-list-for-my-managed-site/" target="_blank"><?php 
        _e('Why does the MainWP Child Plugin NOT show in the list?', 'mainwp');
        ?>
</a></span>
					</div>
					<p>
						<?php 
        _e('Status:', 'mainwp');
        ?>
<br/>
						<select name="mainwp_plugin_search_by_status" id="mainwp_plugin_search_by_status">
							<option value="active" <?php 
        if ($cachedSearch != null && $cachedSearch['the_status'] == 'active') {
            echo 'selected';
        }
        ?>
><?php 
        _e('Active', 'mainwp');
        ?>
</option>
							<option value="inactive" <?php 
        if ($cachedSearch != null && $cachedSearch['the_status'] == 'inactive') {
            echo 'selected';
        }
        ?>
><?php 
        _e('Inactive', 'mainwp');
        ?>
</option>
							<option value="all" <?php 
        if ($cachedSearch != null && $cachedSearch['the_status'] == 'all') {
            echo 'selected';
        }
        ?>
><?php 
        _e('All Plugins', 'mainwp');
        ?>
</option>
						</select>
					</p>
					<p>
						<?php 
        _e('Containing Keyword:', 'mainwp');
        ?>
<br/>
						<input type="text" id="mainwp_plugin_search_by_keyword" class="" size="50" value="<?php 
        if ($cachedSearch != null) {
            echo $cachedSearch['keyword'];
        }
        ?>
"/>
					</p>
				</div>
			</div>
			<?php 
        MainWP_UI::select_sites_box(__('Step 2: Select Sites', 'mainwp'), 'checkbox', true, true, 'mainwp_select_sites_box_left');
        ?>
			<div style="clear: both;"></div>
			<input type="button" name="mainwp_show_plugins" id="mainwp_show_plugins" class="button-primary button button-hero button-right" value="<?php 
        esc_attr_e('Show Plugins', 'mainwp');
        ?>
"/>
			<br /><br />
			<span id="mainwp_plugins_loading" class="mainwp-grabbing-info-note"> <i class="fa fa-spinner fa-pulse"></i> <em><?php 
        _e('Grabbing information from Child Sites', 'mainwp');
        ?>
</em></span>
			<span id="mainwp_plugins_loading_info" class="mainwp-grabbing-info-note"> - <?php 
        _e('Automatically refreshing to get up to date information.', 'mainwp');
        ?>
</span>
			<br><br>
		</div>
		<div class="clear"></div>
		<div id="mainwp_plugins_error"></div>
		<div id="mainwp_plugins_main" <?php 
        if ($cachedSearch != null) {
            echo 'style="display: block;"';
        }
        ?>
>
			<div id="mainwp_plugins_content">
				<?php 
        MainWP_Cache::echoBody('Plugins');
        ?>
			</div>
		</div>
		<?php 
        /*if ( $cachedSearch != null ) {
        			echo '<script>mainwp_plugins_all_table_reinit();</script>';
        		}*/
        self::renderFooter('Manage');
    }
示例#4
0
    public static function render()
    {
        if (!mainwp_current_user_can('dashboard', 'manage_posts')) {
            mainwp_do_not_have_permissions(__('manage posts', 'mainwp'));
            return;
        }
        global $mainwp_current_user;
        $cachedSearch = MainWP_Cache::getCachedContext('Post');
        //Loads the post screen via AJAX, which redirects to the "posting()" to really post the posts to the saved sites
        self::renderHeader('BulkManage');
        ?>
		<div class="mainwp-search-form">
			<div class="postbox mainwp-postbox">
				<h3 class="mainwp_box_title"><i class="fa fa-binoculars"></i> <?php 
        _e('Step 1: Search Posts', 'mainwp');
        ?>
				</h3>

				<div class="inside">
					<ul class="mainwp_checkboxes">
						<li>
							<input type="checkbox" id="mainwp_post_search_type_publish" <?php 
        echo $cachedSearch == null || $cachedSearch != null && in_array('publish', $cachedSearch['status']) ? 'checked="checked"' : '';
        ?>
 class="mainwp-checkbox2"/>
							<label for="mainwp_post_search_type_publish" class="mainwp-label2"><?php 
        _e('Published', 'mainwp');
        ?>
</label>
						</li>
						<li>
							<input type="checkbox" id="mainwp_post_search_type_pending" <?php 
        echo $cachedSearch != null && in_array('pending', $cachedSearch['status']) ? 'checked="checked"' : '';
        ?>
 class="mainwp-checkbox2"/>
							<label for="mainwp_post_search_type_pending" class="mainwp-label2"><?php 
        _e('Pending', 'mainwp');
        ?>
</label>
						</li>
						<li>
							<input type="checkbox" id="mainwp_post_search_type_private" <?php 
        echo $cachedSearch != null && in_array('private', $cachedSearch['status']) ? 'checked="checked"' : '';
        ?>
 class="mainwp-checkbox2"/>
							<label for="mainwp_post_search_type_private" class="mainwp-label2"><?php 
        _e('Private', 'mainwp');
        ?>
</label>
						</li>
						<li>
							<input type="checkbox" id="mainwp_post_search_type_future" <?php 
        echo $cachedSearch != null && in_array('future', $cachedSearch['status']) ? 'checked="checked"' : '';
        ?>
 class="mainwp-checkbox2"/>
							<label for="mainwp_post_search_type_future" class="mainwp-label2"><?php 
        _e('Future', 'mainwp');
        ?>
</label>
						</li>
						<li>
							<input type="checkbox" id="mainwp_post_search_type_draft" <?php 
        echo $cachedSearch != null && in_array('draft', $cachedSearch['status']) ? 'checked="checked"' : '';
        ?>
 class="mainwp-checkbox2"/>
							<label for="mainwp_post_search_type_draft" class="mainwp-label2"><?php 
        _e('Draft', 'mainwp');
        ?>
</label>
						</li>
						<li>
							<input type="checkbox" id="mainwp_post_search_type_trash" <?php 
        echo $cachedSearch != null && in_array('trash', $cachedSearch['status']) ? 'checked="checked"' : '';
        ?>
 class="mainwp-checkbox2"/>
							<label for="mainwp_post_search_type_trash" class="mainwp-label2"><?php 
        _e('Trash', 'mainwp');
        ?>
</label>
						</li>
					</ul>
					<p>
						<?php 
        _e('Containing Keyword:', 'mainwp');
        ?>
<br/>
						<input type="text" id="mainwp_post_search_by_keyword" class="" size="50" value="<?php 
        if ($cachedSearch != null) {
            echo $cachedSearch['keyword'];
        }
        ?>
"/>
					</p>

					<p>
						<?php 
        _e('Date Range:', 'mainwp');
        ?>
<br/>
						<input type="text" id="mainwp_post_search_by_dtsstart" class="mainwp_datepicker" size="12" value="<?php 
        if ($cachedSearch != null) {
            echo $cachedSearch['dtsstart'];
        }
        ?>
"/> <?php 
        _e('to', 'mainwp');
        ?>
						<input type="text" id="mainwp_post_search_by_dtsstop" class="mainwp_datepicker" size="12" value="<?php 
        if ($cachedSearch != null) {
            echo $cachedSearch['dtsstop'];
        }
        ?>
"/>
					</p>
				</div>
			</div>
			<?php 
        MainWP_UI::select_sites_box(__('Step 2: Select Sites', 'mainwp'), 'checkbox', true, true, 'mainwp_select_sites_box_left');
        ?>
			<div style="clear: both;"></div>

			<input type="button" name="mainwp_show_posts" id="mainwp_show_posts" class="button-primary button button-hero button-right" value="<?php 
        _e('Show Posts', 'mainwp');
        ?>
"/>
			<?php 
        if (isset($_REQUEST['siteid']) && isset($_REQUEST['postid'])) {
            echo '<script>jQuery(document).ready(function() { mainwp_show_post(' . $_REQUEST['siteid'] . ', ' . $_REQUEST['postid'] . ', undefined)});</script>';
        } else {
            if (isset($_REQUEST['siteid']) && isset($_REQUEST['userid'])) {
                echo '<script>jQuery(document).ready(function() { mainwp_show_post(' . $_REQUEST['siteid'] . ', undefined, ' . $_REQUEST['userid'] . ')});</script>';
            }
        }
        ?>
			<br/><br/>
			<span id="mainwp_posts_loading" class="mainwp-grabbing-info-note"> <i class="fa fa-spinner fa-pulse"></i> <em><?php 
        _e('Grabbing information from Child Sites', 'mainwp');
        ?>
</em></span>
			<br/><br/>
		</div>
		<div class="clear"></div>
		<div id="mainwp_posts_error"></div>
		<div id="mainwp_posts_main" <?php 
        if ($cachedSearch != null) {
            echo 'style="display: block;"';
        }
        ?>
>
			<div class="alignleft">
				<select name="bulk_action" id="mainwp_bulk_action">
					<option value="none"><?php 
        _e('Bulk Action', 'mainwp');
        ?>
</option>
					<option value="publish"><?php 
        _e('Publish', 'mainwp');
        ?>
</option>
					<option value="unpublish"><?php 
        _e('Unpublish', 'mainwp');
        ?>
</option>
					<option value="trash"><?php 
        _e('Move to Trash', 'mainwp');
        ?>
</option>
					<option value="restore"><?php 
        _e('Restore', 'mainwp');
        ?>
</option>
					<option value="delete"><?php 
        _e('Delete Permanently', 'mainwp');
        ?>
</option>
				</select>
				<input type="button" name="" id="mainwp_bulk_post_action_apply" class="button" value="<?php 
        _e('Apply', 'mainwp');
        ?>
"/>
			</div>
			<div class="alignright" id="mainwp_posts_total_results">
				<?php 
        _e('Total Results:', 'mainwp');
        ?>
				<span id="mainwp_posts_total"><?php 
        echo $cachedSearch != null ? $cachedSearch['count'] : '0';
        ?>
</span>
			</div>
			<div class="clear"></div>
			<div id="mainwp_posts_content">
				<table class="wp-list-table widefat fixed posts tablesorter" id="mainwp_posts_table"
					cellspacing="0">
					<thead>
					<tr>
						<th scope="col" id="cb" class="manage-column column-cb check-column" style=""><input
								type="checkbox"></th>
						<th scope="col" id="title" class="manage-column column-title sortable desc" style="">
							<a href="#" onclick="return false;"><span><?php 
        _e('Title', 'mainwp');
        ?>
</span><span class="sorting-indicator"></span></a>
						</th>
						<th scope="col" id="author" class="manage-column column-author sortable desc" style="">
							<a href="#" onclick="return false;"><span><?php 
        _e('Author', 'mainwp');
        ?>
</span><span class="sorting-indicator"></span></a>
						</th>
						<th scope="col" id="categories" class="manage-column column-categories sortable desc" style="">
							<a href="#" onclick="return false;"><span><?php 
        _e('Categories', 'mainwp');
        ?>
</span><span class="sorting-indicator"></span></a>
						</th>
						<th scope="col" id="tags" class="manage-column column-tags sortable desc" style="">
							<a href="#" onclick="return false;"><span><?php 
        _e('Tags', 'mainwp');
        ?>
</span><span class="sorting-indicator"></span></a>
						</th>
						<th scope="col" id="comments" class="manage-column column-comments num sortable desc" style="">
							<a href="#" onclick="return false;">
                                <span><span class="vers"><img alt="Comments"
			                                src="<?php 
        echo admin_url('images/comment-grey-bubble.png');
        ?>
"></span></span>
								<span class="sorting-indicator"></span>
							</a>
						</th>
						<th scope="col" id="date" class="manage-column column-date sortable asc" style="">
							<a href="#" onclick="return false;"><span><?php 
        _e('Date', 'mainwp');
        ?>
</span><span class="sorting-indicator"></span></a>
						</th>
						<th scope="col" id="status" class="manage-column column-status sortable asc" style="width: 120px;">
							<a href="#" onclick="return false;"><span><?php 
        _e('Status', 'mainwp');
        ?>
</span><span class="sorting-indicator"></span></a>
						</th>
						<th scope="col" id="categories" class="manage-column column-categories sortable desc" style="">
							<a href="#" onclick="return false;"><span><?php 
        _e('Website', 'mainwp');
        ?>
</span><span class="sorting-indicator"></span></a>
						</th>
					</tr>
					</thead>

					<tfoot>
					<tr>
						<th scope="col" id="cb" class="manage-column column-cb check-column" style=""><input
								type="checkbox"></th>
						<th scope="col" id="title" class="manage-column column-title sortable desc" style="">
							<a href="#" onclick="return false;"><span><?php 
        _e('Title', 'mainwp');
        ?>
</span><span class="sorting-indicator"></span></a>
						</th>
						<th scope="col" id="author" class="manage-column column-author sortable desc" style="">
							<a href="#" onclick="return false;"><span><?php 
        _e('Author', 'mainwp');
        ?>
</span><span class="sorting-indicator"></span></a>
						</th>
						<th scope="col" id="categories" class="manage-column column-categories sortable desc" style="">
							<a href="#" onclick="return false;"><span><?php 
        _e('Categories', 'mainwp');
        ?>
</span><span class="sorting-indicator"></span></a>
						</th>
						<th scope="col" id="tags" class="manage-column column-tags sortable desc" style="">
							<a href="#" onclick="return false;"><span><?php 
        _e('Tags', 'mainwp');
        ?>
</span><span class="sorting-indicator"></span></a>
						</th>
						<th scope="col" id="comments" class="manage-column column-comments num sortable desc" style="">
							<a href="#" onclick="return false;">
                                <span><span class="vers"><img alt="Comments"
			                                src="<?php 
        echo admin_url('images/comment-grey-bubble.png');
        ?>
"></span></span>
								<span class="sorting-indicator"></span>
							</a>
						</th>
						<th scope="col" id="date" class="manage-column column-date sortable asc" style="">
							<a href="#" onclick="return false;"><span><?php 
        _e('Date', 'mainwp');
        ?>
</span><span class="sorting-indicator"></span></a>
						</th>
						<th scope="col" id="status" class="manage-column column-status sortable asc" style="width: 120px;">
							<a href="#" onclick="return false;"><span><?php 
        _e('Status', 'mainwp');
        ?>
</span><span class="sorting-indicator"></span></a>
						</th>
						<th scope="col" id="categories" class="manage-column column-categories sortable desc" style="">
							<a href="#" onclick="return false;"><span><?php 
        _e('Website', 'mainwp');
        ?>
</span><span class="sorting-indicator"></span></a>
						</th>
					</tr>
					</tfoot>

					<tbody id="the-posts-list" class="list:posts">
					<?php 
        MainWP_Cache::echoBody('Post');
        ?>
					</tbody>
				</table>
				<div class="pager" id="pager">
					<form>
						<img src="<?php 
        echo plugins_url('images/first.png', dirname(__FILE__));
        ?>
" class="first">
						<img src="<?php 
        echo plugins_url('images/prev.png', dirname(__FILE__));
        ?>
" class="prev">
						<input type="text" class="pagedisplay"/>
						<img src="<?php 
        echo plugins_url('images/next.png', dirname(__FILE__));
        ?>
" class="next">
						<img src="<?php 
        echo plugins_url('images/last.png', dirname(__FILE__));
        ?>
" class="last">
						<span>&nbsp;&nbsp;<?php 
        _e('Show:', 'mainwp');
        ?>
 </span><select class="pagesize">
							<option selected="selected" value="10">10</option>
							<option value="25">25</option>
							<option value="50">50</option>
							<option value="100">100</option>
							<option value="1000000000">All</option>
						</select><span> <?php 
        _e('Posts per page', 'mainwp');
        ?>
</span>
					</form>
				</div>
				<div class="clear"></div>
			</div>
		</div>
		<?php 
        if ($cachedSearch != null) {
            echo '<script>mainwp_posts_table_reinit();</script>';
        }
        self::renderFooter('BulkManage');
    }
示例#5
0
    public static function render()
    {
        if (!mainwp_current_user_can('dashboard', 'manage_users')) {
            mainwp_do_not_have_permissions(__('manage users', 'mainwp'));
            return;
        }
        $cachedSearch = MainWP_Cache::getCachedContext('Users');
        self::renderHeader('');
        ?>
		<div>
            <div class="postbox mainwp-postbox">
            	<h3 class="mainwp_box_title"><i class="fa fa-binoculars"></i> <?php 
        _e('Step 1:', 'mainwp');
        ?>
 <?php 
        _e('Search Users', 'mainwp');
        ?>
</h3>

				<div class="inside">
					<div class="mainwp-search-box">
                        <div class="mainwp_info-box-blue"><?php 
        _e('To search users by username, enter the wanted username here, select sites and click the Search Users button.', 'mainwp');
        ?>
</div>
						<input type="text" aria-required="true" value="<?php 
        if ($cachedSearch != null && isset($cachedSearch['keyword'])) {
            echo $cachedSearch['keyword'];
        }
        ?>
"
							id="mainwp_search_users" name="mainwp_search_users">
						<input type="button" value="<?php 
        _e('Search Users', 'mainwp');
        ?>
" class="button"
							id="mainwp_btn_search_users" name="mainwp_btn_search_users">
                <span id="mainwp_users_searching">
                    <i class="fa fa-spinner fa-pulse"></i>
                </span>
					</div>
					<div class="mainwp_info-box-blue"><?php 
        _e('To search users by role, select wanted roles, select sites and click the Show Users button.', 'mainwp');
        ?>
</div>
					<ul class="mainwp_checkboxes">
						<li>
							<input type="checkbox" id="mainwp_user_role_administrator" <?php 
        echo $cachedSearch == null || $cachedSearch != null && in_array('administrator', $cachedSearch['status']) ? 'checked="checked"' : '';
        ?>
 class="mainwp-checkbox2"/>
							<label for="mainwp_user_role_administrator" class="mainwp-label2"><?php 
        _e('Administrator', 'mainwp');
        ?>
</label>
						</li>
						<li>
							<input type="checkbox" id="mainwp_user_role_editor" <?php 
        echo $cachedSearch != null && in_array('editor', $cachedSearch['status']) ? 'checked="checked"' : '';
        ?>
 class="mainwp-checkbox2"/>
							<label for="mainwp_user_role_editor" class="mainwp-label2"><?php 
        _e('Editor', 'mainwp');
        ?>
</label>
						</li>
						<li>
							<input type="checkbox" id="mainwp_user_role_author" <?php 
        echo $cachedSearch != null && in_array('author', $cachedSearch['status']) ? 'checked="checked"' : '';
        ?>
 class="mainwp-checkbox2"/>
							<label for="mainwp_user_role_author" class="mainwp-label2"><?php 
        _e('Author', 'mainwp');
        ?>
</label>
						</li>
						<li>
							<input type="checkbox" id="mainwp_user_role_contributor" <?php 
        echo $cachedSearch != null && in_array('contributor', $cachedSearch['status']) ? 'checked="checked"' : '';
        ?>
 class="mainwp-checkbox2"/>
							<label for="mainwp_user_role_contributor" class="mainwp-label2"><?php 
        _e('Contributor', 'mainwp');
        ?>
</label>
						</li>
						<li>
							<input type="checkbox" id="mainwp_user_role_subscriber" <?php 
        echo $cachedSearch != null && in_array('subscriber', $cachedSearch['status']) ? 'checked="checked"' : '';
        ?>
 class="mainwp-checkbox2"/>
							<label for="mainwp_user_role_subscriber" class="mainwp-label2"><?php 
        _e('Subscriber', 'mainwp');
        ?>
</label>
						</li>
					</ul>
				</div>
			</div>
            <?php 
        MainWP_UI::select_sites_box(__("Step 2: Select Sites", 'mainwp'), 'checkbox', true, true, 'mainwp_select_sites_box_left');
        ?>
            <div style="clear: both;"></div>
            <input type="button" name="mainwp_show_users" id="mainwp_show_users" class="button-primary button button-hero button-right" value="<?php 
        _e('Show Users', 'mainwp');
        ?>
"/>
            <br/><br/>
            <span id="mainwp_users_loading" class="mainwp-grabbing-info-note"><i class="fa fa-spinner fa-pulse"></i> <em><?php 
        _e('Grabbing information from Child Sites', 'mainwp');
        ?>
</em></span>
            <br/><br/>
        </div>
        <div class="clear"></div>

        <div id="mainwp_users_error"></div>
        <div id="mainwp_users_main" <?php 
        if ($cachedSearch != null) {
            echo 'style="display: block;"';
        }
        ?>
>
        <div class="postbox">
                    <h3 class="box_title mainwp_box_title"><i class="fa fa-key"></i> <?php 
        _e('Update Password for Selected Users', 'mainwp');
        ?>
</h3>

				<div class="inside mainwp_inside" style="padding-bottom: .2em !important;">
					<input name="user_login" type="hidden" id="user_login" value="admin">
					<?php 
        global $wp_version;
        if (version_compare('4.3-alpha', $wp_version, '>=')) {
            ?>
						<div class="form-field">
							<label for="pass1"><?php 
            _e('Twice Required', 'mainwp');
            ?>
</label>

							<div><input name="pass1" type="password" id="pass1" autocomplete="off"/></div>
							<div><input name="pass2" type="password" id="pass2" autocomplete="off"/></div>
						</div>
						<div id="pass-strength-result" style="display: block"><?php 
            _e('Strength Indicator', 'mainwp');
            ?>
</div>
					<?php 
        } else {
            ?>
						<table>
							<tr class="form-field form-required user-pass1-wrap">
								<td>
									<input class="hidden" value=" "/>
									<div class="wp-pwd123">
										<div style="display: inline-block; width: 150px !important;">
                                <span class="password-input-wrapper" style="margin-bottom: 5px !important;">
                                    <input type="password" name="pass1" id="pass1" class="regular-text" autocomplete="off" data-reveal="1" data-pw="" aria-describedby="pass-strength-result"/>
                                </span>
										</div>
										<button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php 
            esc_attr_e('Hide password', 'mainwp');
            ?>
" style="margin-bottom: 5px !important;">
											<span class="dashicons dashicons-hidden"></span>
											<span class="text"><?php 
            _e('Hide', 'mainwp');
            ?>
</span>
										</button>
										<div style="display:none; width: 225px !important;" id="pass-strength-result" aria-live="polite"></div>
									</div>
									<p class="description indicator-hint"><?php 
            _e('Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ &amp; ).', 'mainwp');
            ?>
</p>
								</td>
							</tr>
							<tr class="form-field form-required user-pass2-wrap hide-if-js">
								<td>
									<input name="pass2" type="password" id="pass2" value="" autocomplete="off"/>
								</td>
							</tr>
						</table>
					<?php 
        }
        ?>
					<br>
					<p style="text-align: center;">
						<input type="button" value="<?php 
        _e('Update Password', 'mainwp');
        ?>
" class="button-primary"
							id="mainwp_btn_update_password" name="mainwp_btn_update_password">
						<span id="mainwp_users_password_updating"><i class="fa fa-spinner fa-pulse"></i></span>
					</p>

					<p>

					<div id="mainwp_update_password_error" style="display: none"></div>
					</p>
				</div>
			</div>
			<br>
			<div class="alignleft">
				<select name="bulk_action" id="mainwp_bulk_action">
					<option value="none"><?php 
        _e('Bulk Action', 'mainwp');
        ?>
</option>
					<option value="delete"><?php 
        _e('Delete', 'mainwp');
        ?>
</option>
				</select>
				<input type="button" name="" id="mainwp_bulk_user_action_apply" class="button" value="<?php 
        _e('Apply', 'mainwp');
        ?>
"/>
				<select name="bulk_action" id="mainwp_bulk_role_action">
					<option value="none"><?php 
        _e('Change Role to ...', 'mainwp');
        ?>
</option>
					<option value="role_to_administrator"> <?php 
        _e('Administrator', 'mainwp');
        ?>
</option>
					<option value="role_to_editor"> <?php 
        _e('Editor', 'mainwp');
        ?>
</option>
					<option value="role_to_author"> <?php 
        _e('Author', 'mainwp');
        ?>
</option>
					<option value="role_to_contributor"> <?php 
        _e('Contributor', 'mainwp');
        ?>
</option>
					<option value="role_to_subscriber"> <?php 
        _e('Subscriber', 'mainwp');
        ?>
</option>
				</select>
				<input type="button" name="" id="mainwp_bulk_role_action_apply" class="button" value="<?php 
        _e('Change', 'mainwp');
        ?>
"/>
			</div>
			<div class="alignright" id="mainwp_users_total_results">
				<?php 
        _e('Total Results:', 'mainwp');
        ?>
				<span id="mainwp_users_total"><?php 
        echo $cachedSearch != null ? $cachedSearch['count'] : '0';
        ?>
</span>
			</div>
			<div class="clear"></div>
			<div id="mainwp_users_content">
				<table class="wp-list-table widefat fixed pages tablesorter" id="mainwp_users_table"
					cellspacing="0">
					<thead>
					<tr>
						<th scope="col" id="cb" class="manage-column column-cb check-column" style=""><input
								type="checkbox"></th>
						<th scope="col" id="username" class="manage-column column-username sortable desc" style="">
							<a href="#" onclick="return false;"><span><?php 
        _e('Username', 'mainwp');
        ?>
</span><span class="sorting-indicator"></span></a>
						</th>
						<th scope="col" id="name" class="manage-column column-author sortable desc" style="">
							<a href="#" onclick="return false;"><span><?php 
        _e('Name', 'mainwp');
        ?>
</span><span class="sorting-indicator"></span></a>
						</th>
						<th scope="col" id="email" class="manage-column column-email sortable desc" style="">
							<a href="#" onclick="return false;"><span><?php 
        _e('E-mail', 'mainwp');
        ?>
</span><span class="sorting-indicator"></span></a>
						</th>
						<th scope="col" id="role" class="manage-column column-role sortable desc" style="">
							<a href="#" onclick="return false;"><span><?php 
        _e('Role', 'mainwp');
        ?>
</span><span class="sorting-indicator"></span></a>
						</th>
						<th scope="col" id="posts" class="manage-column column-posts sortable desc" style="">
							<a href="#" onclick="return false;"><span><?php 
        _e('Posts', 'mainwp');
        ?>
</span><span class="sorting-indicator"></span></a>
						</th>
						<th scope="col" id="website" class="manage-column column-website sortable desc" style="">
							<a href="#" onclick="return false;"><span><?php 
        _e('Website', 'mainwp');
        ?>
</span><span class="sorting-indicator"></span></a>
						</th>
					</tr>
					</thead>

					<tfoot>
					<tr>
						<th scope="col" id="cb" class="manage-column column-cb check-column" style=""><input
								type="checkbox"></th>
						<th scope="col" id="username" class="manage-column column-username sortable desc" style="">
							<a href="#" onclick="return false;"><span><?php 
        _e('Username', 'mainwp');
        ?>
</span><span class="sorting-indicator"></span></a>
						</th>
						<th scope="col" id="name" class="manage-column column-author sortable desc" style="">
							<a href="#" onclick="return false;"><span><?php 
        _e('Name', 'mainwp');
        ?>
</span><span class="sorting-indicator"></span></a>
						</th>
						<th scope="col" id="email" class="manage-column column-email sortable desc" style="">
							<a href="#" onclick="return false;"><span><?php 
        _e('E-mail', 'mainwp');
        ?>
</span><span class="sorting-indicator"></span></a>
						</th>
						<th scope="col" id="role" class="manage-column column-role sortable desc" style="">
							<a href="#" onclick="return false;"><span><?php 
        _e('Role', 'mainwp');
        ?>
</span><span class="sorting-indicator"></span></a>
						</th>
						<th scope="col" id="posts" class="manage-column column-posts sortable desc" style="">
							<a href="#" onclick="return false;"><span><?php 
        _e('Posts', 'mainwp');
        ?>
</span><span class="sorting-indicator"></span></a>
						</th>
						<th scope="col" id="website" class="manage-column column-website sortable desc" style="">
							<a href="#" onclick="return false;"><span><?php 
        _e('Website', 'mainwp');
        ?>
</span><span class="sorting-indicator"></span></a>
						</th>
					</tr>
					</tfoot>

					<tbody id="the-list" class="list:user">
					<?php 
        MainWP_Cache::echoBody('Users');
        ?>
					</tbody>
				</table>
				<div class="pager" id="pager">
					<form>
						<img src="<?php 
        echo plugins_url('images/first.png', dirname(__FILE__));
        ?>
" class="first">
						<img src="<?php 
        echo plugins_url('images/prev.png', dirname(__FILE__));
        ?>
" class="prev">
						<input type="text" class="pagedisplay">
						<img src="<?php 
        echo plugins_url('images/next.png', dirname(__FILE__));
        ?>
" class="next">
						<img src="<?php 
        echo plugins_url('images/last.png', dirname(__FILE__));
        ?>
" class="last">
						<span>&nbsp;&nbsp;<?php 
        _e('Show:', 'mainwp');
        ?>
 </span><select class="pagesize">
							<option selected="selected" value="10">10</option>
							<option value="25">25</option>
							<option value="50">50</option>
							<option value="100">100</option>
							<option value="1000000000">All</option>
						</select><span> <?php 
        _e('Users per page', 'mainwp');
        ?>
</span>
					</form>
				</div>
				<div class="clear"></div>
                <br/><br/>
			</div>
		</div>
		<?php 
        if ($cachedSearch != null) {
            echo '<script>mainwp_users_table_reinit();</script>';
        }
        self::renderFooter('');
    }