|
|
@@ -47,11 +47,12 @@ if (core::ifPost("from") AND core::getPost("from") == $name["files"]) {
|
|
|
OR $excelValues[1] != "od_nom"
|
|
|
OR $excelValues[2] != "od_prenom"
|
|
|
OR $excelValues[3] != "od_civilite"
|
|
|
- OR $excelValues[4] != "date_deb_anciennete()"
|
|
|
- OR $excelValues[5] != "date_fin_anciennete()"
|
|
|
- OR $excelValues[6] != "od_31"
|
|
|
- OR $excelValues[7] != "site_nom"
|
|
|
- OR $excelValues[8] != "od_login" ){
|
|
|
+ OR $excelValues[4] != "od_date_naiss"
|
|
|
+ OR $excelValues[5] != "date_deb_anciennete()"
|
|
|
+ OR $excelValues[6] != "date_fin_anciennete()"
|
|
|
+ OR $excelValues[7] != "od_31"
|
|
|
+ OR $excelValues[8] != "site_nom"
|
|
|
+ OR $excelValues[9] != "od_login" ){
|
|
|
|
|
|
alert::recError("Le fichier " . $_FILES[$name["files"]]['name'] . " n'est pas un export ProWeb global.");
|
|
|
|
|
|
@@ -59,11 +60,12 @@ if (core::ifPost("from") AND core::getPost("from") == $name["files"]) {
|
|
|
($excelValues[1] != "od_nom") ? alert::recError("La 2em colonne doit se nommer od_nom") : "";
|
|
|
($excelValues[2] != "od_prenom") ? alert::recError("La 3em colonne doit se nommer od_prenom") : "";
|
|
|
($excelValues[3] != "od_civilite") ? alert::recError("La 4em colonne doit se nommer od_civilite") : "";
|
|
|
- ($excelValues[4] != "date_deb_anciennete()") ? alert::recError("La 5em colonne doit se nommer date_deb_anciennete()") : "";
|
|
|
- ($excelValues[5] != "date_fin_anciennete()") ? alert::recError("La 6em colonne doit se nommer date_fin_anciennete()") : "";
|
|
|
- ($excelValues[6] != "od_31") ? alert::recError("La 7em colonne doit se nommer od_31") : "";
|
|
|
- ($excelValues[7] != "site_nom") ? alert::recError("La 8em colonne doit se nommer site_nom") : "";
|
|
|
- ($excelValues[8] != "od_login") ? alert::recError("La 9em colonne doit se nommer od_login") : "";
|
|
|
+ ($excelValues[4] != "od_date_naiss") ? alert::recError("La 5em colonne doit se nommer od_date_naiss") : "";
|
|
|
+ ($excelValues[5] != "date_deb_anciennete()") ? alert::recError("La 6em colonne doit se nommer date_deb_anciennete()") : "";
|
|
|
+ ($excelValues[6] != "date_fin_anciennete()") ? alert::recError("La 7em colonne doit se nommer date_fin_anciennete()") : "";
|
|
|
+ ($excelValues[7] != "od_31") ? alert::recError("La 8em colonne doit se nommer od_31") : "";
|
|
|
+ ($excelValues[8] != "site_nom") ? alert::recError("La 9em colonne doit se nommer site_nom") : "";
|
|
|
+ ($excelValues[9] != "od_login") ? alert::recError("La 10em colonne doit se nommer od_login") : "";
|
|
|
|
|
|
header("Location: /".$name["returnKo"] . ".html");
|
|
|
exit();
|
|
|
@@ -74,8 +76,8 @@ if (core::ifPost("from") AND core::getPost("from") == $name["files"]) {
|
|
|
$final = proweb::archiveExcelValues($excelValues);
|
|
|
|
|
|
db::query("INSERT INTO ". DB_T_SALARIES_PROWEB ." "
|
|
|
- . "(idProweb, loginId, loginIdRH, nom, prenom, sexe, contrat, jourEntree, jourEntreeRH, jourSortie, lieu, actif, RHBase, error, errorJson) "
|
|
|
- . "VALUES (:idProweb, :loginId, :loginIdRH, :nom, :prenom, :sexe, :contrat, :jourEntree, :jourEntreeRH, :jourSortie, :lieu, :actif, :RHBase, :error, :errorJson)");
|
|
|
+ . "(idProweb, loginId, loginIdRH, nom, prenom, sexe, contrat, dateNaissance, jourEntree, jourEntreeRH, jourSortie, lieu, actif, RHBase, error, errorJson) "
|
|
|
+ . "VALUES (:idProweb, :loginId, :loginIdRH, :nom, :prenom, :sexe, :contrat, :dateNaissance, :jourEntree, :jourEntreeRH, :jourSortie, :lieu, :actif, :RHBase, :error, :errorJson)");
|
|
|
db::bind(':idProweb', $final["idProweb"]);
|
|
|
db::bind(':loginId', $final["loginId"]);
|
|
|
db::bind(':loginIdRH', $final["loginIdRH"]);
|
|
|
@@ -83,6 +85,7 @@ if (core::ifPost("from") AND core::getPost("from") == $name["files"]) {
|
|
|
db::bind(':prenom', $final["prenom"]);
|
|
|
db::bind(':sexe', $final["sexe"]);
|
|
|
db::bind(':contrat', $final["contrat"]);
|
|
|
+ db::bind(':dateNaissance', $final["dateNaissance"]);
|
|
|
db::bind(':jourEntree', $final["jourEntree"]);
|
|
|
db::bind(':jourEntreeRH', $final["jourEntreeRH"]);
|
|
|
db::bind(':jourSortie', $final["jourSortie"]);
|