One Hat Cyber Team
Your IP :
216.73.216.84
Server IP :
50.6.229.107
Server :
Linux server.hostburly.com 5.14.0-611.38.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 10 17:21:28 EDT 2026 x86_64
Server Software :
Apache
PHP Version :
8.2.30
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
andjemzt
/
nportal.andjemztech.com
/
examAdmin
/
Edit File:
sendPassedMail.php
<?php include("inc/header.php"); ?> <?php if(isset($submit)){ include "inc/config.php"; $file_no=$_POST['file_no']; $sql=mysql_query("SELECT * FROM passed a,corp_mem b,branch c WHERE a.file_no=b.file_no AND c.branchid=b.branch_id AND a.file_no='$file_no'"); if(!$sql){ echo mysql_error(); } while ($row=mysql_fetch_array($sql)){ $name=$row['othernames']." ".$row['surname']; $address=$row['address']; $branch=$row['branch_name']; $number=$row['mem_num']; $grad_year=$row['grad_year']; $file_no=$row['file_no']; $email=$row['email']; $year=date('Y'); $dues=$year-$grad_year; $date=date("d M, Y"); //$branchName=getAny("branch",$row['branch_id'],"branchid","branch_name"); $str='Nigerian Society of Engineers Corporate Membership Application'; ?> <?php $html='<html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>'.$str.'</title> <style> tr:nth-child(even) {background: #CCC;} tr:nth-child(odd) {background: #FFF;} table:{ background-color:transparent !important;} .link:{background:#006; color:#FFF; width:60px; padding:10px;} </style> </head> <body> <div style="width: 800px;"> <img src="http://www.nse.org.ng/images/banner.jpg" /> <div align="right" style="margin: 10px;">'.$date.'</div> <div style="margin: 10px;"> <p><strong>'.$name.'</strong></p> <p>'.$address.'</p> <p>'.$branch.'</p> <p><p> <p></p> <p>Dear Member,</p> <p><strong><u>ELECTION TO CORPORATE MEMBERSHIP</u></strong></p> <p>Please accept my very hearty congratulations on your election as a Corporate Member of the <strong>NIGERIAN SOCIETY OF ENGINEERS</strong> as approved during the Council meeting held on the <strong>10th of July, 2014.</strong></p> <p></p> <p>Your Membership Number is <strong>'.$number.'</strong> which, henceforth, should be quoted as a reference number in all your correspondence with this office</p>'; if($dues<=5){ $html.='<p>In accordance with the Articles of Association of the Society, you are required to pay the sum of <strong>N53,300</strong> as detailed below, in certified bank draft, in favour of <strong> The Nigerian Society of Engineers</strong> and return the obligation form, duly signed, within two months of receipt of this advice, otherwise your election/transfer will be void. Please pay your NEC building levy & Special Levy to our <strong>Union Bank </strong>Account No. <strong>0941020002580</strong> Sort Code <strong>032154607</strong> while other levies to <strong>First Bank</strong> Account No. <strong>2020502052,</strong> Sort Code <strong>011150000, Maitama Branch,</strong> Abuja. <strong>Remember to return the original copy of the teller with the pink obligation form to NSE HQ.</strong> </p> <p></p> <p>Annual subscription become due on the <strong>1st of July of each year,</strong> in accordance with articles 19 and 20 of the Articles of Association of the Society</p> <p></p> <p>Note that your certificate of membership will be released to you through your Branch after full payment of the fees indicated below, followed by induction. However, we will notify you through SMS/Email when your certificate is ready. <strong>PLEASE CONFIRM YOUR NAMES AND NSE NUMBER WITTEN ON YOUR CERTIFICATE BEFORE LAMINATING IT.</strong> Call 098767053 for any enquiry.</p> <p></p> <p><u>DETAILS OF FEES AND CHARGES</u></p> <table> <tr><td> Current Subscription</td><td>N7,000</td></tr> <tr><td> Transfer/Enrolment Fee</td><td>N1,500</td></tr> <tr><td> Benevolent Fund</td><td>N1,000</td></tr> <tr><td> Membership Materials</td><td>N5,800</td></tr> <tr><td> International Levy</td><td>N1,000</td></tr> <tr><td> Abuja NEC & Building Levy</td><td>N10,000</td></tr> <tr><td> Special Levy(NEC Phase 2)</td><td>N25,000</td></tr> <tr><td> WECSI</td><td>N2,000</td></tr> <tr style="border: 1px solid;"><td style="border: 1px solid;"> <strong>Total Amount to be paid</strong></td><td style="border: 1px solid;"><strong>N53,300</strong></td></tr> </table> <p></p> <p>We sincerely look forward to your active participation in the society activities at the National and Branch levels.</p> <p>Yours faithfully,</p> <p></p> <p></p> <p></p> <p><strong> Engr. Ovens F. Ehimatie,<i>MNSE</i></strong><br /> Head, Membership Services<br /> For: Executive Secretary </p></div> </div> </body> </html>'; } elseif($dues>5 && $dues<=10){ $html.='<p>In accordance with the Articles of Association of the Society, you are required to pay the sum of <strong>N58,300</strong> as detailed below, in certified bank draft, in favour of <strong> The Nigerian Society of Engineers</strong> and return the obligation form, duly signed, within two months of receipt of this advice, otherwise your election/transfer will be void. Please pay your NEC building levy & Special Levy to our <strong>Union Bank </strong>Account No. <strong>0941020002580</strong> Sort Code <strong>032154607</strong> while other levies to <strong>First Bank</strong> Account No. <strong>2020502052,</strong> Sort Code <strong>011150000, Maitama Branch,</strong> Abuja. <strong>Remember to return the original copy of the teller with the pink obligation form to NSE HQ.</strong> </p> <p></p> <p>Annual subscription become due on the <strong>1st of July of each year,</strong> in accordance with articles 19 and 20 of the Articles of Association of the Society</p> <p></p> <p>Note that your certificate of membership will be released to you through your Branch after full payment of the fees indicated below, followed by induction. However, we will notify you through SMS/Email when your certificate is ready. <strong>PLEASE CONFIRM YOUR NAMES AND NSE NUMBER WITTEN ON YOUR CERTIFICATE BEFORE LAMINATING IT.</strong> Call 098767053 for any enquiry.</p> <p></p> <p><u>DETAILS OF FEES AND CHARGES</u></p> <table> <tr><td> Current Subscription</td><td>N7,000</td></tr> <tr><td> Transfer/Enrolment Fee</td><td>N1,500</td></tr> <tr><td> Benevolent Fund</td><td>N1,000</td></tr> <tr><td> Membership Materials</td><td>N5,800</td></tr> <tr><td> International Levy</td><td>N1,000</td></tr> <tr><td> Abuja NEC & Building Levy</td><td>N15,000</td></tr> <tr><td> Special Levy(NEC Phase 2)</td><td>N25,000</td></tr> <tr><td> WECSI</td><td>N2,000</td></tr> <tr style="border: 1px solid;"><td style="border: 1px solid;"> <strong>Total Amount to be paid</strong></td><td style="border: 1px solid;"><strong>N58,300</strong></td></tr> </table> <p></p> <p>We sincerely look forward to your active participation in the societys activities at the National and Branch levels.</p> <p>Yours faithfully,</p> <p></p> <p></p> <p></p> <p><strong> Engr. Ovens F. Ehimatie,<i>MNSE</i></strong><br /> Head, Membership Services<br /> For: Executive Secretary </p> </div> </div> </body> </html> '; } elseif($dues >10){ $html.='<p>In accordance with the Articles of Association of the Society, you are required to pay the sum of <strong>N63,300</strong> as detailed below, in certified bank draft, in favour of <strong> The Nigerian Society of Engineers</strong> and return the obligation form, duly signed, within two months of receipt of this advice, otherwise your election/transfer will be void. Please pay your NEC building levy & Special Levy to our <strong>Union Bank </strong>Account No. <strong>0941020002580</strong> Sort Code <strong>032154607</strong> while other levies to <strong>First Bank</strong> Account No. <strong>2020502052,</strong> Sort Code <strong>011150000, Maitama Branch,</strong> Abuja. <strong>Remember to return the original copy of the teller with the pink obligation form to NSE HQ.</strong> </p> <p></p> <p>Annual subscription become due on the <strong>1st of July of each year,</strong> in accordance with articles 19 and 20 of the Articles of Association of the Society</p> <p></p> <p>Note that your certificate of membership will be released to you through your Branch after full payment of the fees indicated below, followed by induction. However, we will notify you through SMS/Email when your certificate is ready. <strong>PLEASE CONFIRM YOUR NAMES AND NSE NUMBER WITTEN ON YOUR CERTIFICATE BEFORE LAMINATING IT.</strong> Call 098767053 for any enquiry.</p> <p></p> <p><u>DETAILS OF FEES AND CHARGES</u></p> <table> <tr><td> Current Subscription</td><td>N7,000</td></tr> <tr><td> Transfer/Enrolment Fee</td><td>N1,500</td></tr> <tr><td> Benevolent Fund</td><td>N1,000</td></tr> <tr><td> Membership Materials</td><td>N5,800</td></tr> <tr><td> International Levy</td><td>N1,000</td></tr> <tr><td> Abuja NEC & Building Levy</td><td>N20,000</td></tr> <tr><td> Special Levy(NEC Phase 2)</td><td>N25,000</td></tr> <tr><td> WECSI</td><td>N2,000</td></tr> <tr style="border: 1px solid;"><td style="border: 1px solid;"> <strong>Total Amount to be paid</strong></td><td style="border: 1px solid;"><strong>N63,300</strong></td></tr> </table> <p></p> <p>We sincerely look forward to your active participation in the societys activities at the National and Branch levels.</p> <p>Yours faithfully,</p> <p></p> <p></p> <p></p> <p><strong> Engr. Ovens F. Ehimatie,<i>MNSE</i></strong><br /> Head, Membership Services<br /> For: Executive Secretary </p> </div> </div> </body> </html> '; } $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; // More headers $headers .= 'From: <application@nse.org.ng>' . "\r\n"; echo $html; $mail=mail($email,$str,$html,$headers); //$update=mysql_query("UPDATE passed SET sent='0' WHERE file_no='$file_no'"); /*if(!$update){ echo mysql_error(); }*/ } function getAny($table,$value,$field,$output){ $sql=mysql_query("SELECT * FROM $table WHERE $field='$value'"); $row=mysql_fetch_array($sql); return $row["$output"]; } if($mail){ echo "mail sent"; header('refresh: 5; url=sendPassedMail.php'); } else{ echo "Error sending mail"; } } ?> <form action="" method="post"> <table> <tr><td>File No</td><td><input type="text" name="file_no" /></td></tr> <tr><td colspan="2"><input type="submit" name="submit" value="Send Election Letter" /></td></tr> </table> </form>
Simpan