Example #1
0
<?php

require_once '../adminHeader.html';
?>

<?php 
require_once '../../models/person.php';
require_once '../../models/record.php';
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
    $personId = $_GET['personId'];
    $person = PersonManager::getPersonWithBorrowCount($personId);
    if ($person === false) {
        echo "<script>history.back();alert('没有数据');</script>";
        return;
    }
    $records = RecordManager::searchRecordsWithBookName($personId);
}
?>

<!DOCTYPE html>
<html lang="en">
<head>
  <?php 
require_once "../adminHead.php";
?>
</head>

<body>

  <?php 
require_once "../adminNav.html";