<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <% set conexao=server.createobject ("ADODB.Connection") conexao.Open MM_simuladoronline9_STRING %> <% 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_pme WHERE ID_Cliente = " + Replace(notas_pessoais__MMColParam, "'", "''") + " AND ID_Operadora = 3" notas_pessoais.CursorType = 0 notas_pessoais.CursorLocation = 2 notas_pessoais.LockType = 1 notas_pessoais.Open() notas_pessoais_numRows = 0 %> <% Dim porto_20_49 Dim porto_20_49_numRows Set porto_20_49 = Server.CreateObject("ADODB.Recordset") porto_20_49.ActiveConnection = conexao porto_20_49.Source = "SELECT * FROM porto_20_29, porto_inform_pme ORDER BY CodPorto Asc" porto_20_49.CursorType = 0 porto_20_49.CursorLocation = 2 porto_20_49.LockType = 1 porto_20_49.Open() porto_20_49_numRows = 0 %> <% Dim porto_50_99 Dim porto_50_99_numRows Set porto_50_99 = Server.CreateObject("ADODB.Recordset") porto_50_99.ActiveConnection = conexao porto_50_99.Source = "SELECT * FROM porto_30_99, porto_inform_pme ORDER BY CodPorto Asc" porto_50_99.CursorType = 0 porto_50_99.CursorLocation = 2 porto_50_99.LockType = 1 porto_50_99.Open() porto_50_99_numRows = 0 %> <% 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 Repeat1__numRows Dim Repeat1__index Repeat1__numRows = -1 Repeat1__index = 0 porto_20_49_numRows = porto_20_49_numRows + Repeat1__numRows %> <% Dim Repeat2__numRows Dim Repeat2__index Repeat2__numRows = -1 Repeat2__index = 0 porto_50_99_numRows = porto_50_99_numRows + Repeat2__numRows %> <%=(autenticar_logo.Fields.Item("nome_corretora").Value)%>
<% If Not topo_tabelas.EOF Or Not topo_tabelas.BOF Then %>
porto
<% If Not tabelas_promocoes.EOF Or Not tabelas_promocoes.BOF Then %>
<%=(tabelas_promocoes.Fields.Item("descricao_juridica").Value)%>
<% End If ' end Not tabelas_promocoes.EOF Or NOT tabelas_promocoes.BOF %>
" alt="logo_corretora" 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 %>
PORTO SEGURO PME - JUNHO 2010 (Validade 30/06/2010) - Taxa de Inscrição: <%=(porto_20_49.Fields.Item("taxa_inscricao").Value)%>
De 20 a 29 Vidas - Valores sem IOF
<% While ((Repeat1__numRows <> 0) AND (NOT porto_20_49.EOF)) %> <% Repeat1__index=Repeat1__index+1 Repeat1__numRows=Repeat1__numRows-1 porto_20_49.MoveNext() Wend %>
Faixa Etária
<%=(porto_20_49.Fields.Item("categoria1").Value)%>
<%=(porto_20_49.Fields.Item("categoria2").Value)%>
<%=(porto_20_49.Fields.Item("categoria3").Value)%>
<%=(porto_20_49.Fields.Item("categoria4").Value)%>
<%=(porto_20_49.Fields.Item("categoria5").Value)%>
<%=(porto_20_49.Fields.Item("categoria6").Value)%>
<%=(porto_20_49.Fields.Item("categoria7").Value)%>
<%=(porto_20_49.Fields.Item("categoria8").Value)%>
<%=(porto_20_49.Fields.Item("categoria9").Value)%>
<%=(porto_20_49.Fields.Item("categoria10").Value)%>
<%=(porto_20_49.Fields.Item("categoria11").Value)%>
<%=(porto_20_49.Fields.Item("idade").Value)%>
<%= FormatNumber((porto_20_49.Fields.Item("valor").Value), 2, -2, -2, -2) %>
<%= FormatNumber((porto_20_49.Fields.Item("valor_2").Value), 2, -2, -2, -2) %>
<%= FormatNumber((porto_20_49.Fields.Item("valor_3").Value), 2, -2, -2, -2) %>
<%= FormatNumber((porto_20_49.Fields.Item("valor_4").Value), 2, -2, -2, -2) %>
<%= FormatNumber((porto_20_49.Fields.Item("valor_5").Value), 2, -2, -2, -2) %>
<%= FormatNumber((porto_20_49.Fields.Item("valor_6").Value), 2, -2, -2, -2) %>
<%= FormatNumber((porto_20_49.Fields.Item("valor_7").Value), 2, -2, -2, -2) %>
<%= FormatNumber((porto_20_49.Fields.Item("valor_8").Value), 2, -2, -2, -2) %>
<%= FormatNumber((porto_20_49.Fields.Item("valor_9").Value), 2, -2, -2, -2) %>
<%= FormatNumber((porto_20_49.Fields.Item("valor_10").Value), 2, -2, -2, -2) %>
<%= FormatNumber((porto_20_49.Fields.Item("valor_11").Value), 2, -2, -2, -2) %>
De 30 a 99 Vidas - Valores sem IOF
<% While ((Repeat2__numRows <> 0) AND (NOT porto_50_99.EOF)) %> <% Repeat2__index=Repeat2__index+1 Repeat2__numRows=Repeat2__numRows-1 porto_50_99.MoveNext() Wend %>
Faixa Etária
<%=(porto_50_99.Fields.Item("categoria1").Value)%>
<%=(porto_50_99.Fields.Item("categoria2").Value)%>
<%=(porto_50_99.Fields.Item("categoria3").Value)%>
<%=(porto_50_99.Fields.Item("categoria4").Value)%>
<%=(porto_50_99.Fields.Item("categoria5").Value)%>
<%=(porto_50_99.Fields.Item("categoria6").Value)%>
<%=(porto_50_99.Fields.Item("categoria7").Value)%>
<%=(porto_50_99.Fields.Item("categoria8").Value)%>
<%=(porto_50_99.Fields.Item("categoria9").Value)%>
<%=(porto_50_99.Fields.Item("categoria10").Value)%>
<%=(porto_50_99.Fields.Item("categoria11").Value)%>
<%=(porto_50_99.Fields.Item("idade").Value)%>
<%= FormatNumber((porto_50_99.Fields.Item("valor").Value), 2, -2, -2, -2) %>
<%= FormatNumber((porto_50_99.Fields.Item("valor_2").Value), 2, -2, -2, -2) %>
<%= FormatNumber((porto_50_99.Fields.Item("valor_3").Value), 2, -2, -2, -2) %>
<%= FormatNumber((porto_50_99.Fields.Item("valor_4").Value), 2, -2, -2, -2) %>
<%= FormatNumber((porto_50_99.Fields.Item("valor_5").Value), 2, -2, -2, -2) %>
<%= FormatNumber((porto_50_99.Fields.Item("valor_6").Value), 2, -2, -2, -2) %>
<%= FormatNumber((porto_50_99.Fields.Item("valor_7").Value), 2, -2, -2, -2) %>
<%= FormatNumber((porto_50_99.Fields.Item("valor_8").Value), 2, -2, -2, -2) %>
<%= FormatNumber((porto_50_99.Fields.Item("valor_9").Value), 2, -2, -2, -2) %>
<%= FormatNumber((porto_50_99.Fields.Item("valor_10").Value), 2, -2, -2, -2) %>
<%= FormatNumber((porto_50_99.Fields.Item("valor_11").Value), 2, -2, -2, -2) %>

 


Última Alteração em 01/06/2010 <% notas_pessoais.Close() Set notas_pessoais = Nothing %> <% porto_20_49.Close() Set porto_20_49 = Nothing %> <% porto_50_99.Close() Set porto_50_99 = Nothing %> <% tabelas_promocoes.Close() Set tabelas_promocoes = Nothing %> <% autenticar_logo.Close() Set autenticar_logo = Nothing %> <% conexao.close set conexao=nothing %>