data->MACRO['TITLE'])
echo "
".$this->data->MACRO['TITLE']."\n";
if($this->data->MACRO['COMMENT'])
echo $this->data->MACRO['COMMENT']."
\n";
$last_view = -1;
foreach($this->data->STRUCT as $d){
if($d['VIEW'] > $last_view){ # a new header begins
if($last_view != -1 ){ # close last div
print "
\n";
}
printf("%s\n", $d['ds_name']);
printf("
\n",
$this->tpl,
$d['VIEW'],
$d['SOURCE']
);
$last_view++;
}else{
printf("
%s
\n", $d['ds_name']);
printf("
\n",
$this->tpl,
$d['VIEW'],
$d['SOURCE']
);
}
}
?>