// else if ($ArrayWithInfoOE[$j] == "DriveLicense") // { // $ArrayWithInfoOE[$j] = "Έχει άδεια οδήγησης"; // } // $k++; // } // else // { // continue; // } // } // echo "ArrayWithInfoOE After: <br>"; // print_r($ArrayWithInfoOE); //// echo "<br><br>"; include 'CheckTextBoxes.php'; $CTB = new CheckTextBoxes(); if ($ArrayOfTitles[0] == "id") { $CTB->CheckTextBox($ArrayWithOldValues[1], $ArrayWithOldValues[2], $ArrayWithOldValues[3], $ArrayWithOldValues[4], $ArrayWithOldValues[5], $ArrayWithOldValues[6], $ArrayWithOldValues[7], $ArrayWithOldValues[8], $ArrayWithOldValues[9], $ArrayWithOldValues[10], $ArrayWithOldValues[11], $ArrayWithOldValues[12], $ArrayWithOldValues[13], $ArrayWithOldValues[14], $ArrayWithOldValues[15], $ArrayWithOldValues[16], $ArrayWithOldValues[17], $ArrayWithOldValues[18], $ArrayWithOldValues[19], $ArrayWithOldValues[20], $ArrayWithOldValues[21], $ArrayWithOldValues[22], $ArrayWithOldValues[23], $ArrayWithOldValues[24]); } if ($CTB->failed == true) { echo '<span style="color:red;text-align:center;">Αποτυχία αποθήκευσης!!Οι λόγοι που συνέβαλαν στην εμφάνιση του προβλήματος αυτό είναι οι εξής:</span>' . "<br>" . "<br>"; if ($CTB->AgeFailed == true) { echo '<span style="color:red;text-align:center;">Το πεδίο Ηλικία πρέπει να είναι από 18 έως 80</span>' . "<br>"; } if ($CTB->EmailFormFailed == true) { echo '<span style="color:red;text-align:center;">Το πεδίο Email πρέπει να έχει οπωσδήποτε ένα σύμβολο "@" και "."</span>' . "<br>"; } if ($CTB->NumberIdentificationEmployeeFailed == true) { echo '<span style="color:red;text-align:center;">Το πεδίο Αριθμό μητρώου εργαζομένου πρέπει να είναι 6 ψηφία</span>' . "<br>"; } if ($CTB->NumberIdentificationIKAFailed == true) {
for ($i = 0; $i < $CountKenaOfVariableName; $i++) { $ProthikiKenonForVariableName = $ProthikiKenonForVariableName . " "; } $name = str_replace($ProthikiKenonForVariableName, " - ", $name); } else { } if ($CountKenaOfVariableSurname > 0) { for ($i = 0; $i < $CountKenaOfVariableSurname; $i++) { $ProthikiKenonForVariableSurname = $ProthikiKenonForVariableSurname . " "; } $surname = str_replace($ProthikiKenonForVariableSurname, " - ", $surname); } else { } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// include 'CheckTextBoxes.php'; $CTB = new CheckTextBoxes(); $CTB->CheckTextBox($surname, $name, $NameOfFather, $NameOfMother, $Address, $Phone, $DateOfBorn, $Age, $PoliceID, $AMKA, $NumberIdentificationIKA, $AFM, $Situation, $RelationshipOfWork, $DateOfUptake, $Service, $Section, $Node, $Specialty, $GradeSelection, $NumsFor0To6, $Email, $NumberIdentificationEmployee); // echo "Κάρτα POL(Before): ".$CardPOL."<br>"; if ($CardPOL == "CardPOL") { $CardPOL = "Έχει κάρτα POL"; } else { $CardPOL = "Δεν έχει κάρτα POL"; } $DriveLicense = $_POST['DriveLicenseCB']; // echo "Άδεια οδήγησης οχήματος(Before): ".$DriveLicense."<br>"; if ($DriveLicense == "DriveLicense") { $DriveLicense = "Έχει άδεια οδήγησης"; } else { $DriveLicense = "Δεν έχει άδεια οδήγησης"; } // echo "Άδεια οδήγησης οχήματος(After): ".$DriveLicense."<br>";