}
//每页显示的条数
$page_size = 10;
$user_service = new UserService();
//总条目数
//每次显示的页数
$sub_pages = 10;
$url = "index.php?mod=user&action=ls&p=";
if (isset($_GET["keywords"])) {
    $keywords = trim($_GET["keywords"]);
    if (!empty($keywords)) {
        $array_user = $user_service->listAllByKeywords($pageCurrent, $page_size, $keywords);
        $nums = $user_service->getListRowsByKeywords($keywords);
        $url = "index.php?mod=user&action=ls&keywords={$keywords}&p=";
    } else {
        $array_user = $user_service->listAll($pageCurrent, $page_size);
        $nums = $user_service->getListRows();
    }
} else {
    $array_user = $user_service->listAll($pageCurrent, $page_size);
    $nums = $user_service->getListRows();
}
?>


<div class="search-form">
<form class="form-inline" action="./index.php" method="get">
   
  <input type="hidden" class="search-query" name="mod" value="user">
  <input type="hidden" class="search-query" name="action" value="ls">
  <input type="text" class="search-query" name="keywords" id="keywords">