<?php

require_once("db_conn_class.php");

class app

{

	public $id;

	public $name;

	public $email;

	public $contact;

	public $location;

	public $country;

	public $gender;

	public $dob;

	public $qualification;

	public $occupation;

	public $besttime;

	public $coments;

	public $status;

	public $mode;

	public $tr_location;

	public $deleted;

	

	//constructor [initialize the value of the variables]

	function _construct()

	{

		$this->id  				= 0;

		$this->name         	= "";

		$this->email     		= "";

		$this->contact  		= "";

		$this->country	 		= "";

		$this->location 		= "";

		$this->dob		 		= "";

		$this->gender	 		= "";

		$this->course		  	= "";

		$this->qualification  	= "";

		$this->occupation  		= "";

		$this->besttime		  	= "";

		$this->coments		  	= "";

		

		$this->mode		  	= "";

		

		$this->tr_location    = "";

		$this->status   		= "";

		$this->deleted  		= 0;

	}

    //generate max resume id

	function GenerateDataID()

	{

		$dbh = new db_conn();

		$dbh->set_conn();		

		$sql_max_id = "select max(data_id) from tbl_data_entry";

		$result_max_id = mysqli_query($dbh->link ,$sql_max_id);

		if($result_max_id)

		{

			$row = mysqli_fetch_row($result_max_id);

			$this->id = $row[0] + 1;

		}

	}

	//insert function for Subscribe to our Newsletter! (ACT)

	function InsertData()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'".$this->course. "', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'571', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'Application - Tesolcourseindia', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	//for Subscribe to our Newsletter! (ACT)

	function SendMail()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		//$email = "nikita94.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

		

		//Tell PHPMailer to use SMTP

		$mail->isSMTP();

		

		//Enable SMTP debugging

		// 0 = off (for production use)

		// 1 = client messages

		// 2 = client and server messages

		$mail->SMTPDebug = 0;

		

		//Ask for HTML-friendly debug output

		$mail->Debugoutput = 'html';

		

		//Set the hostname of the mail server

		//$mail->Host = 'smtp.gmail.com';

		$mail->Host = 'vps.teflindia.in';

		

		//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

		$mail->Port = 465;

		

		//Set the encryption system to use - ssl (deprecated) or tls

		$mail->SMTPSecure = 'ssl';

		

		//Whether to use SMTP authentication

		$mail->SMTPAuth = true;

		

		//Username to use for SMTP authentication - use full email address for gmail

		$mail->Username = "applications@asiancollegeofteachers.in";

		//$mail->Username = "admin@teachersjobworld.com";

		

		//Password to use for SMTP authentication

		$mail->Password = "ACTApplications$56";

		//$mail->Password = "tjwportal20!";

		

		//Set who the message is to be sent from

		$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

		

		//Set an alternative reply-to address

		//$mail->addReplyTo('replyto@example.com', 'First Last');

		

		//Set who the message is to be sent to

		$mail->addAddress($email);

		$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "Subscribe to our Newsletter! (tesolcourseindia.com) [#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>Application - Ttesolcourseindia</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>
		
        <tr>

		<td><b>Mode Of Study </b></td>

		<td>".$this->mode."</td>

		</tr>

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}

	

	//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

	

			

	//for Subscribe to our Newsletter! (ACT)

	function SendMailToCandidate()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

			//sending application entry mail to 

			

			//require 'PHPMailerAutoload.php';

			//if(!$_POST) exit;

			$email = $this->email;  

			//$email = "nikkitefl@gmail.com";

			//$email = "nikita94.act@gmail.com";

			

			//Create a new PHPMailer instance

			$mail = new PHPMailer;

			

			//Tell PHPMailer to use SMTP

			$mail->isSMTP();

			

			//Enable SMTP debugging

			// 0 = off (for production use)

			// 1 = client messages

			// 2 = client and server messages

			$mail->SMTPDebug = 0;

			

			//Ask for HTML-friendly debug output

			$mail->Debugoutput = 'html';

			

			//Set the hostname of the mail server

			//$mail->Host = 'smtp.gmail.com';

			$mail->Host = 'vps.teflindia.in';

			

			//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

			$mail->Port = 465;

			

			//Set the encryption system to use - ssl (deprecated) or tls

			$mail->SMTPSecure = 'ssl';

			

			//Whether to use SMTP authentication

			$mail->SMTPAuth = true;

			

			//Username to use for SMTP authentication - use full email address for gmail

			$mail->Username = "applications@asiancollegeofteachers.in";

			//$mail->Username = "admin@teachersjobworld.com";

			

			//Password to use for SMTP authentication

			$mail->Password = "ACTApplications$56";

			//$mail->Password = "tjwportal20!";

			

			//Set who the message is to be sent from

			$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

					

			//Set an alternative reply-to address

			//$mail->addReplyTo('replyto@example.com', 'First Last');

			

			//Set who the message is to be sent to

			$mail->addAddress($email);

			//$mail->addAddress("asiancollegeapplications@gmail.com");

			//$mail->addAddress("sampade.ati@gmail.com");

			//Set the subject line

			$mail->Subject = "Subscribe to our Newsletter! (ACT)";

			

			//Read an HTML message body from an external file, convert referenced images to embedded,

			//convert HTML into a basic plain-text alternative body

			

			$body = "";

			$body = "<html>

			<head>

			<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

			<title>Subscribe to our Newsletter! (ACT)</title>

			</head>

			<body>

			<a href='http://asiancollegeofteachers.education/' target='_blank'><img src='http://asiancollegeofteachers.education/admin_act/design/dist/img/logo.png' alt='' width='180' style='border:none;' /></a><br />

			Thank you for signing up for ACT newsletter. Keep up-to-date with the latest information and features on Asian College of Teachers. Learn more about our events, activities and celebrations!<br><br>

Find out more by clicking on the link below: -<br>

<a href='https://www.asiancollegeofteachers.com/newsletter-images/' target='_blank'>https://www.asiancollegeofteachers.com/newsletter-images/</a><br><br>

Regards,<br />

Asian College of Teachers

<br />

 

			</body>

			</html>";

			$mail->msgHTML($body);

			

			//Replace the plain text body with one created manually

			$mail->AltBody = 'This is a plain-text message body';

			

			//Attach an image file

			//$mail->addAttachment('images/phpmailer_mini.png');

			

			//send the message, check for errors

			if (!$mail->send()) {

				$this->msg = "Sorry! Unable to send Mail";

				return;

			} 

			else

			{

				$this->msg = "Thank you for filling the application form";

			}	

			

		}

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

	

	////insert function

//	function InsertData1()

//	{

//		$dbh = new db_conn();

//		$dbh->set_conn();

//

//		$this->GenerateDataID();

//		date_default_timezone_set('Asia/Kolkata');

//		//============================================================================

//

//		//insert data into tbl_data_entry table				

//

//		$insert_sql = "insert into tbl_data_entry values ( ";

//		$insert_sql = $insert_sql . $this->id. ", ";

//		$insert_sql = $insert_sql . "'".$this->name. "', ";

//		$insert_sql = $insert_sql . "'".$this->course. "', ";

//		$insert_sql = $insert_sql . "'0', ";

//		$insert_sql = $insert_sql . "'0', ";

//		$insert_sql = $insert_sql . "'n/a', ";

//		$insert_sql = $insert_sql . "'".$this->dob."', ";

//		$insert_sql = $insert_sql . "'0', ";

//		$insert_sql = $insert_sql . "'3', ";

//		$insert_sql = $insert_sql . "'ACT - TESOL Application India tesolcourseindia.com', ";

//		$insert_sql = $insert_sql . "'".$this->email. "', ";

//		$insert_sql = $insert_sql . "'".$this->contact. "', ";

//		$insert_sql = $insert_sql . "'n/a', ";

//		$insert_sql = $insert_sql . "'16', ";

//		$insert_sql = $insert_sql . "'0', ";

//		$insert_sql = $insert_sql . "'" .date("Y-m-d H:i:s")."',";

//		$insert_sql = $insert_sql . "'" .date("Y-m-d H:i:s")."',";

//		$insert_sql = $insert_sql . "'1',";

//		$insert_sql = $insert_sql . "'n/a', ";

//		$insert_sql = $insert_sql . "'".$this->qualification. "', ";

//		$insert_sql = $insert_sql . "'".$this->occupation. "', ";

//		$insert_sql = $insert_sql . "'ACTIVE', ";

//		$insert_sql = $insert_sql . "'0', ";

//		$insert_sql = $insert_sql . "'n/a', ";

//		$insert_sql = $insert_sql . "'n/a', ";

//		$insert_sql = $insert_sql . "'n/a', ";

//		$insert_sql = $insert_sql . "'0', ";

//		$insert_sql = $insert_sql . "'n/a', ";

//		$insert_sql = $insert_sql . "'" .date("Y-m-d h:i:s")."',";

//		$insert_sql = $insert_sql . "'0',";

//		$insert_sql = $insert_sql . "'0',";

//		$insert_sql = $insert_sql . "'0',";

//		$insert_sql = $insert_sql . "'".$this->location. "', ";

//		$insert_sql = $insert_sql . "'n/a',";

//		$insert_sql = $insert_sql . "'".$this->comments. "',";

//		$insert_sql = $insert_sql . "'n/a',";

//		$insert_sql = $insert_sql . "'n/a')";

//		

//

//		//echo "insert_sql = ".$insert_sql;

//		//return;

//

//		$insert_result = mysqli_query($dbh->link ,$insert_sql);

//

//		if (!$insert_result)

//		{

//			$this->msg = "Error: ".mysqli_error($dbh->link);

//			return;

//		}

//		else

//		{

//			$this->msg = "Thank you for for filling the application form";

//		}		

//	}	

//	

//	

//	function SendMail1()

//	{

//		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

//			//sending application entry mail to 

//			

//			require 'PHPMailerAutoload.php';

//			//if(!$_POST) exit;

//			//$email = $this->email;    //$res->email;

//			//$email = "nikita94.act@gmail.com";

//			$email = "nikkitefl@gmail.com";

//			$errors = 0;

//			

//						

//				//Create a new PHPMailer instance

//				$mail = new PHPMailer;

//				

//				//Tell PHPMailer to use SMTP

//				$mail->isSMTP();

//				

//				//Enable SMTP debugging

//				// 0 = off (for production use)

//				// 1 = client messages

//				// 2 = client and server messages

//				$mail->SMTPDebug = 0;

//				

//				//Ask for HTML-friendly debug output

//				$mail->Debugoutput = 'html';

//				

//				//Set the hostname of the mail server

//				//$mail->Host = 'smtp.gmail.com';

//				$mail->Host = 'box5171.bluehost.com';

//				

//				//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

//				$mail->Port = 465;

//				

//				//Set the encryption system to use - ssl (deprecated) or tls

//				$mail->SMTPSecure = 'ssl';

//				

//				//Whether to use SMTP authentication

