<?php
/*
///////////////////////////////////////////////////////////////////////
/  Project Name 	: Gurudev
/  File Name 		: agent_manage.php  
/  Created on  		: 17/08/2017
/  Created by       : Pintu
/  Last Changed By 	: 
/  Updated On		: 
/  Purpose			: To manage/add agent
/  ---------
/  
////////////////////////////////////////////////////////////////////////
*/
?>
<?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">
						Agent
					</h4>
				</div>
				<div class="widget-body">
					<div class="widget-main">
						<div class="row">
							<div class="col-sm-12">
								<form class="form-horizontal" role="form" name="module_form" id="module_form">
								<div class="col-sm-6">
									<!-- PAGE CONTENT BEGINS -->
									<!--<div class="form-group" id="">  
										<label class="col-sm-5 control-label" for="form-field-2" ><?php echo 'Agent Code ';?><font style="color:red">*</font></label>
										<div class="col-sm-7">	
											<?php	
												$agent_code_data=array('name'=>'agent_code',
																			'id'=>'agent_code',
																			'placeholder'=>'Agent Code',
																			'value'=> ''
																			);
												echo form_input($agent_code_data,'');
												echo form_error('agent_code');
											?>
										</div>
									</div>-->
									<div class="form-group" id="">  
										<label class="col-sm-5 control-label" for="form-field-2" ><?php echo 'Agent Name ';?><font style="color:red">*</font></label>
										<div class="col-sm-7">	
											<?php	
												$agent_name_data=array('name'=>'agent_name',
																			'id'=>'agent_name',
																			'placeholder'=>'Agent Name',
																			'value'=> ''
																			);
												echo form_input($agent_name_data,'');
												echo form_error('client_code');
											?>
										</div>
									</div>
									<div class="form-group">  
										<label class="col-sm-5 control-label" for="form-field-2" ><?php echo 'Agent Email Id';?><font style="color:red">*</font></label>
										<div class="col-sm-7">	
											<?php	
												$agent_email_data=array('name'=>'agent_email',
																		'id'=>'agent_email',
																		'placeholder'=>'Agent Email',
																		'value'=> ''
																		);
												echo form_input($agent_email_data,'');
												echo form_error('agent_email');
											?>
										</div>
									</div>
									<div class="form-group">  
										<label class="col-sm-5 control-label" for="form-field-2" ><?php echo 'Agent Mobile No';?><font style="color:red">*</font></label>
										<div class="col-sm-7">	
											<?php	
												$agent_mob_data=array('name'=>'agent_mobile',
																		'id'=>'agent_mobile',
																		'placeholder'=>'Agent Mobile No',
																		'value'=> ''
																		);
												echo form_input($agent_mob_data,'');
												echo form_error('agent_mobile');
											?>
										</div>
									</div>
									<div class="form-group">  
										<label class="col-sm-5 control-label" for="form-field-2" ><?php echo 'PAN No ';?><font style="color:red">*</font></label>
										<div class="col-sm-7">	
											<?php	
												$pan_no_data=array('name'=>'pan_no',
																	'id'=>'pan_no',
																	'placeholder'=>'PAN No',
																	'value'=> '',
																	'maxlength'=>'10'
																	);
												echo form_password($pan_no_data,'');
												echo form_error('pan_no');
											?>
										</div>
									</div>
								</div>
								<div class="col-sm-6">	
									<div class="form-group">  
										<label class="col-sm-5 control-label" for="form-field-2" ><?php echo 'Agent Address ';?><font style="color:red">*</font></label>
										<div class="col-sm-7">	
											<?php	
												$agent_address_data=array('name'=>'agent_address',
																'id'=>'agent_address',
																'placeholder'=>'Agent Address',
																'value'=> '',
																'rows'=>'4',
																'cols'=>'20'
																);
												echo form_textarea($agent_address_data,'');
												echo form_error('agent_address');
											?>
										</div>
									</div>
									<div class="form-group">  
										<label class="col-sm-5 control-label" for="form-field-2" ><?php echo 'State ';?><font style="color:red">*</font></label>
										<div class="col-sm-7">	
											<?php	
												$state_data=array('' => 'Select State',
																		'1'=> 'Maharshtra',
																		'2'=> 'Gujarat'
																		);
												$js = 'id="state_id" onChange=""';
												echo form_dropdown('state_id', $state_data, '', $js);
												echo form_error('state_id');
											?>
										</div>
									</div>
									<div class="form-group">  
										<label class="col-sm-5 control-label" for="form-field-2" ><?php echo 'Place / Location ';?><font style="color:red">*</font></label>
										<div class="col-sm-7">	
											<?php	
												$city_data=array('name'=>'location_name',
																		'id'=>'location_name',
																		'placeholder'=>'Place / Location',
																		'value'=> ''
																		);
												echo form_input($city_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 'Aadhar No ';?><font style="color:red">*</font></label>
										<div class="col-sm-7">	
											<?php	
												$aadhar_no_data=array('name'=>'aadhar_no',
																	'id'=>'aadhar_no',
																	'placeholder'=>'Aadhar No',
																	'value'=> ''
																	);
												echo form_password($aadhar_no_data,'');
												echo form_error('aadhar_no');
											?>
										</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 AGENT_PATH;?>list_agent'">
				Back
			</button>
			<button class="btn btn-info" type="button">
				<?php echo $purpose;?> Agent
			</button>
		</div>
	</div>
	<div class="space-4"></div>
		<!-- /.page-row -->
        <!-- /.page-content --> 
    </div>
    <!-- /.main-content --> 
	</div>
    <!-- /#ace-settings-container --> 
	</div>
	<!-- /.main-container-inner --> 
<script>
function hide()
{
	document.getElementById("admin_type_code").style.display="none";
}
function show()
{
	document.getElementById("admin_type_code").style.display="";
}
</script>
<script type="text/javascript">
$(document).ready(function() {
    $('form:first *:input[type!=hidden]:first').focus();
});
</script>	
<?php
	include('common/footer.php');
?>