Esempio n. 1
0
 function transfere_autores()
 {
     $tm = new team();
     $proto_submit = $this->protocolo_submission;
     $protocol = $this->protocolo_cep;
     $sql = "select * from cep_submit_team where ct_protocol='" . $proto_submit . "' ";
     $rlt = db_query($sql);
     while ($line = db_read($rlt)) {
         $author = trim($line['ct_author']);
         $type = trim($line['ct_type']);
         $table = "cep_team";
         $tm->team_insert_author($author, $protocol, $table, $type);
     }
 }
Esempio n. 2
0
$tm = new team();
$tm->protocol = $pag_id;
if ($dd[10] == 'con') {
    $id = $dd[12];
    $tm->team_contact($id, $tm->protocol, 'cep_team');
}
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;
    }