private static function import_page()
    {
        $view = strtolower(isset($_GET['view']) ? $_GET['view'] : 'all');
        $active_count = ESS_Database::count(array('feed_status' => ESS_Database::FEED_STATUS_ACTIVE));
        $trash_count = ESS_Database::count(array('feed_status' => ESS_Database::FEED_STATUS_DELETED));
        $efi = ESS_Database::get(array('feed_status' => $view == 'trash' ? ESS_Database::FEED_STATUS_DELETED : ESS_Database::FEED_STATUS_ACTIVE));
        $url_all_events = em_add_get_params($_SERVER['REQUEST_URI'], array('view' => 'all')) . "#import";
        $url_trash_events = em_add_get_params($_SERVER['REQUEST_URI'], array('view' => 'trash')) . "#import";
        if ($view == 'trash' && $trash_count <= 0) {
            @wp_redirect($url_all_events);
            exit;
        }
        //d( $efi );
        ?>
<div class="em-menu-import em-menu-group" style="display:none;">

			<!-- PAGES NAV -->
			<div class="subsubsub">
				<a href='<?php 
        echo $url_all_events;
        ?>
' <?php 
        echo empty($view) || $view == 'all' ? 'class="current"' : '';
        ?>
><?php 
        _e('All', 'dbem');
        ?>
 <span class="count">(<?php 
        echo $active_count;
        ?>
)</span></a>
				<?php 
        if ($trash_count > 0) {
            ?>
&nbsp;|&nbsp;
				<a href='<?php 
            echo $url_trash_events;
            ?>
' <?php 
            echo $view == 'trash' ? 'class="current"' : '';
            ?>
><?php 
            _e('Trash', 'dbem');
            ?>
 <span class="count">(<?php 
            echo $trash_count;
            ?>
)</span></a>
				<?php 
        }
        ?>
			</div><?php 
        // ACTIONS NAV
        self::get_nav_action();
        $rowno = 0;
        $next_cron = NULL;
        foreach (get_option('cron') as $timestamp => $date_) {
            if (isset($date_[ESS_IO::CRON_EVENT_HOOK])) {
                $next_cron = $timestamp;
                // d( ESS_Timezone::get_date_GMT( date('U') ), ESS_Timezone::get_date_GMT( $timestamp ) );
            }
        }
        ?>
<!-- LIST -->
			<input type="hidden" value="" id="selected_event_id" name="selected_event_id" />
			<table class='widefat'>
				<thead>
					<tr>
						<th class='manage-column column-cb check-column' scope='col'><input type='checkbox' class='select-all' value='1'/></th>
						<th width="18"></th>
						<th><?php 
        _e('Title', 'dbem');
        ?>
</th>
						<th><?php 
        _e('Nb Events', 'dbem');
        ?>
</th>
						<th><?php 
        _e('Owner', 'dbem');
        ?>
</th>
						<th width="90"><?php 
        _e('Update Daily', 'dbem');
        ?>
</th>
						<th width="100"><?php 
        _e('Last Update', 'dbem');
        ?>
</th>
						<th width="100"><?php 
        _e('Next Update', 'dbem');
        ?>
</th>
						<th width="45"><?php 
        _e('Update', 'dbem');
        ?>
</th>
						<th width="50"><?php 
        _e('View', 'dbem');
        ?>
</th>
					</tr>
				</thead>
				<tfoot>
					<tr>
						<th class='manage-column column-cb check-column' scope='col'><input type='checkbox' class='select-all' value='1'/></th>
						<th></th>
						<th><?php 
        _e('Title', 'dbem');
        ?>
</th>
						<th><?php 
        _e('Nb Events', 'dbem');
        ?>
</th>
						<th><?php 
        _e('Owner', 'dbem');
        ?>
</th>
						<th><?php 
        _e('Update', 'dbem');
        ?>
</th>
						<th><?php 
        _e('Last Update', 'dbem');
        ?>
</th>
						<th><?php 
        _e('Next Update', 'dbem');
        ?>
</th>
						<th><?php 
        _e('Update Daily', 'dbem');
        ?>
</th>
						<th><?php 
        _e('View', 'dbem');
        ?>
</th>
					</tr>
				</tfoot>
				<tbody><?php 
        if (@count($efi) > 0) {
            foreach ($efi as $feed) {
                $user = get_userdata($feed->feed_owner);
                $owner = isset($user) ? $user->data->display_name : '';
                $event_ids = explode(',', $feed->feed_event_ids);
                $class = $rowno % 2 ? 'alternate' : '';
                $rowno++;
                ?>
<tr class="<?php 
                echo $class;
                ?>
">
							<th class="check-column" scope="row">
								<label class="screen-reader-text" for="cb-select-<?php 
                echo $feed->feed_id;
                ?>
">Select My first event</label>
								<input type='checkbox' class='row-selector' id="cb-select-<?php 
                echo $feed->feed_id;
                ?>
" value='<?php 
                echo $feed->feed_id;
                ?>
' name='feeds[]'/>
								<div class="locked-indicator"></div>
							</th>
							<td align="center">
					 			<img src="http://www.google.com/s2/favicons?domain=http://<?php 
                echo $feed->feed_host;
                ?>
" width="16" height="16" alt="<?php 
                echo $feed->feed_host;
                ?>
" />
					 		</td>
							<td>
								<strong class="row-title"><?php 
                echo $feed->feed_title;
                ?>
</strong>
							</td>
							<td align="left">
								<?php 
                echo @count($event_ids);
                ?>
							</td>
							<td class="author column-author">
								<a><?php 
                echo $owner;
                ?>
</a>
							</td>
							<td>
								<?php 
                ESS_Elements::button_checkbox(array('checked' => $feed->feed_mode == ESS_Database::FEED_MODE_CRON ? TRUE : FALSE, 'on' => __('ON', 'dbem'), 'off' => __('OFF', 'dbem'), 'id' => 'feed_mode_' . $feed->feed_id, 'onchecked' => "jQuery('#cb-select-" . $feed->feed_id . "').prop('checked',true);", 'onunchecked' => "jQuery('#cb-select-" . $feed->feed_id . "').prop('checked',true);"));
                ?>
							</td>
							<td>
								<h4><?php 
                echo sprintf(__("%s ago", 'dbem'), human_time_diff(strtotime($feed->feed_timestamp)));
                ?>
</h4>
							</td>
							<td>
								<h4><?php 
                echo $feed->feed_mode == ESS_Database::FEED_MODE_CRON && $next_cron != NULL ? sprintf(__("in %s", 'dbem'), human_time_diff($next_cron)) : '-';
                ?>
</h4>
							</td>
							<td>
								<button title="<?php 
                _e("Reimport the feed to update the event.", 'dbem');
                ?>
" onmousedown="ess_admin.set_event_id('<?php 
                echo $feed->feed_id;
                ?>
');" class="button-primary reload_box" name="update_once" value="<?php 
                echo urlencode($feed->feed_url);
                ?>
" style="background-image:url('<?php 
                echo EM_ESS_URL;
                ?>
/assets/img/reload_icon_24x24.png');background-position:7px 2px;background-repeat:no-repeat;"></button>
							</td>
							<td>
								<a href="<?php 
                echo $feed->feed_url;
                ?>
" target="_blank" title="<?php 
                _e("Download the ESS Feed.", 'dbem');
                ?>
">
									<div class="button-primary arrow_cont">
										<div class="arrow_box"></div>
									</div>
								</a>
							</td>
						</tr><?php 
            }
        } else {
            ?>
<tr>
							<th colspan="8" style="text-align:left;"><?php 
            echo _e("No Feeds Found", 'dbem');
            ?>
</th>
						</tr><?php 
        }
        ?>
</tbody>
			</table>

			<?php 
        //self::get_nav_action();
        ?>

		</div><?php 
    }