/*$close = (isset($_POST['close'])) ? true : false;
    	$id_list = request_var('id_list', array(0));
    
    	if ($close && sizeof($id_list))
    	{
    		$attention_object = new titania_attention;
    		foreach ($id_list as $attention_id)
    		{
    			$attention_object->attention_id = $attention_id;
    			$attention_object->load();
    		}
    	}*/
    switch ($type) {
        case 'reported':
            $type = TITANIA_ATTENTION_REPORTED;
            break;
        case 'unapproved':
            $type = TITANIA_ATTENTION_UNAPPROVED;
            break;
        default:
            $type = false;
            break;
    }
    $options = array('attention_type' => $type, 'display_closed' => $closed, 'only_closed' => !$open && $closed ? true : false);
    attention_overlord::display_attention_list($options);
    phpbb::$template->assign_vars(array('S_ACTION' => titania_url::build_url('manage/attention'), 'S_OPEN_CHECKED' => $open, 'S_CLOSED_CHECKED' => $closed));
    // Subscriptions
    titania_subscriptions::handle_subscriptions(TITANIA_ATTENTION, 0, titania_url::build_url('manage/attention'));
    titania::page_header('ATTENTION');
    titania::page_footer(true, 'manage/attention.html');
}
 /**
  * Display attention item list.
  *
  * @return \Symfony\Component\HttpFoundation\Response
  */
 public function display_list()
 {
     $this->user->add_lang('mcp');
     if (!$this->check_auth()) {
         return $this->helper->needs_auth();
     }
     $type = $this->request->variable('type', '');
     $closed = $this->request->variable('closed', false);
     $open = $this->request->variable('open', false) || !$closed;
     switch ($type) {
         case 'reported':
             $type = TITANIA_ATTENTION_REPORTED;
             break;
         case 'unapproved':
             $type = TITANIA_ATTENTION_UNAPPROVED;
             break;
         default:
             $type = false;
             break;
     }
     $options = array('attention_type' => $type, 'display_closed' => $closed, 'only_closed' => !$open && $closed);
     \attention_overlord::display_attention_list($options);
     $this->template->assign_vars(array('S_ACTION' => $this->helper->route('phpbb.titania.manage.attention'), 'S_OPEN_CHECKED' => $open, 'S_CLOSED_CHECKED' => $closed));
     // Subscriptions
     $this->subscriptions->handle_subscriptions(TITANIA_ATTENTION, 0, $this->helper->route('phpbb.titania.manage.attention'));
     $this->display->assign_global_vars();
     $this->generate_navigation('attention');
     return $this->helper->render('manage/attention.html', $this->user->lang['ATTENTION']);
 }