include "include.php";
if(isset($_POST['submit']))
{
$id;
$memberyesno = 0;
if($_POST['member'])
{
$memberyesno = 1;
}
if($_POST['firstname'] == ""){
include "header.php";
echo "
You must enter first name!
";
include "footer.php";
return;
}
if($_POST['lastname'] == ""){
include "header.php";
echo "You must enter last name!
";
include "footer.php";
return;
}
if($_POST['phone'] == ""){
include "header.php";
echo "You must enter phone number!
";
include "footer.php";
return;
}
if($_POST['email'] == ""){
include "header.php";
echo "You must enter an email!
";
include "footer.php";
return;
}
if($_POST['address'] == ""){
include "header.php";
echo "You must enter an address!
";
include "footer.php";
return;
}
if($_POST['student'])
{
if($_POST['degree'] == ""){
include "header.php";
echo "You must enter the degree you are pursuing!
";
include "footer.php";
return;
}
if($_POST['status'] == ""){
include "header.php";
echo "You must enter the status of your studies!
";
include "footer.php";
return;
}
if($_POST['institutename'] == ""){
include "header.php";
echo "You must enter the name of the institution!
";
include "footer.php";
return;
}
if($_POST['instituteaddress'] == ""){
include "header.php";
echo "You must enter the address of the institution!
";
include "footer.php";
return;
}
if($_POST['completiondate'] == ""){
include "header.php";
echo "You must enter the date of completion!
";
include "footer.php";
return;
}
}
if($_POST['employed'])
{
if($_POST['emplname'] == ""){
include "header.php";
echo "You must enter employer name!
";
include "footer.php";
return;
}
if($_POST['empladdr'] == ""){
include "header.php";
echo "You must enter Employer address!
";
include "footer.php";
return;
}
if($_POST['jobtitle'] == ""){
include "header.php";
echo "You must enter your position or role!
";
include "footer.php";
return;
}
}
if($_POST['papertitle'] == ""){
include "header.php";
echo "You must enter a Paper title!
";
include "footer.php";
return;
}
if($_POST['paperabstract'] == ""){
include "header.php";
echo "You must enter a paper abstract!
";
include "footer.php";
return;
}
$id = get_user_id($_POST[email]);
if($id == 0)
{
$query = "INSERT into persondetails (`firstname`, `lastname`, `phone`, `email`, `address`, `member`) values ";
$query.= "('$_POST[firstname]', '$_POST[lastname]', '$_POST[phone]', '$_POST[email]', '$_POST[address]', '$memberyesno')";
mysql_query($query) ; //or die(mysql_error());
$id = get_user_id($_POST[email]);
}
else
{
$query = "UPDATE persondetails SET `firstname` = '$_POST[firstname]', `lastname` = '$_POST[lastname]', ";
$query.= "`phone` = '$_POST[phone]', `email` = '$_POST[email]', `address` = '$_POST[address]', ";
$query.= "`member` = 'memberyesno' WHERE id = $id";
mysql_query($query) ; //or die(mysql_error());
}
if($_POST['student'])
{
$recordid = get_recordset("academicdetails", $id);
if($recordid == 0)
{
$date = date("Y-m-d",strtotime($_POST['completiondate']));
$query = "INSERT into academicdetails (`person_id`, `degree`, `status`, `name`, `address`, `dateofcompletion`, `comments`) values ";
$query.= "('$id', '$_POST[degree]', '$_POST[status]', '$_POST[institutename]', '$_POST[instituteaddress]', '$date', '$_POST[qualifications]')";
}
else
{
$query = "UPDATE academicdetails SET `degree` = '$_POST[degree]', `status` = '$_POST[status]', ";
$query.= "`name` = '$_POST[institutename]', `address` = '$_POST[instituteaddress]', ";
$date = date("Y-m-d",strtotime($_POST['completiondate']));
$query.= "`dateofcompletion` = '$date', `comments` = '$_POST[qualifications]' ";
$query.= "WHERE `id` = $recordid";
}
mysql_query($query) ; //or die(mysql_error());
}
if($_POST['employed'])
{
$recordid = get_recordset("employmentdetails", $id);
if($recordid == 0)
{
$query = "INSERT into employmentdetails (`person_id`, `name`, `address`, `position`) values ";
$query.= "('$id', '$_POST[emplname]', '$_POST[empladdr]', '$_POST[jobtitle]')";
}
else
{
$query = "UPDATE employmentdetails SET `name` = '$_POST[emplname]', `address` = '$_POST[empladdr]',";
$query.= " `position` = '$_POST[jobtitle]' WHERE `id` = $recordid";
}
mysql_query($query) ; //or die(mysql_error());
}
$paperid = get_paper($_POST['papertitle'], $id);
if($paperid == 0)
{
$query = "INSERT into paperdetails (`person_id`, `title`, `abstract`, `acceptance`, `comments`, `dateofsubmission`) values ";
$query.= "('$id', '$_POST[papertitle]', '$_POST[paperabstract]', '$_POST[paperacceptance]', ";
$query.= "'$_POST[addinfo]', now())";
mysql_query($query) ; //or die(mysql_error());
}
else
{
include "header.php";
echo "This information already exists in the Database!
";
include "footer.php";
return;
}
include "header.php";
echo "";
echo "Thank you for submitting the form";
echo "
";
echo "
Print this for your records
";
//echo "Your ID for future reference is: $id
";
echo "Information Entered:
";
echo "First Name: $_POST[firstname]
";
echo "Last Name: $_POST[lastname]
";
echo "Phone: $_POST[phone]
";
echo "Email: $_POST[email]
";
echo "Address: $_POST[address]
";
if($memberyesno)
echo "Member: Y
";
else
echo "Member: N
";
echo "Degree: $_POST[degree]
";
echo "Status: $_POST[status]
";
echo "Name of Institute: $_POST[institutename]
";
echo "Address of Institute: $_POST[instituteaddress]
";
echo "Date of Completion: $_POST[completiondate]
";
echo "Qualifications: $_POST[qualifications]
";
echo "Employer Name: $_POST[emplname]
";
echo "Employer Address: $_POST[empladdr]
";
echo "Job Title: $_POST[jobtitle]
";
echo "Paper Title: $_POST[papertitle]
";
echo "Paper Abstract: $_POST[paperabstract]
";
echo "Additional Information: $_POST[addinfo]
";
echo "";
echo"Back to ACH Website";
include "footer.php";
//added by andrew to email above info to admin
mail("c.warwick@ucl.ac.uk", "ACH Bursary Award - New User Registration", "A new user has registered for the ACH Bursary:\n\nUserid: $id\nFirst name: $_POST[firstname]\nLast name: $_POST[lastname]\nPhone number: $_POST[phone]\nEmail Address: $_POST[email]\nAddress: $_POST[address]\nDegree: $_POST[degree]\nStatus: $_POST[status]\nName of Institute: $_POST[institutename]\nAddress of Institute: $_POST[instituteaddress]\nDate of Completion: $_POST[completiondate]\nQualifications: $_POST[qualifications]\nEmployer Name: $_POST[emplname]\nEmployer Address: $_POST[empladdr]\nJob Title: $_POST[jobtitle]\nPaper Title: $_POST[papertitle]\nPaper Abstract: $_POST[paperabstract]\nAdditional Information: $_POST[addinfo]", "From: ACH");
//mail($_POST[email], "Your ACH Bursary Award Application has been submitted. Please print the webpage for your own records.", "From: ACH");
//end email
return;
}
?>
include "header.php";
?>
ACH Bursary Award application form
Thank you for your interest in the ACH Bursary Award.
Each year, a number of bursaries are awarded to graduate students and young scholars who have had conference proposals accepted by the DH Programme Committee. Application is via this webpage, the deadline for receipt of applications is April 1 each year, which decisions announced by the ACH bursary review panel in mid to late April each year. We are pleased to be able to offer this funding for attending the Digital Humanities conference, as we consider support of graduate scholarship to be very important to our community. However, as our funding is limited, we an only offer a few places to graduate students. We would ask that all applicants bear this in mind, and to please ensure that funding is not available from any other sources before applying!
Please note that this form will not be active until conference submissions have
been reviewed, and acceptances sent out.
* denotes required fields.
include "footer.php";
?>