table="trainingregistration"; $node->push("text","name",$_POST['name']); $node->push("text","name_ar",$_POST['name_ar']); $node->push("text","trainingid",$_POST['trainingid']); $node->push("text","yearofgraduation",$_POST['yearofgraduation']); $node->push("text","specialty",$_POST['specialty']); $node->push("text","specialtyyear",$_POST['specialtyyear']); $node->push("text","jobtitle",$_POST['jobtitle']); $node->push("text","country",$_POST['country']); $node->push("text","province",$_POST['province']); $node->push("text","iimanumber",$_POST['iimanumber']); $node->push("text","mobilenumber",$_POST['mobilenumber']); $node->push("text","email",$_POST['email']); $node->push("text","nameofinstitute",$_POST['nameofinstitute']); $node->push("text","starttraining",$_POST['starttraining']); $node->push("text","timeoftraining",$_POST['timeoftraining']); $node->push("text","nameoftraining",$_POST['nameoftraining']); $node->push("text","remarks",$_POST['remarks']); $node->push("text","applydate",date('Y-m-d')); if(isset($_FILES['passport']['name']) && $_FILES['passport']['name'] != NULL ) { $filename = $_FILES['passport']['name']; $b=end(explode('.',$filename)); $filename=$_POST['name']."_p".date('ymdhis').".".$b; $uploadDir = "uploads/"; $uploadFile = $uploadDir.$filename; if(move_uploaded_file($_FILES['passport']['tmp_name'], $uploadFile)) { $node->push("text","passport",$filename); $pathp="uploads/".$filename; } } if(isset($_FILES['fpassport']['name']) && $_FILES['fpassport']['name'] != NULL ) { $filename1 = $_FILES['fpassport']['name']; $b=end(explode('.',$filename1)); $filename1=$_POST['name']."_f".date('ymdhis').".".$b; $uploadDir = "uploads/"; $uploadFile = $uploadDir.$filename1; if(move_uploaded_file($_FILES['fpassport']['tmp_name'], $uploadFile)) { $node->push("text","fpassport",$filename1); $pathf="uploads/".$filename1; } } if(($results=$mysql->insert($node))===false) die($mysql->debugPrint()); else { $message=" "; $message .= "
Contact Informations
    ".date('d-m-Y')."
Name ".$_POST[name]."
Year of Graduation ".$_POST[yearofgraduation]."
Specialty ".$_POST[specialty]."
How many years in this specialty? ".$_POST[specialtyyear]."
Job Title ".$_POST[jobtitle]."
Country of Residence ".$_POST[country]."
Province ".$_POST[province]."
IIMA Number ".$_POST[iimanumber]."
Mobile Number ".$_POST[mobilenumber]."
Email ".$_POST[email]."
Name of the institute you need the training in? ".$_POST[nameofinstitute]."
When do you want to start the training? ".$_POST[starttraining]."
For how long you need the training? ".$_POST[timeoftraining]."
Name of the training you want (Sub-specialty)? ".$_POST[nameoftraining]."
Your Remarks ".nl2br($_POST[remarks])."
"; $node = new sqlNode(); $node->table = "adminsettings"; $node->select = "*"; $node->where = "where myoption = 'adminemail'"; $rowemail = $mysql->select_assoc($node); //$subject ='Contact Informations'; $subject ='Training For '.$_POST['trainingname']; //$email_to = $rowemail['optionvalue']; $email_to = 'info@iimaonline.net'; $mail = new PHPMailer(); $mail->IsHTML(true); $mail->AddAddress($email_to); $mail->From =$_POST['email']; $mail->Subject = $subject; $mail->AddAttachment($pathp); $mail->AddAttachment($pathf); $mail->Body = $message; $mail->Send(); $msg="Registered Successfully"; } } $node = new sqlNode(); $node->table = "training"; $node->select = "*"; $node->where = "where id='".$_GET['id']."'"; $rowtraining = $mysql->select_assoc($node); ?> International Iraqi Medical Association (IIMA)

Training Form

Name in English

Name in Arabic

Year of Graduation

Specialty

How many years in this specialty?

Job Title

Country of Residence

Province

IIMA Number

Mobile Number

Email

Please send us your passport copy.

Send passport copy of your companion.

Name of the institute you need the training in?

When do you want to start the training?

For how long you need the training?

Name of the training you want (Sub-specialty)?

Your Remarks