‘; echo $footer; } //=== //=========== END GIVING THEM A HTML FOOTER =================+ //=== ?> body{ font-family: Arial,Helvetica Neue,Helvetica,sans-serif; font-size: 14px!important; } * { box-sizing: border-box; } .box2 { display: inline-block; width: 100%; height: auto; text-align:center; font-size:1.0em; } .box3 { font-size:1.4em; } a.redlinks { color: #000000; font-family: helvetica; text-decoration: none; text-transform: uppercase; } a.redlinks:hover { color: #000000; text-decoration: underline; } a.redlinks:active { color: black; } a.redlinks:visited { color: #000000; } labelr { text-align: right; display: block; padding: 0.5em 1.5em 0.5em 0; } a.redlinks { color: #ffffff; font-family: helvetica; text-decoration: none; text-transform: uppercase; } a.redlinks:hover { color: #000000; text-decoration: underline; } a.redlinks:active { color: black; } a.redlinks:visited { color: #ffffff; } #left { width: 50%; float: left; } ‘ ; echo $header; } headerot(); //=== //=========== END GIVING THEM A HTML HEADER =================+ //=== ?>

Why are you hitting this form from an Unauthorized URL?
Your IP Address is: ‘. $realip.’

‘; print “$error_message”; } elseif ($Code !== $code2) { $error_message .= ‘

You Failed to enter the Correct "Case Sensitive" AntiSpam Code. You entered ‘.$Code.’ and the code is ‘.$code2.’
Please hit your back button and try again

‘; print “$error_message”; } elseif (!isset($Name) || !isset($mt_email) ) { $error_message .= ‘

Somehow you have managed to get past most of our validation.
Please check your name field and/or email field

‘; print “$error_message”; footerot(); //============================================================+ // START SEND EMAIL TO ADMIN THAT A FAILURE HAS OCCURED //============================================================+ function emailadminalert ($IPaddress){ require_once(‘PHPMailer.php’); //where your phpmailer folder is $mail4 = new PHPMailer(); $mail4->IsHTML(true); $mail4->CharSet = “text/html; charset=UTF-8;”; $mail4->From = “noreply@treelandresorts.com”; $mail4->FromName = “noreply”; $mail4->AddAddress(“webmaster@oldcabin.net”); $mail4->AddReplyTo(“noreply@treelandresorts”); $mail4->Subject = “Someone has Errored Treeland Employment Script “; $mail4->Body = ” Someone has errored on treelands employment script
IP addy: $IPaddress
“; # if(!$mail4->Send()) { // echo “ERROR: Message could not be sent.

“; // echo “Mailer Error: ” . $mail->ErrorInfo; } else { // echo “Message sent $rrrrrr”; } } emailadminalert ($IPaddress); //============================================================+ // END SEND EMAIL TO ADMIN THAT A FAILURE HAS OCCURED //============================================================+ // exit(); } else { //============================================================+ // PROCEED AND GO FURTHER //============================================================+ ?> = 0; $t–) { $a = floor($num / pow($base,$t)); $out = $out.substr($index,$a,1); $num = $num-($a*pow($base,$t)); } return $out; } //echo struuid(false); //Return sample: F4518NTQTQ //echo struuid(true); //Return sample: F451FAHSUCD90N6YNRBQHLZ9E1W $picid = struuid(true); //=== //=========== END SET THE PIC ID FOR UPLOADS AND THEIR CODE =================+ //=== ?> $value) { // $file_tmpname = $_FILES[‘files’][‘tmp_name’][$key]; // $file_name2 = $_FILES[‘files’][‘name’][$key]; $i = 0; foreach($_FILES[“files”][“tmp_name”] as $key=>$tmp_name){ $temp = $_FILES[“files”][“tmp_name”][$key]; $name = $_FILES[“files”][“name”][$key]; $file_name2 = $_FILES[‘files’][‘name’][$key]; $i++; # $file_name = “$picid-$i”; $file_size = $_FILES[‘files’][‘size’][$key]; $file_ext = pathinfo($file_name2, PATHINFO_EXTENSION); $newFilename = $picid . ” . -$i . ‘.’ . $file_ext; $newFilenamep[$i] = $picid . ” . -$i . ‘.’ . $file_ext; $newFilenamepext[$i] = $file_ext; $file_sizep[$i] = $file_size; # print “$newFilenamepext[$i]
“; // print “$newFilename
“; # print “$newFilenamep[$i]
“; // print “$name
“; if(empty($temp)) { break; } $counter++; $UploadOk = true; if($_FILES[“files”][“size”][$key] > $totalBytes) { $UploadOk = false; array_push($errors, $name.” is greater than than the 6.5 MB Limit. Please resize this file, hit your back button, and reselct this file.”); } $ext = pathinfo($name, PATHINFO_EXTENSION); if(in_array($ext, $extension) == false){ $UploadOk = false; array_push($errors, $name.” is invalid file type.”); } if(file_exists($UploadFolder.”/”.$name) == true){ $UploadOk = false; array_push($errors, $name.” file is already exist.”); } if($UploadOk == true){ // move_uploaded_file($temp,$UploadFolder.”/”.$name); move_uploaded_file($temp,$UploadFolder.”/”.$newFilenamep[$i]); array_push($uploadedFiles, $name); } } if($counter>0){ if(count($errors)>0) { echo “Errors:“; echo “

    “; foreach($errors as $error) { echo “
  • “.$error.”
  • “; } echo “

“; footerot(); exit(); } ?>
0){ echo “Uploaded Files:“; echo “
    “; $b = 0; foreach($uploadedFiles as $fileName) { $b++; echo “
  1. “.$fileName.”
  2. “; # echo “
  3. Orig FIle Size “.$file_sizep[$b].”
  4. “; # echo “
  5. New FIlename “.$newFilenamep[$b].”
  6. “; } echo “
“; $filetotals = ($file_sizep[1] + $file_sizep[2] + $file_sizep[3] + $file_sizep[4] + $file_sizep[5]); # echo ” File totals “.$filetotals.”
“; # echo ” Total Bytes “.$totalBytes.”
“; echo count($uploadedFiles).” file(s) are successfully uploaded.

“; ?>

THANK YOU FOR SUBMITTING YOUR EMPLOYMENT APPLICATION

CHECK YOUR EMAIL!
the email was sent to $mt_email

“; // echo “Download your copy of this Agreement here
“; echo “
Your Submission ID: $picid
Use this number when referencing this submission.


“; $fileswarning = “”; $fileswarningadmin = “”; # if ($file_ext ==””) { # echo “

You didn’t upload your WA DVM record.
Make sure you get it to us by “. $weekdate .”
You can get your report here www.dol.wa.gov/driverslicense/requestyourrecord.html

Once you get your report you can email it to driving.reports@treelandresorts.com


“; # $fileswarning = “

You didn’t upload your WA DVM record.
Make sure you get it to us by “. $weekdate .”
You can get your report here www.dol.wa.gov/driverslicense/requestyourrecord.html

Once you get your report you can email it to driving.reports@treelandresorts.com


“; # $fileswarningadmin = “

They didn’t upload their WA DVM record.



“; # } ?>
SetCreator(PDF_CREATOR); $pdf->SetAuthor(‘Oldcabin’); $pdf->SetTitle(‘Treeland Resorts’); $pdf->SetSubject(‘New Employee Application’); $pdf->SetKeywords(‘Application’); $pdf->SetPrintHeader(false); $pdf->SetPrintFooter(true); // set default header data $pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.’ 021′, PDF_HEADER_STRING); // $pdf->SetHeaderData($PDF_HEADER_LOGO, $PDF_HEADER_LOGO_WIDTH, $PDF_HEADER_TITLE, $PDF_HEADER_STRING); // set header and footer fonts $pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, ”, PDF_FONT_SIZE_MAIN)); $pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, ”, PDF_FONT_SIZE_DATA)); // set default monospaced font $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); // set margins $pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP-15, PDF_MARGIN_RIGHT); $pdf->SetHeaderMargin(PDF_MARGIN_HEADER); $pdf->SetFooterMargin(PDF_MARGIN_FOOTER); // set auto page breaks $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); // set image scale factor $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) if (@file_exists(dirname(__FILE__).’/lang/eng.php’)) { require_once(dirname(__FILE__).’/lang/eng.php’); $pdf->setLanguageArray($l); } // set font $pdf->SetFont(‘helvetica’, ”, 10); // add a page $pdf->AddPage(); // ============== BEGIN LOGIC FOR CREATING IMAGES IN PDF ================= // // ——————————————————— $pdficon1= ”; $pdficonURL1 = ”; $pdficonURL2 = ”; $pdficonURL3 = ”; $pdficonURL4 = ”; $pdficonURL5 = ”; // create some HTML content $ext1 = $newFilenamepext[1]; $ext2 = $newFilenamepext[2]; $ext3 = $newFilenamepext[3]; $ext4 = $newFilenamepext[4]; $ext5 = $newFilenamepext[5]; $img1 = $newFilenamep[1]; $img2 = $newFilenamep[2]; $img3 = $newFilenamep[3]; $img4 = $newFilenamep[4]; $img5 = $newFilenamep[5]; If ($ext1 == ‘pdf’) { $checkicon1= ‘PDF ‘; //$pdficon1= ‘‘; // $pdficonURL1 = ‘Download‘; } elseIf ($ext1 == ‘jpg’) { $checkicon1= ‘JPG ‘; // $pdficon1= ‘
‘; $pdficon1= ‘ ‘; // $pdficonURL1 = ‘Download‘; } elseIf ($ext1 == ”) { $checkicon1= ‘Not Submitted’; } If ($ext2 == ‘pdf’) { $checkicon2= ‘PDF ‘; //$pdficon2= ‘‘; // $pdficonURL2 = ‘Download‘; } elseIf ($ext2 == ‘jpg’) { $checkicon2= ‘JPG ‘; // $pdficon2= ‘
‘; $pdficon2= ‘ ‘; // $pdficonURL2 = ‘Download‘; } elseIf ($ext2 == ”) { $checkicon2= ‘
Not Submitted’; } If ($ext3 == ‘pdf’) { $checkicon3= ‘PDF ‘; } elseIf ($ext3 == ‘jpg’) { $checkicon3= ‘JPG ‘; $pdficon3= ‘ ‘; } elseIf ($ext3 == ”) { $checkicon3= ‘
Not Submitted’; } // ============== END LOGIC FOR CREATING IMAGES IN PDF ================= // # ———— begin create download html for admin —————- # $htmladmin = ‘




