<? global $vis_language;
$tp=0;
if(isset($module_setting['vis_category'])){
	$tp++;
	if(isset($module_setting['vis_show_subcategory']) && ($module_setting['vis_show_subcategory']==1 || $module_setting['vis_show_subcategory']==2)){
		$tp++;
		$module_setting['vis_subcategory']='';
		if(isset($module_setting['vis_show_item']) && ($module_setting['vis_show_item']==1 || $module_setting['vis_show_item']==2)){$tp++;$module_setting['vis_item']='';}
	}
}
if(VIS_ITIL==1)$tp++;
 ?>
<div class="row">
	<div class="form-group m-b-none">
		<div class="col-sm-2">
			<label class="control-label m-l-sm font-bold"><? echo $vis_language['TXTDEPARTMENT']; ?></label>
			<div id="department">
                <button data-toggle="dropdown" class="btn bg-empty btn-sm dropdown-toggle action_btn bg-white" type="button" onclick="<? if(VIS_DEPARTMENT_ACCESS!=0){ ?>$('#department').visExecution('load_operations', {'vis_module': 'problem', 'vis_operation': 'load_lists', 'vis_action': 'department', 'vis_release_id': <?= $operation['vis_release_id']?>, 'vis_selected_id': <?= $releases_details['department_id']; ?>, 'vis_domain_id': <?= $releases_details['domain_id']; ?>});<? } else{ ?>$('#vis_global_msg_div').visInterface('load_global_message', '<?= $vis_language['MSGACCSSDND']; ?>');<? } ?>"><span class="filter-option pull-left"><?= $departments[0]['domain_name'].' : '.$departments[0]['department_name']; ?>&nbsp;</span><span class="caret"></span></button>
			</div>
		</div>
		<div class="col-sm-2">
			<label class="control-label m-l-sm font-bold"><? echo $vis_language['TXTSTATUS']; ?></label>
			<div id="status">
                <button data-toggle="dropdown" class="btn bg-empty btn-sm dropdown-toggle action_btn bg-white" type="button" onclick="<? if(VIS_STATUS_ACCESS!=0){ ?>$('#status').visExecution('load_operations', {'vis_module': 'problem', 'vis_operation': 'load_lists', 'vis_action': 'status', 'vis_release_id': <?= $operation['vis_release_id']?>, 'vis_selected_id': <?= $releases_details['status_id']; ?>, 'vis_domain_id': <?= $releases_details['domain_id']; ?>, 'vis_dept_id': <?= $releases_details['department_id']; ?>});<? } else{ ?>$('#vis_global_msg_div').visInterface('load_global_message', '<?= $vis_language['MSGACCSSDND']; ?>');<? } ?>"><span class="filter-option pull-left"  style="color:<?= $releases_details['status_color']; ?>" ><?= $releases_details['status_name']; ?>&nbsp;</span><span class="caret"></span></button>
			</div>
		</div>
		<div class="col-sm-2">
			<label class="control-label m-l-sm font-bold"><? echo $vis_language['TXTPRIORITY']; ?></label>
			<div id="priority">
                <button data-toggle="dropdown" class="btn bg-empty btn-sm dropdown-toggle action_btn bg-white" type="button" onclick="<? if(VIS_PRIORITY_ACCESS!=0){ ?>$('#priority').visExecution('load_operations', {'vis_module': 'problem', 'vis_operation': 'load_lists', 'vis_action': 'priority', 'vis_release_id': <?= $operation['vis_release_id']?>, 'vis_selected_id': <?= $releases_details['priority_id']; ?>, 'vis_domain_id': <?= $releases_details['domain_id']; ?>, 'vis_dept_id': <?= $releases_details['department_id']; ?>});<? } else{?>$('#vis_global_msg_div').visInterface('load_global_message', '<?= $vis_language['MSGACCSSDND']; ?>');<? } ?>"><span class="filter-option pull-left" style="color:<?= $releases_details['priority_color']; ?>" ><?= $releases_details['priority_name']; ?>&nbsp;</span><span class="caret"></span></button>
			</div>
		</div>
		<div class="col-sm-2">
			<label class="control-label m-l-sm font-bold"><? echo $vis_language['TXTSTARTDATE']; ?></label>
			<div id="startdate">
                <button data-toggle="dropdown" class="btn bg-empty btn-sm dropdown-toggle action_btn bg-white" type="button" onclick="$('#startdate').visExecution('load_operations', {'vis_module': 'problem', 'vis_operation': 'load_lists', 'vis_action': 'startdate', 'vis_release_id': <?= $operation['vis_release_id']?>, 'vis_selected_id': '<?=$releases_details['planned_start_date']; ?>', 'vis_domain_id': <?= $releases_details['domain_id']; ?>, 'vis_dept_id': <?= $releases_details['department_id']; ?>});"><span class="filter-option pull-left"><?= format_datetime($releases_details['planned_start_date']); ?>&nbsp;</span></button>
			</div>
		</div>
		<div class="col-sm-2">
			<label class="control-label m-l-sm font-bold"><? echo $vis_language['TXTENDDATE']; ?></label>
			<div id="enddate">
                <button data-toggle="dropdown" class="btn bg-empty btn-sm dropdown-toggle action_btn bg-white" type="button" onclick="$('#enddate').visExecution('load_operations', {'vis_module': 'problem', 'vis_operation': 'load_lists', 'vis_action': 'enddate', 'vis_release_id': <?= $operation['vis_release_id']?>, 'vis_selected_id': '<?=$releases_details['planned_end_date']; ?>', 'vis_domain_id': <?= $releases_details['domain_id']; ?>, 'vis_dept_id': <?= $releases_details['department_id']; ?>});"><span class="filter-option pull-left"><?= format_datetime($releases_details['planned_end_date']); ?>&nbsp;</span></button>
			</div>
		</div>
		<div class="col-sm-2">
            <div id="owner">
                <button data-toggle="dropdown" class="btn bg-empty btn-sm dropdown-toggle action_btn bg-white" type="button" onclick="<? if(VIS_STAFF_ACCESS!=0){ ?>$('#owner').visExecution('load_operations', {'vis_module': 'problem', 'vis_operation': 'load_lists', 'vis_action': 'release_owner', 'vis_release_id': <?= $operation['vis_release_id']?>,  'vis_domain_id': <?= $releases_details['domain_id']; ?>, 'vis_dept_id': <?= $releases_details['department_id']; ?>});<? } else{?>$('#vis_global_msg_div').visInterface('load_global_message', '<?= $vis_language['MSGACCSSDND']; ?>');<? } ?>"><span class="filter-option pull-left"><?= $vis_language['TXTASSIGNEDTO']; ?>&nbsp;</span><span class="caret"></span></button>
            </div>
                <?  $owner1 = $vis_language['TXTUNASSIGNED'];
                    $owner_cnt = (!empty($owner_details) && $owner_details != -1) ? count($owner_details) : 0;
                        if ($owner_details != -1 ) {
                            foreach ($owner_details as $owner) {
								if ($owner1 == $vis_language['TXTUNASSIGNED']) {
									$owner1 = $owner['first_name'] . ' ' . $owner['last_name'];
								}
							}
                        } ?>
            <div><? if ($owner_cnt > 1) { ?>
                <span class="m-l-sm text-sm"><? echo $vis_language['TXTMULTIPLEOWNERS'];?></span>
                <? } else { ?>
                <span class="m-l-sm text-sm"><? echo $owner1;?></span>
                <? } ?>
            </div>
		</div>
     </div>
