' /> ' /> prefix . "ap_appointments"; $appointmentdetails="SELECT * FROM $table_name WHERE `id` ='$appointmentid'"; $appointmentdetails = $wpdb->get_row($appointmentdetails); //echo ?>
Dear ".ucwords($name).".
Your appointment has been $status by admin..
Your Appointment Details As:Thank You!!!
"; $AdminEmailDetails = unserialize(get_option('emaildetails')); $recipent_email = $email; //send notification & chech mail type if(get_option('emailtype') == 'wpmail') { $wpmail_body_for_recipent = " Dear ".ucwords($name).", Your appointment has been $status by admin. Your Appointment Details As: Appointment For: ".ucwords($ServiceData->name)." Appointment Note: $note Appointment Status: $status Appointment Date: $appointmentdate Appointment Time: $start_time To $end_time Appointment Key: $GetAppKey->appointment_key Thank You!!! "; $admin_email = $AdminEmailDetails['wpemail']; $headers[] = "From: Admin <$admin_email>"; //recipent mail wp_mail( $recipent_email, $subject_to_recipent, $wpmail_body_for_recipent, $headers, $attachments = '' ); } if(get_option('emailtype') == 'phpmail') { $phpmail_body_for_recipent = " Dear ".ucwords($name).", Your appointment has been $status by admin. Your Appointment Details As: Appointment For: ".ucwords($ServiceData->name)." Appointment Note: $note Appointment Status: $status Appointment Date: $appointmentdate Appointment Time: $start_time To $end_time Appointment Key: $GetAppKey->appointment_key Thank You!!! "; $admin_email = $AdminEmailDetails['phpemail']; $headers = "From: Admin <$admin_email>" . //client mail mail($recipent_email, $subject_to_recipent, $phpmail_body_for_recipent, $headers); } if(get_option('emailtype') == 'smtp') { $admin_email = $AdminEmailDetails['smtpemail']; include('notification/Email.php'); echo $admin_email = $AdminEmailDetails['smtpemail']; echo $hostname = $AdminEmailDetails['hostname']; echo $portno = $AdminEmailDetails['portno']; echo $smtpemail = $AdminEmailDetails['smtpemail']; echo $password = $AdminEmailDetails['password']; echo $recipent_email = $email; $Email = new Email; $Email->notifyclient($hostname, $portno, $smtpemail, $password, $admin_email, $recipent_email, $subject_to_recipent, $body_for_recipent, $BlogName); } }// end of update check //redirect to updated appointment details page echo ""; }// end of if query }// end of isset ?> prefix . "ap_appointments"; $appdetails="SELECT * FROM $table_name WHERE `id` ='$appid'"; $appdetails = $wpdb->get_row($appdetails); ?>| Name | : | name); ?> |
|---|---|---|
| : | email; ?> | |
| Service | : | service_id; $table_name = $wpdb->prefix . "ap_services"; $servicedetails= $wpdb->get_row("SELECT * FROM $table_name WHERE `id` ='$appdetails->service_id'"); echo ucwords($servicedetails->name); ?> |
| Phone | : | phone; ?> |
| Start Time | : | start_time)); ?> |
| End Time | : | end_time)); ?> |
| Date | : | date; ?> |
| Description | : | note); ?> |
| Appointment Key | : | appointment_key; ?> |
| Status | : | status); ?> |
| Appointment By | : | appointment_by); ?> |
| Back |