<?php
	!defined('DIRCMS_MANAGE') && exit('Access Denied!');
	if(!$module->roleid_check('pe',$_roleid))showmsg_nourl($lang['RETURN_NOPRI']);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>绩效考核</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" type="text/css" href="admin/template/css/style.css" />
<script type="text/javascript" src="images/js/jquery.min.js"></script>
<script language="javascript" src="admin/template/js/css.js"></script>
<script type="text/javascript" src="admin/template/js/admin.js"></script>
</head>
<body>
<div id="wrap">
	<div class="tab">
		<ul>
			<li><a href="?mod=pe&file=index&action=table" class="on">表格报表</a></li>
			<li><a href="?mod=pe&file=index&action=k">K线报表</a></li>			
		</ul>
	</div>
	<div class="main">
		<fieldset>
		<legend>选择日期</legend>
		<form action="" method="post" name="myform">
		<input type="hidden" name="do_submit" value="1" />
		<table>
			<tr>
				<td>开始日期：</td><td><?php echo $form->datetime('starttime',$starttime);?></td>
				<td> &nbsp;&nbsp;结束日期：</td><td><?php echo $form->datetime('endtime',$endtime);?></td>
				<td>&nbsp;&nbsp;<input type="submit" value="检索" /></td>
			</tr>
		</table>
		</form>
		</fieldset>
		<table cellspacing="0" class="datalist" width="100%" id="list">
		<tr>
			<th width="15%" class="firstcol">管理员</th>
			<th width="20%" >发帖量</th>
			<th width="27%">浏览量</th>
			<th width="22%">评论数量</th>
			<th width="16%">文章列表</th>
		</tr>
		<?php if($series){foreach($series as $key => $val){?>
		<tr>
			<td align="center"><?php echo $key;?></td>
			<td align="center"><?php echo $val['data'];?>条</td>
			<td align="center"><?php echo $val['clicks']?$val['clicks']:0;?>次</td>
			<td align="center"><?php echo $val['comments']?$val['comments']:0;?>条</td>
			<td align="center"><a href="<?php echo ADMIN_FILE;?>?file=content&action=manage&catid=0&field=userid&fieldvalue=<?php echo $val['userid'];?>"><u>查看</u></a></td>
		</tr>
		<?php }?>
		<?php }else{?>
		<tr><td colspan="5">暂无数据...</td></tr>	
		<?php }?>
		</table>
	</div>
</div>
</body>
</html>