</div>
<? if ($owner_cnt > 1) { ?>
<div class="wrapper-sm m-b-none m-t-xs" id="vis_assigned_to_<?= $releases_details['release_id'];?>">		
	<div class="row">			
		<div class="form-group clear m-b-xs m-t-xs">
			<label class="col-sm-1 control-label"><? echo $vis_language['TXTOWNERS']; ?></label>
			<div class="col-sm-11">
			<?  if($owner_details != -1) {		
				for($i = 0; $i < count($owner_details); $i++) { ?>
				<div class="btn-group pull-left<? if($i > 0) echo ' m-l-sm m-b-xs'?>">
					<span class="btn btn-xs alert-danger"><?= $owner_details[$i]['first_name'] . ' ' . $owner_details[$i]['last_name']?></span>
					<button type="button" class="btn btn-xs alert-danger" data-dismiss="alert" onclick="$('#vis_global_msg_div').visExecution('load_operations', {'vis_module': 'releases', 'vis_operation': 'update_properties', 'vis_action': 'staff', 'vis_release_id': <?= $releases_details['release_id'];?>, 'vis_update_id': <?= $owner_details[$i]['staff_id']?>, 'vis_sub_action': 0});"><span aria-hidden="true"><i class="vh vh-cross"></i></span><span class="sr-only">Close</span></button>
				</div>
				<? }
				} ?>	
			</div>
		</div>
	</div>
</div>
<? } ?>

