<div id="page-header">
	<div class="top-bar">
		<div class="wrapper page-width">
		<p class="list links">
			<a class="item hilight" target="_self" href="<?php create_url('shortcut/create'); ?>">把<?php option_info( 'site.name'); ?>添加到桌面，看书更方便</a>
			<a class="item" target="_self" href="javascript:void(0);" id="fav">收藏<?php option_info( 'site.name'); ?></a>
		</p>
		<p class="list user-tools">
			<a class="item item-sethome" href="javascript:;" onclick="setHomepage('<?php home_url(); ?>');"><i class="icon"><u>.</u></i>把<?php option_info( 'site.name'); ?>设为主页</a><s>|</s><a class="item" action="page-header-feedback" href="<?php create_url('feedback/list'); ?>" target="_blank">反馈</a>
		</p>
	</div>
</div>


<div id="header">
	<div class="wrap980">
		<div class="logocss"><a href="<?php option_info('site.url'); ?>"><?php option_info( 'site.name'); ?></a></div>
		<form id="search" name="search" action="<?php create_url('book/search', array('s' => get_query('s'))); ?>" method="get" onSubmit="return qrsearch();">
			<div class="serachwrap">
				<span class="search_text">
					<input id="kw" name="kw" type="text" value="<?php echo get_query('s') ? get_query('s') : '请输入小说名...'; ?>" autocomplete="off"
					title="请输入小说名..." onfocus="if(this.value==this.title) this.value='';" onblur="if(this.value=='') this.value=this.title;"
					onSubmit="return qrsearch();" autofocus="true" x-webkit-speech="" x-webkit-grammar="builtin:translate">
				</span><input type="submit" value="" class="search_submit">
				<p>热门搜索：<?php $books = get_option('books.pop', array()); foreach ($books as $book) : ?><a href="<?php book_link(); ?>"><?php book_name(); ?></a><?php endforeach; reset_current_book(); ?></p>
			</div>
		</form>
		<div id="favid" class="favboxs">
			<div class="favsbtn">收藏</div>
			<div class="recordwrap" id="favconid">
				<i>暂无收藏记录...</i>
			</div>
		</div>
		<div id="readid" class="readrecord">
			<div class="recordbtn">阅读记录</div>
			<div class="recordwrap" id="recorconid">
				<i>暂无阅读记录...</i>
			</div>
		</div>
	</div>
</div>
<div id="nav">
	<p><a href="<?php option_info('site.url'); ?>" target="_self">首页</a>
		<?php $categories = (array) get_categories(); foreach ($categories as $category): ?>
		|<a href="<?php esc_url_e(get_category_link()); ?>" target="_self"><?php category_name(); ?></a>
		<?php endforeach; ?>
	</p>
</div>