<? global $vis_language; 
if($changes_details==-1){ 
	include(VIS_PATH_TEMPLATE.'no_record_yet.php'); 
	echo '<script> $("#view_action").hide(); $("#vis_changes_form .panel-footer").hide(); $("#vis_changes_list").hide(); $(".fullFrame").removeClass("b-t").addClass("m-t-lg m-b-lg"); </script>';
 } else { ?>
<script> $("#view_action").show(); $("#vis_changes_form .panel-footer").show(); $("#vis_changes_list").show(); </script>
<table class="table table-hover b-t b-light m-b-none" data-ride="datatables">
   <thead class="table_head">
      <tr>
         <th>
            <div class="btn-group">
               <label class="checkbox m-n m-r-sm i-checks"  style="float: left;"><input type="checkbox"><i></i></label>		
            </div>
         </th>
		 <th></th>
		 <th class="txt_nowrap"><? echo $vis_language['TXTCHANGEHASH'];?></th>
         <th><? echo $vis_language['TXTSUBJECT']; ?></th>
		 <th class="txt_nowrap"><? echo $vis_language['TXTFROM'];?></th>
		 <th class="txt_nowrap"><? echo $vis_language['TXTDEPARTMENT']; ?></th>
		 <th class="txt_nowrap"><? echo $vis_language['TXTCHANGETYPE']; ?></th>
		 <th class="txt_nowrap"><? echo $vis_language['TXTIMPACT']; ?></th>
		 <th class="txt_nowrap"><? echo $vis_language['TXTPRIORITY']; ?></th>
         <th class="txt_nowrap"><? echo $vis_language['TXTRISK']; ?></th>
         <th class="txt_nowrap"><? echo $vis_language['TXTSTATUS']; ?></th>
      </tr>
   </thead>
   <tbody>
        <?
         for($i=0;$i<$changes_info['changes_count'];$i++) {
 			echo '<tr><td width="30" id="checkbox_data"><label class="checkbox m-n i-checks"><input data-dept-id="'.$changes_details[$i]['department_id'].'" data-status="'.$changes_details[$i]['status_id'].'" type="checkbox" name="vis_global_mass_chk_'.$i.'" id="vis_global_mass_chk_'.$i.'" value="'.$changes_details[$i]['changes_id'].'" /><i></i></label></td>';
			echo '<td><i class="vh vh-change-management vh-brown vh-lg"></i></td>';
			echo '<td><a href="#/changes/changes_details/'.str_replace('/', ' ', $changes_details[$i]['changes_hash']).'/'.$changes_details[$i]['changes_id'].'">'.$changes_details[$i]['changes_hash'].'</a></td>';
			echo '<td><a href="#/changes/changes_details/'.str_replace('/', ' ', $changes_details[$i]['changes_hash']).'/'.$changes_details[$i]['changes_id'].'">'.$changes_details[$i]['subject'].'</a></td>';
			echo '<td><a href="#/changes/changes_details/'.str_replace('/', ' ', $changes_details[$i]['changes_hash']).'/'.$changes_details[$i]['changes_id'].'">'.$changes_details[$i]['first_name'].' '.$changes_details[$i]['last_name'].'</a></td>';
			echo '<td><a href="#/changes/changes_details/'.str_replace('/', ' ', $changes_details[$i]['changes_hash']).'/'.$changes_details[$i]['changes_id'].'">'.$changes_details[$i]['domain_name'].' : '.$changes_details[$i]['department_name'].'</a></td>';
			echo '<td><a href="#/changes/changes_details/'.str_replace('/', ' ', $changes_details[$i]['changes_hash']).'/'.$changes_details[$i]['changes_id'].'" style="color:'.$changes_details[$i]['change_color'].'">'.$changes_details[$i]['change_type'].'</a></td>';
			echo '<td><a href="#/changes/changes_details/'.str_replace('/', ' ', $changes_details[$i]['changes_hash']).'/'.$changes_details[$i]['changes_id'].'" style="color:'.$changes_details[$i]['impact_color'].'">'.$changes_details[$i]['impact_name'].'</a></td>';
			echo '<td><a href="#/changes/changes_details/'.str_replace('/', ' ', $changes_details[$i]['changes_hash']).'/'.$changes_details[$i]['changes_id'].'" style="color:'.$changes_details[$i]['priority_color'].'">'.$changes_details[$i]['priority_name'].'</a></td>';
			echo '<td><a href="#/changes/changes_details/'.str_replace('/', ' ', $changes_details[$i]['changes_hash']).'/'.$changes_details[$i]['changes_id'].'" style="color:'.$changes_details[$i]['risk_color'].'">'.$changes_details[$i]['risk_name'].'</a></td>';
			echo '<td><a href="#/changes/changes_details/'.str_replace('/', ' ', $changes_details[$i]['changes_hash']).'/'.$changes_details[$i]['changes_id'].'" style="color:'.$changes_details[$i]['status_color'].'">'.$changes_details[$i]['status_name'].'</a></td>';
		?>
		<!--	<td align="center"> <a class="text-muted" href="javascript:void(0);" data-toggle="ajaxModal" data-modal-arguments="vis_module=<?php echo $operation['vis_module']; ?>&vis_operation=get_changes_delete&vis_changes_id=<? echo $changes_details[$i]['changes_id']; ?>&vis_filter_id=<?=$operation['filter_id'];?>&vis_static_area=vis_changes_delete_form" title="<? echo $vis_language['TXTDELETE']; ?>"><i class="vh vh-delete-round"></a></td></tr> -->
	  <? } ?>
   </tbody>
</table><? } ?>
<script type="text/javascript">
   $(".selectpicker").selectpicker();
</script>
