} if ($applicant->save()) { # Get application history $sql_app = "SELECT * FROM `app_histories` WHERE `application_no`='" . $application_no . "' LIMIT 1"; $application_histories = AppHistory::find_by_sql($sql_app); $application_history = array_shift($application_histories); # Update app_histories table $app_history = new AppHistory(); $app_history->db_fields = array('application_flag', 'receiving_address', 'created_at', 'updated_at', 'app_visible'); $app_history->id = $application_history->id; $app_history->receiving_address = $receiving_address; $app_history->application_flag = 1; $app_history->created_at = $date_now; $app_history->updated_at = $date_now; $app_history->app_visible = 1; if ($app_history->save()) { doSleep(2); echo '<h4 class="alert alert-success">Success</h4>'; echo '<hr>'; echo 'Your have successfully submitted your transcript application.<br>'; echo 'Please use the <span class="label label-info">Check Status</span> link in the <span class="label label-info">Transcript Activity</span> menu to see the status of your application'; echo '<hr>'; echo '<a href="home.php" class="btn btn-primary">Proceed</a>'; } else { $error_message = 1; } } else { $error_message = 1; } } else { $error_message = 1;
$adm->payment_code = $RRR; $adm->reg_num = $application_no; $adm->pin = $orderId; $adm->full_name = $user->full_name; # Save record into adm_access_code table $adm->save(); # ------------- Update app_histories table ---------------------------- # Instance of AppHistory $application_history = new AppHistory(); $application_history->application_no = $application_no; $application_history->applicant_id = $session->id; $application_history->type_id = $type_id; $application_history->mode_id = $mode_id; $application_history->city_or_state = $city_or_state; # Save record into app_histories table $application_history->save(); } ?> <h4><p class="label label-info">Payment Confirmation for Transcript Form</p></h4> <table class="table table-hover table-striped table-bordered"> <thead> <tr class="rowlink"> <td>Name</td> <td><?php echo $user->full_name; ?> </td> </tr> </thead> <tbody data-provides="rowlink"> <tr>