<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <% set conexao=server.createobject ("ADODB.Connection") conexao.Open MM_simuladoronline9_STRING %> <% Dim tabelas_promocoes__MMColParam tabelas_promocoes__MMColParam = "1" If (Request.QueryString("ID_Cliente") <> "") Then tabelas_promocoes__MMColParam = Request.QueryString("ID_Cliente") End If %> <% Dim tabelas_promocoes Dim tabelas_promocoes_cmd Dim tabelas_promocoes_numRows Set tabelas_promocoes_cmd = Server.CreateObject ("ADODB.Command") tabelas_promocoes_cmd.ActiveConnection = conexao tabelas_promocoes_cmd.CommandText = "SELECT * FROM tabelas_promocoes WHERE ID_Cliente = ?" tabelas_promocoes_cmd.Prepared = true tabelas_promocoes_cmd.Parameters.Append tabelas_promocoes_cmd.CreateParameter("param1", 5, 1, -1, tabelas_promocoes__MMColParam) ' adDouble Set tabelas_promocoes = tabelas_promocoes_cmd.Execute tabelas_promocoes_numRows = 0 %> <% Dim autenticar_logo__MMColParam autenticar_logo__MMColParam = "1" If (Request.QueryString("ID_Usuario") <> "") Then autenticar_logo__MMColParam = Request.QueryString("ID_Usuario") End If %> <% Dim autenticar_logo__corretora autenticar_logo__corretora = "1" If (Request.QueryString("ID_Cliente") <> "") Then autenticar_logo__corretora = Request.QueryString("ID_Cliente") End If %> <% set autenticar_logo = Server.CreateObject("ADODB.Recordset") autenticar_logo.ActiveConnection = conexao autenticar_logo.Source = "SELECT * FROM usuarios_adicionais, administrador WHERE ID_Usuario = " + Replace(autenticar_logo__MMColParam, "'", "''") + " AND ID_Cliente = " + Replace(autenticar_logo__corretora, "'", "''") + " AND ativo = 'S'" autenticar_logo.CursorType = 0 autenticar_logo.CursorLocation = 2 autenticar_logo.LockType = 3 autenticar_logo.Open() autenticar_logo_numRows = 0 %> <% Dim notas_pessoais__MMColParam notas_pessoais__MMColParam = "1" If (Request.QueryString("ID_Usuario") <> "") Then notas_pessoais__MMColParam = Request.QueryString("ID_Usuario") End If %> <% Dim notas_pessoais Dim notas_pessoais_numRows Set notas_pessoais = Server.CreateObject("ADODB.Recordset") notas_pessoais.ActiveConnection = conexao notas_pessoais.Source = "SELECT * FROM informacoes_fisica WHERE ID_Cliente = " + Replace(notas_pessoais__MMColParam, "'", "''") + " AND ID_Operadora = 42" notas_pessoais.CursorType = 0 notas_pessoais.CursorLocation = 2 notas_pessoais.LockType = 1 notas_pessoais.Open() notas_pessoais_numRows = 0 %> <% Dim golden_individual Dim golden_individual_numRows Set golden_individual = Server.CreateObject("ADODB.Recordset") golden_individual.ActiveConnection = conexao golden_individual.Source = "SELECT * FROM golden_cross_ind ORDER BY faixa ASC" golden_individual.CursorType = 0 golden_individual.CursorLocation = 2 golden_individual.LockType = 1 golden_individual.Open() golden_individual_numRows = 0 %> <% Dim golden_familiar Dim golden_familiar_numRows Set golden_familiar = Server.CreateObject("ADODB.Recordset") golden_familiar.ActiveConnection = conexao golden_familiar.Source = "SELECT * FROM golden_cross_fam ORDER BY faixa ASC" golden_familiar.CursorType = 0 golden_familiar.CursorLocation = 2 golden_familiar.LockType = 1 golden_familiar.Open() golden_familiar_numRows = 0 %> <% Dim categoria Dim categoria_numRows Set categoria = Server.CreateObject("ADODB.Recordset") categoria.ActiveConnection = conexao categoria.Source = "SELECT * FROM golden_cross_inform_fisica" categoria.CursorType = 0 categoria.CursorLocation = 2 categoria.LockType = 1 categoria.Open() categoria_numRows = 0 %> <% Dim Repeat1__numRows Dim Repeat1__index Repeat1__numRows = -1 Repeat1__index = 0 golden_individual_numRows = golden_individual_numRows + Repeat1__numRows %> <% Dim Repeat2__numRows Dim Repeat2__index Repeat2__numRows = -1 Repeat2__index = 0 golden_familiar_numRows = golden_familiar_numRows + Repeat2__numRows %> <%=(autenticar_logo.Fields.Item("nome_corretora").Value)%>

 

