FrontendBook.updateServiceDescription($('#select-service').val(), $('#service-description'));
}); /**
* Event: Next Step Button "Clicked" $this->load->view('appointments/book_success', $view); if($this->input->post('submit2'))
{
$post_waiting = json_decode($_POST['post_waiting'], true);
$waitinglist = $post_waiting['appointment'];
$this->load->model('appointments_model');
$this->appointments_model->waitinglist_to_db($waitinglist);
$this->load->view('appointments/waiting_success', $view);//return to book view
} else {
$this->load->view('appointments/book_success', $view);
} public function waitinglist_to_db($waitinglist) {
$waitinglist['book_datetime'] = date('Y-m-d H:i:s');
$waitinglist['hash'] = $this->generate_hash();
$waitinglist['is_unavailable'] = true;
if (!$this->db->insert('ea_appointments', $waitinglist)) {
throw new Exception('Could not insert waitinglist record.');
}
return intval($this->db->insert_id());
}$lang['cell_carrier'] = 'For text reminders, select cell carrier:';
$lang['waitinglist_registered'] = 'Waiting List';
$lang['waitinglist_details'] = 'You have been added to the waiting list for the next 30 days. To unsubscribe use the unsubscribe link included on your eamil notices. ';
$lang['return_to_book'] = 'Return to Booking';If you can see problems with my code or have suggestions to improve it let me know (that is if you can tell me how to code it better, not made to order requests). I am not a coder and am learning as I go so if I am making gross errors please tell me.