Sign-up ID: ‘.$picid.’

 
Form I-9      ‘.$checkicon1.’ Social Security Card      ‘.$checkicon2.’ Drivers License      ‘.$checkicon3.’
‘.$pdficonURL1.’
‘.$pdficon1.’
‘.$pdficonURL2.’
‘.$pdficon2.’
‘.$pdficonURL3.’
‘.$pdficon3.’

 

HAVE YOU SAVED ALL THE ATTACHEMENTS FROM THE EMAIL?
IF YES, DELETE THE FILES FROM THE SERVER BY PRESSING THIS BUTTON


 
‘; # ———— end create download html for admin —————- # # ———— begin html for client and admin —————- # $SSS=”    “; $MMM=”    “; if ($feed_Single != “” ) { $SSS=”X“; } if ($feed_Married != “” ) { $MMM=”X“; } if ( ($feed_Mon_BOATHOUSE || $feed_Tues_BOATHOUSE || $feed_Wed_BOATHOUSE || $feed_Thurs_BOATHOUSE || $feed_Fr_BOATHOUSE || $feed_Sat_BOATHOUSE || $feed_Sun_BOATHOUSE || $feed_ANY_BOATHOUSE ) != “” ) { $boathouse = “BOATHOUSE STAFF:
$feed_Mon_BOATHOUSE     $feed_Tues_BOATHOUSE     $feed_Wed_BOATHOUSE     $feed_Thurs_BOATHOUSE     $feed_Fr_BOATHOUSE     $feed_Sat_BOATHOUSE     $feed_Sun_BOATHOUSE     $feed_ANY_BOATHOUSE

