<?php
  // report display here
    global $vis_language;

    if($report!=-1)
    {

        echo '<table cellspacing="0" cellpadding="0" width="100%" class="vis_list_table">
              <tr>
                  <th>'.$vis_language['TXTFIRSTNAME'].'</th>
                  <th>'.$vis_language['TXTLASTNAME'].'</th>
                  <th>'.$vis_language['TXTEMAIL'].'</th>
                  <th>'.$vis_language['TXTDOMAIN'].'</th>
                  <th>'.$vis_language['TXTTICKETCOUNT'].'</th>
                  <th>'.$vis_language['TXTSOLVED'].'</th>
                  <th>'.$vis_language['TXTUNSOLVED'].'</th>

              </tr>';
        for($i=0;$i<count($report);$i++) {
           $unsolved = $report[$i]['ticket_count'] - $report[$i]['close_ticket_count'] ;
            echo '<tr>
                        <td><a href="#/client/client_details/'.$report[$i]['client_id'].'">'.$report[$i]['first_name'].'</a></td>
                        <td><a href="#/client/client_details/'.'/'.$report[$i]['client_id'].'">'.$report[$i]['last_name'].'</a></td>
                        <td><a href="#/client/client_details/'.$report[$i]['client_id'].'">'.$report[$i]['email'].'</a></td>
                        <td>'.$report[$i]['domain_name'].'</td>
                        <td>'.$report[$i]['ticket_count'].'</td>
                        <td>'.$report[$i]['close_ticket_count'].'</td>
                        <td>'.$unsolved.'</td>
                 </tr>';
        }
        echo '</table>';
    }
    else echo $vis_language['TXTNOMATCHFOUND'];
?>
