options['show_subpanels'] = true; parent::SugarView(); } function preDisplay(){ parent::preDisplay(); } function display(){ if(empty($this->bean->id)){ global $app_strings; sugar_die($app_strings['ERROR_NO_RECORD']); } global $app_list_strings; $table = ''; $i = 0; $count = count($app_list_strings['ecmlanguages_dom']); foreach($app_list_strings['ecmlanguages_dom'] as $key => $value) { if($count > (++$i)) $border = 'border-bottom:1px dashed #BBBBBB;'; else $border = ''; $table .= ''; } $table .= '
'.$value.':'.(isset($this->bean->translations[$key])?str_replace("\n","
",$this->bean->translations[$key]):'').'
'; $this->dv->ss->assign('translations',$table); $this->dv->process(); echo $this->dv->display(); } }