%@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 = 186" notas_pessoais.CursorType = 0 notas_pessoais.CursorLocation = 2 notas_pessoais.LockType = 1 notas_pessoais.Open() notas_pessoais_numRows = 0 %> <% set medial = Server.CreateObject("ADODB.Recordset") medial.ActiveConnection = conexao medial.Source = "SELECT * FROM medialnovo_ind ORDER BY CodMedial ASC" medial.CursorType = 0 medial.CursorLocation = 2 medial.LockType = 3 medial.Open() medial_numRows = 0 %> <% set medial_fam = Server.CreateObject("ADODB.Recordset") medial_fam.ActiveConnection = conexao medial_fam.Source = "SELECT * FROM medialnovo_fam_grupo1 ORDER BY CodMedial ASC" medial_fam.CursorType = 0 medial_fam.CursorLocation = 2 medial_fam.LockType = 3 medial_fam.Open() medial_fam_numRows = 0 %> <% set medial_fam_II = Server.CreateObject("ADODB.Recordset") medial_fam_II.ActiveConnection = conexao medial_fam_II.Source = "SELECT * FROM medialnovo_fam_grupo2 ORDER BY CodMedial ASC" medial_fam_II.CursorType = 0 medial_fam_II.CursorLocation = 2 medial_fam_II.LockType = 3 medial_fam_II.Open() medial_fam_II_numRows = 0 %> <% set medial_fam_III = Server.CreateObject("ADODB.Recordset") medial_fam_III.ActiveConnection = conexao medial_fam_III.Source = "SELECT * FROM medialnovo_fam_grupo3 ORDER BY CodMedial ASC" medial_fam_III.CursorType = 0 medial_fam_III.CursorLocation = 2 medial_fam_III.LockType = 3 medial_fam_III.Open() medial_fam_III_numRows = 0 %> <% set categorias_medial = Server.CreateObject("ADODB.Recordset") categorias_medial.ActiveConnection = conexao categorias_medial.Source = "SELECT * FROM medialnovo_inform_fisica" categorias_medial.CursorType = 0 categorias_medial.CursorLocation = 2 categorias_medial.LockType = 3 categorias_medial.Open() categorias_medial_numRows = 0 %> <% Dim Repeat1__numRows Dim Repeat1__index Repeat1__numRows = -1 Repeat1__index = 0 medial_numRows = medial_numRows + Repeat1__numRows %> <% Dim Repeat2__numRows Dim Repeat2__index Repeat2__numRows = -1 Repeat2__index = 0 medial_fam_numRows = medial_fam_numRows + Repeat2__numRows %> <% Dim Repeat3__numRows Dim Repeat3__index Repeat3__numRows = -1 Repeat3__index = 0 medial_fam_II_numRows = medial_fam_II_numRows + Repeat3__numRows %>
![]() |
<% 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 %>
|
<%=(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)%> |
| INDIVIDUAL/GRUPAL *Só poderá ser comercializado na Região Metropolitana de São Paulo |
||||||||
. |
São
Paulo Capital
|
São
Paulo Capital, Interior e Baixada Santista |
||||||
| Faixa
Etária |
*<%=(categorias_medial.Fields.Item("categoria1").Value)%> |
*<%=(categorias_medial.Fields.Item("categoria2").Value)%> |
*<%=(categorias_medial.Fields.Item("categoria3").Value)%> |
*<%=(categorias_medial.Fields.Item("categoria4").Value)%> |
<%=(categorias_medial.Fields.Item("categoria5").Value)%> |
<%=(categorias_medial.Fields.Item("categoria6").Value)%> |
<%=(categorias_medial.Fields.Item("categoria7").Value)%> |
<%=(categorias_medial.Fields.Item("categoria8").Value)%> |
| <%=(medial.Fields.Item("idade").Value)%> |
<%= FormatNumber((medial.Fields.Item("valor").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((medial.Fields.Item("valor_2").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((medial.Fields.Item("valor_3").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((medial.Fields.Item("valor_4").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((medial.Fields.Item("valor_5").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((medial.Fields.Item("valor_6").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((medial.Fields.Item("valor_7").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((medial.Fields.Item("valor_8").Value), 2, -2, -2, -2) %> |
|
Familiar I - Casal com ou sem filhos - 13% |
||||||||
. |
São
Paulo Capital
|
São
Paulo Capital, Interior e Baixada Santista |
||||||
| Faixa
Etária |
*<%=(categorias_medial.Fields.Item("categoria1").Value)%> |
*<%=(categorias_medial.Fields.Item("categoria2").Value)%> |
*<%=(categorias_medial.Fields.Item("categoria3").Value)%> |
*<%=(categorias_medial.Fields.Item("categoria4").Value)%> |
<%=(categorias_medial.Fields.Item("categoria5").Value)%> |
<%=(categorias_medial.Fields.Item("categoria6").Value)%> |
<%=(categorias_medial.Fields.Item("categoria7").Value)%> |
<%=(categorias_medial.Fields.Item("categoria8").Value)%> |
| <%=(medial_fam.Fields.Item("idade").Value)%> |
<%= FormatNumber((medial_fam.Fields.Item("valor").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((medial_fam.Fields.Item("valor_2").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((medial_fam.Fields.Item("valor_3").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((medial_fam.Fields.Item("valor_4").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((medial_fam.Fields.Item("valor_5").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((medial_fam.Fields.Item("valor_6").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((medial_fam.Fields.Item("valor_7").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((medial_fam.Fields.Item("valor_8").Value), 2, -2, -2, -2) %> |
| Familiar
II - pai ou mãe com filhos - 7% |
||||||||
| . | São
Paulo Capital
|
São
Paulo Capital, Interior e Baixada Santista |
||||||
| Faixa
Etária |
*<%=(categorias_medial.Fields.Item("categoria1").Value)%> |
*<%=(categorias_medial.Fields.Item("categoria2").Value)%> |
*<%=(categorias_medial.Fields.Item("categoria3").Value)%> |
*<%=(categorias_medial.Fields.Item("categoria4").Value)%> |
<%=(categorias_medial.Fields.Item("categoria5").Value)%> |
<%=(categorias_medial.Fields.Item("categoria6").Value)%> |
<%=(categorias_medial.Fields.Item("categoria7").Value)%> |
<%=(categorias_medial.Fields.Item("categoria8").Value)%> |
| <%=(medial_fam_II.Fields.Item("idade").Value)%> |
<%= FormatNumber((medial_fam_II.Fields.Item("valor").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((medial_fam_II.Fields.Item("valor_2").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((medial_fam_II.Fields.Item("valor_3").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((medial_fam_II.Fields.Item("valor_4").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((medial_fam_II.Fields.Item("valor_5").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((medial_fam_II.Fields.Item("valor_6").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((medial_fam_II.Fields.Item("valor_7").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((medial_fam_II.Fields.Item("valor_8").Value), 2, -2, -2, -2) %> |