assign('ListaStatus', $ListaStatus); $smarty->assign('idCont', $idCont); $smarty->assign('identificador', $identificador); $smarty->assign('idCamp', $idCamp); $smarty->assign('idLista', $idLista); $smarty->assign('msg', $msg); $smarty->assign('msg2', $msg2); GetTemplate($smarty, $nomeTpl); function GetStatusDiscador() { $lista = ''; /* * Pega a lista de status da operação. */ $query = "select ctst_id, ctst_nome from pbx_campanha_contato_status where ctst_status = 1 order by ctst_nome"; $result = pg_query($query); $sel = $value ? " selected" : ""; $lista = ""; while ($dados = @pg_fetch_row($result)) { $sel = ($value == $dados[0]) ? " selected" : ""; $id = $dados[0]; $desc = $dados[1]; $lista .= ""; } $lista .= ""; return $lista; } ?>