/**
  * Display page content
  *
  * @access	public
  */
 public function display_content()
 {
     $this->display_menu();
     if ($this->_user['media']) {
         echo $this->_action_msg;
         echo '<div id="list_wrapper">';
         Html::form('o', 'post', 'index.php?ns=media&ctl=manage');
         if (VGet::action() == 'edit' && VGet::type() && VGet::id()) {
             $method = 'display_edit_' . VGet::type();
             $this->{$method}();
         } else {
             $this->display_view_types();
             $this->display_actions('top');
             $this->display_table();
             $this->display_actions('butt');
             $this->display_pagination();
             echo Helper::datalist('titles', $this->_medias, '_title');
         }
         Html::form('c');
     } else {
         echo ActionMessages::part_no_perm();
     }
 }
 /**
  * Display form to register a video uploaded via ftp
  *
  * @access	private
  */
 private function display_video()
 {
     Html::nm_video('o');
     $media = new HandleMedia();
     $mimes = $media->_allowed;
     foreach ($mimes as $mime) {
         if (substr($mime, 0, 5) == 'video') {
             Html::video_category($mime);
         }
     }
     Html::nm_video('c');
 }
 /**
  * Display a form to edit a picture
  *
  * @access	private
  */
 private function display_edit_pic()
 {
     Html::form('o', 'post', 'index.php?ns=media&ctl=albums&action=edit&id=' . $this->_albums[0]->_id);
     $dirname = dirname($this->_pictures[0]->_permalink) . '/';
     $fname = basename($this->_pictures[0]->_permalink);
     Html::ma_edit_image($this->_pictures[0]->_name, $dirname, $fname, $this->_pictures[0]->_description, $this->_pictures[0]->_permalink, $this->_pictures[0]->_id);
     Html::form('c');
 }