<? if($tp!=0){ ?>
<div class="wrapper-sm m-t b m-b-none bg-light m-b">
	<div class="row">
            <? if(isset($module_setting['vis_category'])){ ?>
		<div class="col-sm-3 m-t-xs">
		     <div>
			<label class="control-label m-l-sm font-bold"><? echo $vis_language['TXTTICKETCATEGORY']; ?></label>
			<span id="category">
                           <button data-toggle="dropdown" class="btn bg-empty btn-sm dropdown-toggle action_btn bg-white m-t-xxs" type="button" onclick="$('#category').visExecution('load_operations', {'vis_module': 'problem', 'vis_operation': 'load_lists', 'vis_action': 'category', 'vis_release_id': <?= $operation['vis_release_id']?>, 'vis_selected_id': <?= $releases_details['category_id']; ?>, 'vis_domain_id': <?= $releases_details['domain_id']; ?>, 'vis_dept_id': <?= $releases_details['department_id']; ?>});"><span class="filter-option pull-left"><?= ($releases_details['category_name']!='')?$releases_details['category_name']:$vis_language['TXTSELECT']; ?>&nbsp;</span><span class="caret"></span></button>
			</span>
		    </div>
		</div>
           <? } ?>

           <? if(isset($module_setting['vis_subcategory'])){ ?>
		<div class="col-sm-3 m-t-xs">
		     <div>
			<label class="control-label m-l-sm font-bold"><? echo $vis_language['TXTTICKETSUBCATEGORY']; ?></label>
			<span id="subcategory">
                           <button data-toggle="dropdown" class="btn bg-empty btn-sm dropdown-toggle action_btn bg-white m-t-xxs" type="button" onclick="$('#subcategory').visExecution('load_operations', {'vis_module': 'problem', 'vis_operation': 'load_lists', 'vis_action': 'subcategory', 'vis_release_id': <?= $operation['vis_release_id']?>, 'vis_selected_id': <?= $releases_details['subcategory_id']; ?>, 'vis_domain_id': <?= $releases_details['domain_id']; ?>, 'vis_category_id': <?= $releases_details['category_id']; ?>});"><span class="filter-option pull-left"><?= ($releases_details['subcategory_name'])?$releases_details['subcategory_name']:$vis_language['TXTSELECT']; ?>&nbsp;</span><span class="caret"></span></button>
			</span>
		    </div>
		</div>
           <? } ?>

           <? if(isset($module_setting['vis_item'])){ ?>
		<div class="col-sm-3 m-t-xs">
		     <div>
			<label class="control-label m-l-sm font-bold"><? echo $vis_language['TXTTICKETITEM']; ?></label>
			<span id="item">
                           <button data-toggle="dropdown" class="btn bg-empty btn-sm dropdown-toggle action_btn bg-white m-t-xxs" type="button" onclick="$('#item').visExecution('load_operations', {'vis_module': 'problem', 'vis_operation': 'load_lists', 'vis_action': 'item', 'vis_release_id': <?= $operation['vis_release_id']?>, 'vis_selected_id': <?= $releases_details['item_id']; ?>, 'vis_domain_id': <?= $releases_details['domain_id']; ?>, 'vis_subcategory_id': <?= $releases_details['subcategory_id']; ?>});"><span class="filter-option pull-left"><?= ($releases_details['item_name'])?$releases_details['item_name']:$vis_language['TXTSELECT']; ?>&nbsp;</span><span class="caret"></span></button>
			</span>
		    </div>
		</div>
           <? } ?>
           <? if(VIS_ITIL==1){ ?>
		<div class="col-sm-3 m-t-xs">
		     <div>
			<label class="control-label m-l-sm font-bold"><? echo $vis_language['TXTLOCATION']; ?></label>
			<span id="location">
                           <button data-toggle="dropdown" class="btn bg-empty btn-sm dropdown-toggle action_btn bg-white m-t-xxs" type="button" onclick="$('#location').visExecution('load_operations', {'vis_module': 'problem', 'vis_operation': 'load_lists', 'vis_action': 'location', 'vis_release_id': <?= $operation['vis_release_id']?>, 'vis_selected_id': <?= $releases_details['location_id']; ?>, 'vis_domain_id': <?= $releases_details['domain_id']; ?>, 'vis_dept_id': <?= $releases_details['department_id']; ?>});"><span class="filter-option pull-left"><?= ($releases_details['location_name']!='')?$releases_details['location_name']:$vis_language['TXTSELECT']; ?>&nbsp;</span><span class="caret"></span></button>
			</span>
		    </div>
		</div>
           <? } ?>
	</div>
</div>
<? } ?>

