Last active
May 13, 2020 11:32
-
-
Save flpms/4d647a2e212f50a55b4799ba640d1f91 to your computer and use it in GitHub Desktop.
Cadastro do jornal nova ação feito em 2008 para o trabalho de conclusão de curso de web developer na microcamp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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>Cadastro De Alunos</title> | |
<style type="text/css"> | |
<!-- | |
@import url("estiloNovaAcao.css"); | |
#boxCadastrados{ | |
position:absolute; | |
top:10px; | |
left:350px; | |
width:500px; | |
height:auto; | |
} | |
#BarCad{ | |
width:500px; | |
} | |
.Dados{ | |
position:absolute; | |
width: 150px; | |
height: 20px; | |
text-align:center; | |
font-family:Arial, Helvetica, sans-serif; | |
font-weight:bold; | |
top:50px; | |
} | |
#RG{ | |
background-image:url(BarraBox.png); | |
background-color:#99CC66; | |
left:5px; | |
top:40px; | |
} | |
#Nome{ | |
background-image:url(BarraBox.png); | |
background-color:#99CC66; | |
} | |
#CadExp{ | |
background-image:url(BarraBox.png); | |
background-color:#99CC66; | |
} | |
#RGCad{ | |
border: #000000 solid 1px; | |
} | |
#NomeCad{ | |
border: #000000 solid 1px; | |
} | |
#DatExp{ | |
border: #000000 solid 1px; | |
} | |
#RgA{ | |
border: #000000 solid 1px; | |
} | |
#NomeAlu{ | |
border: #000000 solid 1px; | |
} | |
#boxConsCad{ | |
top:250px; | |
left:20px; | |
height:130px; | |
} | |
#BtnConCad{ | |
position:absolute; | |
width: 115px; | |
text-align: center; | |
height: 20px; | |
background-image: url(BarraBox.png); | |
background-color:#99CC66; | |
border-color:#CCCCCC; | |
border-style:solid; | |
border-width:1px; | |
left: 75px; | |
top: 100px; | |
} | |
#BtnConCad:hover{ | |
background-image:url(BotaoLink.png); | |
border-color:#000000; | |
border-width:1px; | |
border-style:ridge; | |
} | |
--> | |
</style> | |
</head> | |
<body> | |
<div id="boxCadastro" class="divBox"> | |
<span class="Box">Cadastro</span> | |
<form method="post" action="Insere.php"> | |
<div id="TextLogin"> | |
<label class="Artigos">Nome: </label> | |
<input type="text" id="txtNome" name="txtNome"/> | |
</div> | |
<div id="TextSenha"> | |
<label class="Artigos">RG: </label> | |
<input type="text" class="senha" id="txtSenha" name="txtSenha" /> | |
</div> | |
<div id="TextTurma"> | |
<label class="Artigos">Turma: </label> | |
<input type="text" class="senha" id="txtTurma" name="txtTurma" /> | |
</div> | |
<div id="TextAno"> | |
<label class="Artigos">Expira em : </label> | |
<select class="senha" id="txtExpira" name="txtExpira"/> | |
<option value="6">6 meses</option> | |
<option value="12">12 meses</option> | |
<option value="18">18 meses</option> | |
<option value="24">24 meses</option> | |
</select> | |
</div> | |
<input type="submit" id="BtnEnviarCad" value="OK"> | |
</form> | |
</div> | |
<div id="boxCadastrados" class="divBox"> | |
<span class="Box" id="BarCad">Cadastrados</span> | |
<?php | |
$conexao = mysql_connect("localhost","root",""); | |
mysql_select_db("JNA", $conexao); | |
$sql = "SELECT * FROM alunos"; | |
$result = mysql_query($sql,$conexao); | |
while ($linha = mysql_fetch_row($result)) | |
{ | |
printf ("RG do Aluno: $linha[0] <br/>"); | |
printf ("Nome: $linha[1] <br/>"); | |
printf ("Turma: $linha[2] <br/>"); | |
printf ("Fim do Cadastro: $linha[3] <br/>"); | |
printf ("<hr/>"); | |
} | |
?> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment