get_results(“select * from primatologos where ID = “.$_SESSION[“primatologo_code”].” limit 0,1″);
foreach ($primatologos as $p){
$primatologo_name = $p -> nome;
$primatologo_foto = $p -> foto;
$primatologo_cpf = $p -> cpf;
$primatologo_sobrenome = $p -> sobrenome;
$primatologo_sharenets = $p -> share_redes;
$primatologo_description = $p -> description;
}
$sharenets_site = “”;
$sharenets_facebook = “”;
$sharenets_linkedin = “”;
$sharenets_instagram = “”;
$sharenets_twitter = “”;
$sharenets_curriculo = “”;
$nets = $wpdb->get_results(“select * from primatologos_redes where ID_primatologos = “.$_SESSION[“primatologo_code”].””);
if (count($nets)>0){
foreach ($nets as $n){
switch ($n->nome_rede) {
case ‘site’:
$sharenets_site = $n -> url_rede;
break;
case ‘facebook’:
$sharenets_facebook = $n -> url_rede;
break;
case ‘linkedin’:
$sharenets_linkedin = $n -> url_rede;
break;
case ‘instagram’:
$sharenets_instagram = $n -> url_rede;
break;
case ‘twitter’:
$sharenets_twitter = $n -> url_rede;
break;
case ‘curriculo’:
$sharenets_curriculo = $n -> url_rede;
break;
}
}
}
}else{
header(“Location: ../login/”);
die(“”);
}
?>
get_var(“select permalink from primatologos where ID = ‘”.$_SESSION[“primatologo_code”].”‘ limit 0, 1″);
$inadimplente = $wpdb -> get_var(“select data_ultimo_pagto from primatologos_old inner join primatologos on primatologos.cpf = primatologos_old.cpf where primatologos.ID = ‘”.$_SESSION[“primatologo_code”].”‘ limit 0, 1″);
if ($inadimplente == “0000-00-00”){
?>
Minha Anuidade
Último Pagamento
$valor_ultimo_pagto = $wpdb -> get_var(“select valor_ultimo_pagto from primatologos_old where cpf = ‘”.$primatologo_cpf.”‘”);
if (($data_ultimo_pagto != “”) && ($valor_ultimo_pagto != “”)){
$data_ultimo_pagto = explode(“-“, $data_ultimo_pagto);
$data_ultimo_pagto = $data_ultimo_pagto[2].”/”.$data_ultimo_pagto[1].”/”.$data_ultimo_pagto[0];
echo “
“;
}else{
echo “
“;
}
?>
Próximo Vencimento
$valor_prox_pagto = $wpdb -> get_var(“select valor_prox_pagto from primatologos_old where cpf = ‘”.$primatologo_cpf.”‘”);
if (($data_prox_pagto != “”) && ($valor_prox_pagto != “”)){
$data_prox_pagto = explode(“-“, $data_prox_pagto);
$data_prox_pagto = $data_prox_pagto[2].”/”.$data_prox_pagto[1].”/”.$data_prox_pagto[0];
echo “
“;
}else{
echo “
“;
}
?>
Meus Registros de Primatas novo registro dePRIMATA
$count_regs = $wpdb->get_results(“SELECT * from primatas_registros inner join primatas on primatas_registros.ID_primatas = primatas.ID where ID_primatologos = “.$_SESSION[“primatologo_code”].””);
if (count($registros_primatas)>0){
echo “
- “;
- permalink.”‘>
outros_nomes.”‘ title='”.$rp -> outros_nomes.”‘ width=’100%’ height=’auto’ >
ID_primatas.”‘ class=’edit_rp’ id=’edit_rp”.$rp->ID_primatas.”‘>Editar Excluir
foreach ($registros_primatas as $rp){
$dt_tmp=explode(” “,$rp -> date_add,2);
$dt_final=explode(“-“,$dt_tmp[0],3);
$dt_add = $dt_final[2].”/”.$dt_final[1].”/”.$dt_final[0];
echo “
“;
}
echo “
“;
//agora vamos colocar o btn carregar mais, caso existam mais de 10 primatas registrados
if (count($count_regs) > 10){
echo “Mostrar mais registros de primatas“;
}
}else{echo “
“;}
?>
Meus Projetos Cadastrar novoPROJETO
echo “
| Status | Ano de Conclusão | Área de Pesquisa | Nome do Projeto | Descrição | Ações |
| “.$p -> status.” | “.$p -> ano_conclusao.” | “.$p -> area_de_pesquisa.” | “.$p -> nome.” | “.$p -> description.” | ID.”‘ class=’pgp_edit_project’ title=’Editar este projeto’> |
| Você não tem projetos cadastrados. | |||||
“;
?>
