<?php
/*
///////////////////////////////////////////////////////////////////////
/  Project Name 	: Gurudev
/  File Name 		: client_manage.php  
/  Created on  		: 17/08/2017
/  Created by       : Pintu
/  Last Changed By 	: 
/  Updated On		: 
/  Purpose			: To manage/add client
/  ---------
/  
////////////////////////////////////////////////////////////////////////
*/
?>
<?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">
						Client
					</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="admin_type_code">  
										<label class="col-sm-5 control-label" for="form-field-2" ><?php echo 'Client Code ';?><font style="color:red">*</font></label>
										<div class="col-sm-7">	
											<?php	
												$client_code_data=array('name'=>'client_code',
																			'id'=>'client_code',
																			'placeholder'=>'Client Code',
																			'value'=> ''
																			);
												echo form_input($client_code_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 'Client Name ';?><font style="color:red">*</font></label>
										<div class="col-sm-7">	
											<?php	
												$client_name_data=array('name'=>'client_name',
																		'id'=>'client_name',
																		'placeholder'=>'Client Name',
																		'value'=> ''
																		);
												echo form_input($client_name_data,'');
												echo form_error('client_name');
											?>
										</div>
									</div>
									<div class="form-group">  
										<label class="col-sm-5 control-label" for="form-field-2" ><?php echo 'Email ';?><font style="color:red">*</font></label>
										<div class="col-sm-7">	
											<?php	
												$email_data=array('name'=>'email',
																'id'=>'email',
																'placeholder'=>'Email',
																'value'=> ''
																);
												echo form_input($email_data,'');
												echo form_error('email');
											?>
										</div>
									</div>
									<div class="form-group">  
										<label class="col-sm-5 control-label" for="form-field-2" ><?php echo 'Client Address ';?><font style="color:red">*</font></label>
										<div class="col-sm-7">	
											<?php	
												$client_address_data=array('name'=>'client_address',
																'id'=>'client_address',
																'placeholder'=>'Client Address',
																'value'=> '',
																'rows'=>'4',
																'cols'=>'20',
																);
												echo form_textarea($client_address_data,'');
												echo form_error('client_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 [02]',
																		'2'=> 'Gujarat [04]'
																		);
												$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 'Party GSTIN ';?><font style="color:red">*</font></label>
										<div class="col-sm-7">	
											<?php	
												$party_gstin_data=array('name'=>'party_gstin',
																	'id'=>'party_gstin',
																	'placeholder'=>'Party GSTIN',
																	'value'=> '',
																	'maxlength'=>'10'
																	);
												echo form_password($party_gstin_data,'');
												echo form_error('party_gstin');
											?>
										</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 'Contact Person Name 1 ';?><font style="color:red">*</font></label>
										<div class="col-sm-7">	
											<?php	
												$cp_name_1_data=array('name'=>'cp_name_1',
																	'id'=>'cp_name_1',
																	'placeholder'=>'Contact Person Name 1',
																	'value'=> ''
																	);
												echo form_password($cp_name_1_data,'');
												echo form_error('cp_name_1');
											?>
										</div>
									</div>
									<div class="form-group">  
										<label class="col-sm-5 control-label" for="form-field-2" ><?php echo 'Contact Person Designation 1 ';?><font style="color:red">*</font></label>
										<div class="col-sm-7">	
											<?php	
												$cp_name_1_data=array('name'=>'cp_designation_1',
																	'id'=>'cp_designation_1',
																	'placeholder'=>'Contact Person Designation 1',
																	'value'=> ''
																	);
												echo form_password($cp_name_1_data,'');
												echo form_error('cp_designation_1');
											?>
										</div>
									</div>
									<div class="form-group">  
										<label class="col-sm-5 control-label" for="form-field-2" ><?php echo 'Contact Person Email 1 ';?><font style="color:red">*</font></label>
										<div class="col-sm-7">	
											<?php	
												$cp_email_1_data=array('name'=>'cp_email_1',
																	'id'=>'cp_email_1',
																	'placeholder'=>'Contact Person Email 1',
																	'value'=> ''
																	);
												echo form_password($cp_email_1_data,'');
												echo form_error('cp_email_1');
											?>
										</div>
									</div>
									<div class="form-group">  
										<label class="col-sm-5 control-label" for="form-field-2" ><?php echo 'Contact Person Mobile No 1 ';?><font style="color:red">*</font></label>
										<div class="col-sm-7">	
											<?php	
												$cp_mob_no_1_data=array('name'=>'cp_mob_no_1',
																	'id'=>'cp_mob_no_1',
																	'placeholder'=>'Contact Person Mobile No 1',
																	'value'=> ''
																	);
												echo form_password($cp_mob_no_1_data,'');
												echo form_error('cp_mob_no_1');
											?>
										</div>
									</div>
									<div class="form-group">  
										<label class="col-sm-5 control-label" for="form-field-2" ><?php echo 'Contact Person Name 2 ';?><font style="color:red">*</font></label>
										<div class="col-sm-7">	
											<?php	
												$cp_name_2_data=array('name'=>'cp_name_2',
																	'id'=>'cp_name_2',
																	'placeholder'=>'Contact Person Name 2',
																	'value'=> ''
																	);
												echo form_password($cp_name_2_data,'');
												echo form_error('cp_name_2');
											?>
										</div>
									</div>
									<div class="form-group">  
										<label class="col-sm-5 control-label" for="form-field-2" ><?php echo 'Contact Person Designation 2 ';?><font style="color:red">*</font></label>
										<div class="col-sm-7">	
											<?php	
												$cp_name_1_data=array('name'=>'cp_designation_2',
																	'id'=>'cp_designation_2',
																	'placeholder'=>'Contact Person Designation 2',
																	'value'=> ''
																	);
												echo form_password($cp_name_1_data,'');
												echo form_error('cp_designation_2');
											?>
										</div>
									</div>
									<div class="form-group">  
										<label class="col-sm-5 control-label" for="form-field-2" ><?php echo 'Contact Person Email 2 ';?><font style="color:red">*</font></label>
										<div class="col-sm-7">	
											<?php	
												$cp_email_2_data=array('name'=>'cp_email_2',
																	'id'=>'cp_email_2',
																	'placeholder'=>'Contact Person Email 2',
																	'value'=> ''
																	);
												echo form_password($cp_email_2_data,'');
												echo form_error('cp_email_2');
											?>
										</div>
									</div>
									<div class="form-group">  
										<label class="col-sm-5 control-label" for="form-field-2" ><?php echo 'Contact Person Mobile No 2 ';?><font style="color:red">*</font></label>
										<div class="col-sm-7">	
											<?php	
												$cp_mob_no_2_data=array('name'=>'cp_mob_no_2',
																	'id'=>'cp_mob_no_2',
																	'placeholder'=>'Contact Person Mobile No 2',
																	'value'=> ''
																	);
												echo form_password($cp_mob_no_2_data,'');
												echo form_error('cp_mob_no_2');
											?>
										</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 CLIENT_PATH;?>list_client'">
				Back
			</button>
			<button class="btn btn-info" type="button">
				<?php echo $purpose;?> Client
			</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');
?>