//				$mail->SMTPAuth = true;

//				

//				//Username to use for SMTP authentication - use full email address for gmail

//				$mail->Username = "applications@asiancollegeofteachers.in";

//				//$mail->Username = "admin@teachersjobworld.com";

//				

//				//Password to use for SMTP authentication

//				$mail->Password = "ACTApplications$56";

//				//$mail->Password = "tjwportal20!";

//				

//				//Set who the message is to be sent from

//				$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

//				//mail->setFrom("admin@teachersjobworld.com", "Teachers Job World");

//				

//				//Set an alternative reply-to address

//				//$mail->addReplyTo('replyto@example.com', 'First Last');

//				

//				//Set who the message is to be sent to

//				$mail->addAddress($email);

//				$mail->addAddress("asiancollegeapplications@gmail.com");

//				

//				//Set the subject line

//				$mail->Subject = "Online TEFL Course - Application- teflonline.in[#".$this->id."]";

//				

//				//Read an HTML message body from an external file, convert referenced images to embedded,

//				//convert HTML into a basic plain-text alternative body

//				

//				$body = "";

//				$body = "<html>

//				<head>

//				<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

//				<title>Online TEFL Course - Application- teflonline.in</title>

//				</head>

//				<body>

//				 <table>

//				<tbody>

//				<tr>

//				<td><b> Name</b></td>

//				<td>".$this->name."</td>

//				</tr>

//				<tr>

//				<td><b> Email</b></td>

//				<td>".$this->email."</td>

//				</tr>

//				<tr>

//				<td><b>Phone Number </b></td>

//				<td>".$this->contact."</td>

//				</tr>

//				<tr>

//				<td><b>Date of Birth</b></td>

//				<td>".$this->dob."</td>

//				</tr>

//				<tr>

//				<td><b>Please select your course  </b></td>

//				<td>".$this->course."</td>

//				</tr>

//				<tr>

//				<td><b>Country & City </b></td>

//				<td>".$this->location."</td>

//				</tr>

//				<tr>

//				<td><b>Educational Qualification</b></td>

//				<td>".$this->qualification."</td>

//				</tr>

//				<tr>

//				<td><b>Current Proffession </b></td>

//				<td>".$this->occupation."</td>

//				</tr>

//				<tr>

//				<td><b>Why do you want to do online TEFL course? </b></td>

//				<td>".$this->comments."</td>

//				</tr>

//				

//				</tbody>

//				</table>

//				</body>

//				</html>";

//				$mail->msgHTML($body);

//				

//				//Replace the plain text body with one created manually

//				$mail->AltBody = 'This is a plain-text message body';

//				

//				//Attach an image file

//				//$mail->addAttachment('images/phpmailer_mini.png');

//				

//				//send the message, check for errors

//				if (!$mail->send()) {

//					$this->msg = "Sorry! Unable to send Mail";

//					return;

//				} 

//				else

//				{

//					$this->msg = "Thank you for for filling the application form";

//				}	

//				

//					

//			//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

//	}

function InsertData1()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'".$this->course. "', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".$this->dob. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'ACT - TESOL Application India tesolcourseindia.com', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'".$this->mode. "', ";

		$insert_sql = $insert_sql . "'16', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'".$this->qualification. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".$this->tr_location. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql .  "'".$this->gender. "', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	//for Subscribe to our Newsletter! (ACT)

	function SendMail1()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		

		//$email = "nikita94.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

		

		//Tell PHPMailer to use SMTP

		$mail->isSMTP();

		

		//Enable SMTP debugging

		// 0 = off (for production use)

		// 1 = client messages

		// 2 = client and server messages

		$mail->SMTPDebug = 0;

		

		//Ask for HTML-friendly debug output

		$mail->Debugoutput = 'html';

		

		//Set the hostname of the mail server

		//$mail->Host = 'smtp.gmail.com';

		$mail->Host = 'vps.teflindia.in';

		

		//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

		$mail->Port = 465;

		

		//Set the encryption system to use - ssl (deprecated) or tls

		$mail->SMTPSecure = 'ssl';

		

		//Whether to use SMTP authentication

		$mail->SMTPAuth = true;

		

		//Username to use for SMTP authentication - use full email address for gmail

		$mail->Username = "applications@asiancollegeofteachers.in";

		//$mail->Username = "admin@teachersjobworld.com";

		

		//Password to use for SMTP authentication

		$mail->Password = "ACTApplications$56";

		//$mail->Password = "tjwportal20!";

		

		//Set who the message is to be sent from

		$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

		

		//Set an alternative reply-to address

		//$mail->addReplyTo('replyto@example.com', 'First Last');

		

		//Set who the message is to be sent to

		$mail->addAddress($email);

		$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "ACT - TESOL Application India tesolcourseindia.com [#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>ACT - TESOL Application India tesolcourseindia.com</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		<tr>

		<td><b>Gender </b></td>

		<td>".$this->gender."</td>

		</tr>

<tr>

		<td><b>Date Of Birth </b></td>

		<td>".$this->dob."</td>

		</tr>

		<tr>

		<td><b>Educational Qualification </b></td>

		<td>".$this->qualification."</td>

		</tr>

		<tr>

		<td><b>Mode Of Study </b></td>

		<td>".$this->mode."</td>

		</tr>

		<tr>

		<td><b>Course </b></td>

		<td>".$this->course."</td>

		</tr>

		<tr>

		<td><b>Course Location </b></td>

		<td>".$this->tr_location."</td>

		</tr>

		<tr>

		<td><b>Additional Comments </b></td>

		<td>".$this->comments."</td>

		</tr>

		

		

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}

	

function InsertData2()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'ACT - TESOL Application India', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'571', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'ACT - TESOL Application India', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'".$this->mode. "', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql .  "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'".$this->comments. "',";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	

	function SendMail2()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		

		//$email = "sulagna.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

		

		//Tell PHPMailer to use SMTP

		$mail->isSMTP();

		

		//Enable SMTP debugging

		// 0 = off (for production use)

		// 1 = client messages

		// 2 = client and server messages

		$mail->SMTPDebug = 0;

		

		//Ask for HTML-friendly debug output

		$mail->Debugoutput = 'html';

		

		//Set the hostname of the mail server

		//$mail->Host = 'smtp.gmail.com';

		$mail->Host = 'vps.teflindia.in';

		

		//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

		$mail->Port = 465;

		

		//Set the encryption system to use - ssl (deprecated) or tls

		$mail->SMTPSecure = 'ssl';

		

		//Whether to use SMTP authentication

		$mail->SMTPAuth = true;

		

		//Username to use for SMTP authentication - use full email address for gmail

		$mail->Username = "applications@asiancollegeofteachers.in";

		//$mail->Username = "admin@teachersjobworld.com";

		

		//Password to use for SMTP authentication

		$mail->Password = "ACTApplications$56";

		//$mail->Password = "tjwportal20!";

		

		//Set who the message is to be sent from

		$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

		

		//Set an alternative reply-to address

		//$mail->addReplyTo('replyto@example.com', 'First Last');

		

		//Set who the message is to be sent to

		$mail->addAddress($email);

		$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "ACT - TESOL Application India [#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>ACT - TESOL Application India</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		

		<tr>

		<td><b>Mode Of Study </b></td>

		<td>".$this->mode."</td>

		</tr>

		

		<tr>

		<td><b>Additional Comments </b></td>

		<td>".$this->comments."</td>

		</tr>

		

		

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}

