<?xml version="1.0" encoding="iso-8859-1"?><%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!--#include file="Connections/connAmigoUFLA.asp" -->
<%
Dim RS_Doacoes
Dim RS_Doacoes_numRows

Set RS_Doacoes = Server.CreateObject("ADODB.Recordset")
RS_Doacoes.ActiveConnection = MM_connAmigoUFLA_STRING
RS_Doacoes.Source = "SELECT *  FROM Doacao, Favorecido, TipoDoacao, TipoDoador, VinculoUFLA  WHERE Doacao.mostrar AND (Doacao.idVinculoUFLA = VinculoUFLA.idVinculoUFLA) AND (Doacao.idFavorecido = Favorecido.idFavorecido)  AND (Doacao.idTipoDoacao = TipoDoacao.idTipoDoacao)  AND (Doacao.idTipoDoador = TipoDoador.idTipoDoador)  ORDER BY NomeCompleto ASC"
RS_Doacoes.CursorType = 0
RS_Doacoes.CursorLocation = 2
RS_Doacoes.LockType = 1

RS_Doacoes.Open()

RS_Doacoes_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index

Repeat1__numRows = -1
Repeat1__index = 0
RS_Doacoes_numRows = RS_Doacoes_numRows + Repeat1__numRows
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>.: Doa&ccedil;&otilde;es - UFLA :.</title>
<style type="text/css">
<!--
.solid {
	border: 1px solid #336699;
}
a {
	text-decoration: none;
}
.preto {
	color: #000000;
}
-->
</style>
<style type="text/css">
<!--
.base {
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-top-style: none;
	border-right-style: none;
	border-bottom-style: solid;
	border-left-style: none;
	border-top-color: #000000;
	border-right-color: #000000;
	border-bottom-color: #000000;
	border-left-color: #000000;
}
-->
</style>
</head>

<body background="fundoufla.gif" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="780" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="solid">
  <tr> 
    <td><table width="780" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td><img src="topo.jpg" width="780" height="86" /></td>
        </tr>
        <tr> 
          <td bgcolor="badaf7"><table width="780" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="218"><div align="center"><font size="2" face="Arial, Helvetica, sans-serif"><strong><a href="index.htm" class="preto">Programa 
                    Amigos da UFLA</a></strong></font></div></td>
                <td width="170"><div align="center"><font size="2" face="Arial, Helvetica, sans-serif"><strong><a href="doacao_list.asp" class="preto">Doa&ccedil;&otilde;es 
                    Recebidas </a></strong></font></div></td>
                <td width="191"><div align="center"><font size="2" face="Arial, Helvetica, sans-serif"><strong><a href="como_doar.htm" class="preto">Como 
                    Doar </a></strong></font></div></td>
                <td width="201"><div align="center"><font size="2" face="Arial, Helvetica, sans-serif"><strong><a href="doacao_form.asp" class="preto">Formul&aacute;rio 
                    para Doa&ccedil;&otilde;es</a></strong></font></div></td>
              </tr>
            </table></td>
        </tr>
      </table>
      <br /> <table width="780" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td valign="top"><div align="justify"></div>
            <table width="100%" border="0" cellspacing="2" cellpadding="1">
              <tr> 
                <td width="16%" class="style3"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>Tipo 
                  de Doador </strong></font></td>
                <td width="16%" class="style3"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>Nome 
                  Completo</strong></font></td>
                <td width="13%" class="style3"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>CPF/CNPJ</strong></font></td>
                <td width="27%" class="style3"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>Tipo 
                  de Doa&ccedil;&atilde;o </strong></font></td>
                <td width="27%" class="style3"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>Favorecido</strong></font></td>
                <td width="16%" class="style3"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>Valor</strong></font></td>
                <td width="1%">&nbsp;</td>
              </tr>
              <% 
While ((Repeat1__numRows <> 0) AND (NOT RS_Doacoes.EOF)) 
%>
              <%	
	if (RS_Doacoes.Fields.Item("TipoDoador.idTipoDoador").Value) = 1 then
		NomeCompleto 	= " - - - "
		CPFCNPJ 		= " - - - "
	else
		NomeCompleto 	= (RS_Doacoes.Fields.Item("NomeCompleto").Value)
		CPFCNPJ 		= (RS_Doacoes.Fields.Item("CPFCNPJ").Value)
	end if
%>
              <tr bgcolor="#D9F8FF" class="base"> 
                <td><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><span class="style3"><%=(RS_Doacoes.Fields.Item("TipoDoador").Value)%></span></font></td>
                <td><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><span class="style3"><%=NomeCompleto%></span></font></td>
                <td><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><span class="style3"><%=CPFCNPJ%></span></font></td>
                <td><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><span class="style3"><%=(RS_Doacoes.Fields.Item("TipoDoacao").Value)%></span></font></td>
                <td><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><span class="style3"><%=(RS_Doacoes.Fields.Item("Descricao").Value)%></span></font></td>
                <td><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><span class="style3"><%=(RS_Doacoes.Fields.Item("ValorDoacao").Value)%></span></font></td>
                <td>&nbsp;</td>
              </tr>
              <% 
  Repeat1__index=Repeat1__index+1
  Repeat1__numRows=Repeat1__numRows-1
  RS_Doacoes.MoveNext()
Wend
%>
            </table>
            <p></p></td>
        </tr>
      </table></td>
  </tr>
</table>
<p>&nbsp;</p>
</body>
</html>
<%
RS_Doacoes.Close()
Set RS_Doacoes = Nothing
%>

