	<!-- Content -->
	<div class="flex flex-1 flex-col md:px-6 pt-10" id="content">
		<!-- Title -->
		<div class="px-6 md:px-0 flex justify-between items-center -order-1">
			<div>
				<h2 class="font-normal">搜索结果</h2>
			</div>
		</div>
		<!-- Filter -->
		<div class="px-6 md:px-0 flex items-baseline justify-between border-b-2 border-grey-light mt-6 order-0 lg:order-1"></div>
		<!-- Picks -->
		<div class="flex-wrap order-2 pt-0 md:pt-6 md:pb-8 js-tab-pane active">
<?php   if (empty($_GET['s'])) { ?>
            <div class="flex flex-row sm:flex-col items-center sm:items-start w-full">
                <p class="text-2xl my-2 font-bold sm:font-bold">请在上方搜索框输入书名关键字 ~</p>
            </div>
<?php   } elseif (isset($books[0]['bid'])) {
            foreach ($books as $book) { ?>
			<div class="flex justify-start items-center p-5 px-6 w-full sm:w-1/2">
				<img src="<?=$book['cover']?>" alt="pick" class="shadow-md w-1/3">
				<div class="ml-4 mt-1 w-2/3">
					<p class="font-medium"><strong>《<?=$book['name']?>》</strong></p>
					<p class="mt-3 text-sm">
					    <?php foreach ($categories as $category) if ($category['cid'] == $book['cid']) echo $category['name']; ?> (<?=$book['author']?>-<?=$book['publish']?>)
					</p>
					<p class="mt-3 text-sm">
					    <?=$book['lang']=='zh-cn'?'简体中文':'英文'?> (ISBN: <?=$book['isbn']?>)
					</p>
					<a href="/book/<?=$book['bid']?>" class="no-underline">
					    <button class="shadow-md mt-3 bg-grey-lightest hover:bg-white text-indigo-darker text-xs py-2 px-4 rounded-full transition-normal hover:shadow hover:translate-y-1 active:translate-y-1 focus:outline-none">查询库存</button>
					</a>
				</div>
			</div>
<?php       } ?>
<?php       $path = '/search'; require(APP_ROOT.'/src/template/defaults/page_switch.php'); ?>
            <p>　<br>　</p>
<?php   } else { ?>
            <div class="flex justify-start items-center p-5 px-6 w-full sm:w-1/2">
                <p class="text-2xl my-2 font-bold sm:font-bold">没有找到搜索结果呢 ...</p>
            </div>
<?php   } ?>
		</div>
	</div>
<?php
if (isset($_SESSION['user'])) require(APP_ROOT.'/src/template/defaults/user_profile.php');
