<?php include_once tpl('header');?>
<card title="<?php echo $bcart['subject'];?> - <?php echo setting('webname');?>">
<p align="left">
<?php $this->widget('bcart.widgets.NavWidget', array('tid'=>$bcart['tid']));?>
<br/>
-----------
<br/>
<?php echo iorange_ad();?>
<br/>
<b>『<?php echo $bcart['subject'];?>』</b><?php if (isGM($uid)):?><?php echo ilink('删除', url('system', array('s'=>'bcart','c'=>'member','a'=>'delete','id'=>$bcart['id'])));?><?php endif;?>
<br/>
<?php if (!empty($bcart['description'])):?>
	<b>介绍:</b><?php echo $bcart['description'];?><br/>
<?php endif;?>
<b>来自:</b><?php echo ilink(userName($bcart['uid']), url('system', array('s'=>'member','uid'=>$bcart['uid'])));?>
<br/>
<b>创建于:</b><?php echo $bcart['createdate'];?>
<br/>
<?php if ($bcart['updatedate']):?><b>最后修改:</b><?php echo $bcart['updatedate'];?><br/><?php endif;?>

<b>当前<?php echo $bcart['scores'];?>人评分:</b><?php if (false === $currentScore):?>暂时没有评分<?php else:?><?php echo $currentScore;?><?php endif;?>
<br/>
-------------
<br/>
<?php if (array() !== $coverCart):?>
    <?php echo ilink('《'.$coverCart['bookname'].'》', url('bookshow', array('bid'=>$coverCart['bid'])));?>/<?php echo ilink($coverCart['author'], url('search', array('class'=>1,'key'=>$coverCart['author'])));?>
    <br/>
    <?php echo iImg($coverCart['cover']);?>
    <br/>
    <b>简介</b>:<?php echo $infoArray[$coverCart['bid']];?>
    <br/>
    <b>评语</b>:<?php echo $coverCart['description'];?><?php echo ilink('先看该书&gt;&gt;', url('bookshow', array('bid'=>$coverCart['bid'])));?>
    <br/>
    <?php if ($allowManage):?>
    <b>管理</b>:<?php echo ilink('修改', url('system', array('s'=>'bcart','c'=>'member','a'=>'ebook', 'id'=>$coverCart['bcid'], 'bid'=>$coverCart['id'])));?>.<?php echo ilink('删除', url('system', array('s'=>'bcart','c'=>'member','a'=>'dbook', 'id'=>$coverCart['id'], 'bid'=>$coverCart['bcid'])));?>
    <br/>
    <?php endif;?>
    -------------
    <br/>
<?php endif;?>

<?php foreach ($bcartSubject as $subject):?>
    <?php echo printImage('kstj.gif');?><?php echo ilink('《'.$subject['bookname'].'》', url('bookshow', array('bid'=>$subject['bid'])));?>/<?php echo ilink($subject['author'], url('search', array('class'=>1,'author'=>urlencode($subject['author']))));?>
    <br/>
    <b>简介</b>:<?php echo $infoArray[$subject['bid']];?><?php echo ilink('更多&gt;&gt;', url('bookinfo', array('bid'=>$subject['bid'])));?>
    <br/>
    <b>评语</b>:<?php echo $subject['description'];?>
    <br/>
    <?php if ($allowManage):?>
    <b>管理</b>:<?php echo ilink('修改', url('system', array('s'=>'bcart','c'=>'member','a'=>'ebook', 'id'=>$subject['bcid'], 'bid'=>$subject['id'])));?>.<?php echo ilink('删除', url('system', array('s'=>'bcart','c'=>'member','a'=>'dbook', 'id'=>$subject['bcid'], 'bid'=>$subject['id'])));?>
    <br/>
    <?php endif;?>
    -----------
    <br/>
<?php endforeach;?>
<?php echo ilink('&lt;&lt;收藏这个书单('.$bcart['favorite'].')&gt;&gt;', url('system', array('s'=>'bcart','c'=>'member','a'=>'favorite','id'=>$bcart['id'])));?>
<br/>
<?php echo ilink('&lt;&lt;查看更多他的书单&gt;&gt;', url('system', array('s'=>'bcart','c'=>'member','uid'=>$bcart['uid'])));?>
<br/>
〓我来给它评分〓
<br/>
看完后记得给书单打分哦,这样就能将好书分享给更多的书友了!
<br/>
<?php echo printImage('3.gif');?><?php echo printImage('2.gif');?><?php echo ilink('非常好', url('system', array('s'=>'bcart','a'=>'score','id'=>$bcart['id'],'t'=>5)));?>
<br/>
<?php echo printImage('3.gif');?><?php echo printImage('1.gif');?><?php echo ilink('不错', url('system', array('s'=>'bcart','a'=>'score','id'=>$bcart['id'],'t'=>4)));?>
<br/>
<?php echo printImage('3.gif');?><?php echo ilink('还行', url('system', array('s'=>'bcart','a'=>'score','id'=>$bcart['id'],'t'=>3)));?>
<br/>
<?php echo printImage('2.gif');?><?php echo ilink('一般般', url('system', array('s'=>'bcart','a'=>'score','id'=>$bcart['id'],'t'=>2)));?>
<br/>
<?php echo printImage('1.gif');?><?php echo ilink('纯支持', url('system', array('s'=>'bcart','a'=>'score','id'=>$bcart['id'],'t'=>1)));?>
<br/>
〓大家的看法〓
<br/>
<?php if (!empty($comments)):?>
    <?php foreach ($comments as $comment):?>
        <?php echo ilink(userName($comment['uid']), url('system', array('s'=>'member','uid'=>$comment['uid'])));?>:<?php echo filter(sFilter($comment['content']));?>(<?php echo $comment['createdate'];?>)<?php if ($allowDeleteComment):?>[<?php echo ilink('删除', url('system', array('s'=>'bcart','c'=>'member','a'=>'dcomment','cid'=>$comment['id'], 'direct'=>$GLOBALS['selfurl'])));?>]<?php endif;?>
        <br/>
        -----------
        <br/>
    <?php endforeach;?>
    <?php echo ilink('查看更多回复('.$bcart['comment'].')&gt;&gt;', url('system', array('s'=>'bcart','a'=>'comments','id'=>$comment['bcid'])));?>
    <br/>
<?php endif;?>

<input type="text" name="content" />
<br/>
<anchor title="提交我的看法">提交我的看法<go method="post" href="<?php echo url('system', array('s'=>'bcart','c'=>'member','a'=>'comment','id'=>$bcart['id'],'redirect'=>$GLOBALS['selfurl']));?>">
	<postfield name="content" value="$(content)"/>
</go></anchor>
<br/>
*每个书单都是书友的一份努力,尊重他人就是尊重自己.不要求你一定要评论,但如果想写,不需要你有多华丽的文笔,写出自己的想法就行,而不是诸如"顶" "好" "沙发"之类的毫无意义的内容,对于此类回复,第一次直接删除,第二次全站禁言一周!
<br/>
<?php echo iTool::ubbInfo();?>
<br/>
<?php include_once tpl('footer');?>