<div class="wrapper-sm<? if(isset($owner_cnt) && $owner_cnt <= 1) { echo ' m-t'; }?> b m-b-none vis_new m-b">
	<div class="row">
		<div class="col-sm-5 m-t-xs">
			<div>
			<label class="control-label m-l-sm font-bold"><? echo $vis_language['TXTRELEASETYPE']; ?></label>
			<span class="m-l-xs" id="releasetype">
                <button data-toggle="dropdown" class="btn bg-empty btn-sm dropdown-toggle action_btn bg-white" type="button" onclick="$('#releasetype').visExecution('load_operations', {'vis_module': 'problem', 'vis_operation': 'load_lists', 'vis_action': 'releasetype', 'vis_release_id': <?= $operation['vis_release_id']?>, 'vis_selected_id': <?= $releases_details['release_type_id']; ?>, 'vis_domain_id': <?= $releases_details['domain_id']; ?>, 'vis_dept_id': <?= $releases_details['department_id']; ?>});"><span class="filter-option pull-left" style="color:<?= $releases_details['release_color']; ?>" ><?= $releases_details['release_type']; ?>&nbsp;</span><span class="caret"></span></button>
			</span>
			</div>
			<!--<label><? echo $vis_language['TXTRELEASEAPPROVAL']?></label>-->
		</div>
		
		<div class="col-sm-4 m-t-xs">
			<label></label>
			<span class="m-l-xs">
			<?php if($single_details[0]['aprovals_status']==0 && $single_details!=-1){ 
					if($single_details[0]['staff_id']==VIS_STAFF_ID){?>
						<a class="link"  href="javascript:void(0);" onclick="change_status(<? echo $single_details[0]['aprovals_id'].', 1, '.$single_details[0]['staff_id'];?>);" title="<? echo $vis_language['TXTAPPROVE']; ?>"><?= $vis_language['TXTAPPROVE'];?></a> / 
						<a class="link"  href="javascript:void(0);" data-toggle="ajaxModal" data-modal-arguments="vis_module=releases&vis_operation=reject_aprovals&vis_release_id=<? echo $releases_details['release_id'];?>&vis_aprovals_id=<? echo $single_details[0]['aprovals_id'];?>" title="<? echo $vis_language['TXTITILREJECT']; ?>"><?= $vis_language['TXTITILREJECT'];?></a>
				<?php }
			}?></span>
		</div>
		<div class="col-sm-3 m-t-xs">
			<label><? echo $vis_language['TXTAPPROVALSTATUS'].'  ';?>  </label>
				<? if($aprovals_status==-1) echo '<span class="label m-l-xs label-default">'.$vis_language['TXTNOTREQUESTED'].'</span>';
					if($aprovals_status==0) echo '<span class="label m-l-xs label-default">'.$vis_language['TXTREQUESTED'].'</span>';
				    if($aprovals_status==1)echo '<span class="label m-l-xs vh-green-bg">'.$vis_language['TXTAPPROVED'].'</span>';
				   if($aprovals_status==2) echo '<span class="label m-l-xs label-default">'.$vis_language['TXTCANCELED'].'</span>';
				   if($aprovals_status==3) echo '<span class="label m-l-xs vh-red-bg">'.$vis_language['TXTREJECTED'].'</span>';
				?>
		</div>
	</div>
</div>

<div class="btn-group">    
    <button class="btn btn-default btn-xs btn-rounded" onclick="$('#vis_show_attach_all_<? echo $releases_details['release_id']; ?>').visExecution('load_operations',{'vis_module':'releases', 'vis_operation':'get_details', 'vis_action':'attach_ci', 'vis_release_id':'<? echo $releases_details['release_id']; ?>'});"><? echo $vis_language['TXTCI']. '('.$total_ci.')'; ?></button>
