<?php if ($GLOBALS['iorange_id']):?>
    <?php echo iorange_date();?>!尊贵的<?php echo u('username');?>~<br/>
    <?php if (u('newpm')):?>
        ★您有<?php echo ilink(u('newpm'),url('system',array('s'=>'member','c'=>'message','a'=>'list','do'=>'new')));?>封未读短信<br/>
    <?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>(<?php if ($lastRead['noRead']):?>有<?php echo $lastRead['noRead'];?>章<?php else:?><?php if ($lastRead['status']):?>已看完<?php else:?>无新章<?php endif;?><?php endif;?>)[<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)));?>|<?php echo ilink('书单',url('system',array('s'=>'bcart','c'=>'member')));?>[<a href="<?php echo rtrim(setting('basehost'), '/') . $GLOBALS['path'];?>">退出</a>]<br/>------------------<br/>
<?php endif;?>