<?php include_once tpl('header');?>
<card title="我的进度 - <?php echo setting('webname');?>">
<p align="left">
<?php echo backLink();?>/<?php echo memberLink();?>/<a href="<?php echo url('type');?>">书库</a>
<br/>
可存进度数:<?php echo $bookLimit;?>条,已存数:<?php echo $bNum;?>条
<br/>
注：“上次阅读”后面的 &gt;&gt;&gt;　链接，点击后去到保存的书签的下一章
<br/>
----------------
<br/>
书架:
<?php foreach ($bookshelfs as $key => $value):?>
    <?php $print[] = ilink($value, url('system',array('s'=>'member','c'=>'bookshelf','id'=>$key)));?>
<?php endforeach;?>
<?php echo implode('.', $print);?>
<br/>
----------------
<br/>
排序:<?php if ($sort == 'asc' && $field == 'B.updatedate'):?><?php echo ilink('更新↓',url('system',array('s'=>'member','c'=>'my','a'=>'progress')));?><?php else:?><?php echo ilink('更新↑',url('system',array('s'=>'member','c'=>'my','a'=>'progress','sort'=>'asc')));?><?php endif;?>.<?php if ($sort == 'desc' && $field == 'F.createdate'):?><?php echo ilink('保存↓',url('system',array('s'=>'member','c'=>'my','a'=>'progress','f'=>1,'sort'=>'desc')));?><?php else:?><?php echo ilink('保存↑',url('system',array('s'=>'member','c'=>'my','a'=>'progress','f'=>1)));?><?php endif;?>|<?php echo ilink('有新章',url('system',array('s'=>'member','c'=>'my','a'=>'progress','filter'=>'new')));?>
<br/>
----------------
<br/>
搜索:<input type="text" name="key" size="4" /><anchor>书名<go href='<?php echo url('system',array('s'=>'member','c'=>'my','a'=>'progress'));?>' accept-charset='utf-8' method='get'><postfield name='s' value='member'/><postfield name='c' value='my'/><postfield name='a' value='progress'/><postfield name='class' value='1'/><postfield name='key' value='$(key)'/><postfield name='sid' value='<?php echo $sid;?>'/></go></anchor>.<anchor>作者<go href='<?php echo url('system',array('s'=>'member','c'=>'my','a'=>'progress'));?>' accept-charset='utf-8' method='get'><postfield name='s' value='member'/><postfield name='c' value='my'/><postfield name='a' value='progress'/><postfield name='class' value='2'/><postfield name='key' value='$(key)'/><postfield name='sid' value='<?php echo $sid;?>'/></go></anchor>
<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('chapter', array('bid'=>$progress['bid'], 'sort'=>'desc'));?>"><?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;&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'=>'my','a'=>'progress')). '&amp;page=$(page)">跳页&gt;</a>';?><?php endif;?>
<?php endif;?>

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