<?php
/*
///////////////////////////////////////////////////////////////////////
/  Project Name 	: Gurudev
/  File Name 		: financial_year_manage.php  
/  Created on  		: 17/08/2017
/  Created by       : Pintu
/  Last Changed By 	: 
/  Updated On		: 
/  Purpose			: To manage/add financial year
/  ---------
/  
////////////////////////////////////////////////////////////////////////
*/
?>
<?php
	include('common/header.php');
?>
	
	<div class="">
		<div class="col-xm-12">
			<div class="widget-box light-border">
				<div class="widget-header header-color-grey">
					<h4 class="smaller">
						Financial Year
					</h4>
				</div>
				<div class="widget-body">
					<div class="widget-main">
						<div class="row">
							<div class="col-sm-12">
								<form class="form-horizontal" role="form">
								<div class="">
									<!-- PAGE CONTENT BEGINS -->	 	
									
									<div class="form-group">  
										<label class="col-sm-5 control-label" for="form-field-2" ><?php echo 'Financial Year Name ';?><font style="color:red">*</font></label>
										<div class="col-sm-7">	
											<?php	
												$financial_year_name_data=array('name'=>'financial_year_name',
																			 'id'=>'financial_year_name',
																			 'placeholder'=>'Financial Year Name',
																			 'value'=> ''
																			);
												echo form_input($financial_year_name_data,'');
												echo form_error('financial_year_name');
											?>
										</div>
									</div>
									<div class="form-group">  
										<label class="col-sm-5 control-label" for="form-field-2" ><?php echo 'From Date ';?><font style="color:red">*</font></label>
										<div class="col-sm-7">	
											<?php	
												$from_date_data=array('name'=>'from_date',
																 'id'=>'from_date',
																 'placeholder'=>'From Date'
																);
												echo form_input($from_date_data,'');
												echo form_error('from_date');
											?>
										</div>
									</div>
									<div class="form-group">  
										<label class="col-sm-5 control-label" for="form-field-2" ><?php echo 'To Date ';?>&nbsp;</label>
										<div class="col-sm-7">	
											<?php	
												$to_date_data=array('name'=>'to_date',
																 'id'=>'to_date',
																 'placeholder'=>'To Date'
																);
												echo form_input($to_date_data,'');
												echo form_error('to_date');
											?>
										</div>
									</div>
								</div>
								</form>	
							</div>
						</div>
					</div>	
				</div>
			</div>
		</div>
      	<!-- /.col -->
	</div>
	<div class="clearfix form-actions">
		<div class="col-md-offset-5 col-md-5">
			<button class="btn btn-info" type="button" onclick="javascript:window.location='<?php echo base_url();?>index.php/<?php echo FINANCIAL_YEAR_PATH;?>list_financial_year'">
				Back
			</button>
			<button class="btn btn-info" type="button">
				<?php echo $purpose;?> Financial Year
			</button>
		</div>
	</div>
	<div class="space-4"></div>
		<!-- /.page-row -->
        <!-- /.page-content --> 
	</div>
      <!-- /.main-content -->  
	</div>
    <!-- /#ace-settings-container --> 
	</div>
    <!-- /.main-container-inner --> 
<script type="text/javascript">
$(document).ready(function() {
    $('form:first *:input[type!=hidden]:first').focus();
});
</script>	
<script type="text/javascript">
$(function() {
    $( "#from_date" ).datepicker({
		changeMonth: true,
		changeYear: true,
		showOn: "button",
			  buttonImage: "<?php echo ASSETS_PATH;?>images/calendar.jpg",
			  buttonImageOnly: true,
			  buttonText: "Select date",
		dateFormat:'dd/mm/yy'	
	});
	
	$( "#to_date" ).datepicker({
		changeMonth: true,
		changeYear: true,
		showOn: "button",
			  buttonImage: "<?php echo ASSETS_PATH;?>images/calendar.jpg",
			  buttonImageOnly: true,
			  buttonText: "Select date",
		dateFormat:'dd/mm/yy'	
	});
	
});
</script>
<?php
	include('common/footer.php');
?>