/**
  * Display an html table with all retrieved posts
  *
  * @access	private
  */
 private function display_table()
 {
     Html::table('o');
     if (!empty($this->_content)) {
         foreach ($this->_content as $post) {
             $draft_y = null;
             if (($this->_status == 'all' || $this->_status == 'trash') && $post->_status == 'draft') {
                 $draft_y = ' - <span class="bold">Draft</span>';
             }
             $preview = null;
             if ($post->_status == 'draft') {
                 $preview = 'preview=true&';
             }
             if ($this->_status == 'trash') {
                 $actions = Html::mp_restore_link($post->_id);
                 $actions .= Html::mp_delete_link($post->_id);
             } else {
                 $actions = Html::mp_edit_link($post->_id);
                 $actions .= Html::mp_trash_link($post->_id, $this->_status);
                 $actions .= Html::mp_view_link($preview, $post->_permalink, $post->_title);
             }
             $key_cats = explode(',', $post->_category);
             $cats = array();
             foreach ($key_cats as $key) {
                 array_push($cats, ucfirst($this->_categories[$key]));
             }
             $cats = implode(', ', $cats);
             Html::table_row($post->_id, $post->_title, $draft_y, $actions, $post->_author, $post->_author_name, $cats, $post->_tags, $post->_comment, $post->_date);
         }
     } else {
         if (VPost::search_button(false)) {
             $no_post = '<tr><td colspan="7">No post found';
             if ($this->_status == 'trash') {
                 $no_post .= ' in Trash';
             }
             echo $no_post . '</td></tr>';
         } else {
             if (VRequest::post_status() == 'trash') {
                 echo '<tr><td colspan="7">No post in Trash</td></tr>';
             } else {
                 echo '<tr><td colspan="7">There is no post yet.</td></tr>';
             }
         }
     }
     Html::table('c');
 }