0

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”){
?>

links ativos para as minhas
REDES SOCIAIS







  • Você não possui links ativos

” title=”” alt=”” width=”100%” height=”auto”>
Olá,

Minha Anuidade

Último Pagamento

get_var(“select data_ultimo_pagto from primatologos_old where cpf = ‘”.$primatologo_cpf.”‘”);
$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 “

$data_ultimo_pagto
R$ “.$valor_ultimo_pagto.”

“;
}else{
echo “

“;
}
?>

Próximo Vencimento

get_var(“select data_prox_pagto from primatologos_old where cpf = ‘”.$primatologo_cpf.”‘”);
$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 “

$data_prox_pagto
R$ “.$valor_prox_pagto.”

“;
}else{
echo “

“;
}
?>

Meus Registros de Primatas novo registro dePRIMATA

get_results(“SELECT *, primatas_registros.ID as ID_primatas from primatas_registros inner join primatas on primatas_registros.ID_primatas = primatas.ID where ID_primatologos = “.$_SESSION[“primatologo_code”].” order by primatas_registros.ID desc limit 0,10″);
$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 “

    “;
    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 “

  • permalink.”‘>
    outros_nomes.”‘ title='”.$rp -> outros_nomes.”‘ width=’100%’ height=’auto’ >

    ID_primatas.”‘>Excluir

“;
}
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 “

Você não tem registros de primatas cadastrados.

“;}

?>

Meus Projetos Cadastrar novoPROJETO

get_results(“SELECT * from primatologos_projetos where ID_primatologos = “.$_SESSION[“primatologo_code”].””);
echo “

“;
if (count($projects)>0){
foreach ($projects as $p){
echo “

“;
}

}else{echo “

“;}
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.

“;
?>

Compartilhe!