now they actually create a bit of useful html documents

This commit is contained in:
seek3r 2001-12-25 01:49:08 +00:00
parent 193c99f669
commit dda262cfea
2 changed files with 16 additions and 6 deletions

View File

@ -323,6 +323,7 @@
$GLOBALS['template']->set_block('tpl_file', 'group');
$GLOBALS['template']->set_block('tpl_file', 'object');
$GLOBALS['template']->set_block('tpl_file','border_bottom');
$GLOBALS['template']->set_block('tpl_file','generic');
$GLOBALS['template']->set_block('tpl_file','abstract');
$GLOBALS['template']->set_block('tpl_file','params');
$GLOBALS['template']->set_block('tpl_file','param_entry');
@ -336,11 +337,16 @@
while(list($object_key, $object_value) = each($group_value))
{
$GLOBALS['template']->set_var('object_name',$object_key);
// while(list($object_key, $object_value) = each($group_value))
// {
// }
$GLOBALS['template']->fp('group_contents','object',True);
if(is_array($object_value))
{
while(list($docline_key, $docline_value) = each($object_value))
{
$GLOBALS['template']->set_var('generic_name',$docline_key);
$GLOBALS['template']->set_var('generic_value',$docline_value[0]);
$GLOBALS['template']->fp('object_contents','generic',True);
}
$GLOBALS['template']->fp('group_contents','object',True);
}
}
$GLOBALS['template']->fp('doc','group',True);
}

View File

@ -33,9 +33,13 @@
<!-- END reference_list_of_types -->
<!-- BEGIN abstract -->
<R>Abstract: {abstract}</P>
Abstract: {abstract}<br>
<!-- END abstract -->
<!-- BEGIN generic -->
{generic_name}: {generic_value}<br>
<!-- END generic -->
<!-- BEGIN params -->
<TABLE border="1">
<TR>