" target="_blank"> |
Staff and Customer Administration |
|
|
Sorry, as a guest you don't have permission for entering new data! If you want to search for existing DNA data please use the Search function! | "; }
else { ?>
Please make use of search function before entering new person. |
Person |
0) {
$sqlupdate = "UPDATE people SET FormOfAddress = '$formFormOfAddress', Title = '$formTitle', Forename = '$formForename', Surname = '$formSurname', Name_All = '$Name_All', Phone = '$formPhone', Email = '$formEmail', Remarks = '$formNotes', Institut = '$formInstitut', Division = '$formDivision', Street = '$formStreet', City = '$formCity', Postal_Code = '$formPostal_Code', Country = '$formCountry', Institut_Delivery = '$formInstitut2', Division_Delivery = '$formDivision2', Street_Delivery = '$formStreet2', City_Delivery = '$formCity2', Postal_Code_Delivery = '$formPostal_Code2', Country_Delivery = '$formCountry2', Staff = '$formStaff', Provider = '$formProvider', Customer = '$formCustomer2', Updated_When = '$Current_Date', Updated_Who = '$log' WHERE Email = '$formEmail'";
$resultupdate = mysqli_query($GLOBALS["___mysqli_ston"], $sqlupdate);
###############################################Error resultupdate####################################################
if(!$resultupdate)
{
$msg = $sqlupdate."\n";
$msg .= "####Error resultupdate####";
if($debug == '1') echo $msg;
trigger_error($msg, E_USER_ERROR);
include ("../config/Errorreport.php");
$error = "true"; }
#########################################################################################################
}
else {
$sqlinsert = "INSERT INTO people (FormOfAddress, Title, Forename, Surname, Phone, Email, Remarks, Name_All, Institut, Division, Street, City, Postal_Code, Country, Institut_Delivery, Division_Delivery, Street_Delivery, City_Delivery, Postal_Code_Delivery, Country_Delivery, Staff, Provider, Customer, Created_Who) VALUES ('$formFormOfAddress','$formTitle','$formForename','$formSurname','$formPhone','$formEmail','$formNotes','$Name_All','$formInstitut','$formDivision','$formStreet','$formCity','$formPostal_Code','$formCountry','$formInstitut2','$formDivision2','$formStreet2','$formCity2','$formPostal_Code2','$formCountry2','$formStaff','$formProvider','$formCustomer2','$log')";
$resultinsert = mysqli_query($GLOBALS["___mysqli_ston"], $sqlinsert);
###############################################Error insert2####################################################
if(!$resultinsert)
{
$msg = $sqlinsert."\n";
$msg .= "####Error insert2####";
if($debug == '1') echo $msg;
trigger_error($msg, E_USER_ERROR);
include ("../config/Errorreport.php");
$error = "true"; }
#########################################################################################################
}
}
build_select_list("formPeople",
"SELECT DISTINCT ID_People, Name_All FROM people
ORDER BY Name_All", $formPeople); ?> |
| |
";
include("../config/DataSaved.php");
echo " | "; }
if($formSubmitPreview or $formSubmitEditView or $formSubmitSave2) {
$sql = "SELECT * from people WHERE ID_People = '$formPeople'";
$result = mysqli_query($GLOBALS["___mysqli_ston"], $sql);
while($row = mysqli_fetch_object($result)) {
echo '';
if($formSubmitEditView) { echo ''; }
echo ' ';
if($formSubmitEditView) { echo ' '; }
echo ' | ';
}
}
if(!$formSubmitEditView) { ?>
Add new Person | > |
|
|
After finishing close this window and reload the other site. | |