getSection (Section::TCURRENT);
$tagFile = $section->getDirective ('_TAG_');
if (!is_null ($tagFile) && trim ($tagFile) != '' && file_exists ('section/'. $section->getName () .'/'. $tagFile))
{
$array = parse_ini_file ('section/'. $section->getName () .'/'. $tagFile, TRUE);
if (sizeof ($array))
{
$tagBuffer = '
';
$tagBuffer .= '| '. __ ('Symbol') .' | '. __ ('Replaced by') .' |
';
$count = 0;
foreach ($array as $key => $value)
{
if (is_array ($value))
{
$tagBuffer .= '| '. $key .' |
';
foreach ($value as $tag => $label)
$tagBuffer .= '| '. $tag .' | '. translate ($label) .' |
';
}
else
$tagBuffer .= '| '. $key .' | '. translate ($value) .' |
';
}
$tagBuffer .= '
';
}
}
$form =& FormSimple::singleton ('edit.xml', 'all.xml');
$id = $section->getDirective ('_ID_') ? $section->getDirective ('_ID_') : 'SIMPLE_'. $section->getName ();
if (!$form->load ($id))
throw new Exception ('Não foi possível carregar os dados do item!');
?>