<?php $title = $current . ' - ' . setting('webname');?>
<?php include_once tpl('globalHeader');?>
<style type="text/css">.r {color: red;}</style>
<div class="nav"><?php echo backLink('返回上级');?> <?php echo memberLink();?> <a href="<?php echo url('system',array('s'=>'member','c'=>'my','a'=>'progress'));?>">进度</a> <a href="<?php echo url('type');?>">书库</a></div>
<div class="kind">
<h1>书架</h1>
<?php foreach ($myBookShelfs as $key => $value):?>
    <?php $print[] = ($id == $key) ? $value : ilink($value, url('system',array('s'=>'member','c'=>'bookshelf','id'=>$key)));?>
<?php endforeach;?>
<?php echo implode('.', $print);?>
</div>
<?php echo ilink('&lt;&lt;修改当前书架名字&gt;&gt;',url('system',array('s'=>'member','c'=>'bookshelf','a'=>'update','id'=>$id)));?>

<div class="kind"><h1>=更新列表=</h1></div>
<?php if (empty($progresss)):?>
    没有记录
<?php else:?>
    <?php foreach($progresss as $progress):?>
		<div class="comment">
        <?php echo $floor--;?>.[<a href="<?php echo url('system',array('s'=>'member','c'=>'my','a'=>'progress','do'=>'down','bid'=>$progress['bid']));?>">下架</a>]<a href="<?php echo url('bookshow', array('bid'=>$progress['bid']));?>"><?php echo $progress['bookname'];?>(<?php echo $progress['status'] ? '完成' : '连载';?>)</a>
        <br/>
        <?php if (!empty($progress['lastchaptername'])):?>
			最新章节:<a href="<?php echo url('read', array('bid'=>$progress['bid'],'cid'=>$progress['lastchapterid']));?>"><?php echo $progress['lastchaptername'];?></a>[<?php if ($progress['c']):?>有<span class="r"><?php echo $progress['c'];?></span>章未看<?php else:?><?php if ($progress['status']):?>已看完<?php else:?>暂无新章<?php endif;?><?php endif;?>]<br/>
            <?php if (!empty($progress['progresschapter'])):?>上次阅读:<a href="<?php echo $progress['progressurl'];?>"><?php echo $progress['progresschapter'];?></a> <?php echo ilink('<span class="r">-&gt;&gt;</span>', url('system',array('s'=>'member','c'=>'my','a'=>'next','bid'=>$progress['bid'],'cid'=>$progress['cid'])));?><br/><?php endif;?>
			更新时间:<?php echo $progress['updatedate'];?><br/>
		<?php endif;?>
        <a href="<?php echo $progress['progressurl'];?>">接上次看</a>|<?php echo ilink('选择书架',url('system',array('s'=>'member','c'=>'bookshelf','a'=>'select','bid'=>$progress['bid'])));?>|<?php echo ilink('前往书会',url('system',array('s'=>'forum','id'=>$progress['bid'])));?>
        </div>
    <?php endforeach;?>
    <div class="search">共<?php echo $pageObj->getTotalRecord();?>本[<?php echo $pageObj->getCurrentPage();?>/<?php echo $pageObj->getTotalPage();?>页] <?php echo $pageObj->show();?><?php if ($pageObj->getTotalPage() > 1):?><?php endif;?>
    </div>
<?php endif;?>

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