<% If Not topo_tabelas.EOF Or Not topo_tabelas.BOF Then %>
<% If Not tabelas_promocoes.EOF Or Not tabelas_promocoes.BOF Then %>
<%=(tabelas_promocoes.Fields.Item("descricao_fisica").Value)%>
<% End If ' end Not tabelas_promocoes.EOF Or NOT tabelas_promocoes.BOF %>
" border="0">
<%=(autenticar_logo.Fields.Item("site_corretora").Value)%>
(<%=(autenticar_logo.Fields.Item("ddd").Value)%>) <%=(autenticar_logo.Fields.Item("fone").Value)%> -<%=(autenticar_logo.Fields.Item("fone_2").Value)%>
<% End If ' end Not topo_tabelas.EOF Or NOT topo_tabelas.BOF %>

GOLDEN CROSS - OUTUBRO 2010 - Taxa de cadastro: <%=(categoria.Fields.Item("taxa_inscricao").Value)%>
<% While ((Repeat1__numRows <> 0) AND (NOT golden_individual.EOF)) %> <% Repeat1__index=Repeat1__index+1 Repeat1__numRows=Repeat1__numRows-1 golden_individual.MoveNext() Wend %>
INDIVIDUAL
FAIXA ETÁRIA
BASICO
ESPECIAL
QUARTO COLETIVO
QUARTO PARTICULAR
QUARTO PARTICULAR
R$
R$
R$
<%=(golden_individual.Fields.Item("idade").Value)%>
<%= FormatNumber((golden_individual.Fields.Item("valor").Value), 2, -2, -2, -2) %>
<%= FormatNumber((golden_individual.Fields.Item("valor_2").Value), 2, -2, -2, -2) %>
<%= FormatNumber((golden_individual.Fields.Item("valor_3").Value), 2, -2, -2, -2) %>

<% While ((Repeat2__numRows <> 0) AND (NOT golden_familiar.EOF)) %> <% Repeat2__index=Repeat2__index+1 Repeat2__numRows=Repeat2__numRows-1 golden_familiar.MoveNext() Wend %>
FAMILIAR
FAIXA ETÁRIA

BASICO

ESPECIAL
QUARTO COLETIVO
QUARTO PARTICULAR
QUARTO PARTICULAR
R$
R$
R$
<%=(golden_familiar.Fields.Item("idade").Value)%>
<%= FormatNumber((golden_familiar.Fields.Item("valor").Value), 2, -2, -2, -2) %>
<%= FormatNumber((golden_familiar.Fields.Item("valor_2").Value), 2, -2, -2, -2) %>
<%= FormatNumber((golden_familiar.Fields.Item("valor_3").Value), 2, -2, -2, -2) %>
Inclusao obrigatória do Beneficiário Titular + 01 ou mais Dependentes (cônjuge, filho(s), irmao(s), pai e mãe).

 


Última Alteração em 01/10/2010
<% notas_pessoais.Close() Set notas_pessoais = Nothing %> <% golden_individual.Close() Set golden_individual = Nothing %> <% golden_familiar.Close() Set golden_familiar = Nothing %> <% categoria.Close() Set categoria = Nothing %> <% tabelas_promocoes.Close() Set tabelas_promocoes = Nothing %> <% autenticar_logo.Close() Set autenticar_logo = Nothing %> <% conexao.close set conexao=nothing %>