<?php $title = $bcart['subject'] . ' - ' . setting('webname');?>
<?php include_once tpl('globalHeader');?>
<style type="text/css">.f{color: #666666;}</style>
<div class="nav"><?php $this->widget('bcart.widgets.NavWidget', array('tid'=>$bcart['tid']));?></div>
<div class="pl"><?php echo printImage('bugle.gif');?><?php echo iorange_ad();?></div>
<div class="block">
<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;?>
</div>
<?php if (array() !== $coverCart):?>
    <div class="comment">
    <?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>:<span class="f"><?php echo $infoArray[$coverCart['bid']];?></span>
    <br/>
    <b>评语</b>:<span class="f"><?php echo $coverCart['description'];?><?php echo ilink('先看该书&gt;&gt;', url('bookshow', array('bid'=>$coverCart['bid'])));?></span>
    <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;?>
    </div>
<?php endif;?>

<?php foreach ($bcartSubject as $subject):?>
    <div class="comment">
    <?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>:<span class="f"><?php echo $infoArray[$subject['bid']];?><?php echo ilink('更多&gt;&gt;', url('bookinfo', array('bid'=>$subject['bid'])));?></span>
    <br/>
    <b>评语</b>:<span class="f"><?php echo $subject['description'];?></span>
    <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;?>
    </div>
<?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'])));?>
<div class="kind">〓我来给它评分〓</div>
<div class="pl">看完后记得给书单打分哦,这样就能将好书分享给更多的书友了!</div>
<?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/>
<div class="kind">〓大家的看法〓</div>
<?php if (!empty($comments)):?>
    <?php foreach ($comments as $comment):?>
        <div class="comment">
        <?php echo ilink(userName($comment['uid']), url('system', array('s'=>'member','uid'=>$comment['uid'])));?>:<?php echo filter(sFilter($comment['content']));?><span class="f">(<?php echo $comment['createdate'];?>)</span><?php if ($allowDeleteComment):?>[<?php echo ilink('删除', url('system', array('s'=>'bcart','c'=>'member','a'=>'dcomment','cid'=>$comment['id'], 'direct'=>$GLOBALS['selfurl'])));?>]<?php endif;?>
        </div>
    <?php endforeach;?>
    <?php echo ilink('查看更多回复('.$bcart['comment'].')&gt;&gt;', url('system', array('s'=>'bcart','a'=>'comments','id'=>$comment['bcid'])));?>
    <br/>
<?php endif;?>
<form action="<?php echo url('system', array('s'=>'bcart','c'=>'member','a'=>'comment','id'=>$bcart['id'],'redirect'=>$GLOBALS['selfurl']));?>" method="post">
<textarea style="width:99%" name="content"></textarea>
<br/>
<input type="submit" value="提交我的看法" />
</form>
<div class="block">
*每个书单都是书友的一份努力,尊重他人就是尊重自己.不要求你一定要评论,但如果想写,不需要你有多华丽的文笔,写出自己的想法就行,而不是诸如"顶" "好" "沙发"之类的毫无意义的内容,对于此类回复,第一次直接删除,第二次全站禁言一周!
<br/>
<?php echo iTool::ubbInfo();?>
</div>
<?php include_once tpl('globalFooter');?>