<?php
require_once("../global/checkuser2.php");
?>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>report</title>
<link rel="stylesheet" href="index.css" />
</head>

<body>
<div class="bigdiv">
<table cellspacing="0" cellpadding="0" style="font-size:14px;"><tr><td style="text-align:left;border-left:none;">您的位置：<a href="index.php">每周平媒报告</a></td><td style="text-align:right;border-left:none;"><a href="add.php">添加近日数据</a>&nbsp;&nbsp;&nbsp;&nbsp;<a style="color:#ccc;">导出本月数据</a>&nbsp;&nbsp;&nbsp;&nbsp;<a style="color:#ccc;">导出全部数据</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td></tr></table>
<div style="float:left;width:100%;border-bottom:2px solid #337abb;height:25px;font-size:14px;line-height:25px;"><ul>
<li style="float:left;width:100px;text-align:center;border:2px solid #337abb;border-top:1px solid #337abb;border-bottom:none;background:#337abb;margin-left:20px;display:inline;"><a href="index.php" style="color:#FFF;">每周平媒报告</a></li>
</ul></div>
<div class="list">
<table cellspacing="0" cellpadding="0"><tr style="background:#d3edf9;"><td style="border-left:none;">日期</td><td>竞争机构名称</td><td style="width:20%">广告投放数据</td><td style="width:10%;">广告主投方向</td><td>折扣区间范围</td><td>投放市场报价</td><td>广告投放媒体</td><td style="width:20%;">活动主题备注</td><td style="width:5%;">操作</td></tr></table>
<table cellspacing="0" cellpadding="0">
<?php
ob_start();
require_once("../global/page.class.php");
require_once("../global/connect.php");
$pageSize=15;
$total=mysql_num_rows(mysql_query("SELECT * FROM report")); 
pageft($total,$pageSize,1,1,1,9,20,0);
$sql="SELECT * FROM  report order by id DESC limit $firstcount,$pageSize";
$sql=mysql_query($sql);
if($sql){ob_end_clean();
while($row=mysql_fetch_array($sql)){
echo "<tr><td style='border-left:none;'>$row[date]</td><td>$row[name]</td><td style='width:20%;'>$row[meiti][$row[banmian]]$row[color]$row[leixing]</td><td style='width:10%;'>$row[fangxiang]</td><td>$row[zhekou]</td><td>$row[baojia]</td><td>$row[meiti]</td><td style='width:20%;'>$row[beizhu]</td><td style='width:5%;'><a href='function.php?mod=delete&id=$row[id]'>[删除]</a></td></tr>";
}}else
echo "<tr><td style='color:red;border-left:none;text-align:center;'>没有符合该要求的记录!</td></tr>";
ob_end_flush();
?>
</table>
<div>&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $pagenav;?></div>
</div>
</div>
</body>
</html>
