<?php include tpl('header');?>
<card title="<?php echo $current;?> - <?php echo setting('webname');?>">
<p align="left">
<?php echo backLink();?>/<?php echo memberLink();?>/<a href="<?php echo url('type');?>">书库</a>
<br/>
----------------
<br/>
书架:
<?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);?>
<br/>
<?php echo ilink('&lt;&lt;修改当前书架名字&gt;&gt;',url('system',array('s'=>'member','c'=>'bookshelf','a'=>'update','id'=>$id)));?>
<br/>
----------------
<br/>
=更新列表=
<br/>
<?php if (empty($progresss)):?>
    没有记录
<?php else:?>
    <?php foreach($progresss as $progress):?>
        <?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']):?>有<?php echo $progress['c'];?>章未看<?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('-&gt;&gt;', 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'])));?><br/>-----------------<br/>
    <?php endforeach;?>
    共<?php echo $pageObj->getTotalRecord();?>本[<?php echo $pageObj->getCurrentPage();?>/<?php echo $pageObj->getTotalPage();?>页]
    <br/>
    <?php echo $pageObj->show();?><?php if ($pageObj->getTotalPage() > 1):?><?php echo '<input name="page" type="text" size="2" format="*N" emptyok="true"/><a href="'. url('system',array('s'=>'member','c'=>'bookshelf','a'=>'index','id'=>$id)). '&amp;page=$(page)">跳页&gt;</a>';?><?php endif;?>
<?php endif;?>

<br/><?php echo backLink();?><br/>
<?php include_once tpl('footer');?>