<?php
session_start();
include 'dbConnect.php';
if($_POST["subSubmit"]=="Send Link to all") {
$query="select emp_email,emp_name from empl";
$result=mysql_query($query) or die(mysql_error());
$num=mysql_num_rows($result);
$email_from ="[email protected]";
while($row=mysql_fetch_array($result)) {
$email=$row['emp_email'];
$emid=base64_encode($email);
$link="http://www.xyz.com/declaration1.php?mid=$emid";
$emailto_web = $email;
$email_headers = "From: ".$email_from."\n";
$email_headers .= "MIME-Version: 1.0\n";
$email_headers .= "Content-Type: text/html; charset=iso-8859-1\n";
$email_subject = "INCOMETAX DECLARATIVE FORM FYI 2010-2011 (DEMO)";
$num_sent_web = 0;
ob_start();
?>
<table style="width: 100%; font-family:Arial, Helvetica, sans-serif; font-size: 12px;">
<tr>
<td style="font-weight:bold">
Dear <?php echo $row['emp_name']; ?>
</td>
</tr>
<tr>
<td>
<p>
With the on set of the new financial year and the Govt of India
declaring the new Income Tax Slab, you are requested to
submit your 'Investment Declaration' for the FY 2010-11.
</p>
<p>
Kindly click on the link given below which will
take you to a secured site where in you can input your intended investments.
</p>
<p>
<?php echo $link; ?>
</p>
</td>
</tr>
<tr>
<td>
<table style="width:50%; font-size:12px; font-family:Arial, Helvetica, sans-serif">
<tr>
<td width="73%">
Income upto Rs 1.6 lakh
</td>
<td width="4%">
:
</td>
<td width="23%">
Nil
</td>
</tr>
<tr>
<td height="16">
Income upto Rs. 1.9 lakh (for women)
</td>
<td>
:
</td>
<td>
Nil
</td>
</tr>
<tr>
<td>
Income above Rs 1.6 lakh and upto Rs. 5 lakh
</td>
<td>
:
</td>
<td>
10 per cent
</td>
</tr>
<tr>
<td>
Income above Rs.5 lakh and upto Rs. 8 lakh
</td>
<td>
:
</td>
<td>
20 per cent
</td>
</tr>
<tr>
<td>
Income above Rs. 8 lakh
</td>
<td>
:
</td>
<td>
30 per cent
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<h4>
Tax Savings (Under Sec. 80C)
</h4>
<p>
Deduction of an additional amount of Rs. 20,000 allowed,
over and above the existing limit of Rs.1 lakh on tax savings
for investment in long-term infrastructure bonds as
notified by the Central Government.
</p>
<p>
Please update your proposed tax investments by 21st April 2010.
The same will be incorporated in your
tax computations from April 2010 onwards.
</p>
<p style="color:#ff0000;">
Please note that proof of all declarations made on the site
have to be submitted with HR Dept by 31st Jan 2011 failing which
it will be assumed that you have not made any investments and
tax will be charged as per the applicable slab and short fall
recovered during Feb and March 2011.
</p>
</td>
</tr>
<tr>
<td>
<p>
Regards, <br/>
HR Department, <br/>
</p>
</td>
</tr>
</table>
<?php
$email_message2 = ob_get_clean();
$mail_web = mail($emailto_web,$email_subject,$email_message2,$email_headers);
if($mail_web) {
$query2="update empl set emp_status=1,link ='$link' where emp_email='$email'";
$result2=mysql_query($query2) or die(mysql_error());
}
}
}
else if($_POST["subSubmit1"]=="Resend Remainder") {
$query3 = "select emp_email,emp_name from empl where emp_email NOT IN(select email from emp2_taxform)";
$query4 = mysql_query($query3) or die(mysql_error());
while($row2 = mysql_fetch_array($query4)) {
$email = $row2['emp_email'];
$emid = base64_encode($email);
$link = "http://www.xyz.com/declaration1.php?mid=$emid";
$emailto_web = $email;
$email_headers = "From: ".$email_from;
$email_headers .= "MIME-Version: 1.0\n";
$email_headers .= "Content-Type: text/html; charset=iso-8859-1\n";
$email_subject = "Remainder Message";
$num_sent_web = 0;
ob_start();
?>
<table style="width: 100%; font-family:Arial, Helvetica, sans-serif; font-size: 12px;">
<tr>
<td style="font-weight:bold">
Dear <?php echo $row['emp_name']; ?>
</td>
</tr>
<tr>
<td>
<p>
With the on set of the new financial year and the Govt of India
declaring the new Income Tax Slab, you are requested to
submit your 'Investment Declaration' for the FY 2010-11.
</p>
<p>
Kindly click on the link given below which will
take you to a secured site where in you can input your intended investments.
</p>
<p>
<?php echo $link; ?>
</p>
</td>
</tr>
<tr>
<td>
<table style="width:50%; font-size:12px; font-family:Arial, Helvetica, sans-serif">
<tr>
<td width="71%">
Income upto Rs 1.6 lakh
</td>
<td width="3%">
:
</td>
<td width="26%">
Nil
</td>
</tr>
<tr>
<td>
Income upto Rs. 1.9 lakh (for women)
</td>
<td>
:
</td>
<td>
Nil
</td>
</tr>
<tr>
<td>
Income above Rs 1.6 lakh and upto Rs. 5 lakh
</td>
<td>
:
</td>
<td>
10 per cent
</td>
</tr>
<tr>
<td>
Income above Rs.5 lakh and upto Rs. 8 lakh
</td>
<td>
:
</td>
<td>
20 per cent
</td>
</tr>
<tr>
<td>
Income above Rs. 8 lakh
</td>
<td>
:
</td>
<td>
30 per cent
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<h4>
Tax Savings (Under Sec. 80C)
</h4>
<p>
Deduction of an additional amount of Rs. 20,000 allowed,
over and above the existing limit of Rs.1 lakh on tax savings
for investment in long-term infrastructure bonds as
notified by the Central Government.
</p>
<p>
Please update your proposed tax investments by 21st April 2010.
The same will be incorporated in your
tax computations from April 2010 onwards.
</p>
<p style="color:#ff0000;">
Please note that proof of all declarations made on the site
have to be submitted with HR Dept by 31st Jan 2011 failing which
it will be assumed that you have not made any investments and
tax will be charged as per the applicable slab and short fall
recovered during Feb and March 2011.
</p>
</td>
</tr>
<tr>
<td>
<p>
Regards, <br/>
HR Department, <br/>
</p>
</td>
</tr>
</table>
<?php
$email_message2 = ob_get_clean();
$mail_web = mail($emailto_web,$email_subject,$email_message2,$email_headers);
}
}
?>
<form name="formexp" id="formexp" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<table width="960" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="222" align="left" valign="bottom" background="images/bg1.gif">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="22%"> </td>
<td width="536" align="center" valign="bottom"><img src="images/picture1.jpg" width="536" height="222" /></td>
<td align="right" valign="middle"><table width="160" border="0" align="left" cellpadding="15" cellspacing="0">
<tr>
<td width="160" align="center" valign="middle"><img src="images/Logo.png" width="160" height="96" /></td>
</tr>
</table></td>
</tr>
</table>
</tr>
</table>
<table height ="150" width="550" align ="center" border="0">
<tr>
<td width="18%" align="center"><span class="style18">To Send the link to all memeber at first time please click this Button </span></td>
</tr>
<tr>
<tr>
<td align="center" width="18%"><input value="Send Link to all" type="submit" name="subSubmit" id="subSubmit" ></td>
</tr>
<tr>
<td align="center" width="18%"><input value="Resend Remainder" type="submit" name="subSubmit1" id="subSubmit1" ></td>
</tr>
<tr>
<td align="center" width="18%"><font color="#FF0000"> <?php echo $err; ?> </font></td>
</tr>
</table>
</form>
|