“; } if ( ($feed_Mon_SPRING_GROUNDS || $feed_Tues_SPRING_GROUNDS || $feed_Wed_SPRING_GROUNDS || $feed_Thurs_SPRING_GROUNDS || $feed_Fr_SPRING_GROUNDS || $feed_Sat_SPRING_GROUNDS || $feed_Sun_SPRING_GROUNDS || $feed_ANY_SPRING_GROUNDS ) != “” ) { $springgrounds = “SPRING_GROUNDS WORK:
$feed_Mon_SPRING_GROUNDS     $feed_Tues_SPRING_GROUNDS     $feed_Wed_SPRING_GROUNDS     $feed_Thurs_SPRING_GROUNDS     $feed_Fr_SPRING_GROUNDS     $feed_Sat_SPRING_GROUNDS     $feed_Sun_SPRING_GROUNDS     $feed_ANY_SPRING_GROUNDS

“; } if ( ($feed_Mon_SUMMER_CABIN_CLEANING || $feed_Tues_SUMMER_CABIN_CLEANING || $feed_Wed_SUMMER_CABIN_CLEANING || $feed_Thurs_SUMMER_CABIN_CLEANING || $feed_Fr_SUMMER_CABIN_CLEANING || $feed_Sat_SUMMER_CABIN_CLEANING || $feed_Sun_SUMMER_CABIN_CLEANING || $feed_ANY_SUMMER_CABIN_CLEANING ) != “” ) { $summercabinssats = “SUMMER CABIN CLEANING – ALL SATURDAYS:
$feed_Mon_SUMMER_CABIN_CLEANING     $feed_Tues_SUMMER_CABIN_CLEANING     $feed_Wed_SUMMER_CABIN_CLEANING     $feed_Thurs_SUMMER_CABIN_CLEANING     $feed_Fr_SUMMER_CABIN_CLEANING     $feed_Sat_SUMMER_CABIN_CLEANING     $feed_Sun_SUMMER_CABIN_CLEANING     $feed_ANY_SUMMER_CABIN_CLEANING

“; } if ( ($feed_Mon_FALL_CABIN_CLEANING_MON_FRI || $feed_Tues_FALL_CABIN_CLEANING_MON_FRI || $feed_Wed_FALL_CABIN_CLEANING_MON_FRI || $feed_Thurs_FALL_CABIN_CLEANING_MON_FRI || $feed_Fr_FALL_CABIN_CLEANING_MON_FRI || $feed_Sat_FALL_CABIN_CLEANING_MON_FRI || $feed_Sun_FALL_CABIN_CLEANING_MON_FRI || $feed_ANY_FALL_CABIN_CLEANING_MON_FRI ) != “” ) { $fallcabinsmf = “FALL CABIN CLEANING MON-FRI:
$feed_Mon_FALL_CABIN_CLEANING_MON_FRI     $feed_Tues_FALL_CABIN_CLEANING_MON_FRI     $feed_Wed_FALL_CABIN_CLEANING_MON_FRI     $feed_Thurs_FALL_CABIN_CLEANING_MON_FRI     $feed_Fr_FALL_CABIN_CLEANING_MON_FRI     $feed_Sat_FALL_CABIN_CLEANING_MON_FRI     $feed_Sun_FALL_CABIN_CLEANING_MON_FRI     $feed_ANY_FALL_CABIN_CLEANING_MON_FRI

“; } if ( ($feed_Mon_FALL_CABIN_CLEANING_SAT_SUN || $feed_Tues_FALL_CABIN_CLEANING_SAT_SUN || $feed_Wed_FALL_CABIN_CLEANING_SAT_SUN || $feed_Thurs_FALL_CABIN_CLEANING_SAT_SUN || $feed_Fr_FALL_CABIN_CLEANING_SAT_SUN || $feed_Sat_FALL_CABIN_CLEANING_SAT_SUN || $feed_Sun_FALL_CABIN_CLEANING_SAT_SUN || $feed_ANY_FALL_CABIN_CLEANING_SAT_SUN ) != “” ) { $fallcabinsSATSUN = “FALL CABIN CLEANING SAT-SUN:
$feed_Mon_FALL_CABIN_CLEANING_SAT_SUN     $feed_Tues_FALL_CABIN_CLEANING_SAT_SUN     $feed_Wed_FALL_CABIN_CLEANING_SAT_SUN     $feed_Thurs_FALL_CABIN_CLEANING_SAT_SUN     $feed_Fr_FALL_CABIN_CLEANING_SAT_SUN     $feed_Sat_FALL_CABIN_CLEANING_SAT_SUN     $feed_Sun_FALL_CABIN_CLEANING_SAT_SUN     $feed_ANY_FALL_CABIN_CLEANING_SAT_SUN

“; } if ( ($feed_Mon_LODGE_WAIT || $feed_Tues_LODGE_WAIT || $feed_Wed_LODGE_WAIT || $feed_Thurs_LODGE_WAIT || $feed_Fr_LODGE_WAIT || $feed_Sat_LODGE_WAIT || $feed_Sun_LODGE_WAIT || $feed_ANY_LODGE_WAIT ) != “” ) { $waitstaff = “LODGE-WAIT STAFF:
$feed_Mon_LODGE_WAIT     $feed_Tues_LODGE_WAIT     $feed_Wed_LODGE_WAIT     $feed_Thurs_LODGE_WAIT     $feed_Fr_LODGE_WAIT     $feed_Sat_LODGE_WAIT     $feed_Sun_LODGE_WAIT     $feed_ANY_LODGE_WAIT

“; } if ( ($feed_Mon_LODGE_ICE_CREAM || $feed_Tues_LODGE_ICE_CREAM || $feed_Wed_LODGE_ICE_CREAM || $feed_Thurs_LODGE_ICE_CREAM || $feed_Fr_LODGE_ICE_CREAM || $feed_Sat_LODGE_ICE_CREAM || $feed_Sun_LODGE_ICE_CREAM || $feed_ANY_LODGE_ICE_CREAM ) != “” ) { $icecream = “LODGE-ICE CREAM SCOOP:
$feed_Mon_LODGE_ICE_CREAM     $feed_Tues_LODGE_ICE_CREAM     $feed_Wed_LODGE_ICE_CREAM     $feed_Thurs_LODGE_ICE_CREAM     $feed_Fr_LODGE_ICE_CREAM     $feed_Sat_LODGE_ICE_CREAM     $feed_Sun_LODGE_ICE_CREAM     $feed_ANY_LODGE_ICE_CREAM

“; } if ( ($feed_Mon_LODGE_DISHES || $feed_Tues_LODGE_DISHES || $feed_Wed_LODGE_DISHES || $feed_Thurs_LODGE_DISHES || $feed_Fr_LODGE_DISHES || $feed_Sat_LODGE_DISHES || $feed_Sun_LODGE_DISHES || $feed_ANY_LODGE_DISHES ) != “” ) { $lodgedishes = “LODGE-DISHES:
$feed_Mon_LODGE_DISHES     $feed_Tues_LODGE_DISHES     $feed_Wed_LODGE_DISHES     $feed_Thurs_LODGE_DISHES     $feed_Fr_LODGE_DISHES     $feed_Sat_LODGE_DISHES     $feed_Sun_LODGE_DISHES     $feed_ANY_LODGE_DISHES

“; } if ( ($feed_Mon_LODGE_HOSTESS_BUS || $feed_Tues_LODGE_HOSTESS_BUS || $feed_Wed_LODGE_HOSTESS_BUS || $feed_Thurs_LODGE_HOSTESS_BUS || $feed_Fr_LODGE_HOSTESS_BUS || $feed_Sat_LODGE_HOSTESS_BUS || $feed_Sun_LODGE_HOSTESS_BUS || $feed_ANY_LODGE_HOSTESS_BUS ) != “” ) { $lodgehostessbus = “LODGE-HOSTESS/BUS:
$feed_Mon_LODGE_HOSTESS_BUS     $feed_Tues_LODGE_HOSTESS_BUS     $feed_Wed_LODGE_HOSTESS_BUS     $feed_Thurs_LODGE_HOSTESS_BUS     $feed_Fr_LODGE_HOSTESS_BUS     $feed_Sat_LODGE_HOSTESS_BUS     $feed_Sun_LODGE_HOSTESS_BUS     $feed_ANY_LODGE_HOSTESS_BUS

“; } if ( ($feed_Mon_LODGE_COOKING || $feed_Tues_LODGE_COOKING || $feed_Wed_LODGE_COOKING || $feed_Thurs_LODGE_COOKING || $feed_Fr_LODGE_COOKING || $feed_Sat_LODGE_COOKING || $feed_Sun_LODGE_COOKING || $feed_ANY_LODGE_COOKING ) != “” ) { $lodgecook = “LODGE-COOKING:
$feed_Mon_LODGE_COOKING     $feed_Tues_LODGE_COOKING     $feed_Wed_LODGE_COOKING     $feed_Thurs_LODGE_COOKING     $feed_Fr_LODGE_COOKING     $feed_Sat_LODGE_COOKING     $feed_Sun_LODGE_COOKING     $feed_ANY_LODGE_COOKING

“; } if ( ($feed_Mon_BARTENDING || $feed_Tues_BARTENDING || $feed_Wed_BARTENDING || $feed_Thurs_BARTENDING || $feed_Fr_BARTENDING || $feed_Sat_BARTENDING || $feed_Sun_BARTENDING || $feed_ANY_BARTENDING ) != “” ) { $lodgebar = “BARTENDING:
$feed_Mon_BARTENDING     $feed_Tues_BARTENDING     $feed_Wed_BARTENDING     $feed_Thurs_BARTENDING     $feed_Fr_BARTENDING     $feed_Sat_BARTENDING     $feed_Sun_BARTENDING     $feed_ANY_BARTENDING

“; } $html = ‘

