<? global $vis_language; ?>
<div class="modal-dialog">
   <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['TXTREADMINE']; ?></h4>
      </div>
      <div class="modal-body">
         <div class="row">
            <div class="col-sm-12">
               <section class="scrollable wrapper">                  
                  <div id="vis_details_list">
                  <?php  if($redmine_link_details ==-1){?>
                  <div id="link_div">
                      <div class="col-sm-12 text-center"><a class="link" href="javascript:void(0);" onclick="get_redmine_issue();"><?php echo $vis_language['TXTLINKISSUE']; ?></a> <?php echo $vis_language['TXTOR']; ?> <a class="link" href="javascript:void(0);" onclick="get_create_issue();"><?php echo $vis_language['TXTCREATEISSUE']; ?></a></div>  
                  </div>
                  <? }else{ ?>
                  <script>$('#vis_details_list').visExecution('load_operations',{'vis_module':'ticket', 'vis_operation':'redmine_issue','vis_domain':'<?php echo $operation['vis_domain']; ?>','vis_ticketid':'<?=$operation['vis_ticketid']?>'});</script>
                  <?  }?>
                     
                  </div>
               </section>
            </div>
         </div>
      </div>      
   </div>
</div>
<script>
function get_redmine_issue(){
  $('#vis_details_list').visExecution('load_operations',{'vis_module':'ticket', 'vis_operation':'redmine_issue','vis_ticketid':'<?=$operation['vis_ticketid']?>'});
}
function get_create_issue(){
	$('#vis_details_list').visExecution('load_operations',{'vis_module':'ticket', 'vis_operation':'get_redmine_create_issue','vis_domain':'<?php echo $operation['vis_domain']; ?>','vis_ticketid':'<?=$operation['vis_ticketid']?>'});
}
</script>