<?php include 'header.php';?>
<card title="最新更新小说 - <?php echo setting('webname');?>">
<p align="left">
<?php include 'globalHeader.php';?>
<?php echo backLink();?>|<?php echo memberLink();?>|<a href="<?php echo url('type');?>">书库</a><br/>
<?php include 'adList.php';?>
<?php if (empty($new)):?>
    暂无数据<br/>
<?php else:?>
    <?php foreach ($new as $value):?>
        [<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);?>万字<br/>
        <?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['wlastchapterid']));?>"><?php echo $value['wlastchaptername'];?></a><br/>
			时间:<?php echo substr($value['updatedate'], 0, 10);?><br/><br/>
		<?php endif;?>
    <?php endforeach;?>
    <?php include 'adList.php';?>
    共<?php echo $pageObj->getTotalRecord();?>本[<?php echo $pageObj->getCurrentPage();?>/<?php echo $pageObj->getTotalPage();?>]
    <br/>
    <?php echo $pageObj->show();?><input name="page" type="text" size="3" format="*n" emptyok="true" /><a href="<?php echo url('new');?>&amp;page=$(page)">跳页</a>
<?php endif;?>
<br/>
<?php echo randAd('other');?>【搜索小说】
<br/>
<input name='key' title='搜索内容' type='text' size='3'/><anchor>搜书名<go href='<?php echo url('search');?>' accept-charset='utf-8' method='get'><postfield name='class' value='1'/><postfield name='key' value='$(key)'/><postfield name='sid' value='<?php echo $sid;?>'/></go></anchor>_<anchor>作者<go href='<?php echo url('search');?>' accept-charset='utf-8' method='get'><postfield name='class' value='2'/><postfield name='author' value='$(key)'/><postfield name='sid' value='<?php echo $sid;?>'/></go></anchor>
<br/>
<a href="<?php echo url('demand');?>">搜索不到请留言&gt;&gt;</a><br/>
<?php include_once 'footer.php';?>