<?php $title = bookTypeName($tid) . '书单 - ' . setting('webname');?>
<?php include_once tpl('globalHeader');?>
<style type="text/css">.f{color: #666666;}</style>
<div class="nav">返回:<?php echo backLink('上级');?>.<?php echo ilink('书单市场', url('system', array('s'=>'bcart')));?>.<?php echo memberLink();?></div>
<div class="pl">排序:<?php echo $navString;?></div>
<?php if (!empty($bcarts)):?>
    <?php foreach ($bcarts as $bcart):?>
        <div class="comment">
        <?php echo $floor--;?>.<?php if ($isSelf):?>[<?php echo ilink('删', url('system', array_merge(array('s'=>'member','c'=>'my','a'=>'bcart','do'=>'down','id'=>$bcart['fid']), $merge)));?>]<?php endif;?><?php echo ilink($bcart['subject'], url('system', array('s'=>'bcart','a'=>'view','id'=>$bcart['id'])));?>
        <br/>
        <b>简介</b>:<span class="f"><?php echo iSubstr($bcart['description'], 0, 50, '...');?></span>
        <br/>
        <b>作者</b>:<?php echo ilink($this->filter(userName($bcart['uid'])), url('system', array('s'=>'bcart','c'=>'member','uid'=>$bcart['uid'])));?>
        <br/>
        <b>评分</b>:<?php echo Bcarts::getScore($bcart);?>
        <br/>
        <b>信息</b>:<span class="f"><?php echo $bcart['bnum'];?>本书,<?php echo $bcart['favorite'];?>人收藏,<?php echo $bcart['scores'];?>人评分,<?php echo $bcart['comment'];?>条评论</span>
        </div>
    <?php endforeach;?>
    <div class="search">
     共<?php echo $pageObj->getTotalRecord();?>个书单[<?php echo $pageObj->getCurrentPage();?>/<?php echo $pageObj->getTotalPage();?>]
    <br/>
    <?php echo $pageObj->show();?>
    </div>
<?php else:?>
    本分类还没有书单
<?php endif;?>
<?php include_once tpl('globalFooter');?>