<div style="padding-top:50px;">
<h3>Выдать книгу</h3>
<form action="" method="post" >
<table border="1" class="menu-main">
<tr>
<td style="text-align: center; width: 100px">Читатель</td>
<td><input type="text" style="width: 100px" name="reader_barcode" id="reader_barcode"></td>
<td style="width: 300px"><?if(isset($readers))
{?>
<?foreach($readers as $reader)
{?>
<br>Фамилия: <?echo $reader->user_last_name;?></br>
<br>Имя: <?echo $reader->user_first_name;?></br>
<br>Отчество: <?echo $reader->user_patronymic;?></br>
<?}?> <?}?>
</td>
</tr>
</form>
<form action="" method="post" id='find_book'>
<tr>
<td style="text-align: center" style="width: 100px">Книга</td>
<td><input type="text" style="width: 100px" name="book_barcode"></td>
<td style="width: 300px"><?if(isset($books))
{?>
<?foreach($books as $book)
{?>
<br>Фамилия: <?echo $book->author_last_name;?></br>
<br>Имя: <?echo $book->author_first_name;?></br>
<br>Название: <?echo $book->content;?></br>
<?}?> <?}?>
</td>
</tr>
<tr>
<td colspan="3"><input type="submit" id="find_reader" style="width:100%; height:50px;" value="Выдать" name="givebookbtn"></td>
</tr>
</table>
</form>
</div>