Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (17 sloc) 0.607 kb
<?php
set_time_limit(9999);
include('class/Candidatos.class.php');
$cargos = array(3,4,5,6,7);
$estados = Candidatos::listaEstados();
foreach($cargos as $cargo) {
foreach($estados as $estado) {
$cand = new Candidatos($estado['sigla'], $cargo);
$cand->recuperaCandidatos();
$candidatos = $cand->listaCandidatos($estado['sigla']);
foreach($candidatos as $candidato) {
$cand->cadastraBens($candidato['sqCand'], $candidato['idCandidato']);
}
echo 'Bens cadastrados para o estado ' . $estado['sigla'] . ' do cargo ' . $cargo . '<br><br>';
}
}
?>
Jump to Line
Something went wrong with that request. Please try again.