'.__('There was a problem loading agent').''; return; } if (! give_acl ($config["id_user"], $agent["id_grupo"], "AR")) { audit_db ($config["id_user"], $_SERVER['REMOTE_ADDR'], "ACL Violation", "Trying to access Agent General Information"); require_once ("general/noaccess.php"); return; } print_page_header (__('Agent custom fields'), 'images/note.png', false, "", false); echo ''; // Custom fields $fields = get_db_all_rows_filter('tagent_custom_fields', array('display_on_front' => 1)); foreach($fields as $field) { echo ''; $custom_value = get_db_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'].print_help_tip (__('Custom field'), true).''.$custom_value.'
'; ?>