<?php  //echo '<pre>'; print_r($vt_opp_module_desc); echo '</pre>';	 ?>
		<section id="vis_opp_list_forms">		
					
			<div class="form-group" id="vtiger_data">
					 <div class="line b-b line-lg pull-in"></div>
					 <br/> 
							<div class="col-xs-8"> </div>
							<div class="col-xs-4">
									 <div class="form-group col-xs-10">
										<button type="button" id="btn_list_opp" class="btn btn-default m-r m-r m-t-md" onclick="$('#vis_opp_list_forms').visExecution('load_operations',{'vis_module':'ticket', 'vis_operation':'get_vt_opp_details','vis_domain':'<?php echo $vt_acc_list[0]['integration_id']; ?>', 'type':'opportunities'}); $('#btn_list_opp').button('loading');"  ><? echo $vis_language['TXTOPPORTUNITIESLIST']; ?></button>
									 </div>			 
									 
							</div>	
						<div class="col-xs-10">
							</div>
							<div class="col-xs-2">
								
							</div>
					</div>
					
		
		<form class="form-horizontal" method="post" enctype="multipart/form-data" name="vis_vtiger_opp_form" id="vis_vtiger_opp_form">
		
		<div class="form-group">
               <label class="col-sm-3 control-label"><? echo '<span style="color:#FF0000;">*</span>'; echo  $vis_language['TXTUSER'];; ?></label>
               <div class="col-sm-7">
                 <select onchange="get_vt_opp_form(this.value)" class="form-control input-sm selectpicker"  id="vis_vt_user" 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>
		<br/>
		<div id="vt_form">
			<?php include(VIS_PATH_TEMPLATE.'vt_opp_form.php'); ?>		
		</div>
		</form>
	    </section>
	
	<script>
	
	function get_vt_opp_form(integration_id) {
	  $('#vt_form').visExecution('load_operations', {'vis_module':'ticket', 'vis_operation':'vt_opp_form', 'vis_integration_id':integration_id}); 
	 
    }
	</script>