<?php if ($GLOBALS['iorange_id']):?>
    <div class="user">
    <?php echo iorange_date();?>!尊贵的<?php echo ilink(u('username'), url('system',array('s'=>'member')));?>[<a href="<?php echo rtrim(setting('basehost'), '/') . $GLOBALS['path'] . '?st=2';?>">退出</a>]<br/>
    <?php if (u('newpm')):?>
    	<div class="kind"><?php echo printImage('bugle.gif');?>您还有<?php echo ilink(u('newpm'),url('system',array('s'=>'member','c'=>'message','a'=>'list','do'=>'new')));?>封未读短信</div>
    <?php endif;?>
    <?php $lastRead = Members::single()->getLastRead($GLOBALS['iorange_id']);?>
    <?php if (!empty($lastRead)):?>上次:<a href="<?php echo url('bookshow', array('bid'=>$lastRead['bid']));?>"><?php echo $lastRead['bookname'];?></a><span class="f">(<?php if ($lastRead['noRead']):?>有<span style="color:red;"><?php echo $lastRead['noRead'];?></span>章<?php else:?><?php if ($lastRead['status']):?>已看完<?php else:?>无新章<?php endif;?><?php endif;?>)</span>[<a href="<?php echo url('read', array('bid'=>$lastRead['bid'],'cid'=>$lastRead['cid'],'sp'=>$lastRead['sp']));?>">接</a>][<?php echo ilink('下', url('system', array('s'=>'member','c'=>'my','a'=>'next','bid'=>$lastRead['bid'],'cid'=>$lastRead['cid'])));?>]<br/><?php endif;?>我的:<a href="<?php echo url('system',array('s'=>'member'));?>">书房</a>|<a href="<?php echo url('system',array('s'=>'member','c'=>'my','a'=>'progress'));?>">进度</a>|<?php echo ilink('书架',url('system',array('s'=>'member','c'=>'bookshelf','id'=>1)));?>|<a href="<?php echo url('system',array('s'=>'bcart','c'=>'member'));?>">书单</a>
    </div>
<?php endif;?>