function JB_template_email_job() { global $label, $error, $post_id, $your_email, $your_name, $to_email, $message, $to_email, $JBMarkup; JBPLUG_do_callback('email_job_before', $A = false); require_once dirname(__FILE__) . "/posts.inc.php"; $JobListAttributes = new JobListAttributes(); $JobListAttributes->clear(); if (file_exists(JB_THEME_PATH . 'email-job-form.php')) { require JB_THEME_PATH . 'email-job-form.php'; } else { require JB_DEFAULT_THEME_PATH . 'email-job-form.php'; } JBPLUG_do_callback('email_job_after', $A = false); }
$anon_q = 'a=' . $is_anon; $key = substr(md5($is_anon . $resume_row['resume_id'] . $user_row['Password'] . $user_row['ID']), 0, 10); $key_q = $anon_q . '&resume_id=' . $resume_row['resume_id'] . '&id=' . $user_row['ID'] . '&key=' . $key; $resume_db_link = JB_BASE_HTTP_PATH . JB_EMPLOYER_FOLDER . "search.php?" . $key_q; } else { $resume_db_link = $label["app_resume_notpres"]; } //$app_name = $PForm->get_value('app_name'); //$app_email = $PForm->get_value('app_email'); $e_row = mysql_fetch_array($e_result, MYSQL_ASSOC); $text_message = $e_row['EmailText']; $text_message = str_replace("%SITE_CONTACT_EMAIL%", JB_SITE_CONTACT_EMAIL, $text_message); $text_message = str_replace("%SITE_NAME%", JB_SITE_NAME, $text_message); $text_message = str_replace("%BASE_HTTP_PATH%", JB_BASE_HTTP_PATH, $text_message); $JobListAttributes = new JobListAttributes(); $JobListAttributes->clear(); $text_message = str_replace("%POST_URL%", JB_job_post_url($post_id, $JobListAttributes, JB_BASE_HTTP_PATH . 'index.php'), $text_message); $text_message = str_replace("%POSTED_BY%", $POSTED_BY, $text_message); $text_message = str_replace("%EMPLOYER_EMAIL%", $EMAIL, $text_message); $text_message = str_replace("%JOB_TITLE%", $TITLE, $text_message); $text_message = str_replace("%APP_NAME%", $app_name, $text_message); $text_message = str_replace("%APP_EMAIL%", $app_email, $text_message); $text_message = str_replace("%POST_ID%", $post_id, $text_message); $text_message = str_replace("%APP_SUBJECT%", $app_subject, $text_message); $text_message = str_replace("%APP_LETTER%", $app_letter, $text_message); $text_message = str_replace("%APP_ATTACHMENT1%", $_FILES['att1']['name'], $text_message); $text_message = str_replace("%APP_ATTACHMENT2%", $_FILES['att2']['name'], $text_message); $text_message = str_replace("%APP_ATTACHMENT3%", $_FILES['att3']['name'], $text_message); $CandidateEmailMessage = $text_message; $text_message = str_replace("%RESUME_DB_LINK%", $resume_db_link, $text_message); $PForm->reset_fields();