<?php
require_once("../check.php");
require_once("../../config.php");

$m="10";
isset($_GET['page'])?$page=$_GET['page']:$page="1";//当前页数
$numsql = "select * from dunling_renwu where smoney>'0' and  not exists (select * from dunling_renwu_log where danhao=dunling_web.danhao and username='$username')";
$numery = mysql_query($numsql,$config);
$zongjilushu = mysql_num_rows($numery);//总记录数
$zy = (int)(($zongjilushu-1)/$m)+1;//总页数
$one = (int)($page-1)*$m;//当前页的首条记录
$listsql = "select * from dunling_renwu where smoney>'0' and not exists (select * from dunling_renwu_log where danhao=dunling_web.danhao and username='$username') order by id desc limit $one,$m";
$listery = mysql_query($listsql,$config);

?>
<!DOCTYPE HTML>
<html>
<head>
<title>收入明细</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script src="../js/jquery-1.11.1.min.js"></script>
<link rel="stylesheet" type="text/css" href="../style/template.css" />
</head>
<body>
<div id="table">
<div class="W200"><strong>任务编号</strong></div>
<div class="W200"><strong>任务金额</strong></div>
<div class="W200"><strong>任务数量</strong></div>
<div class="W200"><strong>任务标题</strong></div>
<div class="W200"><strong>用户操作</strong></div>
</div>
<?php
while($list = mysql_fetch_array($articleery)){
$id = $list['id'];
$lx = $list['lx'];
$money = $list['danjia'];
$datetime = date("m-d H:i",$list['datetime']);
?>
<div id="table">
<div class="W200"><?php echo $id;?></div>
<div class="W200"><?php echo $lx;?></div>
<div class="W200"><?php echo $money;?></div>
<div class="W200"><?php echo $datetime;?></div>
</div>
<?php
}
?>
<?php require_once("page.php");?>
</body>
</html>