</div>
<div class="btn-group">
	<button class="btn btn-default btn-xs btn-rounded" onclick="$('#vis_show_attach_all_<? echo $releases_details['release_id']; ?>').visExecution('load_operations',{'vis_module':'releases', 'vis_operation':'get_details', 'vis_action':'attach_changes', 'vis_release_id':'<? echo $releases_details['release_id']; ?>'});"><? echo $vis_language['TXTCHANGE']. '('.$total_changes.')'; ?></button>
</div>
<div class="btn-group">
	<button class="btn btn-default btn-xs btn-rounded" onclick="$('#vis_show_attach_all_<? echo $releases_details['release_id']; ?>').visExecution('load_operations',{'vis_module':'releases', 'vis_operation':'get_details', 'vis_action':'attach_task', 'vis_release_id':'<? echo $releases_details['release_id']; ?>'});"><? echo $vis_language['TXTTASKS']. '('.$total_task.')'; ?></button>
</div>
<div class="btn-group">
	<button class="btn btn-default btn-xs btn-rounded" onclick="$('#vis_show_attach_all_<? echo $releases_details['release_id']; ?>').visExecution('load_operations',{'vis_module':'releases', 'vis_operation':'get_details', 'vis_action':'aprovals', 'vis_release_id':'<? echo $releases_details['release_id']; ?>'});"><? echo $vis_language['TXTAPPROVALS']. ' ('.$total_aprovals.')'; ?></button>
</div>

<div id="vis_show_attach_all_<? echo $releases_details['release_id']; ?>"></div>

