<? global $vis_language; ?>
<section id="vis_solution_<? echo $problems_details['problem_id']; ?>">
	<section class="panel panel-default pos-rlt clearfix m-b-md" id="vis_solution_permanents_<? echo $problems_details['problem_id']; ?>">
		<div class="panel-heading b-b b-light">
			<div class="clear">
				<?php if($permanent_data != -1){?>
					<div class="btn-group pull-right">
						
						<a class="link m-r" href="javascript:void(0);" onclick="$('#vis_solution_permanents_<? echo $problems_details['problem_id']; ?>').visExecution('load_area',{'vis_module':'problem', 'vis_operation':'problem_solution_form', 'vis_solution_type': 'permanent', 'vis_problem_id':<? echo $problems_details['problem_id']; ?>});"><? echo $vis_language['TXTEDIT']; ?></a></li>
							
						<a class="link" href="javascript:void(0);" data-toggle="ajaxModal" data-modal-arguments="vis_module=problem&vis_operation=confirm_delete_solution&vis_problem_id=<? echo $problems_details['problem_id']; ?>&vis_solution_type=permanent&vis_solution_id=<?php echo $problems_details['permanent_id'];?>"><? echo $vis_language['TXTDELETE']; ?></a>
						
					</div>
				<?php }?>
				<div class="row">
					<div class="m-l pull-left">
						<label class="pull-left"><? echo $vis_language['TXTPERMANANTSOLUTION']; ?></label>
					</div>
				</div>
			</div>
		</div>
		<div class="panel-collapse wrapper">
			<?php if($permanent_data != -1){?>
			<!--<div ><?= $permanent_data[0]['article_title']; ?></div>-->
			<div><?= $permanent_data[0]['content']; ?></div>
			<?php }else{ ?>
			<div class="row">
				<div class="form-group m-l">
					
					<a class="link" title="Link Solution" data-modal-arguments="vis_module=problem&vis_operation=link_solution&vis_solution_type=permanent&vis_problem_id=<?=$problems_details['problem_id'];?>" data-toggle="ajaxModal" href="javascript:void(0);"><? echo $vis_language['TXTLINKSOLUTION']; ?></a>
					<label  class="control-label"> <?php echo $vis_language['TXTOR'];?> </label>
					<a class="link" href="javascript:void(0);" onclick="$('#vis_solution_permanents_<? echo $problems_details['problem_id']; ?>').visExecution('load_area',{'vis_module':'problem', 'vis_operation':'problem_solution_form', 'vis_solution_type': 'permanent', 'vis_problem_id':<? echo $problems_details['problem_id']; ?>});"> <? echo $vis_language['TXTADDNEWSOLUTION']; ?></a>
					
				</div>	
			</div>	
			<?php }?>
		</div>
	</section>
	
	<section class="panel panel-default pos-rlt clearfix m-b-md" id="vis_solution_workaround_<? echo $problems_details['problem_id']; ?>">
		
		<div class="panel-heading b-b b-light">
			<div class="clear">
				<?php if($workaround_data != -1){?>
					<div class="btn-group pull-right">
						
						<a class="link m-r" href="javascript:void(0);" onclick="$('#vis_solution_workaround_<? echo $problems_details['problem_id']; ?>').visExecution('load_area',{'vis_module':'problem', 'vis_operation':'problem_solution_form', 'vis_solution_type': 'workaround', 'vis_problem_id':<? echo $problems_details['problem_id']; ?>});"><? echo $vis_language['TXTEDIT']; ?></a></li>
						
						<a class="link" href="javascript:void(0);" data-toggle="ajaxModal" data-modal-arguments="vis_module=problem&vis_operation=confirm_delete_solution&vis_problem_id=<? echo $problems_details['problem_id']; ?>&vis_solution_type=workaround&vis_solution_id=<?php echo $problems_details['workaround_id'];?>"><? echo $vis_language['TXTDELETE']; ?></a>
						
					</div>
				<?php }?>
				<div class="row">
					<div class="m-l pull-left">
						<label class="pull-left"><? echo $vis_language['TXTWORKAROUNDSOLUTION']; ?></label>
					</div>
				</div>
			</div>
		</div>
		<div class="panel-collapse wrapper">
			<?php if($workaround_data != -1){?>
				<!--<div ><?= $workaround_data[0]['article_title']; ?></div>-->
			<div><?= $workaround_data[0]['content']; ?></div>
			<?php }else{ ?>
			<div class="row">
				<div class="form-group m-l">
						<a class="link" title="Link solution" data-modal-arguments="vis_module=problem&vis_operation=link_solution&vis_solution_type=workaround&vis_problem_id=<?=$problems_details['problem_id'];?>" data-toggle="ajaxModal" href="javascript:void(0);"><? echo $vis_language['TXTLINKSOLUTION']; ?></a>
						<label  class="control-label"> <?php echo $vis_language['TXTOR'];?> 
						<a class="link" href="javascript:void(0);" onclick="$('#vis_solution_workaround_<? echo $problems_details['problem_id']; ?>').visExecution('load_area',{'vis_module':'problem', 'vis_operation':'problem_solution_form', 'vis_solution_type': 'workaround', 'vis_problem_id':<? echo $problems_details['problem_id']; ?>});"> <? echo $vis_language['TXTADDNEWSOLUTION']; ?></a>
					</label>
				</div>	
			</div>
			<?php }?>
		</div>
	</section>
	
	
	
</section>
<script type="text/javascript"></script>
