<?php $title = '我的书房 - ' . setting('webname');?>
<?php include_once tpl('globalHeader');?>
<div class="nav"><a href="javascript:history.go(-1);">返回上级</a> <?php echo indexLink();?> <a href="<?php echo url('help/index');?>">帮助</a> <a href="<?php echo url('sec');?>">搜书</a></div>
<?php if ($isSelf && 0 < ($member['ads']-1)):?>
    <div class="block">★巨额<?php echo setting('creditname');?>天天抽奖送!今天您有<?php echo ($member['ads']-1);?>次机会!<?php echo getAdsLinks(array('马上试试手气'));?></div>
<?php endif;?>
<div class="kind"><?php echo ilink('站内信['.$member['newpm'].']',url('system',array('s'=>'member','c'=>'message','a'=>'list','do'=>'new')));?>|<?php echo ilink('阅读设置', url('system',array('s'=>'member','c'=>'setting','a'=>'size')));?></div>
<?php echo iImg($face,'头像');?>
<br/>
<?php if($isPigFace):?><?php echo ilink('清除猪头', url('system', array('s'=>'props','c'=>'cpig','uid'=>$uid)));?>|<?php echo ilink('寻找凶手', url('system', array('s'=>'props','c'=>'jixiong','uid'=>$uid)));?><?php else:?><?php if ($isSelf):?><?php echo ilink('上传我的个性头像',url('system',array('s'=>'member','a'=>'face')));?><?php else:?><?php echo ilink('&lt;&lt;将他变成猪头&gt;&gt;', url('system', array('s'=>'props','c'=>'pig','uid'=>$uid)));?><?php endif;?><?php endif;?>
<br/>
用户名:<?php echo $this->filter($member['username']);?>/UID:<?php echo $member['uid']?><?php if ($banAction):?>[<?php echo ilink('禁言',url('system',array('s'=>'forum','c'=>'ban','a'=>'post','uid'=>$member['uid'])));?>]<?php endif;?><?php if (!$isSelf && isGM()):?>[<?php echo ilink('封号',url('system',array('s'=>'forum','c'=>'ban','a'=>'visit','uid'=>$member['uid'])));?>]<?php endif;?><?php if ($member['isrename'] && (!$member['hiderename'] || $member['hiderename'] && CTIME > $member['hiderename'])):?>/<?php echo ilink('改名记录', url('system',array('s'=>'member','a'=>'renames','uid'=>$member['uid'])));?><?php endif;?>
<br/>
<?php if ($isSelf):?>我<?php else:?>Ta<?php endif;?>的<?php echo ilink('日志('.$member['diaries'].')',url('system',array('s'=>'member','c'=>'diary','uid'=>$uid)));?>.<?php echo ilink('相册('.$member['photos'].')',url('system',array('s'=>'member','c'=>'photo','uid'=>$uid)));?>
<br/>
尊贵勋章:<?php if (!empty($member['medals'])):?><?php echo implode(' ', $member['medals']['images']);?><?php else:?>暂无<?php if ($isSelf):?>,<?php echo ilink('购买',url('system',array('s'=>'props','t'=>3)));?>?<?php endif;?><?php endif;?>
<br/>
<?php if ($isSelf):?>
	状态:<?php if ($member['verify']):?>已验证会员<?php else:?>未验证会员<?php echo ilink('[免费验证]',url('verify'));?><?php endif;?>
	<br/>
