<?php
$query = $db->get_row ( "singaporetable", array ('id' => 1 ) );
?>
<style>
#loader-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	/*z-index: 1000;*/
	opacity: 0.8;
	z-index: 1040;
	background-color: #000;
	display: none;
}

#spinner {
	display: none;
	position: relative;
	left: 50%;
	top: 50%;
	width: 150px;
	height: 150px;
	margin: -75px 0 0 -75px;
	border-radius: 50%;
	border: 3px solid transparent;
	border-top-color: #3498db;
	-webkit-animation: spin 2s linear infinite;
	/* Chrome, Opera 15+, Safari 5+ */
	animation: spin 2s linear infinite;
	/* Chrome, Firefox 16+, IE 10+, Opera */
}

#spinner:before {
	content: "";
	position: absolute;
	top: 5px;
	left: 5px;
	right: 5px;
	bottom: 5px;
	border-radius: 50%;
	border: 3px solid transparent;
	border-top-color: #e74c3c;
	-webkit-animation: spin 3s linear infinite;
	/* Chrome, Opera 15+, Safari 5+ */
	animation: spin 3s linear infinite;
	/* Chrome, Firefox 16+, IE 10+, Opera */
}

#spinner:after {
	content: "";
	position: absolute;
	top: 15px;
	left: 15px;
	right: 15px;
	bottom: 15px;
	border-radius: 50%;
	border: 3px solid transparent;
	border-top-color: #f9c922;
	-webkit-animation: spin 1.5s linear infinite;
	/* Chrome, Opera 15+, Safari 5+ */
	animation: spin 1.5s linear infinite;
	/* Chrome, Firefox 16+, IE 10+, Opera */
}

@
-webkit-keyframes spin { 0% {
	-webkit-transform: rotate(0deg); /* Chrome, Opera 15+, Safari 3.1+ */
	-ms-transform: rotate(0deg); /* IE 9 */
	transform: rotate(0deg); /* Firefox 16+, IE 10+, Opera */
}

100%
{
-webkit-transform








:




 




rotate








(360
deg






); /* Chrome, Opera 15+, Safari 3.1+ */
-ms-transform








:




 




rotate








(360
deg






); /* IE 9 */
transform








:




 




rotate








(360
deg






); /* Firefox 16+, IE 10+, Opera */
}
}
@
keyframes spin { 0% {
	-webkit-transform: rotate(0deg); /* Chrome, Opera 15+, Safari 3.1+ */
	-ms-transform: rotate(0deg); /* IE 9 */
	transform: rotate(0deg); /* Firefox 16+, IE 10+, Opera */
}
100%
{
-webkit-transform








:




 




rotate








(360
deg






); /* Chrome, Opera 15+, Safari 3.1+ */
-ms-transform








:




 




rotate








(360
deg






); /* IE 9 */
transform








:




 




rotate








(360
deg






); /* Firefox 16+, IE 10+, Opera */
}
}
</style>

<div id="loader-wrapper">
	<div id="spinner"></div>
