function draw(&$row, &$fields) { global $_CAMILA; if ($_CAMILA['page']->camila_exporting()) { } elseif (isset($this->onprint)) { $func = $this->onprint; $func($this, $row, $fields); } else { if ($this->imagepath != '') { $icon = $this->imagepath; } else { $icon = '../camila/images/png/' . $this->field . '_' . $this->value . '.png'; } $wbmp = str_replace('png/', 'wbmp/', $icon); $wbmp = str_replace('.png', '.wbmp', $wbmp); $image = new CHAW_image($wbmp, $icon, ''); if (!in_array($this->field, $this->report->keys) && $this->report->inline_editing) { $image->set_css_class('cf_editText'); } if ($this->inline && $this->report->inline_editing) { $id = $this->field; foreach ($this->report->keys as $k => $v) { $v = str_replace('.', '__', $v); $id .= '__cf__' . $fields['camilakey_' . $v]->value; } $image->set_id($id); } $row->add_column($image); } }