require 'header.php'; $servicoDAO = new ServicoDAO(); # # # #if($controle_id_usuario == 1){ if (substr_count($controle_email, 'diretoria') > 0) { $conselho = new ConselhoDAO(); $teste = $conselho->regiao($controle_id_empresa); if ($teste > 0) { $dt = $conselho->campanha(); if ($dt) { if ($_POST) { if (isset($_POST['conselho'])) { $conselho->votar($dt->id_campanha, $_POST['conselho'], $controle_id_empresa, $controle_id_usuario); } } if (!$conselho->voto($dt->id_campanha, $controle_id_empresa, $controle_id_usuario)) { ?> <form method="post" action="index.php"> <div style="width:650px; height: 420px; margin-left: -325px; margin-top:-210px; position:absolute; z-index: 1; left:50%; top:50%; border: dashed 3px #6DB7E5; background-color:#FFF" id="dv_conselho"> <table style="width:100%"> <tr> <td colspan="2" style="padding:5px; text-align:right"> <a href="#" onclick="document.getElementById('dv_conselho').style.display='none'" style="text-decoration:none; color:#6DB7E5; font-weight:bold">Fechar X</a> </td> </tr> <tr> <td colspan="2" style="padding:5px; font-weight:bold"><?php echo $dt->campanha;