function InsertData3()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'Application - TEFL/TESOL Courses', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'Application - TEFL/TESOL Courses', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'".$this->mode. "', ";

		$insert_sql = $insert_sql . "'258', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql .  "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'".$this->comments. "',";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	

	function SendMail3()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		

		

		

		//$email = "sulagna.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

		

		//Tell PHPMailer to use SMTP

		$mail->isSMTP();

		

		//Enable SMTP debugging

		// 0 = off (for production use)

		// 1 = client messages

		// 2 = client and server messages

		$mail->SMTPDebug = 0;

		

		//Ask for HTML-friendly debug output

		$mail->Debugoutput = 'html';

		

		//Set the hostname of the mail server

		//$mail->Host = 'smtp.gmail.com';

		$mail->Host = 'vps.teflindia.in';

		

		//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

		$mail->Port = 465;

		

		//Set the encryption system to use - ssl (deprecated) or tls

		$mail->SMTPSecure = 'ssl';

		

		//Whether to use SMTP authentication

		$mail->SMTPAuth = true;

		

		//Username to use for SMTP authentication - use full email address for gmail

		$mail->Username = "applications@asiancollegeofteachers.in";

		//$mail->Username = "admin@teachersjobworld.com";

		

		//Password to use for SMTP authentication

		$mail->Password = "ACTApplications$56";

		//$mail->Password = "tjwportal20!";

		

		//Set who the message is to be sent from

		$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

		

		//Set an alternative reply-to address

		//$mail->addReplyTo('replyto@example.com', 'First Last');

		

		//Set who the message is to be sent to

		$mail->addAddress($email);

		$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "Application - TEFL/TESOL Courses [#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>Application - TEFL/TESOL Courses</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		

		<tr>

		<td><b>Mode Of Study </b></td>

		<td>".$this->mode."</td>

		</tr>

		

		<tr>

		<td><b>Additional Comments </b></td>

		<td>".$this->comments."</td>

		</tr>

		

		

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}
	
	
	function InsertData4()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'Application - live-online-seminars - tesolcourseindia.com', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'Application - live-online-seminars - tesolcourseindia.com', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'".$this->mode. "', ";

		$insert_sql = $insert_sql . "'365', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql .  "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'".$this->comments. "',";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	

	function SendMail4()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		

		

		

		//$email = "sulagna.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

		

		//Tell PHPMailer to use SMTP

		$mail->isSMTP();

		

		//Enable SMTP debugging

		// 0 = off (for production use)

		// 1 = client messages

		// 2 = client and server messages

		$mail->SMTPDebug = 0;

		

		//Ask for HTML-friendly debug output

		$mail->Debugoutput = 'html';

		

		//Set the hostname of the mail server

		//$mail->Host = 'smtp.gmail.com';

		$mail->Host = 'vps.teflindia.in';

		

		//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

		$mail->Port = 465;

		

		//Set the encryption system to use - ssl (deprecated) or tls

		$mail->SMTPSecure = 'ssl';

		

		//Whether to use SMTP authentication

		$mail->SMTPAuth = true;

		

		//Username to use for SMTP authentication - use full email address for gmail

		$mail->Username = "applications@asiancollegeofteachers.in";

		//$mail->Username = "admin@teachersjobworld.com";

		

		//Password to use for SMTP authentication

		$mail->Password = "ACTApplications$56";

		//$mail->Password = "tjwportal20!";

		

		//Set who the message is to be sent from

		$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

		

		//Set an alternative reply-to address

		//$mail->addReplyTo('replyto@example.com', 'First Last');

		

		//Set who the message is to be sent to

		$mail->addAddress($email);

		$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "Application - live-online-seminars - tesolcourseindia.com [#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>Application - live-online-seminars - tesolcourseindia.com</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		

		<tr>

		<td><b>Mode Of Study </b></td>

		<td>".$this->mode."</td>

		</tr>

		

		<tr>

		<td><b>Additional Comments </b></td>

		<td>".$this->comments."</td>

		</tr>

		

		

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}
	
	
		
		
	
	
	function InsertData5()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'".$this->course. "', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'Application - Inclass-Tefl-Course - tesolcourseindia.com', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'366', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql .  "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	

	function SendMail5()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		

		

		

		//$email = "sulagna.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

		

		//Tell PHPMailer to use SMTP

		$mail->isSMTP();

		

		//Enable SMTP debugging

		// 0 = off (for production use)

		// 1 = client messages

		// 2 = client and server messages

		$mail->SMTPDebug = 0;

		

		//Ask for HTML-friendly debug output

		$mail->Debugoutput = 'html';

		

		//Set the hostname of the mail server

		//$mail->Host = 'smtp.gmail.com';

		$mail->Host = 'vps.teflindia.in';

		

		//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

		$mail->Port = 465;

		

		//Set the encryption system to use - ssl (deprecated) or tls

		$mail->SMTPSecure = 'ssl';

		

		//Whether to use SMTP authentication

		$mail->SMTPAuth = true;

		

		//Username to use for SMTP authentication - use full email address for gmail

		$mail->Username = "applications@asiancollegeofteachers.in";

		//$mail->Username = "admin@teachersjobworld.com";

		

		//Password to use for SMTP authentication

		$mail->Password = "ACTApplications$56";

		//$mail->Password = "tjwportal20!";

		

		//Set who the message is to be sent from

		$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

		

		//Set an alternative reply-to address

		//$mail->addReplyTo('replyto@example.com', 'First Last');

		

		//Set who the message is to be sent to

		$mail->addAddress($email);

		$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "Application - Inclass-Tefl-Course - tesolcourseindia.com [#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>Application - Inclass-Tefl-Course - tesolcourseindia.com</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>
		
		<tr>

		<td><b>Mode Of Study </b></td>

		<td>".$this->mode."</td>

		</tr>

		

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}



	function InsertData6()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'Application - Live-Online-TEFL-Course - tesolcourseindia.com', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'Application - Live-Online-TEFL-Course - tesolcourseindia.com', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'".$this->mode. "', ";

		$insert_sql = $insert_sql . "'367', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql .  "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'".$this->comments. "',";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	

	function SendMail6()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		

		

		

		//$email = "sulagna.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

		

		//Tell PHPMailer to use SMTP

		$mail->isSMTP();

		

		//Enable SMTP debugging

		// 0 = off (for production use)

		// 1 = client messages

		// 2 = client and server messages

		$mail->SMTPDebug = 0;

		

		//Ask for HTML-friendly debug output

		$mail->Debugoutput = 'html';

		

		//Set the hostname of the mail server

		//$mail->Host = 'smtp.gmail.com';

		$mail->Host = 'vps.teflindia.in';

		

		//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

		$mail->Port = 465;

		

		//Set the encryption system to use - ssl (deprecated) or tls

		$mail->SMTPSecure = 'ssl';

		

		//Whether to use SMTP authentication

		$mail->SMTPAuth = true;

		

		//Username to use for SMTP authentication - use full email address for gmail

		$mail->Username = "applications@asiancollegeofteachers.in";

		//$mail->Username = "admin@teachersjobworld.com";


		

		//Password to use for SMTP authentication

		$mail->Password = "ACTApplications$56";

		//$mail->Password = "tjwportal20!";

		

		//Set who the message is to be sent from

		$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

		

		//Set an alternative reply-to address

		//$mail->addReplyTo('replyto@example.com', 'First Last');

		

		//Set who the message is to be sent to

		$mail->addAddress($email);

		$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "Application - Live-Online-TEFL-Course - tesolcourseindia.com [#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>Application - Live-Online-TEFL-Course - tesolcourseindia.com</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		

		<tr>

		<td><b>Mode Of Study </b></td>

		<td>".$this->mode."</td>

		</tr>

		

		<tr>

		<td><b>Additional Comments </b></td>

		<td>".$this->comments."</td>

		</tr>

		

		

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}
	
	
	function InsertData7()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'Application - Tesol-India-Kolkata - tesolcourseindia.com', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'Application - Tesol-India-Kolkata - tesolcourseindia.com', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'373', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql .  "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	

	function SendMail7()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		

		

		

		//$email = "sulagna.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

		

		//Tell PHPMailer to use SMTP

		$mail->isSMTP();

		

		//Enable SMTP debugging

		// 0 = off (for production use)

		// 1 = client messages

		// 2 = client and server messages

		$mail->SMTPDebug = 0;

		

		//Ask for HTML-friendly debug output

		$mail->Debugoutput = 'html';

		

		//Set the hostname of the mail server

		//$mail->Host = 'smtp.gmail.com';

		$mail->Host = 'vps.teflindia.in';

		

		//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

		$mail->Port = 465;

		

		//Set the encryption system to use - ssl (deprecated) or tls

		$mail->SMTPSecure = 'ssl';

		

		//Whether to use SMTP authentication

		$mail->SMTPAuth = true;

		

		//Username to use for SMTP authentication - use full email address for gmail

		$mail->Username = "applications@asiancollegeofteachers.in";

		//$mail->Username = "admin@teachersjobworld.com";


		

		//Password to use for SMTP authentication

		$mail->Password = "ACTApplications$56";

		//$mail->Password = "tjwportal20!";

		

		//Set who the message is to be sent from

		$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

		

		//Set an alternative reply-to address

		//$mail->addReplyTo('replyto@example.com', 'First Last');

		

		//Set who the message is to be sent to

		$mail->addAddress($email);

		$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "Application - Tesol-India-Kolkata - tesolcourseindia.com [#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>Application - Tesol-India-Kolkata - tesolcourseindia.com</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		
		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}





function InsertData8()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'Application - Tesol-India-Kochi - tesolcourseindia.com', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'Application - Tesol-India-Kochi - tesolcourseindia.com', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'374', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql .  "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	

	function SendMail8()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		

		

		

		//$email = "sulagna.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

		

		//Tell PHPMailer to use SMTP

		$mail->isSMTP();

		

		//Enable SMTP debugging

		// 0 = off (for production use)

		// 1 = client messages

		// 2 = client and server messages

		$mail->SMTPDebug = 0;

		

		//Ask for HTML-friendly debug output

		$mail->Debugoutput = 'html';

		

		//Set the hostname of the mail server

		//$mail->Host = 'smtp.gmail.com';

		$mail->Host = 'vps.teflindia.in';

		

		//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

		$mail->Port = 465;

		

		//Set the encryption system to use - ssl (deprecated) or tls

		$mail->SMTPSecure = 'ssl';

		

		//Whether to use SMTP authentication

		$mail->SMTPAuth = true;

		

		//Username to use for SMTP authentication - use full email address for gmail

		$mail->Username = "applications@asiancollegeofteachers.in";

		//$mail->Username = "admin@teachersjobworld.com";



		

		//Password to use for SMTP authentication

		$mail->Password = "ACTApplications$56";

		//$mail->Password = "tjwportal20!";

		

		//Set who the message is to be sent from

		$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

		

		//Set an alternative reply-to address

		//$mail->addReplyTo('replyto@example.com', 'First Last');

		

		//Set who the message is to be sent to

		$mail->addAddress($email);

		$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "Application - Tesol-India-Kochi - tesolcourseindia.com [#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>Application - Tesol-India-Kochi - tesolcourseindia.com</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		
		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}



function InsertData9()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'Application - Tesol-India-Bangalore - tesolcourseindia.com', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'Application - Tesol-India-Bangalore - tesolcourseindia.com', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'375', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql .  "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	

	function SendMail9()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		

		

		

		//$email = "sulagna.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

		

		//Tell PHPMailer to use SMTP

		$mail->isSMTP();

		

		//Enable SMTP debugging

		// 0 = off (for production use)

		// 1 = client messages

		// 2 = client and server messages

		$mail->SMTPDebug = 0;

		

		//Ask for HTML-friendly debug output

		$mail->Debugoutput = 'html';

		

		//Set the hostname of the mail server

		//$mail->Host = 'smtp.gmail.com';

		$mail->Host = 'vps.teflindia.in';

		

		//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

		$mail->Port = 465;

		

		//Set the encryption system to use - ssl (deprecated) or tls

		$mail->SMTPSecure = 'ssl';

		

		//Whether to use SMTP authentication

		$mail->SMTPAuth = true;

		

		//Username to use for SMTP authentication - use full email address for gmail

		$mail->Username = "applications@asiancollegeofteachers.in";

		//$mail->Username = "admin@teachersjobworld.com";




		

		//Password to use for SMTP authentication

		$mail->Password = "ACTApplications$56";

		//$mail->Password = "tjwportal20!";

		

		//Set who the message is to be sent from

		$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

		

		//Set an alternative reply-to address

		//$mail->addReplyTo('replyto@example.com', 'First Last');

		

		//Set who the message is to be sent to

		$mail->addAddress($email);

		$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "Application - Tesol-India-Bangalore - tesolcourseindia.com [#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>Application - Tesol-India-Bangalore - tesolcourseindia.com</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}
	
	
	function InsertData10()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'Live Online TEFL (tesolcourseindia.com/Live-Online-TEFL-Course.php)', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'Live Online TEFL (tesolcourseindia.com/Live-Online-TEFL-Course.php)', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'367', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	//for Subscribe to our Newsletter! (ACT)

	function SendMail10()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		//$email = "nikita94.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

		

		//Tell PHPMailer to use SMTP

		$mail->isSMTP();

		

		//Enable SMTP debugging

		// 0 = off (for production use)

		// 1 = client messages

		// 2 = client and server messages

		$mail->SMTPDebug = 0;

		

		//Ask for HTML-friendly debug output

		$mail->Debugoutput = 'html';

		

		//Set the hostname of the mail server

		//$mail->Host = 'smtp.gmail.com';

		$mail->Host = 'vps.teflindia.in';

		

		//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

		$mail->Port = 465;

		

		//Set the encryption system to use - ssl (deprecated) or tls

		$mail->SMTPSecure = 'ssl';

		

		//Whether to use SMTP authentication

		$mail->SMTPAuth = true;

		

		//Username to use for SMTP authentication - use full email address for gmail

		$mail->Username = "applications@asiancollegeofteachers.in";

		//$mail->Username = "admin@teachersjobworld.com";

		

		//Password to use for SMTP authentication


		$mail->Password = "ACTApplications$56";

		//$mail->Password = "tjwportal20!";

		

		//Set who the message is to be sent from

		$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

		

		//Set an alternative reply-to address

		//$mail->addReplyTo('replyto@example.com', 'First Last');

		

		//Set who the message is to be sent to

		$mail->addAddress($email);

		$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "Live Online TEFL (tesolcourseindia.com/Live-Online-TEFL-Course.php) [#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>Live Online TEFL (tesolcourseindia.com/Live-Online-TEFL-Course.php)</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}





