$TransactionAmount = $resultarray["Amount"];
    $TransactionNotes = $resultarray["Notes"];
    $TransactionSubmit = "Edit transaction";
}
if (sizeof($resultarray) > 0 || $FlagNew == True) {
    echo "<div class='container'>";
    echo "<form id='Transaction' class='form-transaction' method='post' action = 'insert.php'\r\n                onsubmit='return confirm_if_not_present_in_datalist(\"Payee\",\"PayeeList\",\"Do you want to add the new payee\")'>";
    echo "<h3 class='text_align_center'>{$TransactionHeaderText}</h3>";
    echo "<br />";
    design::input_date($TransactionDate);
    design::input_status($TransactionStatus);
    design::input_type($TransactionType);
    design::input_account($TransactionAccount);
    design::input_toaccount($TransactionToAccount);
    if (costant::disable_payee() !== True) {
        design::input_payee($TransactionPayee);
    } else {
        design::input_hidden("Payee", "None");
    }
    if (costant::disable_category() !== True) {
        design::input_category($TransactionCategory);
        design::input_subcategory($TransactionSubCategory);
    } else {
        design::input_hidden("Category", "None");
        design::input_hidden("SubCategory", "None");
    }
    design::input_amount($TransactionAmount);
    design::input_notes($TransactionNotes);
    echo "<div class='form-group'>";
    echo "<label for='fileToUpload'>Take a picture or upload attachments</label><br />";
    echo "<input type='file' name='fileToUpload' id='fileToUpload' onchange='attachment_uploadFile({$TrEditNr});' />";