<script>  
    $(".selectpicker").selectpicker();
 
    // Add scrolling to section below bredcrumbs & bredcrumb sticks fixed at top
    $("#vis_workpanel_div").removeClass("scrollable");
    $("#release_details_view").css({"overflow-x":"hidden", "min-height":($( window ).height()-132-10)+"px", "max-height":($( window ).height()-132-10)+"px", "overflow-y":"auto"});
    $(window).resize(function() {	//resize just happened, pixels changed 
        $("#release_details_view").css({"overflow-x":"hidden", "min-height":($( window ).height()-132-10)+"px", "max-height":($( window ).height()-132-10)+"px", "overflow-y":"auto"});
    });
    function update_owner(staff_id, update_owner) { // update owner properties i.e. assign new/remove 
        $('#vis_global_msg_div').visExecution('load_operations', {'vis_module': 'releases', 'vis_operation': 'update_properties', 'vis_action': 'staff', 'vis_release_id': <?= $operation['vis_release_id']?>, 'vis_update_id': staff_id, 'vis_sub_action': update_owner});
    }
    function toggle_assigned_owner() { // show/hide assigned to (owner)
        $("#vis_assigned_to_<?= $releases_details['release_id'];?>").toggle();
        if($("#vis_assigned_to_<?= $releases_details['release_id'];?>").is(":visible")) {
            $("#vis_assigned_to_<?= $releases_details['release_id'];?>").next().removeClass('m-t');
        } else {
            $("#vis_assigned_to_<?= $releases_details['release_id'];?>").next().addClass('m-t');
        }
    }
	
	function reset_dates(flag){
		var data;
		if(flag=='startdate'){
			$("#startdate").html('');
			data='<button data-toggle="dropdown" class="btn bg-empty btn-sm dropdown-toggle action_btn bg-white" type="button" onclick="';
			data =data+"$('#startdate').visExecution('load_operations', {'vis_module': 'problem', 'vis_operation': 'load_lists', 'vis_action': 'startdate', 'vis_release_id': <?= $operation['vis_release_id']?>, 'vis_selected_id': '<?=$releases_details['planned_start_date']; ?>', 'vis_domain_id': <?= $releases_details['domain_id']; ?>, 'vis_dept_id': <?= $releases_details['department_id']; ?>});";
			data =data+'"><span class="filter-option pull-left"><?= format_datetime($releases_details['planned_start_date']); ?>&nbsp;</span></button>';
			$("#startdate").html(data);
		}
		if(flag=='enddate'){
			$("#enddate").html('');
			data='<button data-toggle="dropdown" class="btn bg-empty btn-sm dropdown-toggle action_btn bg-white" type="button" onclick="';
			data =data+"$('#enddate').visExecution('load_operations', {'vis_module': 'problem', 'vis_operation': 'load_lists', 'vis_action': 'enddate', 'vis_release_id': <?= $operation['vis_release_id']?>, 'vis_selected_id': '<?=$releases_details['planned_end_date']; ?>', 'vis_domain_id': <?= $releases_details['domain_id']; ?>, 'vis_dept_id': <?= $releases_details['department_id']; ?>});";
			data =data+'"><span class="filter-option pull-left"><?= format_datetime($releases_details['planned_end_date']); ?>&nbsp;</span></button>';
			$("#enddate").html(data);
		}
	}

    function update_properties(updateid,serialid){
		$(".bootstrap-datetimepicker-widget").hide();
        if(serialid==1) $('#vis_global_msg_div').visExecution('load_operations', {'vis_module': 'releases', 'vis_operation': 'update_properties', 'vis_action': 'department', 'vis_release_id': <?= $releases_details['release_id']; ?>, 'vis_update_id': updateid});
        else if(serialid==2) $('#vis_global_msg_div').visExecution('load_operations', {'vis_module': 'releases', 'vis_operation': 'update_properties', 'vis_action': 'status', 'vis_release_id': <?= $releases_details['release_id']; ?>,  'vis_update_id': updateid});
        else if(serialid==3) $('#vis_global_msg_div').visExecution('load_operations', {'vis_module': 'releases', 'vis_operation': 'update_properties', 'vis_action': 'priority', 'vis_release_id': <?= $releases_details['release_id']; ?>,  'vis_update_id': updateid});

else if(serialid==15) $('#vis_global_msg_div').visExecution('load_operations', {'vis_module': 'releases', 'vis_operation': 'update_properties', 'vis_action': 'category', 'vis_release_id': <?= $releases_details['release_id']; ?>,  'vis_update_id': updateid});
        else if(serialid==16) $('#vis_global_msg_div').visExecution('load_operations', {'vis_module': 'releases', 'vis_operation': 'update_properties', 'vis_action': 'subcategory', 'vis_release_id': <?= $releases_details['release_id']; ?>,  'vis_update_id': updateid});
        else if(serialid==17) $('#vis_global_msg_div').visExecution('load_operations', {'vis_module': 'releases', 'vis_operation': 'update_properties', 'vis_action': 'item', 'vis_release_id': <?= $releases_details['release_id']; ?>,  'vis_update_id': updateid});
        else if(serialid==18) $('#vis_global_msg_div').visExecution('load_operations', {'vis_module': 'releases', 'vis_operation': 'update_properties', 'vis_action': 'location', 'vis_release_id': <?= $releases_details['release_id']; ?>,  'vis_update_id': updateid});

        else if(serialid==9) $('#vis_global_msg_div').visExecution('load_operations', {'vis_module': 'releases', 'vis_operation': 'update_properties', 'vis_action': 'releasetype', 'vis_release_id': <?= $releases_details['release_id']; ?>,  'vis_update_id': updateid});
        else if(serialid==10) $('#vis_global_msg_div').visExecution('load_operations', {'vis_module': 'releases', 'vis_operation': 'update_properties', 'vis_action': 'startdate', 'vis_release_id': <?= $releases_details['release_id']; ?>,  'vis_update_id': ''+updateid+''});
        else if(serialid==11) $('#vis_global_msg_div').visExecution('load_operations', {'vis_module': 'releases', 'vis_operation': 'update_properties', 'vis_action': 'enddate', 'vis_release_id': <?= $releases_details['release_id']; ?>,  'vis_update_id': ''+updateid+''});
    }
	
	function change_status(id, status, staff_id) {
		var data = { vis_release_id:"<?=$releases_details['release_id'];?>", aprove_id:id, status:status, staff_id:staff_id};
		$.ajax({
			url: 'index.php?vis_module=<?=$operation['vis_module'];?>&vis_operation=change_aprove_status',
			data: data,
			type: "POST",
			success: function(data) {
				$('#vis_global_msg_div').visInterface('load_global_message', '<?= $vis_language['MSGSUCCOPRT'];?>');$('#vis_details_list_<?= $releases_details['release_id']; ?>').visExecution('load_operations',{'vis_module':'releases', 'vis_operation':'get_details', 'vis_action':'details', 'vis_release_id':'<?= $releases_details['release_id']; ?>', 'open_aprovals':'yes'});
			},
			error: function(xhr, ajaxOptions, thrownError) {$("#vis_global_msg_div").visInterface("load_global_message", "Error: "+xhr.status+" - "+thrownError);}
		});
		
	}
</script>