<?php endif;?>
<?php if (false !== $nextGroupCredits):?>升级值:<?php echo '<b>'.$member['credits'].'</b>';?>点/还需<b><?php echo $nextGroupCredits;?></b>点升级<br/><?php endif;?>
<?php echo setting('creditname');?>:<?php echo '<b>' . $member['extcredits1'] . '</b>';?><?php echo ilink('充值',url('pay'));?>/<?php echo ilink(riches($member['extcredits1']),url('riches'));?>
<br/>
等级:<?php echo ilink($member['grouptitle'.(!$member['gender'] ? '' : $member['gender'])],url('level',array('action'=>'permission','gid'=>$member['groupid'])));?><?php if (!empty($expiry)):?>(<?php echo $expiry;?>/<?php echo ilink('原因', url('system', array('s'=>'bbs','a'=>'ban','uid'=>$uid)));?>)<?endif;?>/<?php echo gender($member['gender']);?>[<?php echo isOnlineView($member['uid']);?>]<?php if ($isSelf):?><?php if (Members::isHiddenLogin($uid)):?><?php echo ilink('现身', url('system', array('s'=>'member','a'=>'hidden')));?><?php else:?><?php echo ilink('隐身', url('system', array('s'=>'member','a'=>'hidden')));?><?php endif;?><?php endif;?>
<br/>
推荐票:<?php echo ilink($member['hp'], url('help/index', array('module'=>'tjp')));?>张
<br/>
职务:<?php if (empty($bmRole) && empty($bbsRole)):?>暂无<?php else:?><?php if (!empty($bmRole)):?><?php foreach ($bmRole as $role):?><?php echo ilink($this->filter($role['forumname']),url('system',array('s'=>'forum','id'=>$role['bookid'])));?>书管 <?php endforeach;?><?php endif;?><?php if (!empty($bbsRole)):?><?php foreach ($bbsRole as $role):?><?php echo ilink($this->filter($role['name']),url('system',array('s'=>'bbs','a'=>'forum','fid'=>$role['fid'])));?>斑竹 <?php endforeach;?><?php endif;?><?php endif;?>
<br/>
生肖:<?php echo Members::getSx($member['sx']);?>/星座:<?php echo Members::getGestellation($member['stellation']);?>
<br/>
年龄:<?php echo $member['birth'] == '0000-00-00' ? '保密' : date('Y') - date('Y',strtotime($member['birth'])).'岁';?>/生日:<?php echo $member['birth'] == '0000-00-00' ? '保密' : date('n月j日',strtotime($member['birth']));?>
<br/>
最喜欢的书:<?php if (!empty($member['book'])):?><?php echo $member['book'];?><?php else:?>暂无<?php if ($isSelf):?><?php echo ilink('马上填写',url('system',array('s'=>'member','c'=>'setting','a'=>'info')));?><?php endif;?><?php endif;?>
<br/>
在线时间:<?php echo $member['oltime'];?>小时<?php echo onlineImage($member['oltime']);?>
<br/>
注册时间:<?php echo date("Y-m-d H:i:s", $member['regdate']);?>
<br/>
最后登录:<?php echo date("Y-m-d H:i:s", $member['lastvisit']);?>
<br/>
最后活跃:<?php echo date("Y-m-d H:i:s", $lastActivity);?>
<br/>
<div class="kind">↓个性签名↓</div>
<div class="block"><?php if (!empty($member['sign'])):?><?echo analyzeSign($this->filter($member['sign']),$uid);?><?php else:?>暂无签名<?php endif;?></div>
<?php if ($isSelf):?>
    我的:<?php echo ilink('书架',url('system',array('s'=>'member','c'=>'bookshelf','id'=>1)));?>|<?php echo ilink('书单', url('system', array('s'=>'bcart','c'=>'member')));?>|<?php echo ilink('看过的书', url('system',array('s'=>'member','c'=>'my','a'=>'progress')));?>
    <br/>
    修改:<?php echo ilink('资料', url('system',array('s'=>'member','c'=>'setting','a'=>'info')));?>|<?php echo ilink('手机号码',url('system',array('s'=>'member','c'=>'setting','a'=>'mobile')));?>|<?php echo ilink('密码',url('system',array('s'=>'member','c'=>'setting','a'=>'password')));?>
    <br/>
	原创:<?php echo ilink('申请作者',url('system',array('s'=>'author')));?>|<?php echo ilink('写作地带',url('system',array('s'=>'author')));?>
	<br/>
	交友:<?php echo ilink('我的好友',url('system',array('s'=>'member','c'=>'friend')));?>|<?php echo ilink('寻找好友',url('system',array('s'=>'member','c'=>'friend','a'=>'find')));?>
	<br/>
    查看:<?php echo ilink('发帖记录', url('system',array('s'=>'member','c'=>'my','a'=>'post')));?>|<?php echo ilink('收藏贴', url('system', array('s'=>'member','c'=>'my','a'=>'ft')));?>|<?php echo ilink('道具', url('system',array('s'=>'member','c'=>'my','a'=>'props')));?>
    <br/>
    找书:<?php echo ilink('精品推荐', url('system', array('s'=>'bbs','a'=>'forum','fid'=>116)));?>|<?php echo ilink('书友推荐', url('system', array('s'=>'bcart')));?>
    <br/>
    频道:<?php echo ilink('社区', url('system', array('s'=>'bbs')));?>|<?php echo ilink('热聊', url('system',array('s'=>'forum','a'=>'new')));?>|<?php echo ilink('游戏', url('system', array('s'=>'soft')));?>|<?php echo ilink('软件', url('system', array('s'=>'soft')));?>
    <?php if (!empty($cbs)):?>
    	<div class="kind">☆您可能喜欢下面的小说☆</div>
    	<?php foreach ($cbs as $cb):?>
    		[<?php echo bookTypeName($cb['typeid']);?>]<?php echo ilink($cb['bookname'],$this->url('bookshow',array('bid'=>$cb['bookid'])));?>
    		<br/>
    	<?php endforeach;?>
    	<?php if (5 < $ccount):?>
    	    <?php echo ilink('察看更多推荐小说(' . $ccount .')&gt;&gt;', $this->url('system',array('s'=>'member','a'=>'commends')));?>
    	<?php endif;?>
    <?php endif;?>
    