</div>
<div class="page-content">
	<div class="page-header position-relative"></div>
	<!--/.page-header-->

	<div class="row-fluid">
		<div class="span12">
			<!--PAGE CONTENT BEGINS-->
			<div class="alert alert-warning">
				<i class="icon-bullhorn"></i>
				<button type="button" class="close" data-dismiss="alert">
					<i class="icon-remove"></i>
				</button>
				<b class="text-error">What To Do:</b> <span><b>Enter Amount In The
						White Boxes, Where Applicable.</b></span> <br />
			</div>
			<div class="widget-box">
				<div class="widget-header">
					<div class="row-fluid">
						<div class="span4">
							<h4 class="smaller">Payroll Configuration</h4>
						</div>
						<div class="span5"></div>
						<div class="span3">YEAR OF ASSESSMENT <?php echo date("Y");?></div>
					</div>
				</div>

				<div class="widget-body">
					<div class="widget-main">
						<div class="row-fluid">
							<div class="span12">
								<form class="form-horizontal" method="post" action="">
									<div class="row-fluid">
										<div class="span12">
											<b>INCOME</b>
										</div>
									</div>
									<div class="control-group">
										<label class="control-label muted span5" for="amount">Employment
											Income&nbsp;&nbsp;</label>
										<div class="controls">
											<span><?php echo CURRENCY;?>&nbsp;</span><input type="text"
												name="table[employment_income]"
												value="<?php echo $query['employment_income'];?>" id="first"
												class="span5 assessable firsttwo"><span>&nbsp;.00</span> <span
												class="btn btn-success btn-small tooltip-success"
												data-rel="tooltip" data-placement="right"
												title="Enter your gross income for the previous year (including any bonuses, fixed allowances and any benifits in kind). DO NOT deduct CPF paid when you key in this figure.">?</span>
										</div>
										<!-- /controls -->
									</div>
									<!-- /control-group -->

									<div class="control-group">
										<label class="control-label muted span5 text-info"
											for="amount">Less Employment Expences&nbsp;&nbsp; </label>
										<div class="controls">
											<span><?php echo CURRENCY;?>&nbsp;</span><input type="text"
												id="second" name="table[employment_expences]"
												value="<?php echo $query['employment_expences'];?>"
												class="span5 assessable firsttwo"><span>&nbsp;.00</span> <span
												class="btn btn-success btn-small tooltip-success"
												data-rel="tooltip" data-placement="right"
												title="Enter your allowable employment expences.">?</span>
										</div>
										<!-- /controls -->
									</div>
									<!-- /control-group -->

									<div class="control-group">
										<label class="control-label span5" for="amount"><b>NET
												EMPLOYEMENT INCOME</b>&nbsp;&nbsp;</label>
										<div class="controls">
											<span><?php echo CURRENCY;?>&nbsp;</span><input type="text"
												id="net" readonly name="table[net_employment_income]"
												value="<?php echo $query['net_employment_income'];?>"
												class="span5"><span>&nbsp;.00</span>
										</div>
										<!-- /controls -->
									</div>
									<!-- /control-group -->

									<!-- <div class="control-group">
										<label class="control-label muted span5" for="amount">Trade,
											Business, Profession Or Vacation&nbsp;&nbsp;</label>
										<div class="controls">
											<span><?php echo CURRENCY;?>&nbsp;</span> <input type="text"
												id="trade" name="table[trade_income]"
												value="<?php echo $query['trade_income'];?>"
												class="span5 assessable"><span>&nbsp;.00</span> <span
												class="btn btn-success btn-small tooltip-success"
												data-rel="tooltip" data-placement="right"
												title="Enter your income from trade, business, profession or vocation in the previous year.">?</span>
										</div>
										<!-- /controls -->
									<!-- </div>
									<!-- /control-group -->
									<!-- <div class="row-fluid">
										<div class="span12">
											<b>ADD: OTHER INCOME</b>
										</div>
									</div>
									<div class="control-group">
										<label class="control-label muted span5" for="amount">Dividends
											&nbsp;&nbsp;</label>
										<div class="controls">
											<span><?php echo CURRENCY;?>&nbsp;</span><input type="text"
												value="<?php echo $query['dividends'];?>"
												name="table[dividends]" class="span5 assessable other"><span>&nbsp;.00</span>
											<span class="btn btn-success btn-small tooltip-success"
												data-rel="tooltip" data-placement="right"
												title="Enter your dividends received in the previous year.">?</span>
										</div>
										<!-- /controls -->
									<!-- </div>
									<!-- /control-group -->
									<!-- <div class="control-group">
										<label class="control-label muted span5" for="amount">Interest
											&nbsp;&nbsp;</label>
										<div class="controls">
											<span><?php echo CURRENCY;?>&nbsp;</span><input type="text"
												value="<?php echo $query['interest'];?>"
												name="table[interest]" class="span5 assessable other"><span>&nbsp;.00</span>
											<span class="btn btn-success btn-small tooltip-success"
												data-rel="tooltip" data-placement="right"
												title="Enter your interest income received in the previous year if it is NOT from deposits with approved banks or licensed finance companies in Singapore">?</span>
										</div>
										<!-- /controls -->
									<!-- </div>
									<!-- /control-group -->
									<!-- <div class="control-group">
										<label class="control-label muted span5" for="amount">Rent
											Form Property&nbsp;&nbsp;</label>
										<div class="controls">
											<span><?php echo CURRENCY;?>&nbsp;</span><input type="text"
												value="<?php echo $query['property_rent'];?>"
												name="table[property_rent]" class="span5 assessable other"><span>&nbsp;.00</span>
											<span class="btn btn-success btn-small tooltip-success"
												data-rel="tooltip" data-placement="right"
												title="Enter your net rent from property in the previous year.">?</span>
										</div>
										<!-- /controls -->
									<!-- </div>
									<!-- /control-group -->
									<!-- <div class="control-group">
										<label class="control-label muted span5" for="amount">Royalty,
											Charge, Estate/Trust Income&nbsp;&nbsp;</label>
										<div class="controls">
											<span><?php echo CURRENCY;?>&nbsp;</span><input type="text"
												name="table[royality_income]"
												value="<?php echo $query['royality_income'];?>"
												class="span5 assessable other"><span>&nbsp;.00</span> <span
												class="btn btn-success btn-small tooltip-success"
												data-rel="tooltip" data-placement="right"
												title="Enter your royalty, charge or estate/trust income received in the previous year.">?</span>
										</div>
										<!-- /controls -->
									<!-- </div>
									<!-- /control-group -->
									<!-- <div class="control-group">
										<label class="control-label muted span5" for="amount">Gains Or
											Profits Of An Income Nature&nbsp;&nbsp;</label>
										<div class="controls">
											<span><?php echo CURRENCY;?>&nbsp;</span><input type="text"
												value="<?php echo $query['gain_income_nature'];?>"
												name="table[gain_income_nature]"
												class="span5 assessable other"><span>&nbsp;.00</span> <span
												class="btn btn-success btn-small tooltip-success"
												data-rel="tooltip" data-placement="right"
												title="Enter your gains or profits of an income nature received in the previous year. These Include any income which does not fall within any of the other classifications of income stated above.">?</span>
										</div>
										<!-- /controls -->
									<!-- </div>
									<!-- /control-group -->
									<!-- <div class="control-group">
										<label class="control-label  span5" for="amount"><b>TOTAL
												OTHER INCOME</b>&nbsp;&nbsp;</label>
										<div class="controls">
											<span><?php echo CURRENCY;?>&nbsp;</span><input type="text"
												value="<?php echo $query['total_income'];?>"
												name="table[total_income]" class="span5 total_income"
												readonly><span>&nbsp;.00</span>
										</div>
										<!-- /controls -->
									<!-- </div>
									<!-- /control-group -->
									<!-- <div class="control-group">
										<label class="control-label muted span5 text-info"
											for="amount">Approved Donations&nbsp;&nbsp;</label>
										<div class="controls">
											<span><?php echo CURRENCY;?>&nbsp;</span><input type="text"
												value="<?php echo $query['approved_donations'];?>"
												id="approved_donation" name="table[approved_donations]"
												class="span5"><span>&nbsp;.00</span> <span
												class="btn btn-success btn-small tooltip-success"
												data-rel="tooltip" data-placement="right"
												title="Enter the amount donated (2.5 times) to approved Institutions of Public Character(IPC) in the previous year. For example, if your donate $100 to an approved IPC, you will be given a $250 deduction.">?</span>
										</div>
										<!-- /controls -->
									<!-- </div>
									<!-- /control-group -->
									<div class="control-group">
										<label class="control-label span5" for="amount"><b>ASSESSABLE
												INCOME</b>&nbsp;&nbsp;</label>
										<div class="controls">
											<span><?php echo CURRENCY;?>&nbsp;</span><input type="text"
												readonly value="<?php echo $query['assessable_income'];?>"
												name="table[assessable_income]"
												class="span5 assessableincome"><span>&nbsp;.00</span>
										</div>
										<!-- /controls -->
									</div>
									<!-- /control-group -->
									<div class="row-fluid">
										<div class="span12">
											<b>Less: PERSONAL RELIEFS</b>
										</div>
									</div>
									<div class="control-group">
									<?php
									$var_earned = "<b>Enter the lower of your earned income or the following values:<br>-$1,000(if you are below 55)<br>-$6,000 (55 to 99)<br>-$8,000(60 and above)<br><br>For handicaped persons, the maximum earned income relief will be:<br>-$4,000(if you are below 55)<br>-$10,000 (55 to 59)<br>-$12,000 (60 and above)</b>";
									?>
										<label class="control-label muted span5" for="amount">Earned
											Income Relief&nbsp;&nbsp;</label>
										<div class="controls">
											<span><?php echo CURRENCY;?>&nbsp;</span><input type="text"
												value="<?php echo $query['earned_income_relief'];?>"
												name="table[earned_income_relief]" class="span5 relief"><span>&nbsp;.00</span>
											<span class="btn btn-success btn-small tooltip-success"
												data-rel="tooltip" data-placement="right"
												title="<?php echo $var_earned;?>">?</span>
										</div>
										<!-- /controls -->
									</div>
									<!-- /control-group -->
									<div class="control-group">
									<?php
									$var_spouse = "<b>Enter $2,000 for spouse relief or $3,000 for handicaped spouse relief. You are only eligible for spouse relief if the income of your spouse in the previous year is not more than $4,000.</b>";
									?>
										<label class="control-label muted span5" for="amount">Spouse/handicapped
											spouse relief&nbsp;&nbsp;</label>
										<div class="controls">
											<span><?php echo CURRENCY;?>&nbsp;</span><input type="text"
												value="<?php echo $query['spouse_relief'];?>"
												name="table[spouse_relief]" class="span5 relief"><span>&nbsp;.00</span>
											<span class="btn btn-success btn-small tooltip-success"
												data-rel="tooltip" data-placement="right"
												title="<?php echo $var_spouse;?>">?</span>
										</div>
										<!-- /controls -->
									</div>
									<!-- /control-group -->
									<div class="control-group">
									<?php
									$var_handicapped = "<b>Qualifying child relief (QCR)<br>Enter $4,000 per child.<br><br>Handicapped child relief(HCR)<br>Enter $5,500 per handicapped child.</b>";
									?>
										<label class="control-label muted span5" for="amount">Qualifying/handicapped
											child relief&nbsp;&nbsp;</label>
										<div class="controls">
											<span><?php echo CURRENCY;?>&nbsp;</span><input type="text"
												value="<?php echo $query['qualifying_relief'];?>"
												name="table[qualifying_relief]" class="span5 relief"><span>&nbsp;.00</span>
											<span class="btn btn-success btn-small tooltip-success"
												data-rel="tooltip" data-placement="right"
												title="<?php echo $var_handicapped;?>">?</span>
										</div>
										<!-- /controls -->
									</div>
									<!-- /control-group -->
									<div class="control-group">
									<?php
									$var_mother = "<b>Working Mother's Child Relief(WMCR)<br>Enter The Amount-<br>1st child- 15%of mother's earned income<br>2nd child- 20% of mother's earned income<br>3rd and each subsequent child- 25% of mother's earned income<br><br>Cumulative WMCR percentages are capped at 100% of mother's earned income.<br><br>Note: The sum of all child reliefs claimable is subject to a cap of $50,000 for each child.</b>";
									?>
										<label class="control-label muted span5" for="amount">Working
											mother's child relief&nbsp;&nbsp;</label>
										<div class="controls">
											<span><?php echo CURRENCY;?>&nbsp;</span><input type="text"
												value="<?php echo $query['mother_relief'];?>"
												name="table[mother_relief]" class="span5 relief"><span>&nbsp;.00</span>
											<span class="btn btn-success btn-small tooltip-success"
												data-rel="tooltip" data-placement="right"
												title="<?php echo $var_mother;?>">?</span>
										</div>
										<!-- /controls -->
									</div>
									<!-- /control-group -->

									<div class="control-group">
									<?php
									$var_parent = "<b><u>Parent/handicapped parent relief</u><br>You can claim parent relief or handicapped parent relief for up to 2 dependants. The amount of relief for each dependent is as follows.<br><br><div class='row-fluid'>
										<div class='span4'>
											
										</div>
										<div class='span4'>
											<u>Staying With You</u>
										</div>
										<div class='span4'>
											<u>Not Staying With You</u>
										</div>
									</div><div class='row-fluid'>
										<div class='span4'>
											<b>Parent Relief</b>
										</div>
										<div class='span4'>
											<b>$7,000</b>
										</div>
										<div class='span4'>
											<b>$4,500</b>
										</div>
									</div>
									<div class='space-6'></div>
									<div class='row-fluid'>
										<div class='span4'>
											<b>Handicapped Parent Relief</b>
										</div>
										<div class='span4'>
											<b>$11,000</b>
										</div>
										<div class='span4'>
											<b>$8,000</b>
										</div>
									</div></b>";
									?>
										<label class="control-label muted span5" for="amount">parent/handicapped
											parent relief&nbsp;&nbsp;</label>
										<div class="controls">
											<span><?php echo CURRENCY;?>&nbsp;</span><input type="text"
												value="<?php echo $query['parent_relief'];?>"
												name="table[parent_relief]" class="span5 relief"><span>&nbsp;.00</span>
											<span class="btn btn-success btn-small tooltip-success"
												data-rel="tooltip" data-placement="right"
												title="<?php echo $var_parent;?>">?</span>
										</div>
										<!-- /controls -->
									</div>
									<!-- /control-group -->

									<div class="control-group">
									<?php
									$var_grandparent = "<b><div class='row-fluid'>
										<div class='span12'>
											<h6><u>Grandparent caregiver relief</u></h6>
										</div>
									</div>
									<div class='row-fluid'>
										<div class='span12'>
											<p>Enter $3,000 if you are entitled to his relief. </p>
										</div>
									</div></b>";
									?>
										<label class="control-label muted span5" for="amount">Grandparent
											caregiver relief&nbsp;&nbsp;</label>
										<div class="controls">
											<span><?php echo CURRENCY;?>&nbsp;</span><input type="text"
												value="<?php echo $query['grandparent_relief'];?>"
												name="table[grandparent_relief]" class="span5 relief"><span>&nbsp;.00</span>
											<span class="btn btn-success btn-small tooltip-success"
												data-rel="tooltip" data-placement="right"
												title="<?php echo $var_grandparent;?>">?</span>
										</div>
										<!-- /controls -->
									</div>
									<!-- /control-group -->

									<div class="control-group">
									<?php
									$var_brothersis = "<b><div class='row-fluid'>
										<div class='span12'>
											<h6><u>Handicapped brother/sister relief</u></h6>
										</div>
									</div>
									<div class='row-fluid'>
										<div class='span12'>
											Enter upto $3,500 for each of your or your spouse's brothers or sisters who are handicapped and whom you maintained. 
										</div>
									</div></b>";
									?>
										<label class="control-label muted span5" for="amount">Handicapped
											brother/sister relief&nbsp;&nbsp;</label>
										<div class="controls">
											<span><?php echo CURRENCY;?>&nbsp;</span><input type="text"
												value="<?php echo $query['brosis_relief'];?>"
												name="table[brosis_relief]" class="span5 relief"><span>&nbsp;.00</span>
											<span class="btn btn-success btn-small tooltip-success"
												data-rel="tooltip" data-placement="right"
												title="<?php echo $var_brothersis;?>">?</span>
										</div>
										<!-- /controls -->
									</div>
									<!-- /control-group -->

									<div class="control-group">
									<?php
									$var_cpf = "<b><div class='row-fluid'>
										<div class='span12'>
											<h6><u>CPF/provident fund relief</u></h6>
										</div>
									</div>
									<div class='row-fluid'>
										<div class='span12'>
											 Enter the amount of allowable CPF contribution. CPF capping rules apply.
										</div>
									</div></b>";
									?>
										<label class="control-label muted span5" for="amount">CPF/provident
											Fund relief&nbsp;&nbsp;</label>
										<div class="controls">
											<span><?php echo CURRENCY;?>&nbsp;</span><input type="text"
												value="<?php echo $query['cpf_relief'];?>"
												name="table[cpf_relief]" class="span5 relief"><span>&nbsp;.00</span>
											<span class="btn btn-success btn-small tooltip-success"
												data-rel="tooltip" data-placement="right"
												title="<?php echo $var_cpf;?>">?</span>
										</div>
										<!-- /controls -->
									</div>
									<!-- /control-group -->
									<div class="control-group">
									<?php
									$var_insuarnce = "<b><div class='row-fluid'>
										<div class='span12'>
											<h6><u>Life Insurance relief</u></h6>
										</div>
									</div>
									<div class='row-fluid'>
										<div class='span12'>
											 You are eligible to claim life insurance relief up to a maximum of $5,000 if you have zero CPF contribution. Otherwise, you may claim the difference between the cap of $5,000 and your CPF contribution.
										</div>
									</div>
									<div class='space-6'></div>
									<div class='row-fluid'>
										For Example<br>
										CPF contribution:$3,000<br>
										Allowable life insurance relief:<br>
										$5,000- $3,000 =$2,000 
									</div>
									</b>";
									?>
										<label class="control-label muted span5" for="amount">Life
											Insurance relief&nbsp;&nbsp;</label>
										<div class="controls">
											<span><?php echo CURRENCY;?>&nbsp;</span><input type="text"
												value="<?php echo $query['life_insurance_relief'];?>"
												name="table[life_insurance_relief]" class="span5 relief"><span>&nbsp;.00</span>
											<span class="btn btn-success btn-small tooltip-success"
												data-rel="tooltip" data-placement="right"
												title="<?php echo $var_insuarnce;?>">?</span>
										</div>
										<!-- /controls -->
									</div>
									<!-- /control-group -->
									<div class="control-group">
									<?php
									$var_course = "<b><div class='row-fluid'>
										<div class='span12'>
											<h6><u>Course Fee relief</u></h6>
										</div>
									</div>
									<div class='row-fluid'>
										<div class='span12'>
											 Enter the amount of course fee incurred up to maximum of $5,000 in a year if you meet the qualifying conditionds.
										</div>
									</div>
									<div class='space-6'></div>
									<div class='row-fluid'>
										For Example<br>
										CPF contribution:$3,000<br>
										Allowable life insurance relief:<br>
										$5,000- $3,000 =$2,000 
									</div>
									</b>";
									?>
										<label class="control-label muted span5" for="amount">Course
											Fee relief&nbsp;&nbsp;</label>
										<div class="controls">
											<span><?php echo CURRENCY;?>&nbsp;</span><input type="text"
												value="<?php echo $query['coursefee_relief'];?>"
												name="table[coursefee_relief]" class="span5 relief"><span>&nbsp;.00</span>
											<span class="btn btn-success btn-small tooltip-success"
												data-rel="tooltip" data-placement="right"
												title="<?php echo $var_course;?>">?</span>
										</div>
										<!-- /controls -->
									</div>
									<!-- /control-group -->
									<div class="control-group">
									<?php
									$var_foreignmaid = "<b><div class='row-fluid'>
										<div class='span12'>
											<h6><u>Foreign maid leavy (FML) relief</u></h6>
										</div>
									</div>
									<div class='row-fluid'>
										<div class='span12'>
											 Enter twice the total foreign domestic worker levy paid  paid in the previous year, subject to the following cap amount:
										</div>
									</div>
									<div class='space-6'></div>
									<div class='row-fluid'>
										<div class='span10'>
											<u>Maximum Relief</u>
										</div>
										<div class='span2'>
										</div>
									</div>
									<div class='row-fluid'>
										<div class='span10'>
											Concessionary FML ($170 x 2 months + $120 x 10 months)
										</div>
										<div class='span2'>
											$3,080
										</div>
									</div>
								<div class='space-6'></div>
									<div class='row-fluid'>
										<div class='span10'>
											Without Concessionary FML ($265 per month)
										</div>
										<div class='span2'>
											$6,360
										</div>
									</div>
									</b>";
									?>
										<label class="control-label muted span5" for="amount">Foreign
											maid leavy relief&nbsp;&nbsp;</label>
										<div class="controls">
											<span><?php echo CURRENCY;?>&nbsp;</span><input type="text"
												value="<?php echo $query['leavy_relief'];?>"
												name="table[leavy_relief]" class="span5 relief"><span>&nbsp;.00</span>
											<span class="btn btn-success btn-small tooltip-success"
												data-rel="tooltip" data-placement="right"
												title="<?php echo $var_foreignmaid;?>">?</span>
										</div>
										<!-- /controls -->
									</div>
									<!-- /control-group -->

									<div class="control-group">
									<?php
									$var_topup = "<b><div class='row-fluid'>
										<div class='span12'>
											<h6><u>CPF cash top-up relief</u></h6>
										</div>
									</div>
									<div class='space-6'></div>
									<div class='row-fluid'>
										<div class='span6'>
											 <u>CPF Top-ups</u>
										</div>
										<div class='span6'>
											<u>Maximum Relief</u>
										</div>
									</div>
									<div class='space-6'></div>
									<div class='row-fluid'>
										<div class='span6'>
											Your own minimum sum
										</div>
										<div class='span6'>
											$7,000
										</div>
									</div>
									<div class='space-6'></div>
									<div class='row-fluid'>
										<div class='span6'>
											Immediate family members<br>(grandparents/parents, spouse or siblings) top-ups
										</div>
										<div class='span6'>
											$7,000
										</div>
									</div>
									</b>";
									?>
										<label class="control-label muted span5" for="amount">CPF cash
											top-up relief(self, dependent and medisave
											account)&nbsp;&nbsp;</label>
										<div class="controls">
											<span><?php echo CURRENCY;?>&nbsp;</span><input type="text"
												value="<?php echo $query['cpf'];?>" name="table[cpf]"
												class="span5 relief"><span>&nbsp;.00</span> <span
												class="btn btn-success btn-small tooltip-success"
												data-rel="tooltip" data-placement="right"
												title="<?php echo $var_topup;?>">?</span>
										</div>
										<!-- /controls -->
									</div>
									<!-- /control-group -->

									<div class="control-group">
									<?php
									$var_srs = "<b><div class='row-fluid'>
										<div class='span12'>
											<h6><u>SRS relief</u></h6>
										</div>
									</div>
									<div class='space-6'></div>
									<div class='row-fluid'>
										<div class='span12'>
											 Enter the amount you/ your employer have contributed in the previous year, subject to a cap of $12,750 for a Singaporean/Singapore permanent Resident and $29,750 for a foreigner.
										</div>
									</div>
									</b>";
									?>
										<label class="control-label muted span5" for="amount">Supplementary
											Retirement Scheme (SRS) relief&nbsp;&nbsp;</label>
										<div class="controls">
											<span><?php echo CURRENCY;?>&nbsp;</span><input type="text"
												value="<?php echo $query['srs'];?>" name="table[srs]"
												class="span5 relief"><span>&nbsp;.00</span> <span
												class="btn btn-success btn-small tooltip-success"
												data-rel="tooltip" data-placement="right"
												title="<?php echo $var_srs;?>">?</span>
										</div>
										<!-- /controls -->
									</div>
									<!-- /control-group -->

									<div class="control-group">
									<?php
									$var_nsman = "<b><div class='row-fluid'>
										<div class='span12'>
											<h6><u>NSman relief</u></h6>
										</div>
									</div>
									<div class='space-6'></div>
									<div class='row-fluid'>
										<div class='span12'>
											 For NSman (self) relief.
										</div>
									</div>
									<div class='row-fluid'>
										<div class='span6'>
											<u>Category Of NSman</u>
										</div>
										<div class='span3'>
											<u>Non-KAH</u>
										</div>
										<div class='span3'>
											<u>KAH</u>
										</div>
									</div>
									<div class='row-fluid'>
										<div class='span6'>
											No in-camp training in previous year
										</div>
										<div class='span3'>
											$1,500
										</div>
										<div class='span3'>
											$3,500
										</div>
									</div>
									<div class='space-6'></div>
									<div class='row-fluid'>
										<div class='span6'>
											Attended in-camp training in previous year
										</div>
										<div class='span3'>
											$3,000
										</div>
										<div class='span3'>
											$5,000
										</div>
									</div>
									<div class='space-6'></div>
									<div class='row-fluid'>
										<div class='span12'>
											Enter $750 if your son(s)/your husband are NSman.
										</div>
									</div>
									</b>";
									?>
										<label class="control-label muted span5" for="amount">NSman(Self/Wife/Parent)
											relief&nbsp;&nbsp;</label>
										<div class="controls">
											<span><?php echo CURRENCY;?>&nbsp;</span><input type="text"
												value="<?php echo $query['nsman'];?>" name="table[nsman]"
												class="span5 relief"><span>&nbsp;.00</span> <span
												class="btn btn-success btn-small tooltip-success"
												data-rel="tooltip" data-placement="right"
												title="<?php echo $var_nsman;?>">?</span>
										</div>
										<!-- /controls -->
									</div>
									<!-- /control-group -->

									<div class="control-group">
										<label class="control-label span5" for="amount"><b>CHARGEABLE
												INCOME</b>&nbsp;&nbsp;</label>
										<div class="controls">
											<span><?php echo CURRENCY;?>&nbsp;</span><input type="text"
												value="<?php echo $query[chargeable_income];?>"
												name="table[chargeable_income]" readonly
												class="span5 charageable"><span>&nbsp;.00</span>
										</div>
										<!-- /controls -->
									</div>
									<!-- /control-group -->
									<div class="row-fluid">
										<div class="span12">
											<div class="control-group">
												<label class="control-label span5" for="amount">Tax Payable
													On Chargeable Income&nbsp;&nbsp;</label>
												<div class="controls">
													<span><?php echo CURRENCY;?>&nbsp;</span><input type="text"
														name="table[chargeable_tax]" id="charageabletax" readonly
														value="<?php echo $query['chargeable_tax'];?>"
														class="span5"><span>&nbsp;.00</span> <a
														href="<?php echo $link->link("incometax_slab", Admin);?>"
														target='_blank'
														class="btn btn-danger btn-small tooltip-success">View Tax
														Slab</a>
												</div>

											</div>

										</div>
									</div>
									<?php
									$var_parenthood = "
										<div class='row-fluid'>
											<div class='span12'>
												<u>Parenthood Tax Rebate</u>
											</div>
										</div>
										<div class='row-fluid'>
											<div class='span12'>
												1st child- $5000<br>
												2nd child- $10,000<br>
												3rd and each subsequent child- $20,000
											</div>
										</div>
										<div class='space-6'></div>
										<div class='row-fluid'>
											If you have been granted PTR previously and there is balance in your
											PTR account, refer to the PTR statement on the balance available to offset
											against your tax payable.
										</div>
										";
									?>
									<div class="row-fluid">
										<div class="span12">
											<div class="control-group">
												<label class="control-label span5 text-info" for="amount"><b>Less:</b>Parenthood
													Tax Rebate&nbsp;&nbsp;</label>
												<div class="controls">
													<span><?php echo CURRENCY;?>&nbsp;</span><input type="text"
														id="parenthood"
														value="<?php echo $query['parenthood_tax'];?>"
														name="table[parenthood_tax]" class="span5"><span>&nbsp;.00</span>
													<span class="btn btn-success btn-small tooltip-success"
														data-rel="tooltip" data-placement="right"
														title="<?php echo $var_parenthood;?>">?</span> 
												</div>
												<!-- /controls -->
											</div>
											<!-- /control-group -->
										</div>
									</div>
									<div class="control-group">
										<label class="control-label span5" for="amount"><b>NET TAX
												PAYABLE</b>&nbsp;&nbsp;</label>
										<div class="controls">
											<span><?php echo CURRENCY;?>&nbsp;</span><input type="text"
												value="<?php echo $query['nettax_payable'];?>" id="nettax"
												readonly name="table[nettax_payable]" class="span5"><span>&nbsp;.00</span>
										</div>
										<!-- /controls -->
									</div>
									<!-- /control-group -->

									<div class="control-group">

										<div class="controls">
											<span class="span12 center"> <input type="hidden"
												name="check" value="table">
												<button type="submit" name="submit"
													class="btn btn-small btn-primary">Save</button>
											</span>
										</div>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="space-12"></div>

			<!--PAGE CONTENT ENDS-->
		</div>
		<!--/.span-->
	</div>
	<!--/.row-fluid-->
</div>
<!--/.page-content-->


</div>
<!--/.main-content-->