function InsertData11()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'Tesol-India-Bangkok (tesolcourseindia.com/tesol-india-bangkok.php)', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'Tesol-India-Bangkok (tesolcourseindia.com/tesol-india-bangkok.php)', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'405', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	//for Subscribe to our Newsletter! (ACT)

	function SendMail11()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		//$email = "nikita94.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

		

		//Tell PHPMailer to use SMTP

		$mail->isSMTP();

		

		//Enable SMTP debugging

		// 0 = off (for production use)

		// 1 = client messages

		// 2 = client and server messages

		$mail->SMTPDebug = 0;

		

		//Ask for HTML-friendly debug output

		$mail->Debugoutput = 'html';

		

		//Set the hostname of the mail server

		//$mail->Host = 'smtp.gmail.com';

		$mail->Host = 'vps.teflindia.in';

		

		//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

		$mail->Port = 465;

		

		//Set the encryption system to use - ssl (deprecated) or tls

		$mail->SMTPSecure = 'ssl';

		

		//Whether to use SMTP authentication

		$mail->SMTPAuth = true;

		

		//Username to use for SMTP authentication - use full email address for gmail

		$mail->Username = "applications@asiancollegeofteachers.in";

		//$mail->Username = "admin@teachersjobworld.com";

		

		//Password to use for SMTP authentication


		$mail->Password = "ACTApplications$56";

		//$mail->Password = "tjwportal20!";

		

		//Set who the message is to be sent from

		$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

		

		//Set an alternative reply-to address

		//$mail->addReplyTo('replyto@example.com', 'First Last');

		

		//Set who the message is to be sent to

		$mail->addAddress($email);

		$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "Tesol-India-Bangkok (tesolcourseindia.com/tesol-india-bangkok.php) [#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>Tesol-India-Bangkok (tesolcourseindia.com/tesol-india-bangkok.php)</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}







function InsertData12()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'Tesol-India-Mumbai (tesolcourseindia.com/tesol-india-mumbai.php)', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'Tesol-India-Mumbai (tesolcourseindia.com/tesol-india-mumbai.php)', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'406', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	//for Subscribe to our Newsletter! (ACT)

	function SendMail12()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		//$email = "nikita94.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

		

		//Tell PHPMailer to use SMTP

		$mail->isSMTP();

		

		//Enable SMTP debugging

		// 0 = off (for production use)

		// 1 = client messages

		// 2 = client and server messages

		$mail->SMTPDebug = 0;

		

		//Ask for HTML-friendly debug output

		$mail->Debugoutput = 'html';

		

		//Set the hostname of the mail server

		//$mail->Host = 'smtp.gmail.com';

		$mail->Host = 'vps.teflindia.in';

		

		//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

		$mail->Port = 465;

		

		//Set the encryption system to use - ssl (deprecated) or tls

		$mail->SMTPSecure = 'ssl';

		

		//Whether to use SMTP authentication

		$mail->SMTPAuth = true;

		

		//Username to use for SMTP authentication - use full email address for gmail

		$mail->Username = "applications@asiancollegeofteachers.in";

		//$mail->Username = "admin@teachersjobworld.com";

		

		//Password to use for SMTP authentication


		$mail->Password = "ACTApplications$56";

		//$mail->Password = "tjwportal20!";

		

		//Set who the message is to be sent from

		$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

		

		//Set an alternative reply-to address

		//$mail->addReplyTo('replyto@example.com', 'First Last');

		

		//Set who the message is to be sent to

		$mail->addAddress($email);

		$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "Tesol-India-Mumbai (tesolcourseindia.com/tesol-india-mumbai.php) [#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>Tesol-India-Mumbai (tesolcourseindia.com/tesol-india-mumbai.php)</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}
	
	

function InsertData13()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'Tesol-India-hyderabad (tesolcourseindia.com/tesol-india-hyderabad.php)', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'Tesol-India-hyderabad (tesolcourseindia.com/tesol-india-hyderabad.php)', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'407', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	//for Subscribe to our Newsletter! (ACT)

	function SendMail13()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		//$email = "nikita94.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

		

		//Tell PHPMailer to use SMTP

		$mail->isSMTP();

		

		//Enable SMTP debugging

		// 0 = off (for production use)

		// 1 = client messages

		// 2 = client and server messages

		$mail->SMTPDebug = 0;

		

		//Ask for HTML-friendly debug output

		$mail->Debugoutput = 'html';

		

		//Set the hostname of the mail server

		//$mail->Host = 'smtp.gmail.com';

		$mail->Host = 'vps.teflindia.in';

		

		//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

		$mail->Port = 465;

		

		//Set the encryption system to use - ssl (deprecated) or tls

		$mail->SMTPSecure = 'ssl';

		

		//Whether to use SMTP authentication

		$mail->SMTPAuth = true;

		

		//Username to use for SMTP authentication - use full email address for gmail

		$mail->Username = "applications@asiancollegeofteachers.in";

		//$mail->Username = "admin@teachersjobworld.com";

		

		//Password to use for SMTP authentication


		$mail->Password = "ACTApplications$56";

		//$mail->Password = "tjwportal20!";

		

		//Set who the message is to be sent from

		$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

		

		//Set an alternative reply-to address

		//$mail->addReplyTo('replyto@example.com', 'First Last');

		

		//Set who the message is to be sent to

		$mail->addAddress($email);

		$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "Tesol-India-hyderabad (tesolcourseindia.com/tesol-india-hyderabad.php) [#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>Tesol-India-hyderabad (tesolcourseindia.com/tesol-india-hyderabad.php)</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}



function InsertData14()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'Tesol-India-delhi (tesolcourseindia.com/tesol-india-delhi.php)', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'Tesol-India-delhi (tesolcourseindia.com/tesol-india-delhi.php)', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'408', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	//for Subscribe to our Newsletter! (ACT)

	function SendMail14()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		//$email = "nikita94.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

		

		//Tell PHPMailer to use SMTP

		$mail->isSMTP();

		

		//Enable SMTP debugging

		// 0 = off (for production use)

		// 1 = client messages

		// 2 = client and server messages

		$mail->SMTPDebug = 0;

		

		//Ask for HTML-friendly debug output

		$mail->Debugoutput = 'html';

		

		//Set the hostname of the mail server

		//$mail->Host = 'smtp.gmail.com';

		$mail->Host = 'vps.teflindia.in';

		

		//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

		$mail->Port = 465;

		

		//Set the encryption system to use - ssl (deprecated) or tls

		$mail->SMTPSecure = 'ssl';

		

		//Whether to use SMTP authentication

		$mail->SMTPAuth = true;

		

		//Username to use for SMTP authentication - use full email address for gmail

		$mail->Username = "applications@asiancollegeofteachers.in";

		//$mail->Username = "admin@teachersjobworld.com";

		

		//Password to use for SMTP authentication


		$mail->Password = "ACTApplications$56";

		//$mail->Password = "tjwportal20!";

		

		//Set who the message is to be sent from

		$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

		

		//Set an alternative reply-to address

		//$mail->addReplyTo('replyto@example.com', 'First Last');

		

		//Set who the message is to be sent to

		$mail->addAddress($email);

		$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "Tesol-India-delhi (tesolcourseindia.com/tesol-india-delhi.php) [#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>Tesol-India-delhi (tesolcourseindia.com/tesol-india-delhi.php)</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}
	
	function InsertData15()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'Tesol India Chennai (tesolcourseindia.com/tesol-india-chennai.php)', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'Tesol India Chennai (tesolcourseindia.com/tesol-india-chennai.php)', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'411', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	//for Subscribe to our Newsletter! (ACT)

	function SendMail15()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		//$email = "nikita94.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

		

		//Tell PHPMailer to use SMTP

		$mail->isSMTP();

		

		//Enable SMTP debugging

		// 0 = off (for production use)

		// 1 = client messages

		// 2 = client and server messages

		$mail->SMTPDebug = 0;

		

		//Ask for HTML-friendly debug output

		$mail->Debugoutput = 'html';

		

		//Set the hostname of the mail server

		//$mail->Host = 'smtp.gmail.com';

		$mail->Host = 'vps.teflindia.in';

		

		//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

		$mail->Port = 465;

		

		//Set the encryption system to use - ssl (deprecated) or tls

		$mail->SMTPSecure = 'ssl';

		

		//Whether to use SMTP authentication

		$mail->SMTPAuth = true;

		

		//Username to use for SMTP authentication - use full email address for gmail

		$mail->Username = "applications@asiancollegeofteachers.in";

		//$mail->Username = "admin@teachersjobworld.com";

		

		//Password to use for SMTP authentication


		$mail->Password = "ACTApplications$56";

		//$mail->Password = "tjwportal20!";

		

		//Set who the message is to be sent from

		$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

		

		//Set an alternative reply-to address

		//$mail->addReplyTo('replyto@example.com', 'First Last');

		

		//Set who the message is to be sent to

		$mail->addAddress($email);

		$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "Tesol India Chennai (tesolcourseindia.com/tesol-india-chennai.php)[#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>Tesol India Chennai (tesolcourseindia.com/tesol-india-chennai.php)</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}
	
	function InsertData16()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'Tesol India Pune (tesolcourseindia.com/tesol-india-pune.php)', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'Tesol India Pune (tesolcourseindia.com/tesol-india-pune.php)', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'412', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	//for Subscribe to our Newsletter! (ACT)

	function SendMail16()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		//$email = "nikita94.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

		

		//Tell PHPMailer to use SMTP

		$mail->isSMTP();

		

		//Enable SMTP debugging

		// 0 = off (for production use)

		// 1 = client messages

		// 2 = client and server messages

		$mail->SMTPDebug = 0;

		

		//Ask for HTML-friendly debug output

		$mail->Debugoutput = 'html';

		

		//Set the hostname of the mail server

		//$mail->Host = 'smtp.gmail.com';

		$mail->Host = 'vps.teflindia.in';

		

		//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

		$mail->Port = 465;

		

		//Set the encryption system to use - ssl (deprecated) or tls

		$mail->SMTPSecure = 'ssl';

		

		//Whether to use SMTP authentication

		$mail->SMTPAuth = true;

		

		//Username to use for SMTP authentication - use full email address for gmail

		$mail->Username = "applications@asiancollegeofteachers.in";

		//$mail->Username = "admin@teachersjobworld.com";

		

		//Password to use for SMTP authentication


		$mail->Password = "ACTApplications$56";

		//$mail->Password = "tjwportal20!";

		

		//Set who the message is to be sent from

		$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

		

		//Set an alternative reply-to address

		//$mail->addReplyTo('replyto@example.com', 'First Last');

		

		//Set who the message is to be sent to

		$mail->addAddress($email);

		$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "Tesol India Pune (tesolcourseindia.com/tesol-india-pune.php)[#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>Tesol India Pune (tesolcourseindia.com/tesol-india-pune.php)</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}




