Function draws top.
{
try
{
$this->Output = '';
$TopName = $this->Security->get_gp(
'top_name' , 'command' , $Options->get_setting( 'top_name' , false )
);
if( $TopName === false )
{
return;
}
$Options->append_file( dirname( __FILE__ )."/conf/cf_$TopName" );
$Title = $Options->get_setting( 'title' , false );
list( $Header , $Item , $Footer ) = $this->get_templates( $Options );
$this->compile_records( $Options , $Item );
$this->Output = $Header.$this->Output.$Footer;
if( $Title !== false )
{
$this->Output = "<h3>{lang:$Title}</h3>".$this->Output;
}
}
catch( Exception $e )
{
}
}