<?php else:?>
	<?php echo ilink('加Ta为好友',url('system',array('s'=>'member','c'=>'friend','a'=>'add','uid'=>$uid)));?>|<?php echo ilink('Ta的帖子',url('system',array('s'=>'member','c'=>'my','a'=>'post','uid'=>$uid)));?>|<?php echo ilink('Ta的书单',url('system',array('s'=>'bcart','c'=>'member','uid'=>$uid)));?>
    <br/>
	<div class="kind">【Ta正在看的书】<?php echo ilink('更多',url('system',array('s'=>'member','a'=>'bookshelf','uid'=>$uid)));?></div>
	<?php if ($member['bookshelf']):?>
		<?php if (!empty($bookShelfs)):?>
			<?php foreach ($bookShelfs as $bookshelf):?>
				[<?php echo ilink(bookTypeName($bookshelf['typeid']), url('booktype', array('tid'=>$bookshelf['typeid'])));?>]<?php echo ilink($bookshelf['bookname'].'('.($bookshelf['status'] ? '完成' : '连载').')',url('bookshow', array('bid'=>$bookshelf['bookid'])));?><br/>
			<?php endforeach;?>
		<?php endif;?>
	<?php else:?>
		该书友未公开书架<br/>
	<?php endif;?>
	<div class="kind">【给Ta发送短信】</div>
	<form action="<?php echo url('system',array('s'=>'member','c'=>'message','a'=>'send'));?>" method="post">
	<select name="type">
		<option value="uid" selected>UID</option>
	    <option value="username">昵称</option>
    </select>
    <input type='text' name='msgto' value='<?php echo $member['uid'];?>' maxlength='16' />
	<br/>
	标题:<input type='text' name='subject' value='' maxlength='70' />
	<br/>
	内容:<textarea rows="3" cols="20" name="message"></textarea>
	<br/>
	<input type="submit" value="提交发送" />	
	</form>
<?php endif;?>

<?php if (!empty($originalBooks)):?>
	<div class="kind"><?php if ($isSelf):?>☆我<?php else:?>Ta<?php endif;?>的大作☆</div>
	<?php foreach ($originalBooks as $book):?>
		<?php echo ++$c;?>.<?php echo ilink($book['bookname'].'('.($book['status'] ? '完成' : '连载').')', url('bookshow', array('bid'=>$book['bookid'])));?> <?php echo time2Units(strtotime($book['updatedate']));?>前更新<br/>
	<?php endforeach;?>
<?php endif;?>

<?php if (!empty($feeds)):?>
<div class="kind">☆好友动态☆</div>
<?php foreach ($feeds as $feed):?>
	<?php echo $feed['feed'];?><br/>
<?php endforeach;?>
<?php endif;?>

<?php if (!empty($progresss)):?>
	<div class="kind">☆最近阅读☆<?php echo ilink('更多&gt;&gt;', url('system', array('s'=>'member','c'=>'my','a'=>'progress')));?></div>
    <?php foreach($progresss as $progress):?>
        <a href="<?php echo $progress['progressurl'];?>"><?php echo $progress['bookname'];?>(<?php echo $progress['status'] ? '完成' : '连载';?>)</a>[<?php if ($progress['c']):?>有<span class="r"><?php echo $progress['c'];?></span>章<?php else:?><?php if ($progress['status']):?>已看完<?php else:?><span class="f">无新章</span><?php endif;?><?php endif;?>]<a href="<?php echo url('system', array('s'=>'member','c'=>'my','a'=>'next','bid'=>$progress['bid'],'cid'=>$progress['cid']));?>">&gt;&gt;&gt;</a><br/>
    <?php endforeach;?>
<?php endif;?>

<?php if($isSelf):?>我<?php else:?>Ta<?php endif;?>的书会:
<?php if (!empty($member['bookid'])):?>
    <a href="<?php echo url('system', array('s'=>'forum','id'=>$member['bookid']));?>">进入</a><br/><?php else:?>暂无<br/>
<?php endif;?>

<?php if ($isSelf):?>
	<div class="kind">
    <?php echo ilink('推广注册', url('system',array('s'=>'member','c'=>'my','a'=>'promo')));?>※<?php echo ilink('验证会员',url('verify'));?>
	</div>
<?php endif;?>
<form action="<?php echo url('system', array('s'=>'member','a'=>'find'));?>" method="get">
<input type="hidden" name="s" value="member" />
<input type="hidden" name="a" value="find" />
<input type="hidden" name="sid" value="<?php echo $this->sid();?>" />
<input type="hidden" name="st" value="2" />
用户名:<input type="text" name="key" />
<input type="submit" value="搜索" />
</form>
<?php echo staticAd(iorange_ad());?>
<?php include_once tpl('globalFooter');?>