function InsertData17()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'Tesol India Pune (tesolcourseindia.com/tesol-india-goa.php)', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'Tesol India Pune (tesolcourseindia.com/tesol-india-goa.php)', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'413', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	//for Subscribe to our Newsletter! (ACT)

	function SendMail17()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		//$email = "nikita94.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

		

		//Tell PHPMailer to use SMTP

		$mail->isSMTP();

		

		//Enable SMTP debugging

		// 0 = off (for production use)

		// 1 = client messages

		// 2 = client and server messages

		$mail->SMTPDebug = 0;

		

		//Ask for HTML-friendly debug output

		$mail->Debugoutput = 'html';

		

		//Set the hostname of the mail server

		//$mail->Host = 'smtp.gmail.com';

		$mail->Host = 'vps.teflindia.in';

		

		//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

		$mail->Port = 465;

		

		//Set the encryption system to use - ssl (deprecated) or tls

		$mail->SMTPSecure = 'ssl';

		

		//Whether to use SMTP authentication

		$mail->SMTPAuth = true;

		

		//Username to use for SMTP authentication - use full email address for gmail

		$mail->Username = "applications@asiancollegeofteachers.in";

		//$mail->Username = "admin@teachersjobworld.com";

		

		//Password to use for SMTP authentication


		$mail->Password = "ACTApplications$56";

		//$mail->Password = "tjwportal20!";

		

		//Set who the message is to be sent from

		$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

		

		//Set an alternative reply-to address

		//$mail->addReplyTo('replyto@example.com', 'First Last');

		

		//Set who the message is to be sent to

		$mail->addAddress($email);

		$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "Tesol India Pune (tesolcourseindia.com/tesol-india-goa.php)[#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>Tesol India Pune (tesolcourseindia.com/tesol-india-goa.php)</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}
	
	
	

function InsertData18()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'Tesol India Ahmedabad (tesolcourseindia.com/tesol-india-ahmedabad.php)', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'Tesol India Ahmedabad (tesolcourseindia.com/tesol-india-ahmedabad.php)', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'414', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	//for Subscribe to our Newsletter! (ACT)

	function SendMail18()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		//$email = "nikita94.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

		

		//Tell PHPMailer to use SMTP

		$mail->isSMTP();

		

		//Enable SMTP debugging

		// 0 = off (for production use)

		// 1 = client messages

		// 2 = client and server messages

		$mail->SMTPDebug = 0;

		

		//Ask for HTML-friendly debug output

		$mail->Debugoutput = 'html';

		

		//Set the hostname of the mail server

		//$mail->Host = 'smtp.gmail.com';

		$mail->Host = 'vps.teflindia.in';

		

		//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

		$mail->Port = 465;

		

		//Set the encryption system to use - ssl (deprecated) or tls

		$mail->SMTPSecure = 'ssl';

		

		//Whether to use SMTP authentication

		$mail->SMTPAuth = true;

		

		//Username to use for SMTP authentication - use full email address for gmail

		$mail->Username = "applications@asiancollegeofteachers.in";

		//$mail->Username = "admin@teachersjobworld.com";

		

		//Password to use for SMTP authentication


		$mail->Password = "ACTApplications$56";

		//$mail->Password = "tjwportal20!";

		

		//Set who the message is to be sent from

		$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

		

		//Set an alternative reply-to address

		//$mail->addReplyTo('replyto@example.com', 'First Last');

		

		//Set who the message is to be sent to

		$mail->addAddress($email);

		$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "Tesol India Ahmedabad (tesolcourseindia.com/tesol-india-ahmedabad.php)[#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>Tesol India Ahmedabad (tesolcourseindia.com/tesol-india-ahmedabad.php)</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	
		

		

	}







function InsertData19()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'TEFL-Certificate (tesolcourseindia.com/TEFL-Certificate.php)', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'TEFL-Certificate (tesolcourseindia.com/TEFL-Certificate.php)', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'415', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	//for Subscribe to our Newsletter! (ACT)

	function SendMail19()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		//$email = "nikita94.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

		

		//Tell PHPMailer to use SMTP

		$mail->isSMTP();

		

		//Enable SMTP debugging

		// 0 = off (for production use)

		// 1 = client messages

		// 2 = client and server messages

		$mail->SMTPDebug = 0;

		

		//Ask for HTML-friendly debug output

		$mail->Debugoutput = 'html';

		

		//Set the hostname of the mail server

		//$mail->Host = 'smtp.gmail.com';

		$mail->Host = 'vps.teflindia.in';

		

		//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

		$mail->Port = 465;

		

		//Set the encryption system to use - ssl (deprecated) or tls

		$mail->SMTPSecure = 'ssl';

		

		//Whether to use SMTP authentication

		$mail->SMTPAuth = true;

		

		//Username to use for SMTP authentication - use full email address for gmail

		$mail->Username = "applications@asiancollegeofteachers.in";

		//$mail->Username = "admin@teachersjobworld.com";

		

		//Password to use for SMTP authentication


		$mail->Password = "ACTApplications$56";

		//$mail->Password = "tjwportal20!";

		

		//Set who the message is to be sent from

		$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

		

		//Set an alternative reply-to address

		//$mail->addReplyTo('replyto@example.com', 'First Last');

		

		//Set who the message is to be sent to

		$mail->addAddress($email);

		$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "TEFL-Certificate (tesolcourseindia.com/TEFL-Certificate.php)[#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>TEFL-Certificate (tesolcourseindia.com/TEFL-Certificate.php)</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	
		

		

	}
	
	function InsertData20()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'Bachelor of Education in TESOL (tesolcourseindia.com/Bachelor-of-Education-in-TESOL.php)', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'Bachelor of Education in TESOL (tesolcourseindia.com/Bachelor-of-Education-in-TESOL.php)', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'416', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	//for Subscribe to our Newsletter! (ACT)

	function SendMail20()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		//$email = "nikita94.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

		

		//Tell PHPMailer to use SMTP

		$mail->isSMTP();

		

		//Enable SMTP debugging

		// 0 = off (for production use)

		// 1 = client messages

		// 2 = client and server messages

		$mail->SMTPDebug = 0;

		

		//Ask for HTML-friendly debug output

		$mail->Debugoutput = 'html';

		

		//Set the hostname of the mail server

		//$mail->Host = 'smtp.gmail.com';

		$mail->Host = 'vps.teflindia.in';

		

		//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

		$mail->Port = 465;

		

		//Set the encryption system to use - ssl (deprecated) or tls

		$mail->SMTPSecure = 'ssl';

		

		//Whether to use SMTP authentication

		$mail->SMTPAuth = true;

		

		//Username to use for SMTP authentication - use full email address for gmail

		$mail->Username = "applications@asiancollegeofteachers.in";

		//$mail->Username = "admin@teachersjobworld.com";

		

		//Password to use for SMTP authentication


		$mail->Password = "ACTApplications$56";

		//$mail->Password = "tjwportal20!";

		

		//Set who the message is to be sent from

		$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

		

		//Set an alternative reply-to address

		//$mail->addReplyTo('replyto@example.com', 'First Last');

		

		//Set who the message is to be sent to

		$mail->addAddress($email);

		$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "Bachelor of Education in TESOL (tesolcourseindia.com/Bachelor-of-Education-in-TESOL.php) [#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>Bachelor of Education in TESOL (tesolcourseindia.com/Bachelor-of-Education-in-TESOL.php)</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}


	function InsertData21()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'TEFL-YLTT (tesolcourseindia.com/TEFL-YLTT.php)', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'TEFL-YLTT (tesolcourseindia.com/TEFL-YLTT.php)', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'417', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	//for Subscribe to our Newsletter! (ACT)

	function SendMail21()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		//$email = "nikita94.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

		

		//Tell PHPMailer to use SMTP

		$mail->isSMTP();

		

		//Enable SMTP debugging

		// 0 = off (for production use)

		// 1 = client messages

		// 2 = client and server messages

		$mail->SMTPDebug = 0;

		

		//Ask for HTML-friendly debug output

		$mail->Debugoutput = 'html';

		

		//Set the hostname of the mail server

		//$mail->Host = 'smtp.gmail.com';

		$mail->Host = 'vps.teflindia.in';

		

		//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

		$mail->Port = 465;

		

		//Set the encryption system to use - ssl (deprecated) or tls

		$mail->SMTPSecure = 'ssl';

		

		//Whether to use SMTP authentication

		$mail->SMTPAuth = true;

		

		//Username to use for SMTP authentication - use full email address for gmail

		$mail->Username = "applications@asiancollegeofteachers.in";

		//$mail->Username = "admin@teachersjobworld.com";

		

		//Password to use for SMTP authentication


		$mail->Password = "ACTApplications$56";

		//$mail->Password = "tjwportal20!";

		

		//Set who the message is to be sent from

		$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

		

		//Set an alternative reply-to address

		//$mail->addReplyTo('replyto@example.com', 'First Last');

		

		//Set who the message is to be sent to

		$mail->addAddress($email);

		$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "TEFL-YLTT (tesolcourseindia.com/TEFL-YLTT.php) [#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>TEFL-YLTT (tesolcourseindia.com/TEFL-YLTT.php)</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}





function InsertData22()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'International PG Diploma TEFL (tesolcourseindia.com/international-pg-diploma-TEFL.php)', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'International PG Diploma TEFL (tesolcourseindia.com/international-pg-diploma-TEFL.php)', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'418', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	//for Subscribe to our Newsletter! (ACT)

	function SendMail22()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		//$email = "nikita94.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

		

		//Tell PHPMailer to use SMTP

		$mail->isSMTP();

		

		//Enable SMTP debugging

		// 0 = off (for production use)

		// 1 = client messages

		// 2 = client and server messages

		$mail->SMTPDebug = 0;

		

		//Ask for HTML-friendly debug output

		$mail->Debugoutput = 'html';

		

		//Set the hostname of the mail server

		//$mail->Host = 'smtp.gmail.com';

		$mail->Host = 'vps.teflindia.in';

		

		//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

		$mail->Port = 465;

		

		//Set the encryption system to use - ssl (deprecated) or tls

		$mail->SMTPSecure = 'ssl';

		

		//Whether to use SMTP authentication

		$mail->SMTPAuth = true;

		

		//Username to use for SMTP authentication - use full email address for gmail

		$mail->Username = "applications@asiancollegeofteachers.in";

		//$mail->Username = "admin@teachersjobworld.com";

		

		//Password to use for SMTP authentication


		$mail->Password = "ACTApplications$56";

		//$mail->Password = "tjwportal20!";

		

		//Set who the message is to be sent from

		$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

		

		//Set an alternative reply-to address

		//$mail->addReplyTo('replyto@example.com', 'First Last');

		

		//Set who the message is to be sent to

		$mail->addAddress($email);

		$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "International PG Diploma TEFL (tesolcourseindia.com/international-pg-diploma-TEFL.php) [#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>International PG Diploma TEFL (tesolcourseindia.com/international-pg-diploma-TEFL.php)</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}





