X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fprofile%2Fskills.inc.php;h=4a8c579214b4fb5beb6cff984256381dfd7d3120;hb=7996ae8cd41fbb3ccd748eaed71a50f866269c6e;hp=23d5d41bb935eb681ab6906bb93ad36d17534fa6;hpb=afc183ec32e8b51653e6d4f4f46118a93568421a;p=platal.git diff --git a/modules/profile/skills.inc.php b/modules/profile/skills.inc.php index 23d5d41..4a8c579 100644 --- a/modules/profile/skills.inc.php +++ b/modules/profile/skills.inc.php @@ -19,7 +19,7 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ***************************************************************************/ -class ProfileSkill implements ProfileSetting +class ProfileSettingSkill implements ProfileSetting { private $table; private $skill_field; @@ -78,15 +78,15 @@ class ProfileSkill implements ProfileSetting } } -class ProfileSkills extends ProfilePage +class ProfileSettingSkills extends ProfilePage { protected $pg_template = 'profile/skill.tpl'; public function __construct(PlWizard &$wiz) { parent::__construct($wiz); - $this->settings['competences'] = new ProfileSkill('skill', 'cid', 'text_fr'); - $this->settings['langues'] = new ProfileSkill('langskill', 'lid', 'langue_fr'); + $this->settings['competences'] = new ProfileSettingSkill('skill', 'cid', 'text_fr'); + $this->settings['langues'] = new ProfileSettingSkill('langskill', 'lid', 'langue_fr'); } public function _prepare(PlPage &$page, $id) @@ -97,7 +97,8 @@ class ProfileSkills extends ProfilePage 'bonne connaissance' => 'bonne connaissance', 'expert' => 'expert')); $page->assign('lang_list', XDB::iterator("SELECT id, langue_fr - FROM profile_langskill_enum")); + FROM profile_langskill_enum + ORDER BY langue_fr")); $page->assign('lang_level', array(1 => 'connaissance basique', 2 => 'maîtrise des bases', 3 => 'maîtrise limitée',