<? global $vis_language; 
if($releases_details==-1){ 
	include(VIS_PATH_TEMPLATE.'no_record_yet.php'); 
	echo '<script> $("#view_action").hide(); $("#vis_releases_form .panel-footer").hide(); $("#vis_releases_list").hide(); $(".fullFrame").removeClass("b-t").addClass("m-t-lg m-b-lg"); </script>';
 } else { ?>
<script> $("#view_action").show(); $("#vis_releases_form .panel-footer").show(); $("#vis_releases_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['TXTRELEASEHASH'];?></th>
         <th><? echo $vis_language['TXTSUBJECT']; ?></th>
		 <th class="txt_nowrap"><? echo $vis_language['TXTDEPARTMENT']; ?></th>
		 <th class="txt_nowrap"><? echo $vis_language['TXTRELEASETYPE']; ?></th>
		 <th class="txt_nowrap"><? echo $vis_language['TXTPRIORITY']; ?></th>
         <th class="txt_nowrap"><? echo $vis_language['TXTSTATUS']; ?></th>
         <!--<th></th>-->
      </tr>
   </thead>
   <tbody>
      <? for($i=0;$i<$releases_info['releases_count'];$i++) {
 			echo '<tr><td width="30" id="checkbox_data"><label class="checkbox m-n i-checks"><input data-dept-id="'.$releases_details[$i]['department_id'].'" data-status="'.$releases_details[$i]['status_id'].'" type="checkbox" name="vis_global_mass_chk_'.$i.'" id="vis_global_mass_chk_'.$i.'" value="'.$releases_details[$i]['release_id'].'" /><i></i></label></td>';
			echo '<td><i class="vh vh-release-management vh-green vh-lg"></i></td>';
			echo '<td><a href="#/releases/releases_details/'.str_replace('/', ' ', $releases_details[$i]['release_hash']).'/'.$releases_details[$i]['release_id'].'">'.$releases_details[$i]['release_hash'].'</a></td>';
			echo '<td><a href="#/releases/releases_details/'.str_replace('/', ' ', $releases_details[$i]['release_hash']).'/'.$releases_details[$i]['release_id'].'">'.$releases_details[$i]['subject'].'</a></td>';
			echo '<td><a href="#/releases/releases_details/'.str_replace('/', ' ', $releases_details[$i]['release_hash']).'/'.$releases_details[$i]['release_id'].'">'.$releases_details[$i]['domain_name'].' : '.$releases_details[$i]['department_name'].'</a></td>';
			echo '<td><a href="#/releases/releases_details/'.str_replace('/', ' ', $releases_details[$i]['release_hash']).'/'.$releases_details[$i]['release_id'].'" style="color:'.$releases_details[$i]['release_color'].'">'.$releases_details[$i]['release_type'].'</a></td>';
			echo '<td><a href="#/releases/releases_details/'.str_replace('/', ' ', $releases_details[$i]['release_hash']).'/'.$releases_details[$i]['release_id'].'" style="color:'.$releases_details[$i]['priority_color'].'">'.$releases_details[$i]['priority_name'].'</a></td>';
			echo '<td><a href="#/releases/releases_details/'.str_replace('/', ' ', $releases_details[$i]['release_hash']).'/'.$releases_details[$i]['release_id'].'" style="color:'.$releases_details[$i]['status_color'].'">'.$releases_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_releases_delete&vis_release_id=<? echo $releases_details[$i]['release_id']; ?>&vis_filter_id=<?=$operation['filter_id'];?>&vis_static_area=vis_releases_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>
