<? global $vis_language; 
if($problems_details==-1){
	include(VIS_PATH_TEMPLATE.'no_record_yet.php'); 
	echo '<script> $("#view_action").hide(); $("#vis_problem_form .panel-footer").hide(); $("#vis_problems_list").hide(); $(".fullFrame").removeClass("b-t").addClass("m-t-lg m-b-lg"); </script>';
 } else { ?>
<script> $("#view_action").show(); $("#vis_problem_form .panel-footer").show(); $("#vis_problems_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['TXTPROBLEMHASH'];?></th>
		 <th><? echo $vis_language['TXTSUBJECT']; ?></th>
		 <th class="txt_nowrap"><? echo $vis_language['TXTDEPARTMENT']; ?></th>
		 <th class="txt_nowrap"><? echo $vis_language['TXTFROM'];?></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['TXTSTATUS']; ?></th>
      </tr>
   </thead>
   <tbody>
      <?
	  
         for($i=0;$i<$problems_info['problems_count'];$i++) {
            echo '<tr><td width="30" id="checkbox_data"><label class="checkbox m-n i-checks"><input data-dept-id="'.$problems_details[$i]['department_id'].'" data-status="'.$problems_details[$i]['status_id'].'" type="checkbox" name="vis_global_mass_chk_'.$i.'" id="vis_global_mass_chk_'.$i.'" value="'.$problems_details[$i]['problem_id'].'" /><i></i></label></td>';
			echo '<td><i class="vh vh-problem-management vh-red vh-lg"></i></td>';
			echo '<td><a href="#/problem/problems_details/'.str_replace('/', ' ', $problems_details[$i]['problem_hash']).'/'.$problems_details[$i]['problem_id'].'">'.$problems_details[$i]['problem_hash'].'</a></td>';
			echo '<td><a href="#/problem/problems_details/'.str_replace('/', ' ', $problems_details[$i]['problem_hash']).'/'.$problems_details[$i]['problem_id'].'">'.$problems_details[$i]['subject'].'</a></td>';
			echo '<td><a href="#/problem/problems_details/'.str_replace('/', ' ', $problems_details[$i]['problem_hash']).'/'.$problems_details[$i]['problem_id'].'">'.$problems_details[$i]['domain_name'].' : '.$problems_details[$i]['department_name'].'</a></td>';
			echo '<td><a href="#/problem/problems_details/'.str_replace('/', ' ', $problems_details[$i]['problem_hash']).'/'.$problems_details[$i]['problem_id'].'">'.$problems_details[$i]['first_name'].' '.$problems_details[$i]['last_name'].'</a></td>';
			echo '<td><a href="#/problem/problems_details/'.str_replace('/', ' ', $problems_details[$i]['problem_hash']).'/'.$problems_details[$i]['problem_id'].'" style="color:'.$problems_details[$i]['impact_color'].'">'.$problems_details[$i]['impact_name'].'</a></td>';
			echo '<td><a href="#/problem/problems_details/'.str_replace('/', ' ', $problems_details[$i]['problem_hash']).'/'.$problems_details[$i]['problem_id'].'" style="color:'.$problems_details[$i]['priority_color'].'">'.$problems_details[$i]['priority_name'].'</a></td>';
			echo '<td><a href="#/problem/problems_details/'.str_replace('/', ' ', $problems_details[$i]['problem_hash']).'/'.$problems_details[$i]['problem_id'].'"  style="color:'.$problems_details[$i]['status_color'].'">'.$problems_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_problems_delete&vis_problem_id=<? echo $problems_details[$i]['problem_id']; ?>&vis_filter_id=<?=$operation['filter_id'];?>&vis_static_area=vis_problems_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>
