<?  global $vis_language; ?>
<div class="modal-dialog modal-lg" >
   <div class="modal-content">
      <div class="modal-header">
         <button type="button" class="close" data-dismiss="modal">&times;</button>
         <h4 class="modal-title"><? echo $vis_language['TXTVTIGER']; ?></h4>
      </div>
      <div class="modal-body">
         <div class="row">
            <div class="col-sm-12">
               <section class="panel panel-default m-t-xs">
                  <header class="panel-heading text-right bg-light clearfix">
                     <ul class="nav nav-tabs pull-left no-borders" id="tabs">
                        <li  id="ticket_details" class="active" onclick="clare_div();$('#vis_details_list').visExecution('load_operations',{'vis_module':'ticket', 'vis_operation':'get_vtiger_details','vis_domain':'<?php echo $operation['vis_domain']; ?>','type':'Tickets','click_type':'vt_ticket','vis_ticketid':'<?php echo $operation['vis_ticketid']; ?>'});"><a href="#vis_details_list" data-toggle="tab" oncontextmenu="return false;" ><?php echo $vis_language['TXTTICKET']; ?></a></li>
						<li  id="opp_details" class="" onclick="clare_div();$('#vis_details_list').visExecution('load_operations',{'vis_module':'ticket', 'vis_operation':'get_vt_opp_details','vis_domain':'<?php echo $operation['vis_domain']; ?>', 'type':'opportunities','vis_ticketid':'<?php echo $operation['vis_ticketid']; ?>'});" ><a href="#vis_details_list" data-toggle="tab" oncontextmenu="return false;" ><?php echo $vis_language['TXTOPPORTUNITIES']; ?></a></li>
						<li  id="proj_details" class="" onclick="clare_div();$('#vis_details_list').visExecution('load_operations',{'vis_module':'ticket', 'vis_operation':'get_vt_project_details','vis_domain':'<?php echo $operation['vis_domain']; ?>', 'type':'projects','vis_ticketid':'<?php echo $operation['vis_ticketid']; ?>'});" ><a href="#vis_details_list" data-toggle="tab" oncontextmenu="return false;" ><?php echo $vis_language['TXTPROJECTS']; ?></a></li>
                        <!-- onclick="$('#vis_details_list').visExecution('load_operations',{'vis_module':'ticket', 'vis_operation':'get_capsulecrm_cases_details','vis_domain':'<?php echo $operation['vis_domain']; ?>','vis_client_email':'<?php echo $operation['vis_client_email'];?>', 'type':'profile'});" -->
                     </ul>
					 
                  </header>
                  <div class="panel-body">
                     <div class="tab-content">
                        <div class="col-sm-12 tab-pane active scrollable" id="vis_details_list">
						   <?php 	
						   include(VIS_PATH_TEMPLATE.'vtiger_ticket_list.php'); ?>
                        </div>
                     </div>
                  </div>
               </section>
            </div>
         </div>
      </div>
   </div>
</div>
<style>
#vis_details_list {
    max-height: 295px;
}</style>
<script>
function clare_div(){ 
	$("#vis_details_list").html("<p style='text-align:center;'>Loading.....</p>");
}
</script>
