<?php include_once tpl('header');?>
<card title="<?php echo $this->filter($forumInfo['forumname']);?>聊天室 - <?php echo setting('webname');?>">
<p align="left">
<?php if (in_array(date('j'), array(1,2,3,4,5))):?>
    <?php echo date('n');?>月超管和书管选举大会<br/>
<?php endif;?>
<?php include tpl('globalPM');?>
当前:废评区/<?php echo ilink('去书评区',url('system',array('s'=>'forum','id'=>$bookid)));?>
<br/>
<a href="<?php echo url('bookshow', array('bid'=>$bookid));?>"><?php echo $this->filter($forumInfo['forumname']);?></a>/
<img src="<?php echo $path;?>images/bookforum/<?php echo $level;?>.gif" alt='^_^'/>[<a href="<?php echo url('system',array('s'=>'forum','a'=>'level','id'=>$bookid));?>">?</a>]<br/>
<a href="<?php echo url('system', array('s'=>'forum','c'=>'chat','id'=>$bookid));?>">刷新</a>.<a href="<?php echo url('system',array('s'=>'forum','a'=>'join','id'=>$bookid));?>">加入</a>.<a href="<?php echo url('system', array('s'=>'forum','filter'=>'digest','id'=>$bookid));?>">精评</a>.<a href="<?php echo url('system',array('s'=>'forum','c'=>'ranking','a'=>'top'));?>">排行</a>.<a href="<?php echo url('system',array('s'=>'forum','a'=>'info','id'=>$bookid));?>">信息</a>
<br/>
---------------
<br/>
<?php if (!empty($records)):?>
	<?php foreach ($records as $record):?>
		[<?php echo $floor--;?>楼]<?php if (!empty($superManagers) && in_array($post['uid'],$superManagers)):?><img src="<?php echo $path;?>images/bookforum/prop.gif" alt='^_^'/><?php elseif (!empty($bookManagers) && in_array($post['uid'],$bookManagers)):?><img src="<?php echo $path;?>images/bookforum/guan.gif" alt='^_^'/><?php endif;?><?php echo ilink($this->filter(userName($record['uid'])),url('system',array('s'=>'member','uid'=>$record['uid'])));?>:<?php echo $this->filter(BookPost::filter($record['message']));?>(<?php echo substr($record['createdate'], 11, -3);?>)<?php if (IS_MANAGE):?><?php echo ilink('管', $this->url('system',array('s'=>'forum','c'=>'chat','a'=>'vm','id'=>$bookid,'cid'=>$record['id'])));?><?php endif;?><br/>
	<?php endforeach;?>
	共<?php echo $pageObj->getTotalRecord();?>楼[<?php echo $pageObj->getCurrentPage();?>/<?php echo $pageObj->getTotalPage();?>页]
	<br/>
	<?php echo $pageObj->show();?>
	<br/>
<?php else:?>
	暂无记录<br/>
<?php endif;?>
<br/>----------<br/>
当前:废评区/<?php echo ilink('去书评区',url('system',array('s'=>'forum','id'=>$bookid)));?>
<br/>
<?php include_once tpl('footer');?>