
<div id="screen[index]" > 
<!-- begin:: Content -->
	<!--begin::Portlet-->
    <input type="hidden" class="form-control" id="txtSalesTargetID" value="-1">
	<div class="kt-portlet kt-portlet--last kt-portlet--head-lg  kt-portlet--responsive-mobile" id="kt_page_portlet">
		<div class="kt-portlet__body kt-portlet__body--fit">
			<div class="kt-section kt-section--first">
                <div class="kt-portlet__head kt-portlet__head--lg" style="min-height: 30px;padding-top:10px;padding-bottom:10px;padding-left:0px;">
                    <div class="kt-portlet__head-label col-lg-12">
                        <div class="col-lg-1">
                            <h3 class="kt-portlet__head-title"><strong>Sales Target </strong></h3>                            
                        </div>
                        <div class="col-lg-2">
                            <select  class="form-control" id="cobSalesTargetBU">
                                <?php echo $this->getCompanyOption(); ?>
                            </select>
                        </div>
                        <div class="col-lg-1">
                            <select  class="form-control" id="cobSalesTargetYear">
                                <?php echo Util::getYearOption2(); ?>
                            </select>
                        </div>
                        <div class="col-lg-1">
                        <button class="btn btn-primary" id="btnViewSalesTarget" onclick="javascript:getSalesTarget();">View</button>
                        </div>
                    </div>
                </div>
				<div class="kt-section__body">
                    <div class="card-body row">
                        <div class="col-lg-12">
                            <div class="form-group row">
                                <div class="col-lg-3">
                                    <div class="form-group row">
                                        <label class="col-lg-4 col-form-label" id="col_label">Target Year <?php echo date('Y'); ?></label>
                                        <div class="col-lg-5">
                                            <input type="text" class="form-control" id="txtSalesTargetTotal" style="text-align:right;" placeholder="0.00" onchange="totalChanged(this);">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-12 kt-separator kt-separator--dashed" style="margin-bottom: 10px;"></div>
                        <div class="col-lg-12">
                            <div class="form-group row">
                                <div class="col-lg-3">
                                    <div class="form-group row">
                                        <label class="col-lg-4 col-form-label" id="col_label">January <?php echo date('Y'); ?></label>
                                        <div class="col-lg-5">
                                            <input type="text" class="form-control" id="txtSalesTarget1" style="text-align:right;" placeholder="0.00" onchange="targetChanged(this);">
                                        </div>
                                    </div>
                                </div>
                                <div class="col-lg-3">
                                    <div class="form-group row">
                                        <label class="col-lg-4 col-form-label" id="col_label">February <?php echo date('Y'); ?></label>
                                        <div class="col-lg-5">
                                            <input type="text" class="form-control" id="txtSalesTarget2" style="text-align:right;" placeholder="0.00" onchange="targetChanged(this);">
                                        </div>
                                    </div>
                                </div>
                                <div class="col-lg-3">
                                    <div class="form-group row">
                                        <label class="col-lg-4 col-form-label" id="col_label">March <?php echo date('Y'); ?></label>
                                        <div class="col-lg-5">
                                            <input type="text" class="form-control" id="txtSalesTarget3" style="text-align:right;" placeholder="0.00" onchange="targetChanged(this);">
                                        </div>
                                    </div>
                                </div>
                                <div class="col-lg-3">
                                    <div class="form-group row">
                                        <label class="col-lg-4 col-form-label" id="col_label">April <?php echo date('Y'); ?></label>
                                        <div class="col-lg-5">
                                            <input type="text" class="form-control" id="txtSalesTarget4" style="text-align:right;" placeholder="0.00" onchange="targetChanged(this);">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-12 kt-separator kt-separator--dashed" style="margin-bottom: 10px;"></div>
                        <div class="col-lg-12">
                            <div class="form-group row">
                                <div class="col-lg-3">
                                    <div class="form-group row">
                                        <label class="col-lg-4 col-form-label" id="col_label">May <?php echo date('Y'); ?></label>
                                        <div class="col-lg-5">
                                            <input type="text" class="form-control" id="txtSalesTarget5" style="text-align:right;" placeholder="0.00" onchange="targetChanged(this);">
                                        </div>
                                    </div>
                                </div>
                                <div class="col-lg-3">
                                    <div class="form-group row">
                                        <label class="col-lg-4 col-form-label" id="col_label">June <?php echo date('Y'); ?></label>
                                        <div class="col-lg-5">
                                            <input type="text" class="form-control" id="txtSalesTarget6" style="text-align:right;" placeholder="0.00" onchange="targetChanged(this);">
                                        </div>
                                    </div>
                                </div>
                                <div class="col-lg-3">
                                    <div class="form-group row">
                                        <label class="col-lg-4 col-form-label" id="col_label">July <?php echo date('Y'); ?></label>
                                        <div class="col-lg-5">
                                            <input type="text" class="form-control" id="txtSalesTarget7" style="text-align:right;" placeholder="0.00" onchange="targetChanged(this);">
                                        </div>
                                    </div>
                                </div>
                                <div class="col-lg-3">
                                    <div class="form-group row">
                                        <label class="col-lg-4 col-form-label" id="col_label">August <?php echo date('Y'); ?></label>
                                        <div class="col-lg-5">
                                            <input type="text" class="form-control" id="txtSalesTarget8" style="text-align:right;" placeholder="0.00" onchange="targetChanged(this);">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-12 kt-separator kt-separator--dashed" style="margin-bottom: 10px;"></div>
                        <div class="col-lg-12">
                            <div class="form-group row">
                                <div class="col-lg-3">
                                    <div class="form-group row">
                                        <label class="col-lg-4 col-form-label" id="col_label">September <?php echo date('Y'); ?></label>
                                        <div class="col-lg-5">
                                            <input type="text" class="form-control" id="txtSalesTarget9" style="text-align:right;" placeholder="0.00" onchange="targetChanged(this);">
                                        </div>
                                    </div>
                                </div>
                                <div class="col-lg-3">
                                    <div class="form-group row">
                                        <label class="col-lg-4 col-form-label" id="col_label">October <?php echo date('Y'); ?></label>
                                        <div class="col-lg-5">
                                            <input type="text" class="form-control" id="txtSalesTarget10" style="text-align:right;" placeholder="0.00" onchange="targetChanged(this);">
                                        </div>
                                    </div>
                                </div>
                                <div class="col-lg-3">
                                    <div class="form-group row">
                                        <label class="col-lg-4 col-form-label" id="col_label">November <?php echo date('Y'); ?></label>
                                        <div class="col-lg-5">
                                            <input type="text" class="form-control" id="txtSalesTarget11" style="text-align:right;" placeholder="0.00" onchange="targetChanged(this);">
                                        </div>
                                    </div>
                                </div>
                                <div class="col-lg-3">
                                    <div class="form-group row">
                                        <label class="col-lg-4 col-form-label" id="col_label">December <?php echo date('Y'); ?></label>
                                        <div class="col-lg-5">
                                            <input type="text" class="form-control" id="txtSalesTarget12" style="text-align:right;" placeholder="0.00" onchange="targetChanged(this);">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-12 kt-separator kt-separator--dashed" style="margin-top: 10px;margin-bottom: 10px;"></div>
                        <div class="col-lg-12" style="text-align:right;padding-right:125px;">
                            <button class="btn btn-secondary" id="btnClearSalesTarget" onclick="javascript:clearSalesTarget(true);">Clear</button>
                            <button class="btn btn-primary" id="btnSaveSalesTarget" onclick="javascript:saveSalesTarget();">Save</button>
                        </div>
                    </div>
				</div>
			</div>
		</div>
	</div>
	<!--end::Portlet-->

	<script>       
    <?php  include (PATH_CODE . "js/portal/salestarget/salestarget.js") ; ?>
    </script>
<!-- end:: Content -->
</div>
<div id="screen[index]a">
</div>

<script>
  $(document).ready(function() {
    // getSalesTarget();
  });
</script>