コード例 #1
0
ファイル: resume_action.php プロジェクト: pamalite/yel
        exit;
    }
    $resume = new Resume($_POST['member'], $_POST['id']);
    $data = array();
    $data['id'] = $_POST['education'];
    $data['country'] = $_POST['country'];
    $data['qualification'] = $_POST['qualification'];
    $data['institution'] = $_POST['institution'];
    $data['completed_on'] = $_POST['completed_on'];
    if ($_POST['education'] == "0") {
        if (!$resume->create_education($data)) {
            echo "ko";
            exit;
        }
    } else {
        if (!$resume->update_education($data)) {
            echo "ko";
            exit;
        }
    }
    echo "ok";
    exit;
}
if ($_POST['action'] == 'get_skills') {
    $resume = new Resume($_POST['member'], $_POST['id']);
    $educations = $resume->get_skills();
    $response = array('resume' => array('educations' => $educations));
    header('Content-type: text/xml');
    echo $xml_dom->get_xml_from_array($response);
    exit;
}