function InsertData23()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'TEFL Diploma (tesolcourseindia.com/TEFL-Diploma.php)', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'TEFL Diploma (tesolcourseindia.com/TEFL-Diploma.php)', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'419', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	//for Subscribe to our Newsletter! (ACT)

	function SendMail23()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		//$email = "nikita94.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

		

		//Tell PHPMailer to use SMTP

		$mail->isSMTP();

		

		//Enable SMTP debugging

		// 0 = off (for production use)

		// 1 = client messages

		// 2 = client and server messages

		$mail->SMTPDebug = 0;

		

		//Ask for HTML-friendly debug output

		$mail->Debugoutput = 'html';

		

		//Set the hostname of the mail server

		//$mail->Host = 'smtp.gmail.com';

		$mail->Host = 'vps.teflindia.in';

		

		//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

		$mail->Port = 465;

		

		//Set the encryption system to use - ssl (deprecated) or tls

		$mail->SMTPSecure = 'ssl';

		

		//Whether to use SMTP authentication

		$mail->SMTPAuth = true;

		

		//Username to use for SMTP authentication - use full email address for gmail

		$mail->Username = "applications@asiancollegeofteachers.in";

		//$mail->Username = "admin@teachersjobworld.com";

		

		//Password to use for SMTP authentication


		$mail->Password = "ACTApplications$56";

		//$mail->Password = "tjwportal20!";

		

		//Set who the message is to be sent from

		$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

		

		//Set an alternative reply-to address

		//$mail->addReplyTo('replyto@example.com', 'First Last');

		

		//Set who the message is to be sent to

		$mail->addAddress($email);

		$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "International PG Diploma TEFL (tesolcourseindia.com/international-pg-diploma-TEFL.php) [#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>TEFL Diploma (tesolcourseindia.com/TEFL-Diploma.php)</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}





function InsertData24()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'TEFL Advanced Diploma (tesolcourseindia.com/TEFL-Advanced-Diploma.php)', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'TEFL Advanced Diploma (tesolcourseindia.com/TEFL-Advanced-Diploma.php)', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'420', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	//for Subscribe to our Newsletter! (ACT)

	function SendMail24()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		//$email = "nikita94.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

		

		//Tell PHPMailer to use SMTP

		$mail->isSMTP();

		

		//Enable SMTP debugging

		// 0 = off (for production use)

		// 1 = client messages

		// 2 = client and server messages

		$mail->SMTPDebug = 0;

		

		//Ask for HTML-friendly debug output

		$mail->Debugoutput = 'html';

		

		//Set the hostname of the mail server

		//$mail->Host = 'smtp.gmail.com';

		$mail->Host = 'vps.teflindia.in';

		

		//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

		$mail->Port = 465;

		

		//Set the encryption system to use - ssl (deprecated) or tls

		$mail->SMTPSecure = 'ssl';

		

		//Whether to use SMTP authentication

		$mail->SMTPAuth = true;

		

		//Username to use for SMTP authentication - use full email address for gmail

		$mail->Username = "applications@asiancollegeofteachers.in";

		//$mail->Username = "admin@teachersjobworld.com";

		

		//Password to use for SMTP authentication


		$mail->Password = "ACTApplications$56";

		//$mail->Password = "tjwportal20!";

		

		//Set who the message is to be sent from

		$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

		

		//Set an alternative reply-to address

		//$mail->addReplyTo('replyto@example.com', 'First Last');

		

		//Set who the message is to be sent to

		$mail->addAddress($email);

		$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "TEFL Advanced Diploma (tesolcourseindia.com/TEFL-Advanced-Diploma.php) [#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>TEFL Advanced Diploma (tesolcourseindia.com/TEFL-Advanced-Diploma.php)</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}







function InsertData25()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'TEFL-BETT (tesolcourseindia.com/TEFL-BETT.php)', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'TEFL-BETT (tesolcourseindia.com/TEFL-BETT.php)', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'421', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	//for Subscribe to our Newsletter! (ACT)

	function SendMail25()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		//$email = "nikita94.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

		

		//Tell PHPMailer to use SMTP

		$mail->isSMTP();

		

		//Enable SMTP debugging

		// 0 = off (for production use)

		// 1 = client messages

		// 2 = client and server messages

		$mail->SMTPDebug = 0;

		

		//Ask for HTML-friendly debug output

		$mail->Debugoutput = 'html';

		

		//Set the hostname of the mail server

		//$mail->Host = 'smtp.gmail.com';

		$mail->Host = 'vps.teflindia.in';

		

		//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

		$mail->Port = 465;

		

		//Set the encryption system to use - ssl (deprecated) or tls

		$mail->SMTPSecure = 'ssl';

		

		//Whether to use SMTP authentication

		$mail->SMTPAuth = true;

		

		//Username to use for SMTP authentication - use full email address for gmail

		$mail->Username = "applications@asiancollegeofteachers.in";

		//$mail->Username = "admin@teachersjobworld.com";

		

		//Password to use for SMTP authentication


		$mail->Password = "ACTApplications$56";

		//$mail->Password = "tjwportal20!";

		

		//Set who the message is to be sent from

		$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

		

		//Set an alternative reply-to address

		//$mail->addReplyTo('replyto@example.com', 'First Last');

		

		//Set who the message is to be sent to

		$mail->addAddress($email);

		$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "TEFL-BETT (tesolcourseindia.com/TEFL-BETT.php) [#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>TEFL-BETT (tesolcourseindia.com/TEFL-BETT.php)</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}
	
	
function InsertData26()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'Master of Arts in Education with TESOL (tesolcourseindia.com/Master-of-Arts-in-Education-with-TESOL.php)', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'Master of Arts in Education with TESOL (tesolcourseindia.com/Master-of-Arts-in-Education-with-TESOL.php)', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'424', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	//for Subscribe to our Newsletter! (ACT)

	function SendMail26()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		//$email = "nikita94.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

		

		//Tell PHPMailer to use SMTP

		$mail->isSMTP();

		

		//Enable SMTP debugging

		// 0 = off (for production use)

		// 1 = client messages

		// 2 = client and server messages

		$mail->SMTPDebug = 0;

		

		//Ask for HTML-friendly debug output

		$mail->Debugoutput = 'html';

		

		//Set the hostname of the mail server

		//$mail->Host = 'smtp.gmail.com';

		$mail->Host = 'vps.teflindia.in';

		

		//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

		$mail->Port = 465;

		

		//Set the encryption system to use - ssl (deprecated) or tls

		$mail->SMTPSecure = 'ssl';

		

		//Whether to use SMTP authentication

		$mail->SMTPAuth = true;

		

		//Username to use for SMTP authentication - use full email address for gmail

		$mail->Username = "applications@asiancollegeofteachers.in";

		//$mail->Username = "admin@teachersjobworld.com";

		

		//Password to use for SMTP authentication


		$mail->Password = "ACTApplications$56";

		//$mail->Password = "tjwportal20!";

		

		//Set who the message is to be sent from

		$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

		

		//Set an alternative reply-to address

		//$mail->addReplyTo('replyto@example.com', 'First Last');

		

		//Set who the message is to be sent to

		$mail->addAddress($email);

		$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "Master of Arts in Education with TESOL (tesolcourseindia.com/Master-of-Arts-in-Education-with-TESOL.php) [#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>Master of Arts in Education with TESOL (tesolcourseindia.com/Master-of-Arts-in-Education-with-TESOL.php)</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}
	
	
	
		
function InsertData35()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'Professional-Doctorate-in-Education - (tesolcourseindia)', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'Professional-Doctorate-in-Education - (tesolcourseindia)', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'706', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	//for Subscribe to our Newsletter! (ACT)

	function SendMail35()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		//$email = "nikita94.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

			

			//Tell PHPMailer to use SMTP

			$mail->isSMTP();

			

			//Enable SMTP debugging

			// 0 = off (for production use)

			// 1 = client messages

			// 2 = client and server messages

			$mail->SMTPDebug = 0;

			

			//Ask for HTML-friendly debug output

			$mail->Debugoutput = 'html';

			

			//Set the hostname of the mail server

			//$mail->Host = 'smtp.gmail.com';

			$mail->Host = 'vps.teflindia.in';

			

			//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

			$mail->Port = 465;

			

			//Set the encryption system to use - ssl (deprecated) or tls

			$mail->SMTPSecure = 'ssl';

			

			//Whether to use SMTP authentication

			$mail->SMTPAuth = true;

			

			//Username to use for SMTP authentication - use full email address for gmail

			$mail->Username = "applications@teflindia.in";

			//$mail->Username = "admin@teachersjobworld.com";

			

			//Password to use for SMTP authentication

			$mail->Password = "ACTApplications$56";

			//$mail->Password = "tjwportal20!";

			

			//Set who the message is to be sent from

			$mail->setFrom("applications@teflindia.in", "Asian College Of Teachers");

			//mail->setFrom("admin@teachersjobworld.com", "Teachers Job World");

			

			//Set an alternative reply-to address

			//$mail->addReplyTo('replyto@example.com', 'First Last');

			

			//Set who the message is to be sent to

			$mail->addAddress($email);

			$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "Professional-Doctorate-in-Education - (tesolcourseindia) [#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>Professional-Doctorate-in-Education - (tesolcourseindia)</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}
	
	
	
	
		
function InsertData36()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'500-hours-International-Advanced-PG-Diploma-in-TEFLTESOL - (tesolcourseindia)', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'500-hours-International-Advanced-PG-Diploma-in-TEFLTESOL - (tesolcourseindia)', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'709', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	//for Subscribe to our Newsletter! (ACT)

	function SendMail36()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		//$email = "nikita94.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

			

			//Tell PHPMailer to use SMTP

			$mail->isSMTP();

			

			//Enable SMTP debugging

			// 0 = off (for production use)

			// 1 = client messages

			// 2 = client and server messages

			$mail->SMTPDebug = 0;

			

			//Ask for HTML-friendly debug output

			$mail->Debugoutput = 'html';

			

			//Set the hostname of the mail server

			//$mail->Host = 'smtp.gmail.com';

			$mail->Host = 'vps.teflindia.in';

			

			//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

			$mail->Port = 465;

			

			//Set the encryption system to use - ssl (deprecated) or tls

			$mail->SMTPSecure = 'ssl';

			

			//Whether to use SMTP authentication

			$mail->SMTPAuth = true;

			

			//Username to use for SMTP authentication - use full email address for gmail

			$mail->Username = "applications@teflindia.in";

			//$mail->Username = "admin@teachersjobworld.com";

			

			//Password to use for SMTP authentication

			$mail->Password = "ACTApplications$56";

			//$mail->Password = "tjwportal20!";

			

			//Set who the message is to be sent from

			$mail->setFrom("applications@teflindia.in", "Asian College Of Teachers");

			//mail->setFrom("admin@teachersjobworld.com", "Teachers Job World");

			

			//Set an alternative reply-to address

			//$mail->addReplyTo('replyto@example.com', 'First Last');

			

			//Set who the message is to be sent to

			$mail->addAddress($email);

			$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "500-hours-International-Advanced-PG-Diploma-in-TEFLTESOL - (tesolcourseindia) [#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>500-hours-International-Advanced-PG-Diploma-in-TEFLTESOL - (tesolcourseindia)</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}






		
