-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapply_admin.php
More file actions
82 lines (54 loc) · 2.14 KB
/
apply_admin.php
File metadata and controls
82 lines (54 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?
$strAbsPath = "/home/paulthetutor/paulthetutors.com";
include($strAbsPath . "/includes/pttec_includes.phtml");
MySQL_PaulTheTutor_Connect();
$popup = $_REQUEST[popup];
// printarray($_REQUEST);
put_ptts_header("Applying For Admin Position", $strAbsPath, "", $popup);
?>
<link href="includes/paulthetutors.css" rel="stylesheet" type="text/css" />
<?
if ($_REQUEST[Submit] == "Submit"){
$_REQUEST[application_date] = date("Y-m-d");
$_REQUEST[stage] = "applied";
$_REQUEST[notes] = "applied";
;
$msg = InsertFields("PT_Prospect_Admin", $_REQUEST, $arMandFields, '', $tdStyle, $strWhere);
echo "<div class=text_success style='text-align:center'>Your application has been received. <BR> Thanks for applying and we will be in contact soon.</div>";
$app_name = "$_REQUEST[first_name] $_REQUEST[last_name]";
$header = "From: Applicant- $app_name <$_REQUEST[email]>\r\n";
$header .= "MIME-Version: 1.0\r\n";
$header .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$app_name = "$_REQUEST[first_name] $_REQUEST[last_name]";
$body = "<html><body>New Applicant<br>
<b>Name:</b> $app_name<br>
<b>Position:</b> $_REQUEST[position]<br>
<b>Email:</b> $_REQUEST[email]<br>
<b>Phone:</b> $_REQUEST[phone]<br>
<strong>Courses</strong>: $_REQUEST[cover_letter]<br>
<strong>Experience:</strong> $_REQUEST[resume]<br>
<strong>Experience:</strong> $_REQUEST[resume]<br>
<strong>Other Info:</strong> $_REQUEST[other_information]<br>
<a href=\"http://www.paulthetutors.com/admin/applicants.php?&sort=id&&order=DESC\">See Applicants</a>
</body></html>
";
ptts2_mail("applicant@paulthetutors.com","Applicant $_REQUEST[position] $app_name",$body ,$header,'-f$_REQUEST[email]');
}
?>
<fieldset>
<legend><strong>Application for Admin Position</strong></legend>
<form name="form1">
<table>
<tr>
<td width="300"> </td><td> </td></tr>
<?
$arFieldNames[courses] = "Courses You Can Tutor";
$strNotUsed = "stage,notes,application_date";
MySQL_BlankForm('PT_Prospect_Admin',$arFieldNames,$arFieldsVals,$arFieldComments,$arHidden,$strNotUsed,'');
?>
</table>
</form>
</fieldset>
<?
put_ptts_footer("popup");
?>