<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Ver&atildeo 2008</title>
</head>

<body>

<DIV align=center>
<CENTER>
<TABLE height=17 width=100%>
  <TBODY>
  <TR border=1 bgcolor=#99ccff>
    <TD borderColor=#99ccff borderColorLight=#99ccff align=middle width=127 
     borderColorDark=#99ccff height=11><SPAN 
      style="FONT-SIZE: 13pt; FONT-FAMILY: 'Times New Roman'; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: PT-BR; mso-fareast-language: PT-BR; mso-bidi-language: AR-SA"><A href="http://www.ufpb.br/"><IMG height=112 
      src="brasao2.gif" width=75 border=0></A></SPAN></TD>
    <TD borderColor=#99ccff borderColorLight=#99ccff align=middle width=488 
     borderColorDark=#99ccff height=11>
      <P align=center><FONT face="Arial Black" size=5>Universidade Federal da 
      Paraíba</FONT><FONT color=#000000><FONT face="Arial Black" size=4> CCEN - 
      Departamento de Matemática</FONT><FONT face="Arial Black" color=#000080 
      size=4><BR></FONT></FONT><FONT face="Arial Black" color=#000000 
      size=4>Pós-Graduação em Matemática</FONT></P></TD>
    <TD borderColor=#99ccff borderColorLight=#99ccff align=middle width=126 
     borderColorDark=#99ccff height=11><A 
      href="http://www.mat.ufpb.br/posgrad.htm"><IMG height=81 
      src="pgmat.jpg" width=125 border=0></TD></TR> 
    <TR><td></TD>
     <TD align="center" border="0"> <h1><font color=#99cc00>VER&AtildeO 2008</font></h1>
</A></TD></TR></TABLE></CENTER></DIV>

     
<?php

include "/~milton/minhapag/conecta_mysql.inc";

$resultado=mysql_query("select pess.*, disc.*, loc.* from informacao pess, curso disc, localidade loc where pess.codigo=disc.codigo and disc.codigo=loc.codigo ");

//$resultado=mysql_query("select pess.*, disc.* from informacao pess, //curso disc where pess.codigo=disc.codigo");

//$infsql="select * from informacao";

//$resultado=mysql_query($infsql);
//echo "imprima qualquer coisa";
echo "<TABLE width=100% border=\"1\" cellpadding=\"5\" cellspacing=\"0\" align=\"center\">";
echo "<tr bgcolor=#88ccff>";
echo "<td><b>Nº</b></td>";
echo "<td><b>Nome</b></td>";
echo "<td><b>Institui&ccedil&atildeo</b></td>";
echo "<td><b>Estado</b></td>";
/*echo "<td><b>DDD</b></td>";
echo "<td><b>Telefone</b></td>";
echo "<td><b>CPF</b></td>";*/
echo "<td><b>Disciplina(s) Escolhida(s)</b></td>";
/*echo "<td><b>Emprego</b></td>";
echo "<td><b>Cidade</b></td>";*/
echo "<td><b>Situa&ccedil&atildeo</b></td>";
echo "</tr>";
$linhas=mysql_num_rows($resultado);
//echo $linhas;
for($i=0;$i<$linhas;$i++)
{
 $registro=mysql_fetch_array($resultado);
 echo "<tr>";
 echo "<td>";
 if($registro[codigo]>200){
 echo "Ja ultrapassamos a quantidade  m&aacutexima de alunos inscritos no  Ver&atildeo!";
 exit;
 } 
 else
 {
 echo " $registro[codigo] <br>";
 echo "</td>";
 echo "<td>";
 echo  "$registro[nome] <br>";
 echo  "</td>";
 echo "<td>";
 echo  "  $registro[instituicao] <br>";
 echo "</td>";
 echo "<td>";
 echo " $registro[estado] <br>";
 echo "</td>";
 /*echo "<td>";
 echo " $registro[ddd] <br>";
 echo "</td>";
 echo "<td>";
 echo " $registro[telefone] <br>";
 echo "</td>";
 echo "<td>";
 echo "$registro[cpf] <br>";
 echo "</td>";*/
 echo "<td>";
 switch($registro[disciplina]){
 case 1:
 echo "&Aacutelgebra Linear<br>";
 break;
 case 2:
 echo " An&aacutelise <br>";
 break;
 case 3: 
 echo "Geometria Diferencial";
 break;
 case 4:
 echo "An&aacutelise e &Aacutelgebra Linear";
 break;
 case 5:
 echo "&Aacutelgebra Linear e Geometria Diferencial";
 break;
 case 6:
 echo "An&aacutelise e Geometria Diferencial";
 break;
 case 7:
 echo "An&aacutelise, &Aacutelgebra Linear e Geometria Diferencial";
 break;
 }
 echo "  <br>";
 echo "</td>";
/* echo "<td>";
 echo " $registro[emprego] <br>";
 echo "</td>";
 echo "<td>";
 echo "$registro[cidade]<br>";
 echo "</td>";*/
 echo "<td>";
 switch($registro[numero]){
 case 1;
 echo "Inscrito<br>";
 break;
 case 2;
 echo "Inscrito com Bolsa";
 break;
 }
 }
 echo "</td>";
 
}
echo "</TABLE><br>";
mysql_free_result($resultado);
mysql_close($conexao);
?>