<?php
/*
///////////////////////////////////////////////////////////////////////
/  Project Name 	: Gurudev
/  File Name 		: location_manage.php  
/  Created on  		: 17/08/2017
/  Created by       : Pintu
/  Last Changed By 	: 
/  Updated On		: 
/  Purpose			: To manage/add location
/  ---------
/  
////////////////////////////////////////////////////////////////////////
*/
?>
<?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">
						Location
					</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 'Location Code ';?><font style="color:red">*</font></label>
										<div class="col-sm-7">	
											<?php	
												$location_code_data=array('name'=>'location_code',
																			 'id'=>'location_code',
																			 'placeholder'=>'Location Code',
																			 'value'=> ''
																			);
												echo form_input($location_code_data,'');
												echo form_error('location_code');
											?>
										</div>
									</div>						
									<div class="form-group">  
										<label class="col-sm-5 control-label" for="form-field-2" ><?php echo 'Location Name ';?><font style="color:red">*</font></label>
										<div class="col-sm-7">	
											<?php	
												$location_name_data=array('name'=>'location_name',
																			 'id'=>'location_name',
																			 'placeholder'=>'Location Name',
																			 'value'=> ''
																			);
												echo form_input($location_name_data,'');
												echo form_error('location_name');
											?>
										</div>
									</div>
									<div class="form-group">  
										<label class="col-sm-5 control-label" for="form-field-2" ><?php echo 'Location Address ';?><font style="color:red">*</font></label>
										<div class="col-sm-7">	
											<?php	
												$location_address_data=array('name'=>'location_address',
																			 'id'=>'location_address',
																			 'placeholder'=>'Location Address',
																			 'value'=> ''
																			);
												echo form_input($location_address_data,'');
												echo form_error('location_address');
											?>
										</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/admin/location/list_location'">
				Back
			</button>
			<button class="btn btn-info" type="button">
				Add Location
			</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>
<?php
	include('common/footer.php');
?>	