Applicant Name: ‘.$Name.’

Application ID: ‘.$picid.’

Submission Date: ‘.$sigdate.’

Treeland Resorts

TREELAND RESORTS

New Employee Application

‘.$Name.’
‘.$Address.’
‘.$City.’
‘.$State.’
‘.$Zip.’
‘.$mt_email.’
‘.$phone.’
‘.$dob.’
‘.$mt_ss.’
EMERGENCY CONTACT NAME: ‘.$feed_emergency_name.’
RELATIONSHIP: ‘.$feed_emergency_relationship.’
EMERGENCY CONTACT PHONE: ‘.$feed_emergency_phone.’
BEST PHONE NUMBER: ‘.$phone.’
OTHER PHONE NUMBER: ‘.$feed_phone2.’
EMAIL ADDRESS: ‘.$mt_email.’
Date you can Start: ‘.$startdate.’
Date you have to leave for the season: ‘.$enddate.’
UNAVAILABLE DATES: ‘.$feed_UNAVAILABLE_DATES.’

Form W-4

Employees Name (Last, First, M.I.)
‘.$Name.’
Social Security Number
‘.$mt_ss.’
Date of Birth
‘.$dob.’
Address: ‘.$Address.’ City ‘.$City.’ State ‘.$State.’ Zip ‘.$Zip.’
Single ‘.$SSS.’ Married ‘.$MMM.’   but withhold at higher Single rate. Note: If married, but legally separated, check the Single box. Date of Hire

