$tabela .= '<td style="border-bottom:solid 1px #0071B6; border-left:none; border-right:solid 1px #0071B6;"';
                     $tabela .= ' onclick="javascript:location.href=\'interessados_edit.php?id=' . $arr->id_ficha . '\'">&nbsp;' . trim(substr($arr->status, 0, 20)) . '</td>' . "\n";
                 }
             } else {
                 $data = explode('-', $arr->data);
                 $tabela .= '<td style="border-bottom:solid 1px #0071B6; border-left:solid 1px #0071B6;" align="center"';
                 $tabela .= 'onclick="javascript:location.href=\'interessados_edit.php?id=' . $arr->id_ficha . '\'">&nbsp;' . $data[2] . '/' . $data[1] . '/' . $data[0] . '&nbsp;</td>' . "\n";
             }
             $tabela .= '<td style="border-bottom:solid 1px #0071B6; text-align:center"><a href="imprimir_ficha.php?id=' . $arr->id_ficha . '" target="_blank"><img src="http://www.cartoriopostal.com.br/saf/images/estrutura/botoes/imprimir.png" style="width:15px; height:15px; border:none" /></a></td>';
             $tabela .= '</tr>' . "\n";
             $teste = $cor == '#FFF' ? $cor = '#EAF8FF' : ($cor = '#FFF');
         }
         break;
 }
 if ($data1) {
     $e = $dt->somaListaInteressadosDataReuniao($acao, $id_status, $uf, $cidade, $nome, $d1, $d2, $usuario);
 } else {
     $e = $dt->somaListaInteressados($acao, $id_status, $uf, $cidade, $id_status, $nome, $usuario);
 }
 if (fmod($e->total, $total_registro) == 0) {
     $total_pagina = (int) $e->total / $total_registro;
 } else {
     $tot = explode('.', $e->total / $total_registro);
     $total_pagina = (int) $tot[0] + 1;
 }
 $tabela .= '<tr>' . "\n";
 $tabela .= '<td colspan="' . $colspan . '" height="35" align="center" valign="middle" style=" background-color:#0071B6; color:#FFFFFF;">';
 if ($total_pagina == 1) {
     if ($e->total > 1) {
         $tabela .= 'Foram encontrados <span style="text-decoration:underline; font-weight:bold">' . $e->total . '</span> registros.<br />' . "\n";
     } else {