* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
"deco" => "Décorations\nMédailles",
"emploi" => "Informations\nprofessionnelles",
"skill" => "Compétences\ndiverses",
"mentor" => "Mentoring"
);
"deco" => "Décorations\nMédailles",
"emploi" => "Informations\nprofessionnelles",
"skill" => "Compétences\ndiverses",
"mentor" => "Mentoring"
);
-$page->assign("onglets",$tabname_array);
-$page->assign("onglet_last",'mentor');
+$page->assign('onglets', $GLOBALS['tabname_array']);
-function get_last_tab(){
- end($GLOBALS['tabname_array']);
- return key($GLOBALS['tabname_array']);
-}
+function get_next_tab($tabname) {
+ $tabname_array = $GLOBALS['tabname_array'];
-function get_next_tab($tabname){
- global $tabname_array;
- reset($tabname_array);
- $marker = false;
- while(list($current_tab,$current_tab_desc) = each($tabname_array)){
- if($current_tab == $tabname){
+ reset ($tabname_array);
+ while (list($current_tab, ) = each($tabname_array)) {
+ if ($current_tab == $tabname){