Your Withholding Exemptions Below
Complete Lines 1 through 3 only if your Wisconsin exemptions are different than your federal allowances.
1. (a.) Exemption for yourself-enter 1
‘.$exempt_yourself.’
(b.) Exemption for your spouse-enter 1
‘.$exempt_spouse.’
(c.) Exemption(s) for dependent(s)-you are entitled to claim an exemption for each dependent
‘.$exempt_dependent.’
(d.) Total – add lines (a) through
‘.$exemptions_total.’
2. Additional amount per pay period you want deducted (if your employer agrees) ‘.$Additional_amount.’
3. I claim complete exemption from withholding(see instructions). Choose "Exempt" ‘.$feed_exemption.’
I CERTIFY that the number of withholding exemptions claimed on this certificate does not exceed the number to which I am entitled. If claiming complete exemption from withholding, I certify that I incurred no liability for Wisconsin income tax for last year and that I anticipate that I will incur no liability for Wisconsin income tax for this year.
Jobs & Days Available
‘.$boathouse.’ ‘.$springgrounds.’ ‘.$summercabinssats.’ ‘.$fallcabinsmf.’ ‘.$fallcabinsSATSUN.’ ‘.$waitstaff.’ ‘.$icecream.’ ‘.$lodgedishes.’ ‘.$lodgehostessbus.’ ‘.$lodgecook.’ ‘.$lodgebar.’

