<? global $vis_language; ?>
<section id="vis_solution_<? echo $changes_details['changes_id']; ?>">
	<section class="panel panel-default pos-rlt clearfix m-b-md" id="vis_plan_rollout_<? echo $changes_details['changes_id']; ?>">
		<div class="panel-heading b-b b-light">
			<div class="clear">
				<?php if($changes_details['rollout']!= ''){?>
					<div class="btn-group pull-right">
						
						<a class="link m-r" href="javascript:void(0);" onclick="$('#vis_plan_rollout_<? echo $changes_details['changes_id']; ?>').visExecution('load_area',{'vis_module':'changes', 'vis_operation':'changes_plan_form', 'vis_plan_type': 'rollout', 'vis_changes_id':<? echo $changes_details['changes_id']; ?>});"><? echo $vis_language['TXTEDIT']; ?></a></li>
							
						<a class="link" href="javascript:void(0);" data-toggle="ajaxModal" data-modal-arguments="vis_module=changes&vis_operation=confirm_delete_plan&vis_changes_id=<? echo $changes_details['changes_id']; ?>&vis_plan_type=rollout"><? echo $vis_language['TXTDELETE']; ?></a>
						
					</div>
				<?php }?>
				<div class="row">
					<div class="m-l pull-left">
						<label class="pull-left"><? echo $vis_language['TXTROLLOUTPLAN']; ?></label>
					</div>
				</div>
			</div>
		</div>
		<div class="panel-collapse wrapper">
			<?php if($changes_details['rollout'] != ''){?>
				<div ><?= $changes_details['rollout']; ?></div>
				<div><? if($rollout_attachment!=-1) { 
				$images=''; $files='';
				for($j=0;$j<count($rollout_attachment);$j++) { 
					if (!preg_match('/image/',$rollout_attachment[$j]['file_type'])) { 
					  $files.='<div class="btn-group wrapper-xxs p-l-none"><a class="btn btn-xs alert-success no-border" href="'.$rollout_attachment[$j]['domain_url'];
					   if(VIS_DOMAIN==$rollout_attachment[$j]['file_location']) $files.= 'manage/';
						$files.='?vis_module=export&vis_operation=get_attachment&vis_attachment='.$rollout_attachment[$j]['attachment_id'].'&'.VIS_STAFF_COOKIE.'='.$_COOKIE[VIS_STAFF_COOKIE].'"><span class="vis-icon-med vis-icon-article"></span>&nbsp;'.$rollout_attachment[$j]['file_name'].'</a></div>';
				   }
				   else {
					   $imagedetails=explode("/",$rollout_attachment[$j]['content']);
					   $imagename=file_exists(VIS_PATH_FILES.'thumb_'.end($imagedetails))?'thumb_'.end($imagedetails):end($imagedetails);
					   $images.='<li><a href="'.$rollout_attachment[$j]['domain_url'];
					   if(VIS_DOMAIN==$rollout_attachment[$j]['file_location']) $images.= 'manage/';
						$images.='?vis_module=export&vis_operation=get_attachment&vis_attachment='.$rollout_attachment[$j]['attachment_id'].'&'.VIS_STAFF_COOKIE.'='.$_COOKIE[VIS_STAFF_COOKIE].'"><img width="100" height="100" src="'./*$rollout_attachment[$j]['domain_url'].*/VIS_PATH_FILES.$imagename.'" alt="'.$rollout_attachment[$j]['file_name'].'" title="'.$rollout_attachment[$j]['file_name'].'"/></a></li>';
				   }
				  }
				  if($images!='') { ?>
			<?php echo '<div class="b b-t m-sm b-dashed m-l-none m-r-none"></div><div class="clear"><ul class="vis_inline_images nav navbar-nav hidden-xs">'.$images.'</ul></div>';
				}
				if($files!='') {  ?>
			<div class="b b-t m-sm b-dashed m-l-none m-r-none"></div>
			<?php echo $files; 
				}
				}?></div>
			<?php }else{ ?>
			<div class="row">
				<div class="form-group m-l">
					
					<label  class="control-label"> <?php echo $vis_language['TXTNOROLLOUT'];?> </label>
					<a class="link" href="javascript:void(0);" onclick="$('#vis_plan_rollout_<? echo $changes_details['changes_id']; ?>').visExecution('load_area',{'vis_module':'changes', 'vis_operation':'changes_plan_form', 'vis_plan_type': 'rollout', 'vis_changes_id':<? echo $changes_details['changes_id']; ?>});"> <? echo $vis_language['TXTADDNEW']; ?></a>
					
				</div>	
			</div>	
			<?php }?>
		</div>
	</section>
	
	<section class="panel panel-default pos-rlt clearfix m-b-md" id="vis_plan_backout_<? echo $changes_details['changes_id']; ?>">
		
		<div class="panel-heading b-b b-light">
			<div class="clear">
				<?php if($changes_details['backout'] != ''){?>
					<div class="btn-group pull-right">
						
						<a class="link m-r" href="javascript:void(0);" onclick="$('#vis_plan_backout_<? echo $changes_details['changes_id']; ?>').visExecution('load_area',{'vis_module':'changes', 'vis_operation':'changes_plan_form', 'vis_plan_type': 'backout', 'vis_changes_id':<? echo $changes_details['changes_id']; ?>});"><? echo $vis_language['TXTEDIT']; ?></a></li>
						
						<a class="link" href="javascript:void(0);" data-toggle="ajaxModal" data-modal-arguments="vis_module=changes&vis_operation=confirm_delete_plan&vis_changes_id=<? echo $changes_details['changes_id']; ?>&vis_plan_type=backout"><? echo $vis_language['TXTDELETE']; ?></a>
						
					</div>
				<?php }?>
				<div class="row">
					<div class="m-l pull-left">
						<label class="pull-left"><? echo $vis_language['TXTBACKOUTPLAN']; ?></label>
					</div>
				</div>
			</div>
		</div>
		<div class="panel-collapse wrapper">
			<?php if($changes_details['backout'] != ''){?>
				<div ><?= $changes_details['backout']; ?></div>
				<div>
					<? if($backout_attachment!=-1) { 
					$images=''; $files='';
					for($j=0;$j<count($backout_attachment);$j++) { 
						if (!preg_match('/image/',$backout_attachment[$j]['file_type'])) { 
						  $files.='<div class="btn-group wrapper-xxs p-l-none"><a class="btn btn-xs alert-success no-border" href="'.$backout_attachment[$j]['domain_url'];
						   if(VIS_DOMAIN==$backout_attachment[$j]['file_location']) $files.= 'manage/';
							$files.='?vis_module=export&vis_operation=get_attachment&vis_attachment='.$backout_attachment[$j]['attachment_id'].'&'.VIS_STAFF_COOKIE.'='.$_COOKIE[VIS_STAFF_COOKIE].'"><span class="vis-icon-med vis-icon-article"></span>&nbsp;'.$backout_attachment[$j]['file_name'].'</a></div>';
					   }
					   else {
						   $imagedetails=explode("/",$backout_attachment[$j]['content']);
						   $imagename=file_exists(VIS_PATH_FILES.'thumb_'.end($imagedetails))?'thumb_'.end($imagedetails):end($imagedetails);
						   $images.='<li><a href="'.$backout_attachment[$j]['domain_url'];
						   if(VIS_DOMAIN==$backout_attachment[$j]['file_location']) $images.= 'manage/';
							$images.='?vis_module=export&vis_operation=get_attachment&vis_attachment='.$backout_attachment[$j]['attachment_id'].'&'.VIS_STAFF_COOKIE.'='.$_COOKIE[VIS_STAFF_COOKIE].'"><img width="100" height="100" src="'./*$backout_attachment[$j]['domain_url'].*/VIS_PATH_FILES.$imagename.'" alt="'.$backout_attachment[$j]['file_name'].'" title="'.$backout_attachment[$j]['file_name'].'"/></a></li>';
					   }
					  }
					  if($images!='') { ?>
				<?php echo '<div class="b b-t m-sm b-dashed m-l-none m-r-none"></div><div class="clear"><ul class="vis_inline_images nav navbar-nav hidden-xs">'.$images.'</ul></div>';
					}
					if($files!='') {  ?>
				<div class="b b-t m-sm b-dashed m-l-none m-r-none"></div>
				<?php echo $files; 
					}
					}?>
				</div>
			<?php }else{ ?>
			<div class="row">
				<div class="form-group m-l">
						<label  class="control-label"> <?php echo $vis_language['TXTNOBACKOUT'];?> 
						<a class="link" href="javascript:void(0);" onclick="$('#vis_plan_backout_<? echo $changes_details['changes_id']; ?>').visExecution('load_area',{'vis_module':'changes', 'vis_operation':'changes_plan_form', 'vis_plan_type': 'backout', 'vis_changes_id':<? echo $changes_details['changes_id']; ?>});"> <? echo $vis_language['TXTADDNEW']; ?></a>
					</label>
				</div>	
			</div>
			<?php }?>
		</div>
	</section>
	
	
	
</section>
<script type="text/javascript"></script>
