Skip to content

Commit

Permalink
ajuste de emprestimo e devolução dos livros
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre-nemesis committed Sep 2, 2024
1 parent b9fe571 commit 454c8f5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
8 changes: 5 additions & 3 deletions atv_pratica/views/Biblioteca/devolverLivro.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@
<label class="form-group" for="livro">ESCOLHA UM LIVRO:</label>
<select name="livro" id="livro" required>
<?php foreach ($livros as $livro): ?>
<option value="<?php echo $livro->getTitulo(); ?>">
<?php echo $livro->getTitulo(); ?>
</option>
<?php if ($livro->getStatus()==false):?>
<option value="<?php echo $livro->getTitulo(); ?>">
<?php echo $livro->getTitulo(); ?>
</option>
<?php endif;?>
<?php endforeach; ?>
</select>
<br>
Expand Down
11 changes: 7 additions & 4 deletions atv_pratica/views/Biblioteca/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,11 @@
<label for="livro">Escolha um Livro:</label>
<select name="livro" id="livro" required>
<?php foreach ($livros as $livro): ?>
<option value="<?php echo $livro->getTitulo(); ?>">
<?php echo $livro->getTitulo(); ?>
</option>
<?php if ($livro->getStatus()==true): ?>
<option value="<?php echo $livro->getTitulo(); ?>">
<?php echo $livro->getTitulo(); ?>
</option>
<?php endif;?>
<?php endforeach; ?>
</select>
<br>
Expand All @@ -89,7 +91,8 @@
<input type="date" id="data_emprestimo" name="data_emprestimo" required>
<br>
<br>
<input type="submit" value="Cadastrar Emprestimo" style="margin-left: 3rem;">
<input type="submit" value="Cadastrar Emprestimo" style="margin-left: 3
rem;">
</form>
</section>
</main>
Expand Down

0 comments on commit 454c8f5

Please sign in to comment.