'; // Custom fields $fields = db_get_all_rows_filter('tagent_custom_fields', array('display_on_front' => 1)); foreach($fields as $field) { echo ''.$field['name'] . ui_print_help_tip (__('Custom field'), true).''; $custom_value = db_get_value_filter('description', 'tagent_custom_data', array('id_field' => $field['id_field'], 'id_agent' => $id_agente)); if($custom_value === false || $custom_value == '') { $custom_value = '-'.__('empty').'-'; } echo ''.$custom_value.''; } //End of table echo ''; ?>