-
Notifications
You must be signed in to change notification settings - Fork 0
/
removerAluno.php
109 lines (109 loc) · 6.43 KB
/
removerAluno.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css">
<link rel="stylesheet" href="css/lib/alertify.min.css">
<link rel="stylesheet" href="css/lib/default.min.css">
<title>Editar Aluno</title>
</head>
<body>
<script src="js/lib/alertify.min.js"></script>
<header>
<div class="navbar navbar-expand-sm navbar-dark bg-dark">
<div class="container-fluid">
<a class="navbar-brand" href="index.php">Avaliação</a>
<button class="navbar-toggler border-0 shadow-none" type="button" data-bs-toggle="collapse" data-bs-target="#navbar-responsiva" aria-controls="navbar-responsiva" aria-expanded="false" aria-label="navbar-responsiva">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse flex-grow-0" id="navbar-responsiva">
<nav>
<ul class="navbar-nav">
<li class="nav-item dropdown">
<a href="#" class="nav-link active" aria-current="page" role="button" id="dropAluno" data-bs-toggle="dropdown" aria-expanded="false">Aluno</a>
<ul class="dropdown-menu dropdown-menu-dark" aria-labelledby="dropAluno">
<li><a href="index.php" class="dropdown-item">Lista</a></li>
<li><a href="cadastrarAluno.php" class="dropdown-item">Cadastrar</a></li>
<li><a href="editarAluno.php" class="dropdown-item">Editar</a></li>
<li><a href="removerAluno.php" class="dropdown-item active" aria-current="page">Remover</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a href="#" class="nav-link" role="button" id="dropCurso" data-bs-toggle="dropdown" aria-expanded="false">Curso</a>
<ul class="dropdown-menu dropdown-menu-dark" aria-labelledby="dropCurso">
<li><a href="listarCurso.php" class="dropdown-item">Lista</a></li>
<li><a href="cadastrarCurso.php" class="dropdown-item">Cadastrar</a></li>
<li><a href="editarCurso.php" class="dropdown-item">Editar</a></li>
<li><a href="removerCurso.php" class="dropdown-item">Remover</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a href="#" class="nav-link" role="button" id="dropTurma" data-bs-toggle="dropdown" aria-expanded="false">Turma</a>
<ul class="dropdown-menu dropdown-menu-dark" aria-labelledby="dropTurma">
<li><a href="listarTurma.php" class="dropdown-item">Lista</a></li>
<li><a href="cadastrarTurma.php" class="dropdown-item">Cadastrar</a></li>
<li><a href="editarTurma.php" class="dropdown-item">Editar</a></li>
<li><a href="removerTurma.php" class="dropdown-item">Remover</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a href="#" class="nav-link" role="button" id="dropRelacionamento" data-bs-toggle="dropdown" aria-expanded="false">Relacionamento</a>
<ul class="dropdown-menu dropdown-menu-dark" aria-labelledby="dropRelacionamento">
<li><a href="index.php" class="dropdown-item">Lista</a></li>
<li><a href="cadastrarRelacionamento.php" class="dropdown-item">Cadastrar</a></li>
<li><a href="editarRelacionamento.php" class="dropdown-item">Editar</a></li>
<li><a href="removerRelacionamento.php" class="dropdown-item">Remover</a></li>
</ul>
</li>
</ul>
</nav>
</div>
</div>
</div>
</header>
<main class="container-fluid">
<a href="listarAluno.php" class="btn btn-secondary my-3"><i class="bi bi-arrow-return-left"></i> Voltar</a>
<div class="row justify-content-center">
<div class="col-auto">
<h2>Remover Aluno</h2>
<form class="needs-validation" method="POST" action="rAluno.php" novalidate>
<div class="pb-3 mb-2 border-bottom">
<label for="consulta_id" class="form-label">Pesquisar relacionamento por ID:</label>
<div class="input-group">
<input id="consulta_id" class="form-control" type="text" <?php if(isset($_GET['matricula'])) { echo "value={$_GET['matricula']}"; }?>>
<button id="btnConsultar" data-ref="consultarAluno.php" class="btn btn-warning" type="button"><i class="bi bi-search"></i></button>
</div>
<div id="tabela" class="d-none">
<div class="table-responsive-sm mt-2">
<table class="table table-hover">
<thead>
<tr class="table-dark">
<th>Matricula</th>
<th>Aluno</th>
<th>Email</th>
</tr>
<tbody id="consulta">
</tbody>
</thead>
</table>
</div>
</div>
</div>
<div>
<label for="matricula" class="form-label">Matricula do Aluno:</label>
<input id="matricula" class="form-control" type="number" name="matricula" required>
</div>
<div class="mt-3">
<input type="submit" class="btn btn-danger" value="Remover">
</div>
</form>
</div>
</div>
</main>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4" crossorigin="anonymous"></script>
<script src="js/Ajax.js"></script>
<script src="js/app.js"></script>
</body>
</html>