    <script>
        $(function() {
<!--             $(".datepicker").datepicker(); -->
<!--             $(".uniform_on").uniform() -->;
            $(".chzn-select").chosen();
   <!--          $('.textarea').wysihtml5(); -->

        });
	   </script>
	   	
 <link href="<?php echo base_url(); ?>assets/select/chosen.min.css" rel="stylesheet" media="screen">
	
		   
		   		   <script src="<?php echo base_url(); ?>assets/select/chosen.jquery.min.js"></script>
 <div class="row">
  
   	

   	<div class="col-md-12">

  <?php
   echo $this->session->flashdata('deletemsg'); 
 
				echo $this->session->flashdata('msg'); 
   $session_data = $this->session->userdata('logged_in');

      $mydate=date("Y-m-d H:i:s");
 $date = Date('Y-m-d') ;
		 	 $year = Date('Y') ;
		  $month = Date('m') ;
 	$data['id'] = $session_data['id'];
        
		 $userid = $data['id'];
$data['companyid'] = $session_data['companyid'];
	 $companyid = $data['companyid'];
		 $data['usertype'] = $session_data['usertype'];
	 $usertype = $data['usertype'];	
    $deletebank=$this->usermodel->populatuserpermissionsdataarray('accounting','deletebank',$userid);

  
  ?>
		<div class="panel panel-default" data-collapsed="0">
        	<div class="panel-heading">
            	<div class="panel-title" id="redcolor" >
            		<i class="entypo-plus-circled"></i>
				 <span class="pull-right"> View viewbanks  </span>
	  <a data-toggle='modal' data-target='#addModal' class="btn btn-primary">Add new payment  </a>
	  
	  				 <a href="<?php echo base_url();?>user/accounttype" class="btn btn-info">  View Payments</a>
				 	  				 <a href="<?php echo base_url();?>user/viewpurchases" class="btn btn-info"> Back </a>

				 
            	</div>
            </div>
			<div class="panel-body">


	<div class="col-md-12">

				<?PHP
//$session_data = $this->session->userdata('logged_in');



		
                 echo form_open('user/addglaccount' , array('class' => 'form-inline form-groups-bordered validate', 'enctype' => 'multipart/form-data'));
				 if(validation_errors()):?>
<div class='alert alert-danger text-center'><?php echo validation_errors(); ?></div>
<?php endif;?>

 </div>
	<div class="col-md-12">
 	<div class="form-group">
    <label for="inputcode" class="col-sm-1 control-label">Account</label>
    <div class="col-sm-5">
		
	
		<select class="chzn-select" name="code" required >
	
	<option value=""  >---Select Income/Expense Account---</option>

	


	<?php 
					 
		
											$mybanking= $this->usermodel->populatealldatanoarray('glaccounts','companyid',$companyid,'description','5');


if(is_array($mybanking)) {

   foreach($mybanking as $mybankingrow){

   //echo $courserow->coursename;
   ?>
					<option value="<?=  $mybankingrow->number;   ?>"><?=  $mybankingrow->accountname; ?></option>




	<?php

}} else {
    echo 'No Customer available.';
}
	
?>
</select>		
		  		
				
		<span class="text-danger"> 	<?php echo form_error('code'); ?>
		
		</span>
	</div>
  </div>	
  	
		
		
	
  	
		<div class="form-group">
    <label for="inputexpamount" class="col-sm-1 control-label">Expected Amount: </label>
    <div class="col-sm-5">
	
		  		<input type="text" name="expamount" value="<?php echo set_value('expamount'); ?>" class="form-control" required placeholder="Enter  expected amount ">
		 
				
		<span class="text-danger"> <?php echo form_error('expamount'); ?>
		
		</span>
	</div>
  </div>
	 
	   </div>
		<div class="col-md-12">

		
		
				
			  <div class="form-group">
    <label for="inputmonth" class="col-sm-1 control-label">Month </label>
    <div class="col-sm-5">

 <select name='month' class="form-control" required>
    <option value=''>--Select Month for payment--</option>
    <option  value='Janaury'>Janaury</option>
    <option value='February'>February</option>
    <option value='March'>March</option>
    <option value='April'>April</option>
    <option value='May'>May</option>
    <option value='June'>June</option>
    <option value='July'>July</option>
    <option value='August'>August</option>
    <option value='September'>September</option>
    <option value='October'>October</option>
    <option value='November'>November</option>
    <option value='December'>December</option>
    </select> 		 
				
		
		</span>
	</div>
  </div>		
			
		
		
		
		
		
		
		
		<div class="form-group">
    <label for="inputyear" class="col-sm-1 control-label">Year: </label>
    <div class="col-sm-5">
	
   				<input type="text" name="year" value="<?php echo set_value('year',$year); ?>" id="idno" class="form-control"  placeholder="Enter year">
		 
				
		<span class="text-danger"> <?php echo form_error('year'); ?>
		
		</span>
	</div>
  </div>
		</div>
		
		

					
				<div class="col-md-12">		
					
   <div class="form-group">
    <label for="inputdescription" class="col-sm-1 control-label"></label>

    <div class="col-sm-5">     
	         <button type="submit"  name="btn_postgLaccount"  value="account"  class="btn btn-primary">Save Budget </button>

    </div>
  </div>
  <div class="form-group">
    <label for="inputdescription" class="col-sm-1 control-label">Comments</label>
    <div class="col-sm-5">
	<textarea name="description" class="form-control" placeholder="Bussines/comments"><?php echo set_value('description'); ?></textarea> 

			
	</div>
  </div>
  
  
</div>
	
  
  	
		
  
  
	
	
  					<?php echo form_close();?>
					
		 </div>			
					
					
					
					
					
					
					
					
					
					
					
					
					
					
			</div>							   
				
									
							
								
			<div class="modal-footer">

    

				</div>

		</div>
	    </div>
    
			
			
		</div>
	    </div>
		
  

 
</div>


















