<?php $title = '最新更新小说 - ' . setting('webname');?>
<?php include_once tpl('globalHeader');?>
<div class="nav"><?php echo indexLink();?> <?php echo memberLink();?> <a href="<?php echo url('type');?>">书库</a></div>
<?php echo randAd('other');?>
<?php if (empty($new)):?>
    暂无数据<br/>
<?php else:?>
    <?php foreach ($new as $value):?>
        <div class="comment">[<a href="<?php echo url('booktype', array('tid'=>$value['typeid']));?>"><?php echo $value['typename'];?></a>]<a href="<?php echo url('bookshow', array('bid'=>$value['bookid']));?>">《<?php echo $value['bookname'];?>》</a>/约<?php echo round($value['size'] / 10000,2);?>万字
        <div class="list">
        <?php if (isset($value['lastchapterid'])):?>
        	<?php echo ilink('简介',url('bookinfo',array('bid'=>$value['bookid'])));?>:<?php echo $value['bookinfo']?><br/>
			最新:<a href="<?php echo url('read', array('bid'=>$value['bookid'], 'cid'=>$value['lastchapterid']));?>"><?php echo $value['lastchaptername'];?></a><br/>
			时间:<?php echo substr($value['updatedate'], 0, 10);?>
		<?php endif;?>
		</div></div>
    <?php endforeach;?><?php echo randAd('other');?>
    <div class="search">共<?php echo $pageObj->getTotalRecord();?>本[<?php echo $pageObj->getCurrentPage();?>/<?php echo $pageObj->getTotalPage();?>页] <?php echo $pageObj->show();?></div>
<?php endif;?>
<?php include_once tpl('globalFooter');?>