
<table width='100%' border='0' cellpadding='0' cellspacing='0'>
    <tr> 
    <td>
    <table width='100%' border='0' cellspacing='0' cellpadding='0'>
        <tr> 
          <td width='1%' class='accountlabPlanDataHTD'>&nbsp;&nbsp;<?php echo $BL->props->lang['Nu']; ?></td>
          <td class='accountlabPlanDataHTD'><?php echo $BL->props->lang['ticket_subject']; ?></td>
          <td class='accountlabPlanDataHTD'><?php echo $BL->props->lang['Status']; ?></td>
          <td class='accountlabPlanDataHTD'><?php echo $BL->props->lang['Date']; ?></td>
          <td class='accountlabPlanDataHTD'></td>
        </tr>
        <?php
        $bgcolor= "accountlabDataTD";
        foreach ($tickets as $value){
            if ($bgcolor == "accountlabAltDataTD")
                $bgcolor= "accountlabDataTD";
            elseif ($bgcolor == "accountlabDataTD") 
                $bgcolor= "accountlabAltDataTD";
        ?>
         <tr> 
          <td class='<?php echo $bgcolor; ?>'>&nbsp;&nbsp;<?php echo $value['ticket_id']; ?></td>
          <td class='<?php echo $bgcolor; ?>'><?php echo empty($value['ticket_subject'])?substr(strip_tags($value['ticket_text']), 0, 25):substr(strip_tags($value['ticket_subject']), 0, 25); ?>...</td>
          <td class='<?php echo $bgcolor; ?>'><?php echo $BL->props->ticket_status[$value['ticket_status']]; ?></td>
          <td class='<?php echo $bgcolor; ?>'><?php echo $BL->fDate($value['ticket_date'],' H:i:s'); ?></td>
          <td class='<?php echo $bgcolor; ?>'><div align='right'>
          <a class='accountlabPlanLink' href='<?php echo $PHP_SELF; ?>?cmd=viewTicket&ticket_id=<?php echo $value['ticket_id']; ?>'><?php echo $BL->props->lang['View']; ?></a>
          </div></td>
        </tr>
        <?php } ?>
        </table>
       </td>
  </tr>
</table>