} if ($dd[10] == 'del') { $id = $dd[12]; $tm->team_delete_member($id, $tm->protocol, 'cep_team'); } if ($dd[10] == 'add') { $email = $dd[12]; if (checaemail($email)) { $author = $tm->author_exist($email); if ($author != -1 and strlen($author) == 7) { $et = $tm->team_insert_author($author, $tm->protocol, 'cep_team', $type = 'N'); } else { $err = '<div id="alert">'; $err .= '<font color="red">'; $err .= msg('author_not_found'); $err .= '</div>'; $tm->erro = $err; } } else { $err = '<div id="alert">'; $err .= '<font color="red">'; $err .= msg('email_invalid'); $err .= '</font>'; $err .= '</div>'; $tm->erro = $err; } } //echo '===>'.$tm->erro.'--'.$tabela; echo $tm->team_list($tm->protocol, $tabela); echo $tm->team_form_add();