foreach ($data as $field): ?>
/* Depending on the record driver, $field may either be an array with
"name" and "number" keys or a flat string containing only the series
name. We should account for both cases to maximize compatibility. */?>
if (is_array($field)): ?>
if (!empty($field['name'])): ?>
=$this->escapeHtml($field['name'])?>
if (!empty($field['number'])): ?>
=$this->escapeHtml($field['number'])?>
endif; ?>
endif; ?>
if (!empty($field[0])): ?>
$link = $field[0] ;
$l = strrpos($link, ';');
if ($l !== false) $link = trim(substr($link,0,$l));
?>
=$this->escapeHtml($link)?>
if (!empty($field['number'])): ?>
=$this->escapeHtml($field['number'])?>
endif; ?>
endif; ?>
else: ?>
=$this->escapeHtml($field)?>
endif; ?>
endforeach; ?>