<?php
$message = $this->session->userdata('message');
if (!empty($message)) {
    ?>
    <div class="alert alert-block alert-success">
        <h6 class="lighter arial green" style="text-align:center;"><b>
                <?php echo $message;
                $this->session->unset_userdata('message');
                ?>
            </b></h6>
    </div>
    <?php
}
$errormessage = $this->session->userdata('errormessage');
if (!empty($errormessage)) {
    ?>
    <div class="alert alert-block alert-danger">
        <h6 class="lighter arial red" style="text-align:center;"><b>
                <?php echo $errormessage;
                $this->session->unset_userdata('errormessage');
                ?>
            </b></h6>
    </div>
    <?php
}
?>
<div class="page-content" >
    <div class="row" >
        <div class="col-sm-12">
            <div class="widget-box">
                <div class="widget-header" style="height:40px;">
                    <h5  style="text-align:center; color:red;"><b>Search Un-Paid Customer List By Month</b> </h5>
                </div>

                <div class="widget-body">
                    <div class="widget-main no-padding">
                        <form action="<?php echo admin_url()?>/extraincomesetup/searchDueInstallment/search" method="post">

                            <fieldset class="col-xs-6 col-sm-6">
                                <div class="col-xs-4 col-sm-4"><label>Select Month</label></div>
                                <?php echo form_error('data[fromdate]', '<div style="color: rgb(255, 0, 0);">', '</div>'); ?>
                                <div class="input-group col-xs-8 col-sm-8">


                                    <select name="select_month" id="select_month" class="form-control">
                                        <option value="00" disabled selected>Please Select Month</option>
                                        <option value="01">January</option>
                                        <option value="02">February</option>
                                        <option value="03">March</option>
                                        <option value="04">April</option>
                                        <option value="05">May</option>
                                        <option value="06">June</option>
                                        <option value="07">July</option>
                                        <option value="08">August</option>
                                        <option value="09">September</option>
                                        <option value="10">October</option>
                                        <option value="11">November</option>
                                        <option value="12">December</option>
                                    </select>

                                    <span class="input-group-addon">
                                        <i class="fa fa-calendar bigger-110"></i>
                                    </span>
                                </div>
                            </fieldset>

                            <fieldset class="col-xs-6 col-sm-6">
                                <div class="col-xs-4 col-sm-4"><label>Select Year</label></div>
                                <?php echo form_error('data[todate]', '<div style="color: rgb(255, 0, 0);">', '</div>'); ?>
                                <div class="input-group col-xs-8 col-sm-8">
                                    <select name="select_year" id="select_month" class="form-control">
                                        <option value="0" disabled selected>Please Select Year</option>
                                        <?php
                                            $start_year = 2015;
                                            $currt_year = date("Y");
                                            while($start_year <= $currt_year){?>
                                                    <option value="<?php echo $start_year;?>"><?php echo $start_year;?></option>
                                            <?php $start_year++; }?>

                                    </select>

                                    <span class="input-group-addon">
                                        <i class="fa fa-calendar bigger-110"></i>
                                    </span>
                                </div>
                            </fieldset>

                            <div class="clearfix"></div>

                            <div class="form-actions center">
                                <button type="submit" name="btnSdateRange" class="btn btn-sm btn-success">
                                    <i class="ace-icon fa fa-undo bigger-110"></i>
                                    Search By Month
                                </button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>




<!--Search By Year-->
<!--<div class="page-content" >-->
<!--    <div class="row" >-->
<!--        <div class="col-sm-12">-->
<!--            <div class="widget-box">-->
<!--                <div class="widget-header" style="height:40px;">-->
<!--                    <h5  style="text-align:center; color:red;"><b>Search By Year</b> </h5>-->
<!--                </div>-->
<!---->
<!--                <div class="widget-body">-->
<!--                    <div class="widget-main no-padding">-->
<!--                        <form action="--><?php //echo admin_url()?><!--/extraincomesetup/searchIncome/year" method="post">-->
<!---->
<!--                            <fieldset class="col-xs-6 col-sm-6">-->
<!--                                <div class="col-xs-4 col-sm-4"><label>Select Year</label></div>-->
<!--                                --><?php //echo form_error('data[fromdate]', '<div style="color: rgb(255, 0, 0);">', '</div>'); ?>
<!--                                <div class="input-group col-xs-8 col-sm-8">-->
<!--                                    <select class="selectpicker" name="select_year" data-live-search="true">-->
<!--                                        <option value="" disabled selected>Select A Year</option>-->
<!--                                        --><?php
//                                        $year = 2014;
//                                        while($year < date('Y')){
//                                            $year++;
//                                            ?>
<!--                                            <option value="--><?php //echo $year;?><!--">--><?php //echo $year;?><!--</option>-->
<!--                                        --><?php //} ?>
<!--                                    </select>-->
<!--                                </div>-->
<!--                            </fieldset>-->
<!--                            <div class="clearfix"></div>-->
<!---->
<!--                            <div class="form-actions center">-->
<!--                                <button type="submit" name="btnSdateRange" class="btn btn-sm btn-success">-->
<!--                                    <i class="ace-icon fa fa-undo bigger-110"></i>-->
<!--                                    Start Search-->
<!--                                </button>-->
<!--                            </div>-->
<!--                        </form>-->
<!--                    </div>-->
<!--                </div>-->
<!--            </div>-->
<!--        </div>-->
<!--    </div>-->
<!--</div>-->