$case_array = $AttributeChangerData['case_array'];
$Session = $attribute_changer->Current_Session;
if (isset($_POST['New_Entry_Form_Submitted'])) {
    if (!Build_New_Entry_Email_List()) {
        die;
    }
}
if (isset($_POST['New_Entries_Table_Submit_All']) && $_POST['New_Entries_Table_Submit_All'] === 'New_Entries_Table_Submit_All') {
    //$GLOBALS['plugins']['AttributeChangerPlugin']->Retreive_And_Unserialize();
    include_once $PLUGIN_FILES_DIR . 'Display_Functions.php';
    include_once $PLUGIN_FILES_DIR . 'Display_Adjustment_Functions.php';
    if (Initialize_Modify_Entries_Display() == null) {
        include_once $PLUGIN_FILES_DIR . 'New_And_Modify_Entry_Processor.php';
        Process_All_New_And_Modify();
    } else {
        $HTML_TO_DISPLAY = BuildModifyEntryDom()->saveHTML();
        print '<html><body><script src="' . $javascript_src . '"></script>' . $HTML_TO_DISPLAY . '</body></html>';
    }
}
if (isset($_POST['New_Entry_Change_Display_Amount']) && $_POST['New_Entry_Change_Display_Amount'] == 'New_Entry_Change_Display_Amount') {
    print "HUUUUUUR";
    $new_display_amounts = $AttributeChangerData['displayAmounts'];
    if (isset($_POST['New_Entries_New_Display_Amount'])) {
        if (!isset($new_display_amounts[$_POST['New_Entries_New_Display_Amount']]) || $new_display_amounts[$_POST['New_Entries_New_Display_Amount']] != true) {
        } else {
            include_once $PLUGIN_FILES_DIR . 'Display_Adjustment_Functions.php';
            if (New_Entry_Change_Display_Amount($_POST['New_Entries_New_Display_Amount']) != true) {
                print "<br>ARRRRRK<br>";
            } else {
                print '<br>' . $Session->Current_New_Entries_Display_Amount . '<br>';
            }
    print '<br>GGGGG<br>';
    //print_r($attribute_changer->Current_Session);
    Process_Pending_Attributes_Form();
    if ($attribute_changer->Current_Session->column_match_good == false) {
        print '<html><body>' . $print_html . '</body></html>';
        $attribute_changer->Serialize_And_Store();
        die;
    }
    if (Initialize_New_Entries_Display() != null) {
        $display_html = BuilNewEntryDom()->saveHTML();
        $attribute_changer->Serialize_And_Store();
        //print_r($attribute_changer->Current_Session->New_Entry_List);
        print $display_html;
    } else {
        if (Initialize_Modify_Entries_Display() != null) {
            $display_html = BuildModifyEntryDom()->saveHTML();
        } else {
            $display_html = $display_html . 'There is nothing new or to modify</body></html>';
        }
        print $display_html;
    }
    print '<br>';
    //print_r($attribute_changer->Current_Session->New_Entry_List);
    print '<br>';
    print "HERE1";
    // print_r($attribute_changer->Current_Session->all_pending_attributes_and_emails);
    $attribute_changer->Serialize_And_Store();
    print "HERE2";
}
if (isset($_POST['New_Entry_Form_Submitted'])) {
    $attribute_changer->Retreive_And_Unserialize();