General – Comments/Questions/Details:

‘.$feed_comments.’



E-Signed By: ‘.$signame.’ on ‘.$sigdate.’
Email Address: ‘.$mt_email.’
Drivers License
‘.$checkicon3.’
Social Security Card
‘.$checkicon2.’
Form I-9
‘.$checkicon1.’
Applicant
E-Signature: ‘.$signame.’
Printed Name: ‘.$Name.’
Date: ‘.$sigdate.’


Employment 1

‘.$EmploymentName1.’
‘.$EmploymentPosition1.’
‘.$EmploymentCity1.’
‘.$EmploymentState1.’
‘.$EmploymentZip1.’
‘.$EmploymentPhone1.’
‘.$EmploymentSupervisor1.’
‘.$EmploymentTitle1.’
‘.$EmploymentPay1.’
‘.$EmploymentReason1.’

‘.$EmploymentDescription1.’

Employment 2

‘.$EmploymentName2.’
‘.$EmploymentPosition2.’
‘.$EmploymentCity2.’
‘.$EmploymentState2.’
‘.$EmploymentZip2.’
‘.$EmploymentPhone2.’
‘.$EmploymentSupervisor2.’
‘.$EmploymentTitle2.’
‘.$EmploymentPay2.’
‘.$EmploymentReason2.’

‘.$EmploymentDescription2.’

Employment 3

‘.$EmploymentName3.’
‘.$EmploymentPosition3.’
‘.$EmploymentCity3.’
‘.$EmploymentState3.’
‘.$EmploymentZip3.’
‘.$EmploymentPhone3.’
‘.$EmploymentSupervisor3.’
‘.$EmploymentTitle3.’
‘.$EmploymentPay3.’
‘.$EmploymentReason3.’

‘.$EmploymentDescription3.’



Education

‘.$NAME_OF_SCHOOLhigh.’
‘.$LOCATIONhigh.’
‘.$HighSchool.’
‘.$MAJOR_DEGREEhigh.’

‘.$NAME_OF_SCHOOLcollege.’
‘.$LOCATIONcollege.’
‘.$college.’
‘.$MAJOR_DEGREEcollege.’

‘.$NAME_OF_SCHOOLtrade.’
‘.$LOCATIONtrade.’
‘.$Trade.’
‘.$MAJOR_DEGREEtrade.’

‘.$NAME_OF_SCHOOLgrad.’
‘.$LOCATIONgrad.’
‘.$grad.’
‘.$MAJOR_DEGREEgrad.’


‘.$lastschool.’


‘; $htmlapplicant =’

Thank you for submitting your applcation to Treeland Resorts.
We will be in touch soon.



‘.$Name.’
‘.$Address.’
‘.$City.’
‘.$State.’
‘.$Zip.’
‘.$mt_email.’
‘.$phone.’
‘.$dob.’
*********


