'.__('There was a problem loading agent').''; return; } if (! check_acl ($config["id_user"], $agent["id_grupo"], "AR")) { db_pandora_audit("ACL Violation", "Trying to access Agent General Information"); require_once ("general/noaccess.php"); return; } ui_print_page_header (__('Agent custom fields'), 'images/note.png', false, "", false); echo ''; // Custom fields $fields = db_get_all_rows_filter('tagent_custom_fields', array('display_on_front' => 1)); foreach($fields as $field) { echo ''; $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 ''; } //End of table echo '
'.$field['name'] . ui_print_help_tip (__('Custom field'), true).''.$custom_value.'
'; ?>