
<div class='col-md-12 calculator_form' style="border-radius: 20px;margin-top: 12px;">

	<form method='post' action='./salary_calculator'>
<table width="441" class="table-section margin-top-45 mobile-space" style="border:none;">
<tr>
<td width="214"  height="40">Select tax year</td>
<td width="215"><select id='tax_year_is' name='tax_year_is' style="margin-bottom: 15px;">
				<option value='year2014_15' name='year2014_15' id='year2014_15' <?php if ( isset( $_POST['tax_year_is'] ) && 'year2014_15' == $_POST['tax_year_is'] ) { echo 'selected'; } elseif ( ! isset( $_POST['tax_year_is']) ) { echo 'selected'; } ?>>2015/16</option>
					<option value='year2014_15' name='year2014_15' id='year2014_15' <?php if ( isset( $_POST['tax_year_is'] ) && 'year2014_15' == $_POST['tax_year_is'] ) { echo 'selected'; } elseif ( ! isset( $_POST['tax_year_is']) ) { echo 'selected'; } ?>>2014/15</option>
					
					<option value='year2013_14' name='year2013_14' id='year2013_14' <?php if ( isset( $_POST['tax_year_is'] ) && 'year2013_14' == $_POST['tax_year_is'] ) { echo 'selected'; } ?>>2013/14</option>
					<option value='year2012_13' name='year2012_13' id='year2012_13' <?php if ( isset( $_POST['tax_year_is'] ) && 'year2012_13' == $_POST['tax_year_is'] ) { echo 'selected'; } ?>>2012/13</option>
					<option value='year2011_12' name='year2011_12' id='year2011_12' <?php if ( isset( $_POST['tax_year_is'] ) && 'year2011_12' == $_POST['tax_year_is'] ) { echo 'selected'; } ?>>2011/12</option>
					<option value='year2010_11' name='year2010_11' id='year2010_11' <?php if ( isset( $_POST['tax_year_is'] ) && 'year2010_11' == $_POST['tax_year_is'] ) { echo 'selected'; } ?>>2010/11</option>
					<option value='year2009_10' name='year2009_10' id='year2009_10' <?php if ( isset( $_POST['tax_year_is'] ) && 'year2009_10' == $_POST['tax_year_is'] ) { echo 'selected'; } ?>>2009/10</option>
		</select></td>
</tr>
<tr>
<td height="44">Gross</td>
<td><select id='income_every_x' name='income_every_x' style="margin-bottom: 15px;">
					<option value='year' <?php  if ( isset( $_POST['income_every_x'] ) && 'year'  == $_POST['income_every_x'] ) { echo 'selected'; } ?>>Yearly</option>
					<option value='month' <?php if ( isset( $_POST['income_every_x'] ) && 'month' == $_POST['income_every_x'] ) { echo 'selected'; } ?>>Monthly</option>
					<option value='week' <?php  if ( isset( $_POST['income_every_x'] ) && 'week'  == $_POST['income_every_x'] ) { echo 'selected'; } ?>>Weekly</option>
					<option value='day' <?php   if ( isset( $_POST['income_every_x'] ) && 'day'   == $_POST['income_every_x'] ) { echo 'selected'; } ?>>Daily</option>
				</select></td>
</tr>
<tr>
<td height="36">Income</td>
<td><input type='text' style="margin-bottom: 15px;" id='gross_income_is' name='gross_income_is' class='form-control input-sm' value='<?php if (isset( $_POST['gross_income_is'] ) ) { echo $_POST['gross_income_is']; } ?>'</td>
</tr>
<tr>
<td height="40">Other allowances</td>
<td><input type='text' id='other_allowance_is' style="margin-bottom: 15px;"  class='form-control input-sm' name='other_allowance_is' value='<?php if ( isset( $_POST['other_allowance_is'] ) ) { echo $_POST['other_allowance_is']; } ?>'></td>
</tr>
<tr>
<td height="47">Tax code (if known)</td>
<td><input type='text' id='tax_code_is' style="margin-bottom: 15px;" class='form-control input-sm' name='tax_code_is' value='<?php if ( isset( $_POST['tax_code_is'] ) ) { echo $_POST['tax_code_is']; } ?>'></td>
</tr>
<tr>
<td height="43">Age</td>
<td><select id='age_is' name='age_is' style="margin-bottom: 15px;">
				  	<option value='under_65'  <?php if ( isset( $_POST['age_is']) && 'under_65' == $_POST['age_is'] ) { echo 'selected'; } ?>>Under 65</option>
				  	<option value='65_74'  <?php    if ( isset( $_POST['age_is']) && '65_74'    == $_POST['age_is'] ) { echo 'selected'; } ?>>65-74</option>
				  	<option value='over_75'  <?php  if ( isset( $_POST['age_is']) && 'over_75'  == $_POST['age_is'] ) { echo 'selected'; } ?>>Over 75</option>
				</select></td>