function InsertData38()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'Master_of_Education_with_TESOL - (tesolcourseindia)', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'Master_of_Education_with_TESOL - (tesolcourseindia)', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'1187', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	//for Subscribe to our Newsletter! (ACT)

	function SendMail38()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		//$email = "nikita94.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

			

			//Tell PHPMailer to use SMTP

			$mail->isSMTP();

			

			//Enable SMTP debugging

			// 0 = off (for production use)

			// 1 = client messages

			// 2 = client and server messages

			$mail->SMTPDebug = 0;

			

			//Ask for HTML-friendly debug output

			$mail->Debugoutput = 'html';

			

			//Set the hostname of the mail server

			//$mail->Host = 'smtp.gmail.com';

			$mail->Host = 'vps.teflindia.in';

			

			//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

			$mail->Port = 465;

			

			//Set the encryption system to use - ssl (deprecated) or tls

			$mail->SMTPSecure = 'ssl';

			

			//Whether to use SMTP authentication

			$mail->SMTPAuth = true;

			

			//Username to use for SMTP authentication - use full email address for gmail

			$mail->Username = "applications@teflindia.in";

			//$mail->Username = "admin@teachersjobworld.com";

			

			//Password to use for SMTP authentication

			$mail->Password = "ACTApplications$56";

			//$mail->Password = "tjwportal20!";

			

			//Set who the message is to be sent from

			$mail->setFrom("applications@teflindia.in", "Asian College Of Teachers");

			//mail->setFrom("admin@teachersjobworld.com", "Teachers Job World");

			

			//Set an alternative reply-to address

			//$mail->addReplyTo('replyto@example.com', 'First Last');

			

			//Set who the message is to be sent to

			$mail->addAddress($email);

			$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "Master_of_Education_with_TESOL - (tesolcourseindia) [#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>Master_of_Education_with_TESOL - (tesolcourseindia)</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}





		
function InsertData40()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'Ph.D-in-Education - (tesolcourseindia)', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'Ph.D-in-Education - (tesolcourseindia)', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'1258', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	//for Subscribe to our Newsletter! (ACT)

	function SendMail40()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		//$email = "nikita94.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

			

			//Tell PHPMailer to use SMTP

			$mail->isSMTP();

			

			//Enable SMTP debugging

			// 0 = off (for production use)

			// 1 = client messages

			// 2 = client and server messages

			$mail->SMTPDebug = 0;

			

			//Ask for HTML-friendly debug output

			$mail->Debugoutput = 'html';

			

			//Set the hostname of the mail server

			//$mail->Host = 'smtp.gmail.com';

			$mail->Host = 'vps.teflindia.in';

			

			//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

			$mail->Port = 465;

			

			//Set the encryption system to use - ssl (deprecated) or tls

			$mail->SMTPSecure = 'ssl';

			

			//Whether to use SMTP authentication

			$mail->SMTPAuth = true;

			

			//Username to use for SMTP authentication - use full email address for gmail

			$mail->Username = "applications@teflindia.in";

			//$mail->Username = "admin@teachersjobworld.com";

			

			//Password to use for SMTP authentication

			$mail->Password = "ACTApplications$56";

			//$mail->Password = "tjwportal20!";

			

			//Set who the message is to be sent from

			$mail->setFrom("applications@teflindia.in", "Asian College Of Teachers");

			//mail->setFrom("admin@teachersjobworld.com", "Teachers Job World");

			

			//Set an alternative reply-to address

			//$mail->addReplyTo('replyto@example.com', 'First Last');

			

			//Set who the message is to be sent to

			$mail->addAddress($email);

			$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "Ph.D-in-Education - (tesolcourseindia) [#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>Ph.D-in-Education - (tesolcourseindia)</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}







function InsertData27()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'about-us (tesolcourseindia.com/about.php)', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'about-us (tesolcourseindia.com/about.php)', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'423', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	//for Subscribe to our Newsletter! (ACT)

	function SendMail27()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		//$email = "nikita94.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

		

		//Tell PHPMailer to use SMTP

		$mail->isSMTP();

		

		//Enable SMTP debugging

		// 0 = off (for production use)

		// 1 = client messages

		// 2 = client and server messages

		$mail->SMTPDebug = 0;

		

		//Ask for HTML-friendly debug output

		$mail->Debugoutput = 'html';

		

		//Set the hostname of the mail server

		//$mail->Host = 'smtp.gmail.com';

		$mail->Host = 'vps.teflindia.in';

		

		//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

		$mail->Port = 465;

		

		//Set the encryption system to use - ssl (deprecated) or tls

		$mail->SMTPSecure = 'ssl';

		

		//Whether to use SMTP authentication

		$mail->SMTPAuth = true;

		

		//Username to use for SMTP authentication - use full email address for gmail

		$mail->Username = "applications@asiancollegeofteachers.in";

		//$mail->Username = "admin@teachersjobworld.com";

		

		//Password to use for SMTP authentication


		$mail->Password = "ACTApplications$56";

		//$mail->Password = "tjwportal20!";

		

		//Set who the message is to be sent from

		$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

		

		//Set an alternative reply-to address

		//$mail->addReplyTo('replyto@example.com', 'First Last');

		

		//Set who the message is to be sent to

		$mail->addAddress($email);

		$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "about-us (tesolcourseindia.com/about.php)[#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>about-us (tesolcourseindia.com/about.php)</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}





function InsertData28()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'ACT Hall of Fame (tesolcourseindia.com/ACT-Hall-of-Fame.php)', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'ACT Hall of Fame (tesolcourseindia.com/ACT-Hall-of-Fame.php)', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'422', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	//for Subscribe to our Newsletter! (ACT)

	function SendMail28()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		//$email = "nikita94.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

		

		//Tell PHPMailer to use SMTP

		$mail->isSMTP();

		

		//Enable SMTP debugging

		// 0 = off (for production use)

		// 1 = client messages

		// 2 = client and server messages

		$mail->SMTPDebug = 0;

		

		//Ask for HTML-friendly debug output

		$mail->Debugoutput = 'html';

		

		//Set the hostname of the mail server

		//$mail->Host = 'smtp.gmail.com';

		$mail->Host = 'vps.teflindia.in';

		

		//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

		$mail->Port = 465;

		

		//Set the encryption system to use - ssl (deprecated) or tls

		$mail->SMTPSecure = 'ssl';

		

		//Whether to use SMTP authentication

		$mail->SMTPAuth = true;

		

		//Username to use for SMTP authentication - use full email address for gmail

		$mail->Username = "applications@asiancollegeofteachers.in";

		//$mail->Username = "admin@teachersjobworld.com";

		

		//Password to use for SMTP authentication


		$mail->Password = "ACTApplications$56";

		//$mail->Password = "tjwportal20!";

		

		//Set who the message is to be sent from

		$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

		

		//Set an alternative reply-to address

		//$mail->addReplyTo('replyto@example.com', 'First Last');

		

		//Set who the message is to be sent to

		$mail->addAddress($email);

		$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "ACT Hall of Fame (tesolcourseindia.com/ACT-Hall-of-Fame.php)[#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>ACT Hall of Fame (tesolcourseindia.com/ACT-Hall-of-Fame.php)</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}
	
	
	

function InsertData29()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'live online seminars (tesolcourseindia.com/live-online-seminars.php)', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'live online seminars (tesolcourseindia.com/live-online-seminars.php)', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'365', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	//for Subscribe to our Newsletter! (ACT)

	function SendMail29()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		//$email = "nikita94.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

		

		//Tell PHPMailer to use SMTP

		$mail->isSMTP();

		

		//Enable SMTP debugging

		// 0 = off (for production use)

		// 1 = client messages

		// 2 = client and server messages

		$mail->SMTPDebug = 0;

		

		//Ask for HTML-friendly debug output

		$mail->Debugoutput = 'html';

		

		//Set the hostname of the mail server

		//$mail->Host = 'smtp.gmail.com';

		$mail->Host = 'vps.teflindia.in';

		

		//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

		$mail->Port = 465;

		

		//Set the encryption system to use - ssl (deprecated) or tls

		$mail->SMTPSecure = 'ssl';

		

		//Whether to use SMTP authentication

		$mail->SMTPAuth = true;

		

		//Username to use for SMTP authentication - use full email address for gmail

		$mail->Username = "applications@asiancollegeofteachers.in";

		//$mail->Username = "admin@teachersjobworld.com";

		

		//Password to use for SMTP authentication


		$mail->Password = "ACTApplications$56";

		//$mail->Password = "tjwportal20!";

		

		//Set who the message is to be sent from

		$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

		

		//Set an alternative reply-to address

		//$mail->addReplyTo('replyto@example.com', 'First Last');

		

		//Set who the message is to be sent to

		$mail->addAddress($email);

		$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "live online seminars (tesolcourseindia.com/live-online-seminars.php)[#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>live online seminars (tesolcourseindia.com/live-online-seminars.php)</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}
	
	
	

function InsertData30()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'jobs placement (tesolcourseindia.com/jobs-placement.php)', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'jobs placement (tesolcourseindia.com/jobs-placement.php)', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'425', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	//for Subscribe to our Newsletter! (ACT)

	function SendMail30()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		//$email = "nikita94.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

		

		//Tell PHPMailer to use SMTP

		$mail->isSMTP();

		

		//Enable SMTP debugging

		// 0 = off (for production use)

		// 1 = client messages

		// 2 = client and server messages

		$mail->SMTPDebug = 0;

		

		//Ask for HTML-friendly debug output

		$mail->Debugoutput = 'html';

		

		//Set the hostname of the mail server

		//$mail->Host = 'smtp.gmail.com';

		$mail->Host = 'vps.teflindia.in';

		

		//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

		$mail->Port = 465;

		

		//Set the encryption system to use - ssl (deprecated) or tls

		$mail->SMTPSecure = 'ssl';

		

		//Whether to use SMTP authentication

		$mail->SMTPAuth = true;

		

		//Username to use for SMTP authentication - use full email address for gmail

		$mail->Username = "applications@asiancollegeofteachers.in";

		//$mail->Username = "admin@teachersjobworld.com";

		

		//Password to use for SMTP authentication


		$mail->Password = "ACTApplications$56";

		//$mail->Password = "tjwportal20!";

		

		//Set who the message is to be sent from

		$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

		

		//Set an alternative reply-to address

		//$mail->addReplyTo('replyto@example.com', 'First Last');

		

		//Set who the message is to be sent to

		$mail->addAddress($email);

		$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "jobs placement (tesolcourseindia.com/jobs-placement.php)[#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>jobs placement (tesolcourseindia.com/jobs-placement.php)</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}
	
	