Drivers License
‘.$checkicon1.’
Social Sec card
‘.$checkicon2.’
Form I-9
‘.$checkicon3.’
‘ ; // output the HTML content $pdf->writeHTML($html, true, 0, true, 0); // reset pointer to the last page $pdf->lastPage(); // ——————————————————— //Close and output PDF document //$pdf->Output(.’uploads/’.$picid.’-applcation.pdf’, ‘F’); // TMG TURNS ON CONTRACT $pdf->Output($_SERVER[‘DOCUMENT_ROOT’].’/wp-content/include-me/employment-signup/contents/uploads/’.$picid.’-applcation.pdf’, ‘F’); //============================================================+ // END OF CREATING PDF FILE //============================================================+ ?> IsHTML(true); $mail->CharSet = “text/html; charset=UTF-8;”; $mail->From = “job.applications@websitemail.treelandresorts.com”; $mail->FromName = “noreply”; $mail->AddAddress(“job.applications@websitemail.treelandresorts.com”); //$mail->AddAddress(“webmaster@oldcabin.net”); $mail->AddReplyTo(“$toz”, ” $Name “); $mail->AddAttachment(“$rrrrrr”.”wp-content/include-me/employment-signup/contents/uploads/$picid-applcation.pdf”); // attach pdf that was saved in a folder ##### TMG // attach pdf that was saved in a folder //$mail->AddAttachment(“$rrrrrr”.”wp-content/include-me/employment-signup/contents/uploads/$picid-1.jpg”); // attach pdf that was saved in a folder //$mail->AddAttachment(“$rrrrrr”.”wp-content/include-me/employment-signup/contents/uploads/$picid-2.jpg”); // attach pdf that was saved in a folder //$mail->AddAttachment(“$rrrrrr”.”wp-content/include-me/employment-signup/contents/uploads/$picid-3.pdf”); // attach pdf that was saved in a folder If ($ext1 !== ”) { $mail->AddAttachment(“$rrrrrr”.”wp-content/include-me/employment-signup/contents/uploads/$picid-1.$ext1″); } If ($ext2 !== ”) { $mail->AddAttachment(“$rrrrrr”.”wp-content/include-me/employment-signup/contents/uploads/$picid-2.$ext2″); // attach pdf that was saved in a folder } If ($ext2 !== ”) { $mail->AddAttachment(“$rrrrrr”.”wp-content/include-me/employment-signup/contents/uploads/$picid-3.$ext3″); // attach pdf that was saved in a folder } //$mail->AddAttachment(“$rrrrrr”.”wp-content/include-me/employment-signup/contents/uploads/$picid-file.sql”); // attach pdf that was saved in a folder $mail->Subject = “Completed New Employee Application – $Name – $picid “; $mail->Body = “$htmladmin
$fileswarningadmin
$html

“; # if(!$mail->Send()) { echo “ERROR: Message could not be sent.

