
    		<div class="form-group">
			   <?php $nm_f="divisi";
			   echo form_hidden('id_divisi[]',$gd['id']);
			   ?>
			   <div class="col-sm-2">
				   <label for="<?php echo $nm_f?>">Nama Divisi</label>
				   </div><div class="col-sm-9">
				   <input type="text" name="<?php echo $nm_f.'[]'?>"  id="<?php echo $nm_f?>" value="<?php echo isset($gd['title']) ? $gd['title'] : '' ?>" class="col-sm-4 validate[required]"><label><a href="#" onClick="hapusdiv(this)">(HAPUS)</a></label>
                                   </div></div>
                   <!--div class="form-group">
			   
			   <?php $nm_f="brand";?>
			   <div class="col-sm-3">
				   <label for="<?php echo $nm_f?>"><?php echo ucwords(str_replace('_',' ',$nm_f))?></label>
				   </div><div class="col-sm-9">
                                       <?php echo form_dropdown('d_'.$nm_f.'[]',$opt_brand,(isset($gd[$nm_f]) ? $gd[$nm_f] : ''),"class=' select2' id='$nm_f'")?>
				  
			   </div>
		   </div-->
		   
		   <!--div class="form-group">
			   
			   <?php $nm_f="sales";?>
			   <div class="col-sm-2">
				   <label for="<?php echo $nm_f?>"><?php echo ucwords(str_replace('_',' ',$nm_f))?></label>
				   </div><div class="col-sm-9">
                                       <?php echo form_dropdown('d_'.$nm_f.'[]',$opt_sales,(isset($gd[$nm_f]) ? $gd[$nm_f] : ''),"class=' select2' id='$nm_f$v'")?>
				  
			   </div>
		   </div-->
		   
		   <div class="form-group">
			   
			   <?php $nm_f="kontak";?>
			   <div class="col-sm-2">
				   <label for="<?php echo $nm_f?>">Nama Kontak</label>
				   </div><div class="col-sm-9">
				   <input type="text" name="<?php echo $nm_f?>"  id="<?php echo $nm_f?>" value="<?php echo $a= (isset($gd[$nm_f]) ? $gd[$nm_f] : '') ?>" class="col-sm-4 validate[required]">
			   </div>
		   </div>
		   <div class="form-group">
			   
			   <?php $nm_f="telp1";?>
			   <div class="col-sm-2">
				   <label for="<?php echo $nm_f?>"><?php echo ucwords(str_replace('_',' ',$nm_f))?></label>
				   </div><div class="col-sm-9">
                                       <?php echo form_input('d_'.$nm_f.'[]',(isset($gd[$nm_f]) ? $gd[$nm_f] : ''),"class='col-sm-4 validate[required]' id='$nm_f'")?>
				  
			   </div>
		   </div>
		   <div class="form-group">
			   
			   <?php $nm_f="telp2";?>
			   <div class="col-sm-2">
				   <label for="<?php echo $nm_f?>"><?php echo ucwords(str_replace('_',' ',$nm_f))?></label>
				   </div><div class="col-sm-9">
                                       <?php echo form_input('d_'.$nm_f.'[]',(isset($gd[$nm_f]) ? $gd[$nm_f] : ''),"class='col-sm-4 validate[required]' id='$nm_f'")?>
				  
			   </div>
		   </div>
		   <div class="form-group">
			   
			   <?php $nm_f="fax";?>
			   <div class="col-sm-2">
				   <label for="<?php echo $nm_f?>"><?php echo ucwords(str_replace('_',' ',$nm_f))?></label>
				   </div><div class="col-sm-9">
                                       <?php echo form_input('d_'.$nm_f.'[]',(isset($gd[$nm_f]) ? $gd[$nm_f] : ''),"class='col-sm-4 validate[required]' id='$nm_f'")?>
				  
			   </div>
		   </div>
		   <div class="form-group">
			   
			   <?php $nm_f="email";?>
			   <div class="col-sm-2">
				   <label for="<?php echo $nm_f?>"><?php echo ucwords(str_replace('_',' ',$nm_f))?></label>
				   </div><div class="col-sm-9">
                                       <?php echo form_input('d_'.$nm_f.'[]',(isset($gd[$nm_f]) ? $gd[$nm_f] : ''),"class='col-sm-4 validate[required]' id='$nm_f'")?>
				  
			   </div>
		   </div>
		   <!--div class="form-group">
			   
			   <?php $nm_f="tag";?>
			   <div class="col-sm-3">
				   <label for="<?php echo $nm_f?>">Tag</label>
				   </div><div class="col-sm-9">
				   <input type="text" name="<?php echo $nm_f?>"  id="<?php echo $nm_f?>" value="<?php echo $a= (isset($gd[$nm_f]) ? $gd[$nm_f] : '') ?>" class="col-sm-4 validate[required]">
			   </div>
		   </div-->
		   <div class="form-group" >
			   
			   <?php $nm_f="catatan";?>
			   <div class="col-sm-2">
				   <label for="<?php echo $nm_f?>">Note</label>
				   </div><div class="col-sm-9">
                                       <?php echo form_textarea('d_'.$nm_f.'[]',(isset($gd[$nm_f]) ? $gd[$nm_f] : ''),'class="validate[required]"');?>
				   <!--input type="text" name="<?php echo $nm_f?>"  id="<?php echo $nm_f?>" value="<?php echo $a= (isset($gd[$nm_f]) ? $gd[$nm_f] : '') ?>" class="col-sm-4 validate[required]"-->
			   </div>
                   </div>
<script>
    $(document).ready(function(e){
                 $('#sales<?php echo $v?>').css('width','200px').select2({allowClear:true});
    });
    </script>