</tr>
<tr>
<td height="44">Pension contribution is</td>
<td><select id='pension_every_x' name='pension_every_x' style="margin-bottom: 15px;">
					<option value='month' <?php if ( isset( $_POST['pension_every_x'] ) && 'month' == $_POST['pension_every_x'] ) { echo 'selected'; } elseif ( ! isset( $_POST['pension_every_x'] ) ) { echo 'selected'; } ?>>Monthly</option>
					<option value='year' <?php  if ( isset( $_POST['pension_every_x'] ) && 'year'  == $_POST['pension_every_x'] ) { echo 'selected'; } ?>>Yearly</option>
				</select></td>
</tr>
<tr>
<td height="44"></td>
<td><input type='text' id='pension_contribution_is' style="margin-bottom: 15px;" class='form-control input-sm' name='pension_contribution_is' value='<?php if ( isset( $_POST['pension_contribution_is'] ) ) { echo $_POST['pension_contribution_is']; } ?>'></td>
</tr>
<tr>
  <td height="44">Childcare vouchers</td>
  <td><input type='text' id='childcare_vouchers_are' style="margin-bottom: 15px;" class='form-control input-sm' name='childcare_vouchers_are' value='<?php if ( isset( $_POST['childcare_vouchers_are'] ) ) { echo $_POST['childcare_vouchers_are']; } ?>'></td>
</tr>
<tr>
  <td height="44"></td>
  <td><select id='vouchers_every_x' name='vouchers_every_x' style="margin-bottom: 15px;">
					<option value='week' <?php  if ( isset( $_POST['vouchers_every_x']) && 'week'  == $_POST['vouchers_every_x'] ) { echo 'selected';} ?>>Week</option>
					<option value='month' <?php if ( isset( $_POST['vouchers_every_x']) && 'month' == $_POST['vouchers_every_x'] ) { echo 'selected';} elseif ( ! isset( $_POST['vouchers_every_x'] ) ) { echo 'selected'; } ?>>Month</option>
				</select></td>
</tr>
<tr>
  <td height="44" colspan="2">
  <div class='row' style="border:none;">
			<div class='col-md-12'>
				<label for='is_blind' class='checkbox-inline'>
				<input type='checkbox' style="margin-top: 3px;" id='is_blind' name='is_blind' 
				<?php if ( isset( $_POST['is_blind'] ) && 'on' == $_POST['is_blind'] ) { echo 'checked'; } ?> >I am blind
				</label>

				<label for='exclude_ni' class='checkbox-inline'>
				<input type='checkbox' style="margin-top: 3px;"  id='exclude_ni' name='exclude_ni'
				<?php if ( isset( $_POST['exclude_ni'] ) && 'on' == $_POST['exclude_ni'] ) { echo 'checked'; } ?> >I do not pay NI
				</label>

				<label for='is_married' class='checkbox-inline'>
				<input type='checkbox' style="margin-top: 3px;"  id='is_married' name='is_married'
				<?php if ( isset( $_POST['is_married'] ) && 'on' == $_POST['is_married'] ) { echo 'checked'; } ?> >Married
				</label>
				<label for='has_student_loan' class='checkbox-inline'>
				<input type='checkbox' style="margin-top: 3px;"  id='has_student_loan' name='has_student_loan' 
				<?php if ( isset( $_POST['has_student_loan'] ) && 'on' == $_POST['has_student_loan'] ) { echo 'checked'; } ?> >I have a student loan
				</label></br>
				<div class="butten-section">
<input type='submit' id='calculate_taxes'  name='calculate_taxes' value='Calculate' />
</div></br></br>
			</div>
		</div>
		</td>
  </tr>

</table>
</form>
</div> <!-- end .col-md-6 -->