From: Florent Bruneau Date: Mon, 12 Jan 2009 10:55:01 +0000 (+0100) Subject: Merge commit 'origin/master' into fusionax X-Git-Tag: xorg/1.0.0~332^2~344^2~43 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=9891bd15f772caef0c199a98f036e976bf4ab94a;p=platal.git Merge commit 'origin/master' into fusionax Conflicts: include/applis.func.inc.php Signed-off-by: Florent Bruneau --- 9891bd15f772caef0c199a98f036e976bf4ab94a diff --cc include/education.func.inc.php index 28f3b9d,0000000..04a98ca mode 100644,000000..100644 --- a/include/education.func.inc.php +++ b/include/education.func.inc.php @@@ -1,173 -1,0 +1,173 @@@ +'; + $res = XDB::iterator("SELECT e.id AS id, g.pays AS country, + IF(CHAR_LENGTH(e.name) > 76, e.abbreviation, e.name) AS name + FROM profile_education_enum AS e + LEFT JOIN geoloc_pays AS g ON (e.country = g.a2) + WHERE EXISTS (SELECT * + FROM profile_education_degree AS d + WHERE e.id = d.eduid) + ORDER BY g.pays, e.name"); + $country = ""; + while ($arr_edu = $res->next()) { + if ($arr_edu["country"] != $country) { + $country = $arr_edu["country"]; + $html .= ""; + } + $html .= '