id);
        $i_score = int_escape($image->numeric_score);
        $html = "
			Current Score: $i_score
			
			
			
		";
        if ($user->can(Permissions::EDIT_OTHER_VOTE)) {
            $html .= "
			
			
			";
        }
        $page->add_block(new Block("Image Score", $html, "left", 20));
    }
    public function get_nuller(User $duser)
    {
        global $user, $page;
        $html = "
			
		";
        $page->add_block(new Block("Votes", $html, "main", 80));
    }
    public function view_popular($images, $dte)
    {
        global $page, $config;
        $pop_images = "";
        foreach ($images as $image) {
            $pop_images .= $this->build_thumb_html($image)."\n";
        }
        $b_dte = make_link("popular_by_".$dte[3]."?".date($dte[2], (strtotime('-1 '.$dte[3], strtotime($dte[0])))));
        $f_dte = make_link("popular_by_".$dte[3]."?".date($dte[2], (strtotime('+1 '.$dte[3], strtotime($dte[0])))));
        $html = "\n".
            "\n".
            "	\n".
            "		« {$dte[1]} »\n".
            "	
\n".
            "\n".
            "
\n".$pop_images;
        $nav_html = "Index";
        $page->set_heading($config->get_string(SetupConfig::TITLE));
        $page->add_block(new Block("Navigation", $nav_html, "left", 10));
        $page->add_block(new Block(null, $html, "main", 30));
    }
    public function get_help_html()
    {
        return 'Search for images that have received numeric scores by the score or by the scorer.
        
        score=1
        Returns images with a score of 1.
          
        
        score>0
        Returns images with a score of 1 or more.
         
        Can use <, <=, >, >=, or =.
        
        upvoted_by=username
        Returns images upvoted by "username".
         
        
        upvoted_by_id=123
        Returns images upvoted by user 123.
         
        
        downvoted_by=username
        Returns images downvoted by "username".
         
        
        downvoted_by_id=123
        Returns images downvoted by user 123.
         
        
        order:score_desc
        Sorts the search results by score, descending.
         
        
        order:score_asc
        Sorts the search results by score, ascending.
         
        ';
    }
}