<?php   if($vt_proj_records =='Vtiger Login Failed'){ echo $vt_proj_records; die; } 
	if(count($vt_proj_records)>0 ){ //echo '<pre>'; print_r($operation); echo '</pre>'; ?>
		<section id="vis_proj_list_forms">					
			<div class="form-group" id="vtiger_proj_data">
					<div class="line b-b line-lg pull-in"></div>						
						<br/>
						<div class="col-xs-6">
									 <div class="form-group col-xs-10">
										<label for="taskPriority"><? echo $vis_language['TXTUSER'];?></label> 
										<select class="form-control input-sm selectpicker"  id="vis_vt_user" onchange="get_vt_proj_list(this.value);" name="vis_vt_user" <?php if(count($vt_acc_list) > 5) $src= 'data-live-search="true"' ; ?>   >
										<?
										   for($i=0;$i<count($vt_acc_list);$i++) {                                      
										   echo '<option value="'.$vt_acc_list[$i]['integration_id'].'" >'.$vt_acc_list[$i]['domain_name'].'::'.$vt_acc_list[$i]['vtiger_user'].'</option>'; } ?>
										</select>
									 </div>			 
									 
							</div> 
							<div class="col-xs-2"> </div>
							<div class="col-xs-4">
									 <div class="form-group col-xs-10">
										<button type="button" id="btn_create_proj" class="btn btn-default m-r m-r m-t-md" onclick="$('#vis_proj_list_forms').visExecution('load_operations',{'vis_module':'ticket', 'vis_operation':'vt_project','vis_domain':'<?php echo $vt_acc_list[0]['integration_id']; ?>', 'type':'projects'});$('#btn_create_proj').button('loading');"  ><? echo $vis_language['TXTCREATEPROJECT']; ?></button>
									 </div>			 
									 
							</div>
					<div class="col-xs-10"> </div>
						
			</div>
				
		<div id="vt_list">
				<?php if($vt_proj_records!=-1 ){ 
					include(VIS_PATH_TEMPLATE.'vt_proj_list.php'); }else{
					include(VIS_PATH_TEMPLATE.'no_record_yet.php');
				} ?>					
		</div>
	    </section>
	<?   
	}else include(VIS_PATH_TEMPLATE.'no_record_yet.php');?>
	<script>
	
	function get_vt_proj_list(integration_id) {
	  $('#vt_list').visExecution('load_operations', {'vis_module':'ticket', 'vis_operation':'vt_proj_list', 'vis_integration_id':integration_id}); 
	 
    }
	</script>