コード例 #1
0
ファイル: form.php プロジェクト: kaantunc/MYK-BOR
 private function kisiBilgiVerisiGuncelle($evrak_pk, $personel_id, $panelName, $posted)
 {
     $egitimColCount = 3;
     $sertifikaColCount = 4;
     $deneyimColCount = 5;
     $dilColCount = 5;
     $resultST = FormFactory::kisiBilgiTablolariSil($personel_id);
     $personelValues = FormFactory::getPanelValues($posted, "input" . $panelName, 9, 3);
     //M_BASVURU_PERSONEL
     $deneyimAciklama = $posted["input" . $panelName . "-17"];
     $egitimValues = FormFactory::getTableValues($posted, array("div" . $panelName . "-13-12", $egitimColCount));
     //M_PERSONEL_EGITIM
     $sertifikaValues = FormFactory::getTableValues($posted, array("div" . $panelName . "-15-14", $sertifikaColCount));
     //M_PERSONEL_SERTIFIKA
     $deneyimValues = FormFactory::getTableValues($posted, array("div" . $panelName . "-19-18", $deneyimColCount));
     //M_PERSONEL_DENEYIM
     $dilValues = FormFactory::getTableValues($posted, array("div" . $panelName . "-21-20", $dilColCount));
     //M_DILBILGISI
     $resultP = FormFactory::personelVerisiGuncelle($personel_id, $personelValues, $deneyimAciklama);
     $resultE = FormFactory::egitimVerileriEkle($egitimValues, $personel_id, $egitimColCount);
     $resultS = FormFactory::sertifikaVerileriEkle($sertifikaValues, $personel_id, $sertifikaColCount);
     $resultD = FormFactory::deneyimVerileriEkle($deneyimValues, $personel_id, $deneyimColCount);
     $resultDL = FormFactory::dilVerileriEkle($dilValues, $personel_id, $dilColCount);
     ////////////////
     // Kısı bilgi ekindeki yeterlilik acıklaması icin:
     $resultYA = true;
     $yeterlilik_aciklama = "";
     if ($posted["input" . $panelName . "-23"]) {
         $yeterlilik_aciklama = $posted["input" . $panelName . "-23"];
     }
     if ($yeterlilik_aciklama != "") {
         $resultYA = FormFactory::yeterlilikAciklamaKaydet($personel_id, $yeterlilik_aciklama);
     }
     ///////////////
     //$returnValues = array ($resultST, $resultP, $resultE, $resultS,$resultD, $resultDL);
     $returnValues = array($resultST, $resultP, $resultE, $resultS, $resultD, $resultDL, $resultYA);
     return !FormFactory::isThereError($returnValues);
 }