
<!--application/x-httpd-php type_list.php
ASCII text-->

<script type="text/javascript" src="<?= VIS_PATH_SCRIPT; ?>datatables/data-tables/DT_bootstrap.js"></script>
<? global $vis_language; 
 if($client!=-1) {

?>
<div class="m-r-n m-l-n">
  <table class="table table-hover m-b-none dataTable" data-ride="datatables" id="datatables" >
	<thead class="table_head">
	
										<th><? echo $vis_language['TXTTICKETHASH']; ?></th>
										<th class="txt_nowrap"><? echo $vis_language['TXTSUBJECT']; ?></th>
										<th class="txt_nowrap"><? echo $vis_language['TXTDEPARTMENT']; ?></th>
										 
		 
										<th class="txt_nowrap"><? echo $vis_language['TXTTYPE']; ?></th> 
										<th class="txt_nowrap"><? echo $vis_language['TXTCREATIONDATE']; ?></th>

	</thead>
	<tbody>
		<?php for($i=0;$i<count($client);$i++){ ?>
		<tr>
              
			<td class="txt_nowrap"><? echo $client[$i]['ticket_hash']; ?></td>
			 <td class="txt_nowrap"><? echo $client[$i]['subject']; ?></td>
			<td class="txt_nowrap"><? echo $client[$i]['department_name']; ?></td>
			<td class="txt_nowrap"><? echo $client[$i]['title']; ?></td>
			<td class="txt_nowrap"><? echo format_datetime($client[$i]['receive_date']); ?></td>
			</tr>
	<?	
		}
		?>
		
		
		
		
	</tbody>
  </table>
  
 </div>
  <?} else { ?>
  <div class="fullMiddle m-xl text-center h4"><?= $vis_language['TXTNOMATCHFOUND']; ?></div>
 
 <?} ?>
 
 
 
<script type="text/javascript">
 $(document).ready(function() {
	$('[data-ride="datatables"]').dataTable({
		"bPaginate" : true,
 "pagingType": "simple_numbers",
       "aaSorting":  [],
       "iDisplayLength": 10,		
	   "sDom": '<"top"iflp<"clear">>rt<"bottom"iflp<"clear">>', 		
	   "bFilter" : false,
	   "bLengthChange": false,
	   "bInfo": false,
		"aoColumns": [null,null,null,null,null]});
		});
		</script> 

