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

        });
        </script>

 
 <div class="row">
  
   	

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

  
		

			
	<div class="widget-content nopadding table_holder table-responsive" >				
			
		 
    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Bulk Transfer of Deals/Leads</h4>
      </div>
      <div class="modal-body">
      
	  <?PHP
	



 echo $this->session->flashdata('msg'); 
                  echo form_open('user/posttransferdeals' , array('class' => 'form-horizontal form-groups-bordered validate',  'id' => 'signup','enctype' => 'multipart/form-data'));

		 if(validation_errors()):?>

<?php endif;?>




  
  
   <div class="form-group">
    <label for="inputdealowner" class="col-sm-2 control-label">Started by?</label>
    <div class="col-sm-10">
	<select class="chzn-select" name="dealowner" style ="width: 100%"  required>
	<option value="" selected >---Select Deal/Lead Owner---</option>

				
	
	
	
	<?php 
				
				
	
			$allusers = $this->usermodel->populatealldatanoarraythree('people', 'companyid',$companyid,'id >',0,'category','user');

	
if(is_array($allusers)) {

   foreach($allusers as $userrow){

   //echo $courserow->coursename;
    ?>
					<option  value="<?=  $userrow->id;   ?>"><?=  $userrow->firstname ."- ".$userrow->surname ."=".$userrow->id."(". $userrow->email.")"; ?></option>



	<?php

}} else {
   // echo 'No user available.';
}
	
?>








</select>
		
						<span class="text-danger">Select the employee/person who started the deal/lead?<?php echo form_error('taskowner'); ?>

	</div>
  </div>

    <div class="form-group">
    <label for="inputnewowner" class="col-sm-2 control-label">Transfer to?</label>
    <div class="col-sm-10">
	<select class="chzn-select" name="newowner" style ="width: 100%"  required>
	<option value="" selected >---Select User to Transfer Leads to---</option>

				
	
	
	
	<?php 
				
				
	
			$allusers = $this->usermodel->populatealldatanoarraythree('people', 'companyid',$companyid,'id >',0,'category','user');

	
if(is_array($allusers)) {

   foreach($allusers as $userrow){

   //echo $courserow->coursename;
    ?>
					<option  value="<?=  $userrow->id;   ?>"><?=  $userrow->firstname ."- ".$userrow->surname ."=".$userrow->id."(". $userrow->email.")"; ?></option>



	<?php

}} else {
   // echo 'No user available.';
}
	
?>








</select>
		
						<span class="text-danger">Select the employee/person who you would want to transfer the deal/lead to?<?php echo form_error('taskowner'); ?>

	</div>
  </div>
   

 
			 
	  <div class="form-group">
    <label for="inputfromdate" class="col-sm-4 col-lg-2 col-md-2 col-xs-4 control-label"> From Date</label>
    <div class="col-sm-10">
				<input type="date" name="fromdate" value="<?php echo set_value('fromdate'); ?>"id="oldid" class="form-control" required placeholder="Enter start date">
    <span class="text-danger"><?php echo form_error('fromdate'); ?></span>
   </div>
  </div>
  
   <div class="form-group">
    <label for="inputtodate" class="col-sm-4 col-lg-2 col-md-2 col-xs-4 control-label">To Date</label>
    <div class="col-sm-10">
				<input type="date" name="todate" value="<?php echo set_value('todate'); ?>"id="newid" class="form-control" required placeholder="Enter End date">
    <span class="text-danger"><?php echo form_error('todate'); ?></span>
   </div>
  </div>
  
     <div class="form-group">
    <label for="inputcomment" class="col-sm-4 col-lg-2 col-md-2 col-xs-4 control-label"> Comments</label>
    <div class="col-sm-10">
				<input type="text" name="comment" value=""id="comment" class="form-control" required placeholder="Enter Comments">
    <span class="text-danger"><?php echo form_error('comment'); ?></span>
   </div>
  </div>
	 <div class="form-group">

    <div class="col-sm-offset-2 col-sm-10">
     
	         <button type="submit"  value="transfers" name="btn_updatetransfer" class="btn btn-primary"> Transfer Deals/Leads   </button>

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

    

				</div>

		</div>
	  						
				
				
				
				
				
				
				
				  <!-- Modal content-->
    
				
				
				
				
				
				
				
				
				
				
				
				
				
				
				
				
			
			</div>
		</div>
								
									
									
									
							</div>
						</div>
				

			
			</div>



















