<td class="default" width="100%" bgcolor="<?php echo $this->_tpl_vars['row_color']; ?> "> <?php if ($this->_tpl_vars['custom_fields'][$this->_sections['i']['index']]['fld_type'] == 'textarea') { ?> <?php echo is_array($_tmp = is_array($_tmp = is_array($_tmp = $this->_tpl_vars['custom_fields'][$this->_sections['i']['index']]['icf_value']) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) ? $this->_run_mod_handler('activateLinks', true, $_tmp, 'link') : Link_Filter::activateLinks($_tmp, 'link')) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp); ?> <?php } else { ?> <?php echo is_array($_tmp = $this->_tpl_vars['custom_fields'][$this->_sections['i']['index']]['icf_value']) ? $this->_run_mod_handler('formatCustomValue', true, $_tmp, $this->_tpl_vars['custom_fields'][$this->_sections['i']['index']]['fld_id'], $_GET['id'], true) : Custom_Field::formatValue($_tmp, $this->_tpl_vars['custom_fields'][$this->_sections['i']['index']]['fld_id'], $_GET['id'], true); ?> <?php } ?> </td> </tr> <?php } } else { ?> <tr id="custom_fields1" <?php echo smarty_function_get_display_style(array('element_name' => 'custom_fields', 'total' => count($this->_tpl_vars['custom_fields'])), $this); ?> >
protected function _getChanges() { $res = parent::_getChanges(); if (!empty($this->_old_custom_values)) { $customFields = $this->getCustomFields(); $dummyField = new Custom_Field(); foreach ($this->_old_custom_values as $fieldid => $oldVal) { $dummyField->populate($fieldid, $customFields[$fieldid]); $res[] = $dummyField->getValue('name') . ' changed from "' . $dummyField->formatValue($oldVal) . '" to "' . $dummyField->formatValue($this->_custom_values[$fieldid]) . '"'; } } return $res; }
<?php if ($this->_tpl_vars['field_name'] == 'custom_fields') { ?> <?php if (count($_from = (array) $this->_tpl_vars['list'][$this->_sections['i']['index']]['custom_field'])) { foreach ($_from as $this->_tpl_vars['fld_id'] => $this->_tpl_vars['fld_value']) { ?> <td bgcolor="<?php echo $this->_tpl_vars['list'][$this->_sections['i']['index']]['status_color']; ?> " align="<?php echo is_array($_tmp = @$this->_tpl_vars['column']['align']) ? $this->_run_mod_handler('default', true, $_tmp, 'center') : smarty_modifier_default($_tmp, 'center'); ?> " class="default"> <?php echo is_array($_tmp = $this->_tpl_vars['fld_value']) ? $this->_run_mod_handler('formatCustomValue', true, $_tmp, $this->_tpl_vars['fld_id'], $this->_tpl_vars['list'][$this->_sections['i']['index']]['iss_id']) : Custom_Field::formatValue($_tmp, $this->_tpl_vars['fld_id'], $this->_tpl_vars['list'][$this->_sections['i']['index']]['iss_id']); ?> </td> <?php } unset($_from); } ?> <?php } else { ?> <td bgcolor="<?php echo $this->_tpl_vars['list'][$this->_sections['i']['index']]['status_color']; ?> " align="<?php