“; echo “Mailer Error: ” . $mail->ErrorInfo; } else { // echo “Message sent $rrrrrr”; } } emailadmin ($html,$picid,$fileswarningadmin,$mt_email,$htmladmin,$Name,$ext1,$ext2,$ext3); //============================================================+ // END SEND EMAIL TO ADMIN WITH ATTACHEMENT //============================================================+ ?> Thank you‘; $message .= ‘

‘.$htmlapplicant.’


‘.$_SERVER[‘HTTP_X_REAL_IP’].’


‘; // $message .= ‘

‘.$html.’

‘.$_SERVER[‘HTTP_X_REAL_IP’].’


‘; $rrrrrr = $_SERVER[‘DOCUMENT_ROOT’]; require_once(‘PHPMailer.php’); //where your phpmailer folder is $to2 = “$mt_email”; $mail2 = new PHPMailer(); $mail2->IsHTML(true); $mail2->CharSet = “text/html; charset=UTF-8;”; $mail2->From = “job.applications@websitemail.treelandresorts.com”; $mail2->FromName = “noreply”; $mail2->AddAddress($to2); //$mail->AddAddress(“webmaster@oldcabin.net”); //$mail->AddAddress(“job.applications@websitemail.treelandresorts.com”); $mail2->AddReplyTo(“$to2”, “$Name”); //$mail2->AddAttachment(“$rrrrrr”.”wp-content/include-me/employment-signup/contents/uploads/$picid-applcation.pdf”); // attach pdf that was saved in a folder $mail2->Subject = “Treeland Resorts Job Application”; $mail2->Body = “$message $fileswarning”; if(!$mail2->Send()) { echo “ERROR: Message could not be sent.

“; echo “Mailer Error: ” . $mail2->ErrorInfo; } else { // echo “Message sent $rrrrrr”; } } emailclient ($mt_email,$htmlapplicant,$picid,$Name,$fileswarning); //============================================================+ // END SEND EMAIL TO CLIENT WITH ATTACHEMENT //============================================================+ ?> select_db(“$db_name”)or die() ; $sql = “INSERT INTO applications(PositionApplying,Name,Address,City,State,Zip,Country,mt_email,phone,dob,mt_ss,EmploymentName1,EmploymentPosition1,EmploymentCity1,EmploymentState1,EmploymentZip1,EmploymentPhone1,EmploymentSupervisor1,EmploymentPay1,EmploymentTitle1,EmploymentDescription1,EmploymentReason1,From1,To1,EmploymentName2,EmploymentPosition2,EmploymentCity2,EmploymentState2,EmploymentZip2,EmploymentPhone2,EmploymentSupervisor2,EmploymentPay2,EmploymentTitle2,EmploymentDescription2,EmploymentReason2,From2,To2,EmploymentName3,EmploymentPosition3,EmploymentCity3,EmploymentState3,EmploymentZip3,EmploymentPhone3,EmploymentSupervisor3,EmploymentPay3,EmploymentTitle3,EmploymentDescription3,EmploymentReason3,From3,To3,feed_comments,NAME_OF_SCHOOLhigh,LOCATIONhigh,HighSchool,MAJOR_DEGREEhigh,NAME_OF_SCHOOLtrade,LOCATIONtrade,Trade,MAJOR_DEGREEtrade,NAME_OF_SCHOOLgrad,LOCATIONgrad,grad,MAJOR_DEGREEgrad,lastschool,NAME_OF_SCHOOLcollege,LOCATIONcollege,college,MAJOR_DEGREEcollege,days,hours,Available,certify,signame,sigdate,Code,realip,iprefer,IPaddress,APP_ID,picid,Last_Upated,New_Existing)VALUES(‘$PositionApplying’,’$Name’,’$Address’,’$City’,’$State’,’$Zip’,’$Country’,’$mt_email’,’$phone’,’$dob’,’$encrypted’,’$EmploymentName1′,’$EmploymentPosition1′,’$EmploymentCity1′,’$EmploymentState1′,’$EmploymentZip1′,’$EmploymentPhone1′,’$EmploymentSupervisor1′,’$EmploymentPay1′,’$EmploymentTitle1′,’$EmploymentDescription1′,’$EmploymentReason1′,’$From1′,’$To1′,’$EmploymentName2′,’$EmploymentPosition2′,’$EmploymentCity2′,’$EmploymentState2′,’$EmploymentZip2′,’$EmploymentPhone2′,’$EmploymentSupervisor2′,’$EmploymentPay2′,’$EmploymentTitle2′,’$EmploymentDescription2′,’$EmploymentReason2′,’$From2′,’$To2′,’$EmploymentName3′,’$EmploymentPosition3′,’$EmploymentCity3′,’$EmploymentState3′,’$EmploymentZip3′,’$EmploymentPhone3′,’$EmploymentSupervisor3′,’$EmploymentPay3′,’$EmploymentTitle3′,’$EmploymentDescription3′,’$EmploymentReason3′,’$From3′,’$To3′,’$feed_comments’,’$NAME_OF_SCHOOLhigh’,’$LOCATIONhigh’,’$HighSchool’,’$MAJOR_DEGREEhigh’,’$NAME_OF_SCHOOLtrade’,’$LOCATIONtrade’,’$Trade’,’$MAJOR_DEGREEtrade’,’$NAME_OF_SCHOOLgrad’,’$LOCATIONgrad’,’$grad’,’$MAJOR_DEGREEgrad’,’$lastschool’,’$NAME_OF_SCHOOLcollege’,’$LOCATIONcollege’,’$college’,’$MAJOR_DEGREEcollege’,’$days’,’$hours’,’$Available’,’$certify’,’$signame’,’$sigdate’,’$Code’,’$realip’,’$iprefer’,’$IPaddress’,’$APP_ID’,’$picid’,’$Last_Upated’,’$New_Existing’)”; $result=$mysqli->query($sql); // if successfully insert data into database, displays message “Successful”. if($result){ // print “Data Successful”; } else { print “Data Failed”; } mysqli_close($mysqli); } insertintodb ($PositionApplying,$Name,$Address,$City,$State,$Zip,$Country,$mt_email,$phone,$dob,$encrypted,$EmploymentName1,$EmploymentPosition1,$EmploymentCity1,$EmploymentState1,$EmploymentZip1,$EmploymentPhone1,$EmploymentSupervisor1,$EmploymentPay1,$EmploymentTitle1,$EmploymentDescription1,$EmploymentReason1,$From1,$To1,$EmploymentName2,$EmploymentPosition2,$EmploymentCity2,$EmploymentState2,$EmploymentZip2,$EmploymentPhone2,$EmploymentSupervisor2,$EmploymentPay2,$EmploymentTitle2,$EmploymentDescription2,$EmploymentReason2,$From2,$To2,$EmploymentName3,$EmploymentPosition3,$EmploymentCity3,$EmploymentState3,$EmploymentZip3,$EmploymentPhone3,$EmploymentSupervisor3,$EmploymentPay3,$EmploymentTitle3,$EmploymentDescription3,$EmploymentReason3,$From3,$To3,$feed_comments,$NAME_OF_SCHOOLhigh,$LOCATIONhigh,$HighSchool,$MAJOR_DEGREEhigh,$NAME_OF_SCHOOLtrade,$LOCATIONtrade,$Trade,$MAJOR_DEGREEtrade,$NAME_OF_SCHOOLgrad,$LOCATIONgrad,$grad,$MAJOR_DEGREEgrad,$lastschool,$NAME_OF_SCHOOLcollege,$LOCATIONcollege,$college,$MAJOR_DEGREEcollege,$days,$hours,$Available,$certify,$signame,$sigdate,$Code,$realip,$iprefer,$IPaddress,$APP_ID,$picid,$Last_Upated,$New_Existing); //============================================================+ // END INSERT INTO DATABASE //============================================================+ ?>