function InsertData31()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'Accrediations (tesolcourseindia.com/accrediations.php)', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'Accrediations (tesolcourseindia.com/accrediations.php)', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'427, ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	//for Subscribe to our Newsletter! (ACT)

	function SendMail31()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		//$email = "nikita94.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

		

		//Tell PHPMailer to use SMTP

		$mail->isSMTP();

		

		//Enable SMTP debugging

		// 0 = off (for production use)

		// 1 = client messages

		// 2 = client and server messages

		$mail->SMTPDebug = 0;

		

		//Ask for HTML-friendly debug output

		$mail->Debugoutput = 'html';

		

		//Set the hostname of the mail server

		//$mail->Host = 'smtp.gmail.com';

		$mail->Host = 'vps.teflindia.in';

		

		//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

		$mail->Port = 465;

		

		//Set the encryption system to use - ssl (deprecated) or tls

		$mail->SMTPSecure = 'ssl';

		

		//Whether to use SMTP authentication

		$mail->SMTPAuth = true;

		

		//Username to use for SMTP authentication - use full email address for gmail

		$mail->Username = "applications@asiancollegeofteachers.in";

		//$mail->Username = "admin@teachersjobworld.com";

		

		//Password to use for SMTP authentication


		$mail->Password = "ACTApplications$56";

		//$mail->Password = "tjwportal20!";

		

		//Set who the message is to be sent from

		$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

		

		//Set an alternative reply-to address

		//$mail->addReplyTo('replyto@example.com', 'First Last');

		

		//Set who the message is to be sent to

		$mail->addAddress($email);

		$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "Accrediations (tesolcourseindia.com/accrediations.php)[#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>Accrediations (tesolcourseindia.com/accrediations.php)</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}
	
	
function InsertData32()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'Tesol World (tesolcourseindia.com/tesol-world.php)', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'Tesol World (tesolcourseindia.com/tesol-world.php)', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'428', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	//for Subscribe to our Newsletter! (ACT)

	function SendMail32()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		//$email = "nikita94.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

		

		//Tell PHPMailer to use SMTP

		$mail->isSMTP();

		

		//Enable SMTP debugging

		// 0 = off (for production use)

		// 1 = client messages

		// 2 = client and server messages

		$mail->SMTPDebug = 0;

		

		//Ask for HTML-friendly debug output

		$mail->Debugoutput = 'html';

		

		//Set the hostname of the mail server

		//$mail->Host = 'smtp.gmail.com';

		$mail->Host = 'vps.teflindia.in';

		

		//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

		$mail->Port = 465;

		

		//Set the encryption system to use - ssl (deprecated) or tls

		$mail->SMTPSecure = 'ssl';

		

		//Whether to use SMTP authentication

		$mail->SMTPAuth = true;

		

		//Username to use for SMTP authentication - use full email address for gmail

		$mail->Username = "applications@asiancollegeofteachers.in";

		//$mail->Username = "admin@teachersjobworld.com";

		

		//Password to use for SMTP authentication


		$mail->Password = "ACTApplications$56";

		//$mail->Password = "tjwportal20!";

		

		//Set who the message is to be sent from

		$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

		

		//Set an alternative reply-to address

		//$mail->addReplyTo('replyto@example.com', 'First Last');

		

		//Set who the message is to be sent to

		$mail->addAddress($email);

		$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "Tesol World (tesolcourseindia.com/tesol-world.php)[#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>Tesol World (tesolcourseindia.com/tesol-world.php)</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}


	
function InsertData33()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'Careers (tesolcourseindia.com/careers.php)', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'Careers (tesolcourseindia.com/careers.php)', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'431', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	//for Subscribe to our Newsletter! (ACT)

	function SendMail33()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		//$email = "nikita94.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

		

		//Tell PHPMailer to use SMTP

		$mail->isSMTP();

		

		//Enable SMTP debugging

		// 0 = off (for production use)

		// 1 = client messages

		// 2 = client and server messages

		$mail->SMTPDebug = 0;

		

		//Ask for HTML-friendly debug output

		$mail->Debugoutput = 'html';

		

		//Set the hostname of the mail server

		//$mail->Host = 'smtp.gmail.com';

		$mail->Host = 'vps.teflindia.in';

		

		//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

		$mail->Port = 465;

		

		//Set the encryption system to use - ssl (deprecated) or tls

		$mail->SMTPSecure = 'ssl';

		

		//Whether to use SMTP authentication

		$mail->SMTPAuth = true;

		

		//Username to use for SMTP authentication - use full email address for gmail

		$mail->Username = "applications@asiancollegeofteachers.in";

		//$mail->Username = "admin@teachersjobworld.com";

		

		//Password to use for SMTP authentication


		$mail->Password = "ACTApplications$56";

		//$mail->Password = "tjwportal20!";

		

		//Set who the message is to be sent from

		$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

		

		//Set an alternative reply-to address

		//$mail->addReplyTo('replyto@example.com', 'First Last');

		

		//Set who the message is to be sent to

		$mail->addAddress($email);

		$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "Careers (tesolcourseindia.com/careers.php) [#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>Careers (tesolcourseindia.com/careers.php)</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	

		

	}
	
	
	


function InsertData34()

	{

		$dbh = new db_conn();

		$dbh->set_conn();

		$this->GenerateDataID();

		date_default_timezone_set('Asia/Kolkata');

		//============================================================================

		//insert data into tbl_data_entry table		

		$insert_sql = "insert into tbl_data_entry values ( ";

		$insert_sql = $insert_sql . $this->id. ",";

		$insert_sql = $insert_sql . "'".$this->name. "', ";

		$insert_sql = $insert_sql . "'TEFL Bachelor (tesolcourseindia.com/TEFL-Bachelors.php)', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'3', ";

		$insert_sql = $insert_sql . "'TEFL Bachelor (tesolcourseindia.com/TEFL-Bachelors.php)', ";

		$insert_sql = $insert_sql . "'".$this->email. "', ";

		$insert_sql = $insert_sql . "'".$this->contact. "', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'437', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'".date("Y-m-d H:i:s")."',";

		$insert_sql = $insert_sql . "'1',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'ACTIVE', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'0', ";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'".date("Y-m-d h:i:s")."',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'0',";

		$insert_sql = $insert_sql . "'".$this->location. "', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a', ";

		$insert_sql = $insert_sql . "'n/a',";

		$insert_sql = $insert_sql . "'n/a')";

		

		//echo "insert_sql = ".$insert_sql;

		//return;

		$insert_result = mysqli_query($dbh->link,$insert_sql);

		//$insert_result = mysql_query($insert_sql,$dbh->link);

		if (!$insert_result)

		{

			$this->msg = "Error: ".mysqli_error($dbh->link);

			//$this->msg = "Error: ".mysql_error($dbh->link);

			return;

		}

		else

		{

			$this->msg = "Thank you for filling the application form";

		}		

	}	

	//for Subscribe to our Newsletter! (ACT)

	function SendMail34()

	{

		//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

		//sending application entry mail to 

		

		require 'PHPMailerAutoload.php';

		//if(!$_POST) exit;

		//$email = $this->email;    //$res->email;

		$email = "nikkitefl@gmail.com";

		//$email = "nikita94.act@gmail.com";

		

		$errors = 0;

				

		//Create a new PHPMailer instance

		$mail = new PHPMailer;

		

		//Tell PHPMailer to use SMTP

		$mail->isSMTP();

		

		//Enable SMTP debugging

		// 0 = off (for production use)

		// 1 = client messages

		// 2 = client and server messages

		$mail->SMTPDebug = 0;

		

		//Ask for HTML-friendly debug output

		$mail->Debugoutput = 'html';

		

		//Set the hostname of the mail server

		//$mail->Host = 'smtp.gmail.com';

		$mail->Host = 'vps.teflindia.in';

		

		//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission

		$mail->Port = 465;

		

		//Set the encryption system to use - ssl (deprecated) or tls

		$mail->SMTPSecure = 'ssl';

		

		//Whether to use SMTP authentication

		$mail->SMTPAuth = true;

		

		//Username to use for SMTP authentication - use full email address for gmail

		$mail->Username = "applications@asiancollegeofteachers.in";

		//$mail->Username = "admin@teachersjobworld.com";

		

		//Password to use for SMTP authentication


		$mail->Password = "ACTApplications$56";

		//$mail->Password = "tjwportal20!";

		

		//Set who the message is to be sent from

		$mail->setFrom("applications@asiancollegeofteachers.in", "Asian College Of Teachers");

		

		//Set an alternative reply-to address

		//$mail->addReplyTo('replyto@example.com', 'First Last');

		

		//Set who the message is to be sent to

		$mail->addAddress($email);

		$mail->addAddress("asiancollegeapplications@gmail.com");

		//$mail->addAddress("sampade.ati@gmail.com");

		//Set the subject line

		$mail->Subject = "TEFL Bachelor (tesolcourseindia.com/TEFL-Bachelors.php)[#".$this->id."]";

		

		//Read an HTML message body from an external file, convert referenced images to embedded,

		//convert HTML into a basic plain-text alternative body

		

		$body = "";

		$body = "<html>

		<head>

		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

		<title>TEFL Bachelor (tesolcourseindia.com/TEFL-Bachelors.php)</title>

		</head>

		<body>

		 <table>

		<tbody>

		<tr>

		<td><b>Please mention your Name</b></td>

		<td>".$this->name."</td>

		</tr>

		<tr>

		<td><b>Please mention your Email</b></td>

		<td>".$this->email."</td>

		</tr>

		<tr>

		<td><b>Please mention your Phone Number</b></td>

		<td>".$this->contact."</td>

		</tr>

		<tr>

		<td><b>Location </b></td>

		<td>".$this->location."</td>

		</tr>

		

		</tbody>

		</table>

		</body>

		</html>";

		$mail->msgHTML($body);

		

		//Replace the plain text body with one created manually

		$mail->AltBody = 'This is a plain-text message body';

		

		//Attach an image file

		//$mail->addAttachment('images/phpmailer_mini.png');

		

		//send the message, check for errors

		if (!$mail->send()) {

			$this->msg = "Sorry! Unable to send Mail";

			return;

		} 

		else

		{

			$this->msg = "Thank you for filling the application form";

		}	
		

		

	}
	

		

}

?>