Пример #1
0
    } else {
        if (isset($_POST['sdesc'])) {
            print_r($_POST);
            $skill->setValue('skillgroupid', $_POST['Skill_Group_ID']);
            $skill->setValue('skilldescshort', $_POST['sdesc']);
            $skill->setValue('skillnotes', $_POST['snotes']);
            if (isset($_POST['Skill_ID'])) {
                $skill->setValue('skillid', $_POST['Skill_ID']);
            }
            $skill->saveSkill();
        } else {
            if (isset($_GET['skill'])) {
                $skill->setValue('operatorid', $_GET['opeid']);
                $skill->showOpeAuthority();
            }
            if (isset($_GET['addskill'])) {
                if (isset($_GET['skillid'])) {
                    $skill->setValue('skillid', $_GET['skillid']);
                }
                $skill->showSkillUI();
            }
            if (isset($_GET['skilllist'])) {
                if (isset($_GET['sgid'])) {
                    $skill->setValue('skillgroupid', $_GET['sgid']);
                }
                $skill->createSkillList();
                $sel = new selectlist('Skill_ID', $skill->getSkillList(), 'Select Skill To Edit', 'Skill_ID', 'Skill_Desc_Short', '', '', '1');
            }
        }
    }
}