From e6dd145f20adc3d331e0d99161076f7c00d956cb Mon Sep 17 00:00:00 2001
From: Caroline Cordeiro <91352249+carolcordeiro@users.noreply.github.com>
Date: Sat, 3 Jun 2023 12:23:10 -0300
Subject: [PATCH] Add files via upload
---
cadastros/cadastra_aluno.php | 48 +++++++++++++++++++++++++++
cadastros/cadastro_func.php | 41 +++++++++++++++++++++++
cadastros/cadastro_livro.php | 50 ++++++++++++++++++++++++++++
conexaoBD.php | 17 ++++++++++
consulta.php | 43 ++++++++++++++++++++++++
css/acervo.css | 52 +++++++++++++++++++++++++++++
css/cadastro.css | 54 ++++++++++++++++++++++++++++++
css/index.css | 49 +++++++++++++++++++++++++++
css/index1.css | 55 +++++++++++++++++++++++++++++++
css/login.css | 64 ++++++++++++++++++++++++++++++++++++
css/resultado_c.css | 32 ++++++++++++++++++
erro_loguin.php | 20 +++++++++++
index.html | 14 ++++++++
loginaluno.php | 32 ++++++++++++++++++
loginfuncionario.php | 32 ++++++++++++++++++
principal_aluno.php | 15 +++++++++
principal_func.php | 18 ++++++++++
resp_cadastro_aluno.php | 23 +++++++++++++
resp_cadastro_func.php | 21 ++++++++++++
resp_cadastro_livro.php | 23 +++++++++++++
resp_consulta_acervo.php | 26 +++++++++++++++
resp_login_aluno.php | 22 +++++++++++++
resp_login_func.php | 16 +++++++++
resultado_cadastramento.php | 20 +++++++++++
24 files changed, 787 insertions(+)
create mode 100644 cadastros/cadastra_aluno.php
create mode 100644 cadastros/cadastro_func.php
create mode 100644 cadastros/cadastro_livro.php
create mode 100644 conexaoBD.php
create mode 100644 consulta.php
create mode 100644 css/acervo.css
create mode 100644 css/cadastro.css
create mode 100644 css/index.css
create mode 100644 css/index1.css
create mode 100644 css/login.css
create mode 100644 css/resultado_c.css
create mode 100644 erro_loguin.php
create mode 100644 index.html
create mode 100644 loginaluno.php
create mode 100644 loginfuncionario.php
create mode 100644 principal_aluno.php
create mode 100644 principal_func.php
create mode 100644 resp_cadastro_aluno.php
create mode 100644 resp_cadastro_func.php
create mode 100644 resp_cadastro_livro.php
create mode 100644 resp_consulta_acervo.php
create mode 100644 resp_login_aluno.php
create mode 100644 resp_login_func.php
create mode 100644 resultado_cadastramento.php
diff --git a/cadastros/cadastra_aluno.php b/cadastros/cadastra_aluno.php
new file mode 100644
index 0000000..9a6e1ec
--- /dev/null
+++ b/cadastros/cadastra_aluno.php
@@ -0,0 +1,48 @@
+
+
+
+
+
+
+ Cadastrar Aluno
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/cadastros/cadastro_func.php b/cadastros/cadastro_func.php
new file mode 100644
index 0000000..0774bcc
--- /dev/null
+++ b/cadastros/cadastro_func.php
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+ Sistema Bibliotecário
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/cadastros/cadastro_livro.php b/cadastros/cadastro_livro.php
new file mode 100644
index 0000000..b3c7064
--- /dev/null
+++ b/cadastros/cadastro_livro.php
@@ -0,0 +1,50 @@
+
+
+
+
+
+
+
+ Sistema Bibliotecário
+
+
+
+
+
+
+
+
+
diff --git a/conexaoBD.php b/conexaoBD.php
new file mode 100644
index 0000000..ce096d8
--- /dev/null
+++ b/conexaoBD.php
@@ -0,0 +1,17 @@
+ connect_error){
+ echo "Falha na conexão: (".$conn -> connect_error.") ";
+}
+//echo "Conectado com sucesso! ";
+
+
+?>
\ No newline at end of file
diff --git a/consulta.php b/consulta.php
new file mode 100644
index 0000000..e2f6a30
--- /dev/null
+++ b/consulta.php
@@ -0,0 +1,43 @@
+query($sql);
+?>
+
+
+
+
+ Acervo
+
+
+
+ Acervo
+
+
+
+ ISBN
+ Título
+ Autor
+ Quantidade
+ Edição
+
+
+
+
+ ";
+ echo"".$user['isbn']." ";
+ echo"".$user['titulo']." ";
+ echo"".$user['autor']." ";
+ echo"".$user['qntd']." ";
+ echo"".$user['edicao']." ";
+ echo"";
+ }
+ ?>
+
+
+ VOLTAR
+
+
\ No newline at end of file
diff --git a/css/acervo.css b/css/acervo.css
new file mode 100644
index 0000000..90e0806
--- /dev/null
+++ b/css/acervo.css
@@ -0,0 +1,52 @@
+body{
+
+ background-color: #555;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+}
+
+table{
+ background-color: #eee;
+ padding: 10px;
+ border-radius: 20px;
+ font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
+ color: #555;
+}
+
+h1{
+ background-color: #eee;
+ width: 20%;
+ text-align: center;
+ padding: 5px;
+ font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
+ color: #555;
+ border-width: 2px;
+ border-style: outset;
+ border-color: buttonborder;
+ border-image: initial;
+}
+
+thead{
+ font-size: larger;
+}
+
+th{
+ padding-bottom: 5px;
+}
+
+td{
+ padding-left: 15px;
+ padding-right: 15px;
+}
+
+button{
+ background: #eee;
+ border-radius: 10px;
+ color: #555;
+ font-size: 100%;
+ margin:30px;
+ padding: 10px;
+ border-width: 2px;
+ border-style: outset;
+}
\ No newline at end of file
diff --git a/css/cadastro.css b/css/cadastro.css
new file mode 100644
index 0000000..90b3cb0
--- /dev/null
+++ b/css/cadastro.css
@@ -0,0 +1,54 @@
+body{
+ background-color: #555;
+ display: flex;
+ justify-content: center;
+}
+
+main{
+ padding: 40px;
+ background-color: #eee;
+ border-radius: 25px;
+}
+
+form{
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+}
+
+p{
+ font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
+ color: #666666;
+ font-size: 1.5em;
+ margin-top: 0px;
+}
+
+.input input {
+ background: #fff;
+ border: 2px solid #ccc;
+ border-radius: 5px;
+ font-size: 120%;
+ height: 25px;
+ padding: 0 5px;
+}
+
+.input label {
+ font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
+ color: #666666;
+ margin-top: 5px;
+}
+
+button {
+ background: #5cb85c;
+ border: 0 none;
+ border-radius: 25px;
+ color: #fff;
+ cursor: pointer;
+ display: inline-block;
+ white-space: nowrap;
+ font-size: 100%;
+ height: 25px;
+ width: 200px;
+ margin-top: 25px;
+}
+
\ No newline at end of file
diff --git a/css/index.css b/css/index.css
new file mode 100644
index 0000000..be54326
--- /dev/null
+++ b/css/index.css
@@ -0,0 +1,49 @@
+body{
+ display: flex;
+ align-items: center;
+ flex-direction: column;
+ justify-content: center;
+ background-color: #555;
+ margin-left: 0px;
+ margin-right: 0px;
+}
+main{
+ margin-top: 10%;
+ display: grid;
+ grid-template-columns: 20% 20% 20%;
+ justify-content: space-around;
+ justify-items: center;
+}
+
+div{
+ background-color: #eee;
+ border-radius: 20px;
+ padding: 10px;
+ width: 300px;
+ height: 150px;
+ display: flex;
+ margin: 10px;
+ align-items: center;
+ font-family: 'Cambria', 'Cochin', Georgia, Times, 'Times New Roman', serif;
+ font-size: 2em;
+ text-align: center;
+}
+a{
+ outline: none;
+ text-decoration: none;
+}
+a:link{
+ color: #666666;
+}
+a:visited{
+ color: #666666;
+}
+
+button{
+ background: #eee;
+ border-radius: 10px;
+ color: #555;
+ font-size: 100%;
+ margin:30px;
+ padding: 10px;
+}
\ No newline at end of file
diff --git a/css/index1.css b/css/index1.css
new file mode 100644
index 0000000..cecf042
--- /dev/null
+++ b/css/index1.css
@@ -0,0 +1,55 @@
+body{
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ flex-direction: column;
+ background-color: #555;
+ margin-left: 0px;
+ margin-right: 0px;
+}
+
+main{
+ margin-top: 10%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+
+div{
+ background-color: #eee;
+ border-radius: 20px;
+ padding: 10px;
+ width: 300px;
+ height: 150px;
+ display: flex;
+ margin: 10px;
+ align-items: center;
+ font-family: 'Cambria', 'Cochin', Georgia, Times, 'Times New Roman', serif;
+ font-size: 2em;
+ text-align: center;
+ justify-content: center;
+}
+
+a{
+ outline: none;
+ text-decoration: none;
+}
+
+a:link{
+ color: #666666;
+}
+a:visited{
+ color: #666666;
+}
+
+
+button{
+ background: #eee;
+ border-radius: 10px;
+ color: #555;
+ font-size: 100%;
+ margin:30px;
+ padding: 10px;
+ border-width: 2px;
+ border-style: outset;
+}
\ No newline at end of file
diff --git a/css/login.css b/css/login.css
new file mode 100644
index 0000000..d3edc39
--- /dev/null
+++ b/css/login.css
@@ -0,0 +1,64 @@
+body{
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background-color: #555;
+ margin-left: 0px;
+ margin-right: 0px;
+}
+
+main{
+ margin-top: 10%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+
+form{
+ background-color: #eee;
+ border-radius: 20px;
+ padding: 10px;
+ width: 250px;
+ height: 250px;
+ display: flex;
+ align-items: center;
+ justify-content: space-evenly;
+ flex-direction: column;
+}
+
+form div{
+ width: 200px;
+}
+
+p{
+ font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
+ color: #666666;
+ font-size:115%;
+ margin: 0px;
+}
+
+.input input{
+ background: #fff;
+ border: 2px solid #ccc;
+ border-radius: 5px;
+ height: 25px;
+
+}
+
+.input label{
+ font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
+ color: #666666;
+}
+
+button{
+ background: #5cb85c;
+ border: 0 none;
+ border-radius: 25px;
+ color: #fff;
+ cursor: pointer;
+ display: inline-block;
+ white-space: nowrap;
+ font-size: 100%;
+ height: 25px;
+ width: 200px;
+}
diff --git a/css/resultado_c.css b/css/resultado_c.css
new file mode 100644
index 0000000..b153973
--- /dev/null
+++ b/css/resultado_c.css
@@ -0,0 +1,32 @@
+body{
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background-color: #555;
+ margin-left: 0px;
+ margin-right: 0px;
+}
+
+main{
+ margin-top: 15% ;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+}
+
+p{
+ color: #eee;
+ font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
+ font-size: 200%;
+}
+
+button{
+ background: #eee;
+ border: 0 none;
+ border-radius: 10px;
+ color: #555;
+ display: inline-block;
+ font-size: 100%;
+ height: 25px;
+ width: 200px;
+}
\ No newline at end of file
diff --git a/erro_loguin.php b/erro_loguin.php
new file mode 100644
index 0000000..07ec0a3
--- /dev/null
+++ b/erro_loguin.php
@@ -0,0 +1,20 @@
+
+
+
+
+
+ Erro ao Logar
+
+
+
+
+
+
+
+ VOLTAR
+
+
+
+
\ No newline at end of file
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..a4d517c
--- /dev/null
+++ b/index.html
@@ -0,0 +1,14 @@
+
+
+
+
+ Sistema Bibliotecário
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/loginaluno.php b/loginaluno.php
new file mode 100644
index 0000000..c228692
--- /dev/null
+++ b/loginaluno.php
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+ Sistema Bibliotecário
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/loginfuncionario.php b/loginfuncionario.php
new file mode 100644
index 0000000..94f643b
--- /dev/null
+++ b/loginfuncionario.php
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+ Sistema Bibliotecário
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/principal_aluno.php b/principal_aluno.php
new file mode 100644
index 0000000..481fee3
--- /dev/null
+++ b/principal_aluno.php
@@ -0,0 +1,15 @@
+
+
+
+
+ Sistema Bibliotecário
+
+
+
+
+
+
+
+ SAIR
+
+
\ No newline at end of file
diff --git a/principal_func.php b/principal_func.php
new file mode 100644
index 0000000..18267d1
--- /dev/null
+++ b/principal_func.php
@@ -0,0 +1,18 @@
+
+
+
+
+ Sistema Bibliotecário
+
+
+
+
+
+
+
+
+
+
+ SAIR
+
+
\ No newline at end of file
diff --git a/resp_cadastro_aluno.php b/resp_cadastro_aluno.php
new file mode 100644
index 0000000..3028a6d
--- /dev/null
+++ b/resp_cadastro_aluno.php
@@ -0,0 +1,23 @@
+
\ No newline at end of file
diff --git a/resp_cadastro_func.php b/resp_cadastro_func.php
new file mode 100644
index 0000000..2418c69
--- /dev/null
+++ b/resp_cadastro_func.php
@@ -0,0 +1,21 @@
+
\ No newline at end of file
diff --git a/resp_cadastro_livro.php b/resp_cadastro_livro.php
new file mode 100644
index 0000000..35521ab
--- /dev/null
+++ b/resp_cadastro_livro.php
@@ -0,0 +1,23 @@
+
\ No newline at end of file
diff --git a/resp_consulta_acervo.php b/resp_consulta_acervo.php
new file mode 100644
index 0000000..0ab6af5
--- /dev/null
+++ b/resp_consulta_acervo.php
@@ -0,0 +1,26 @@
+query($sql);
+if ($result->num_rows > 0) { /*saída de dados de cada coluna */
+ while ($row = $result->fetch_assoc()) {
+ echo "livro encontrado ";
+
+ echo "";
+ echo "Título Autor ";
+ foreach($result as $p_titulo => $p_autor){
+ print "$p_titulo $p_autor ";
+ }
+ echo "
";
+
+ }
+} else {
+ echo " 0 resultados";
+}
+$conn->close();
+?>
\ No newline at end of file
diff --git a/resp_login_aluno.php b/resp_login_aluno.php
new file mode 100644
index 0000000..68a5441
--- /dev/null
+++ b/resp_login_aluno.php
@@ -0,0 +1,22 @@
+query($sql);
+
+if ($result->num_rows > 0) { /*saída de dados de cada coluna */
+ while ($row = $result->fetch_assoc()) {
+ echo "Bem vindo! ";
+ header("location: principal_aluno.php");
+ }
+} else {
+ $_SESSION['erro'] = "Erro ao tentar fazer Login!";
+ header("location: erro_loguin.php");
+}
+
+$conn->close();
+?>
\ No newline at end of file
diff --git a/resp_login_func.php b/resp_login_func.php
new file mode 100644
index 0000000..0fd9302
--- /dev/null
+++ b/resp_login_func.php
@@ -0,0 +1,16 @@
+query($sql);
+
+if ($result->num_rows > 0) { /*saída de dados de cada coluna */
+ header("location: principal_func.php");
+} else {
+ $_SESSION['erro'] = "Erro ao tentar fazer Login!";
+ header("location: erro_loguin.php");
+}
+$conn->close();
+?>
\ No newline at end of file
diff --git a/resultado_cadastramento.php b/resultado_cadastramento.php
new file mode 100644
index 0000000..d1260f1
--- /dev/null
+++ b/resultado_cadastramento.php
@@ -0,0 +1,20 @@
+
+
+
+
+
+ Cadastramento
+
+
+
+
+
+
+
+ VOLTAR
+
+
+
+
\ No newline at end of file