';
$keys = array_keys($this->_dattrs);
//allow index field clickable, same as first action
$actionLink = null;
$indexActionLink = null;
if ($action_attr != null) {
if ( is_array($action_attr->_minVal) )
{
$index = $action_attr->_minVal[0];
$ti = $action_attr->_minVal[$data[$index]->GetVal()];
if ( $ti == null ) {
$ti = $action_attr->_minVal[1];
}
} else {
$ti = $action_attr->_minVal;
}
$actionLink = $this->getActionLink($disp, $action_attr->_maxVal, $ti, $key0);
$tmp_a = strpos($actionLink, '"') +1;
$tmp_e = strpos($actionLink, '">');
$indexActionLink = substr($actionLink, $tmp_a, $tmp_e - $tmp_a);
}
foreach( $keys as $key )
{
$attr = $this->_dattrs[$key];
if ( $attr->_FDE[1] == 'N' ) {
continue;
}
$linkedData = null;
if ($attr->_linkedkeys != null) {
$linkedData = $data[$attr->_linkedkeys];
}
if($key == 0) {
if ($this->_icon != null) {
if ($attr->_key == "type" && is_array($attr->_maxVal) && is_array($this->_icon)) {
$icon_name = array_key_exists($data['type']->GetVal(), $this->_icon) ?
$this->_icon[$data['type']->GetVal()] : 'application';
} else {
$icon_name = $this->_icon;
}
$buf .= ' | ';
}
if ($this->_hasNote) {
$buf .= '';
if (isset($data['note']) && $data['note']->HasVal()) {
$buf .= ' '
. ''
. htmlspecialchars($data['note']->GetVal(), ENT_QUOTES) . ' ';
}
$buf .= ' | ';
}
}
$buf .= '_align[$key])) {
$buf .= ' align="' . $this->_align[$key] . '"';
}
$buf .= '>';
if ($attr->_type == 'action') {
$buf .= ($attr->toHtml($actionLink));
} else {
if ($attr->_type == 'sel1') {
$attr->populate_sel1_options($disp->_info, $data);
}
if ($attr->_key == $this->_holderIndex) {
$buf .= ($attr->toHtml($data[$attr->_key], $indexActionLink, $linkedData));
} else {
$buf .= ($attr->toHtml($data[$attr->_key], null, $linkedData));
}
}
$buf .= ' | ';
}
$buf .= "
\n";
return $buf;
}
}