[insert_php] if( isset($_POST[“ts”]) )
{
if($_POST[“act”]===”personinfo”)
{
$details = TritonX_getUser(“10”, “”, $_POST[“tu”], $_POST[“ts”]);
$result = TritonX_updateUser(“10”, “”, $_POST[“tu”], $_POST[“ts”],
$_POST[“tr”],
$_POST[“surname”],
$_POST[“middlename”],
$_POST[“lastname”],
$_POST[“gender”],
DateTime::createFromFormat(‘d-m-Y’, $_POST[“date_of_birth”])->format(‘c’),
$_POST[“email_address”],
$_POST[“phone_number”],
$_POST[“mobile_number”],
$details[“User”][0]->addresses );
}
else if($_POST[“act”]===”wwchange”)
{
$result = TritonX_changePassword(“10”, “”, $_POST[“tu”], $_POST[“ts”],
$_POST[“cp”],
$_POST[“np”] );
}
else if($_POST[“act”]===”addresschange”){
$adresses = [];
foreach($_POST as $key => $value) {
if (strpos($key, ‘address-name-‘) === 0) {
$adressRow = str_replace(“address-name-“,””,$key);
if( isset($_POST[“address-id-“.$adressRow]) ){
$address = array(
“street_name”=>$_POST[“address-name-“.$adressRow],
“street_number”=>$_POST[“address-number-“.$adressRow],
“zip”=>$_POST[“address-zip-“.$adressRow],
“city”=>$_POST[“address-city-“.$adressRow],
“country”=>$_POST[“address-country-“.$adressRow],
“address_id”=>$_POST[“address-id-“.$adressRow] );
array_push( $adresses, $address);
} else {
$address = array(
“street_name”=>$_POST[“address-name-“.$adressRow],
“street_number”=>$_POST[“address-number-“.$adressRow],
“zip”=>$_POST[“address-zip-“.$adressRow],
“city”=>$_POST[“address-city-“.$adressRow],
“country”=>$_POST[“address-country-“.$adressRow] );
array_push( $adresses, $address);
}
}
}
$details = TritonX_getUser(“10”, “”, $_POST[“tu”], $_POST[“ts”]);
$result = TritonX_updateUser(“10”, “”, $_POST[“tu”], $_POST[“ts”],
$_POST[“tr”],
$details[“User”][0]->surname,
$details[“User”][0]->middlename,
$details[“User”][0]->lastname,
$details[“User”][0]->gender,
$details[“User”][0]->date_of_birth,
$details[“User”][0]->email_address,
$details[“User”][0]->phone_number,
$details[“User”][0]->mobile_number,
$adresses );
}
else if($_POST[“act”]===”deleteAddress”){
$result = TritonX_deleteAddress(“10”, “”, $_POST[“tu”], $_POST[“ts”], $_POST[“tr”], $_POST[“sa”] );
}
$details = TritonX_getUser(“10”, “”, $_POST[“tu”], $_POST[“ts”]);

$user_id = $_POST[“tu”];
$session_id = $_POST[“ts”];
$role_id = $_POST[“tr”];

echo ‘

‘;
} else if( isset($_POST[“gebruikersnaam”]) )
{
$result = TritonX_authenticate($_POST[“gebruikersnaam”], $_POST[“wachtwoord”]);
if($result[“return_status”] === “SUCCESS”) {
$details = TritonX_getUser(“10”, $_POST[“gebruikersnaam”],
$result[“user_id”],$result[“session_id”]);$transactions = TritonX_getTransactions(“10”, $_POST[“gebruikersnaam”],
$result[“user_id”],$result[“session_id”]);

$user_id = $result[“user_id”];
$session_id = $result[“session_id”];
}
echo ‘

‘;
} else {
echo ‘

‘;
}
[/insert_php]
Gebruikersnaam
Wachtwoord
[insert_php] if( isset($_POST[“gebruikersnaam”]) || isset($_POST[“ts”]))
{
if($result[“return_status”] === “SUCCESS”) {

echo ”

“;
echo “”;
echo ”

“;
echo ”

Persoon gegevens

“;
echo ”

“;
echo ““;
echo ““;
echo ““;
echo ““;
echo “”; echo “”; echo “”;
echo “”;
echo “”;
echo “”; echo “”;
echo “”;
echo “”;
echo “”; echo “”;
echo “”;
echo “”;
echo “”; echo “”;
echo “”;
echo “”;
echo “”; echo “”;
echo “”;
echo “”; echo “”;
echo “”;
echo “”;
echo “”; echo “”;
echo “”;
echo “”;
echo “”; echo “”;
echo “”;
echo “”;
echo ”

Voornaam
Tussenvoegsel
Achternaam
Geslacht
Geboortedatum
Email
Telefoon
Mobiel

“;
echo ““;
echo ”

“;

echo “

“;

echo ”

Wachtwoord wijzigen

“;
echo ”

“;
echo ““;
echo ““;
echo ““;
echo ““;
echo “”; echo “”; echo “”;
echo “”;
echo “”;
echo “”; echo “”;
echo “”;
echo “”;
echo ”

Huidig wachtwoord
Nieuw wachtwoord

“;
echo ““;
echo ”

“;

echo “

“;

echo ”


“;
echo ”

Adres gegevens

“;
echo ”

“;
echo ““;
echo ““;
echo ““;
echo ““;
echo ““;
echo ““;
echo “”; echo “”; echo “”; echo “”;
echo “”;
echo “”;
echo “”;
echo “”;
echo “”;
echo “”;
echo “”;
echo “”;
echo “”; $idx = 0; foreach ( $details[“User”][0]->addresses as $address) { $idx = $idx+1; echo ” “; echo “”; echo “”;
echo “”;
echo “”;
echo “”;
echo “”;
echo “”;
echo “”;
}
echo “”;
echo ”

Straat Huisnr Postcode Woonplaats Land
Adres verwijderen

“;
echo ““;
echo ““;
echo ”

“;

echo ”


“;
echo ”

Transacties

“;
echo ”

“; echo “”; echo “”;
echo “”;
echo “”;
echo “”;
foreach ($transactions[“transactions”] as $transaction) {
echo “$value
“;
echo “”; echo “”;
echo “”;
echo “”;
echo “”;
}
echo ”

Datum Bon Nr. Bedrag
“.$transaction->transaction_date.” “.$transaction->transaction_receipt_id.” “.$transaction->transaction_value.”

“;
} else {
echo “Gebruikersnaam is niet bekend, of wachtwoord id verkeerd.”;
}
}
[/insert_php]

Klant gegevens – Veja – Fashion Factory