<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="<?php echo getJsFile('jquery/mobile/jquery.mobile-1.0rc1.min.css');?>" rel="stylesheet" type="text/css" />
<script src="<?php echo getJsFile('jquery/mobile/jquery.min.js');?>"></script>
<script src="<?php echo getJsFile('jquery/mobile/jquery.mobile-1.0rc1.min.js');?>"></script>
<title>我的阅读进度 - <?php echo setting('webname');?></title>
</head>
<body>
<div data-role="page">
    <div data-role="header" data-position="inline">
        <a data-rel="back" data-icon="back" data-direction="reverse" class="ui-btn-left">返回</a>
        <h1>我的进度</h1>
    </div>

    <?php if (empty($progresss)):?>
        暂无记录
    <?php else:?>
        <div data-role="collapsible-set" data-theme="c" data-content-theme="d">
        <?php foreach($progresss as $progress):?>
        <div data-role="collapsible">
           <h3><?php echo $progress['bookname'];?>(<?php echo $progress['status'] ? '完成' : '连载';?>)[<?php if ($progress['c']):?>有<?php echo $progress['c'];?>章未看<?php else:?><?php if ($progress['status']):?>已看完<?php else:?>无新章<?php endif;?><?php endif;?>]</h3>
           <p><?php if (!empty($progress['lastchaptername'])):?>
			最新:<a href="<?php echo url('read', array('bid'=>$progress['bid'],'cid'=>$progress['lastchapterid']));?>"><?php echo $progress['lastchaptername'];?></a><?php endif;?><br/><?php if (!empty($progress['progresschapter'])):?>上次:<a href="<?php echo $progress['progressurl'];?>"><?php echo $progress['progresschapter'];?></a><?php endif;?><br/>时间:<?php echo $progress['updatedate'];?><br/><a href="<?php echo $progress['progressurl'];?>" data-ajax="false" data-role="button" data-inline="true" data-icon="arrow-l" data-iconpos="left">接上次</a><a href="<?php echo url('system',array('s'=>'member','c'=>'my','a'=>'progress','do'=>'down','bid'=>$progress['bid']));?>" data-ajax="false" data-role="button" data-inline="true" data-icon="minus" data-iconpos="left">删除</a></p>
        </div>
        <?php endforeach;?>
        </div>
        <?php if ($pageObj->hasPrev()):?>
            <a data-ajax="false" data-role="button" data-inline="true" data-icon="arrow-l" data-iconpos="left" href="<?php echo $pageObj->getUrl('page', $pageObj->getCurrentPage() - 1);?>">上一页</a>
        <?php endif;?>
        <?php if ($pageObj->hasNext()):?>
            <a data-ajax="false" data-role="button" data-inline="true" data-icon="arrow-r" data-iconpos="right" href="<?php echo $pageObj->getUrl('page', $pageObj->getCurrentPage() + 1);?>">下一页</a>
        <?php endif;?>

    <?php endif;?>
    <br/>
    共<?php echo $pageObj->getTotalRecord();?>本[<?php echo $pageObj->getCurrentPage();?>/<?php echo $pageObj->getTotalPage();?>页]
    <div data-role="footer" data-id="foo1" data-position="fixed">
        <div data-role="navbar">
            <ul>
                <li><a href="<?php echo url('system', array('s'=>'member'));?>">书房</a></li>
                <li><a href="<?php echo url('index');?>">首页</a></li>
            </ul>
        </div>
    </div>
</div>
</body>
</html>