 |
|
 |
|
• Alterar Idioma e Cambio
<%If msg_resultado <> "" Then%>
|
|
<%End if%>
BANDEIRA |
IDIOMA |
MOEDA |
VALOR |
<%
' Abre conexao com banco de dados
Set Conexao = Server.CreateObject("ADODB.Connection")
Conexao.Open Application("StringConexaoBanco")
' Le informacoes das marcas
Set RS_IdiomaeCambio = Server.CreateObject("ADODB.Recordset")
RS_IdiomaeCambio.CursorLocation = 3
RS_IdiomaeCambio.CursorType = 0
RS_IdiomaeCambio.LockType = 3
RS_IdiomaeCambio.Open "SELECT codigo_idiomaecambio, idioma, nome_moeda, simbolo_moeda, valor_moeda, url_imagemPais FROM IdiomaseCambios", Conexao
' Checa se existem marcas no banco de dados
If RS_IdiomaeCambio.Eof Then
%>
Não há idioma e taxa de câmbio configurada |
<%
Else
' Mostra tabela de marcas
While Not RS_IdiomaeCambio.EOF
If RS_IdiomaeCambio.AbsolutePosition Mod 2 = 0 Then
strColor = "class='Linha2Tabela'"
Else
strColor = "class='Linha1Tabela'"
End If
%>
>
| |
<%= RS_IdiomaeCambio("idioma") %> |
<%= RS_IdiomaeCambio("nome_moeda") %> |
<%= FormatNumber(RS_IdiomaeCambio("valor_moeda"),3) %> |
<%
RS_IdiomaeCambio.MoveNext
Wend
End If
RS_IdiomaeCambio.Close
Conexao.Close
Set RS_IdiomaeCambio = Nothing
Set Conexao = Nothing
%>
|
 |
|
|
 |