<?php
/***************************************************************************
- * Copyright (C) 2003-2010 Polytechnique.org *
+ * Copyright (C) 2003-2013 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
function select_nat($valeur, $pad=false) {
- $res = XDB::iterRow("SELECT iso_3166_1_a2 AS id, nationalityFR AS text
+ $res = XDB::iterRow("SELECT iso_3166_1_a2 AS id, nationality AS text
FROM geoloc_countries
- WHERE nationalityFR IS NOT NULL
- ORDER BY nationalityFR");
+ WHERE nationality IS NOT NULL
+ ORDER BY nationality");
$sel = ' selected="selected"';
// on ajoute une entree vide si $pad est vrai
return $html;
}
-function smarty_function_select_nat($params, &$smarty) {
+function smarty_function_select_nat($params, $smarty) {
if (empty($params['pad']) || !($params['pad'])) {
$pad = false;
} else {