PAYON LABEL CHANGE

This commit is contained in:
gandhimathi 2017-10-06 09:11:47 +00:00
parent a89f6c0cab
commit 90514a494e

View File

@ -1,4 +1,7 @@
<?php
$monthsoptions = array("01" => "Jan", "02" => "Feb","03" => "Mar","04" => "Apr","05" => "May","06" => "June","07"=> "July","08"=> "Aug","09" => "Sep","10"=> "Oct","11" => "Nov","12"=>"Dec");
?>
<script>
@ -206,17 +209,11 @@ $(function() {
foreach ($Payon as $rl)
{
$Pay =$rl->Month_Year;
if ($_POST['PayOn'] == $Pay)
{
echo "<option value=\"".$Pay."\" selected=\"selected\">".$Pay."</option>";
}
else
{
echo "<option value=\"".$Pay."\">".$Pay."</option>";
}
$m = substr($rl->Month_Year,0,2);
$y = substr($rl->Month_Year,3);
$tot = $monthsoptions[$m]."-".$y;
echo "<option value=\"".$rl->Month_Year."\">".$tot."</option>";
}
}
@ -257,7 +254,7 @@ $(function() {
{
?>
<div class="alert alert-danger alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<?php echo $this->session->flashdata('error'); ?>
</div>
<?php } ?>
@ -267,14 +264,14 @@ $(function() {
{
?>
<div class="alert alert-success alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<?php echo $this->session->flashdata('success'); ?>
</div>
<?php } ?>
<div class="row">
<div class="col-md-4">
<?php echo validation_errors('<div class="alert alert-danger alert-dismissable">', ' <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button></div>'); ?>
<?php echo validation_errors('<div class="alert alert-danger alert-dismissable">', ' <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button></div>'); ?>
</div>
</div>
</div>