-/** formatte une formation pour l'affichage
- */
-function education_fmt($name, $url, $degree, $grad_year, $field, $program, $sexe, $long)
-{
- $field = strtolower($field);
- $txt = "";
-
- if ($grad_year || $field || $program) {
- $txt .= "<span title=\"(";
- if ($program) {
- $txt .= $program;
- if ($grad_year || $field) {
- $txt .= ", ";
- }
- }
- if ($grad_year) {
- if ($sexe) {
- $txt .= "diplômée en $grad_year";
- } else {
- $txt .= "diplômé en $grad_year";
- }
- if ($field) {
- $txt .= ", ";
- }
- }
- if ($field) {
- $txt .= "domaine : $field)\">";
- }
- }
-
- if (($degree != "Lic.") || ($long)) {
- if (($degree != "Ing.") && ($degree != "Dipl.")) {
- $txt .= $degree;
- }
- if ($name) {
- $txt .= ' ';
- }
- if ($url != ' ') {
- $txt .= "<a href=\"$url\" onclick=\"return popup(this)\">$name</a>";
- } else {
- $txt .= $name;
- }
- }
- $txt .= "</span>";
-
- return $txt;
-}
-
-function _education_fmt($params, &$smarty)
-{
- extract($params);
- return education_fmt($name, $url, $degree, $grad_year, $field, $program, $sexe, $long);
-}
-Platal::page()->register_function('education_fmt', '_education_fmt');
-