<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="<?php echo getJsFile('jquery/mobile/jquery.mobile-1.0rc1.min.css');?>" rel="stylesheet" type="text/css" />
<script src="<?php echo getJsFile('jquery/mobile/jquery.min.js');?>"></script>
<script src="<?php echo getJsFile('jquery/mobile/jquery.mobile-1.0rc1.min.js');?>"></script>
<title><?php echo setting('webname');?> 手机小说原创基地</title>
</head>
<body>
<style>
#header {height:40px;}
#header h1 {float:left;font-size:120%;margin:8px 0 0 0;padding:0;}
</style>

	<div data-role="page">
		<div data-role="header" id="header">
			<div><h1><?php echo setting('webname');?></h1></div>
		</div>
		<div data-role="header">
			<div data-role="navbar">
				<ul>
                    <?php if ($iorange_id):?>
                        <li><a href="<?php echo url('system', array('s'=>'member'));?>">书房</a></li>
                        <li><a href="<?php echo url('new');?>">最新</a></li>
                        <li><a href="">社区</a></li>
                    <?php else:?>
					<li><a href="<?php echo url('new');?>">最新</a></li>
					<li><a href="<?php echo url('system', array('s'=>'member','a'=>'login'));?>">登录</a></li>
					<li><a href="<?php echo url('system', array('s'=>'member','a'=>'register'));?>">注册</a></li>
                    <li><a href="">社区</a></li>
                    <?php endif;?>
				</ul>
			</div>
		</div>
		<div data-role="fieldcontain">
			<form action="<?php echo url('search', array('class'=>1));?>" method="get">

			搜索：<input type="search" name="key" id="search" value="" size="10" /><input type="submit" data-inline="true" data-theme="b" value="书名" class="ui-btn-hidden" aria-disabled="false">
			</form>
		</div>

		<div data-role="content">
            <?php if (!empty($commendarray)):?>
                <ul data-role="listview">
                <?php foreach($commendarray as $hot):?>
                    <li>
                        <a class="ui-link-inherit" href="<?php echo url('bookshow', array('bid'=>$hot['bookid']));?>"><?php echo $hot['aliasname'];?></a>
                    </li>
                <?php endforeach;?>
                </ul>
                <br/><br/>
            <?php endif;?>

            <?php if (!empty($originalBooks)):?>
			<ul data-role="listview">
				<li data-role="list-divider" role="heading">原创作品更新：全天不断</li>
                <?php foreach ($originalBooks as $book):?>
                <?php if ($book['size']>200):?>
				<li>
					<a class="ui-link-inherit" href="<?php echo url('bookshow', array('bid'=>$book['bookid']));?>"><?php echo '《'.$book['bookname'].'》'.time2Units(strtotime($book['updatedate'])).'前更新'.$book['size'].'字';?></a>
				</li>
                <?php endif;?>
                <?php endforeach;?>
			</ul>
            <?php endif;?>

			<br/><br/>
			<ul data-role="listview">
				<li data-role="list-divider" role="heading">其他网文精选：热门推荐</li>
				<li>
					<a href="<?php echo url('bookshow', array('bid'=>13121));?>">柳下挥都市热作《天才医生》</a>
				</li>
				<li>
					<a href="<?php echo url('bookshow', array('bid'=>14354));?>">梦入神机最火爆新作《永生》</a>
				</li>
				<li>
					<a href="<?php echo url('bookshow', array('bid'=>14194));?>">方想全新的境界《修真世界》</a>
				</li>
				<li>
					<a href="<?php echo url('bookshow', array('bid'=>17124));?>">猥琐宗师巅峰作《通天之路》</a>
				</li>
				<li>
					<a href="<?php echo url('bookshow', array('bid'=>17370));?>">流浪的蛤蟆最新佳作《焚天》</a>
				</li>
			</ul>
		</div>

		<div data-theme="c" data-role="footer" role="contentinfo">
            <p>&nbsp;&copy; 2008~<?php echo date('Y');?> <?php echo setting('webname');?></p>
            <p>&nbsp;<a href="<?php echo url('index');?>" data-role="button" data-ajax="false" data-icon="home"><?php echo setting('webname');?></a></p>
	    </div>
	</div>
</body>
</html>