<?php $title = '小说书库  - ' . setting('webname');?>
<?php include_once tpl('globalHeader');?>
<div class="nav"><a href="javascript:history.go(-1);">返回上级</a> <?php echo memberLink('书房');?> <a href="<?php echo url('new');?>">新书</a> <a href="<?php echo url('over');?>">全本</a></div>

<?php if(!empty($typearray)):?>
<?php $i = 0; foreach ($typearray as $type):?><?php if ($i > 3 && $i % 4 == 0):?><br/><?php endif;?><a href="<?php echo url('booktype', array('tid'=>$type['typeid']));?>"><?php echo $type['typename'];?></a><?php $i++;?><?php if ($i % 4 != 0):?>|<?php endif;?><?php endforeach;?>
<?php else:?>
    暂无数据
<?php endif;?>

<?php include_once tpl('globalFooter');?>