<?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>网络负面</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;&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">
<?php
require_once("../global/connect.php");
$sql=mysql_query("select * from negativeset");
while($row=mysql_fetch_array($sql)){
$username1=$row["username1"];
$password1=$row["password1"];
$username2=$row["username2"];
$password2=$row["password2"];
$mailurl=$row["mailurl"];
}
?>
&nbsp;请打开一下网址：<a target="_blank" href="https://accounts.google.com/ServiceLogin?service=alerts&hl=zh-CN&gl=us">https://www.google.com/accounts/ServiceLogin?service=alerts&hl=zh-CN&gl=us
</a><br />
&nbsp;登陆账号：<?=$username1?><br />
&nbsp;登录密码：<?=$password1?><br />
&nbsp;增加负面监控订阅地址：<a target="_blank" href="http://www.google.com/alerts/manage?hl=zh-CN&gl=us">http://www.google.com/alerts/manage?hl=zh-CN&gl=us
</a><br />
&nbsp;邮箱登陆地址：<?=$mailurl?><br />
&nbsp;登陆账号：<?=$username2?><br />
&nbsp;登录密码：<?=$password2?><br />
&nbsp;目前已经监控了以下负面关键字：<br />
<table cellspacing="0" cellpadding="0"><tr style="background:#d3edf9;"><td style="width:30%;border-top:1px solid #ccc;border-left:none;">搜索负面字词</td><td style="border-top:1px solid #ccc;">结果类型</td><td style="border-top:1px solid #ccc;">发送频率</td><td style="border-top:1px solid #ccc;">结果量</td><td style="border-top:1px solid #ccc;">发送到</td><td style="border-top:1px solid #ccc;">操作</td></tr>
<?php
$sql=mysql_query("select * from negative order by id DESC");
if(mysql_num_rows($sql)!=0){
while($row=mysql_fetch_array($sql)){
$keyword=urlencode($row["keyword"]);
echo "<tr><td style='width:30%;border-left:none;text-align:left;'>&nbsp;<a target='_blank' href='http://www.google.com.hk/search?ie=utf8&oe=utf8&num=10&q=$keyword&lr=lang_zh-CN&hl=zh-CN&gl=us'>".$row["keyword"]."</a></td><td>".$row["type"]."</td><td>".$row["frequency"]."</td><td>".$row["result"]."</td><td>".$row["sendto"]."</td><td><a href='function.php?id=$row[id]&mod=delete'>[删除]</a><a href='modify.php?id=$row[id]'>[修改]</a></td></tr>";
}}else
echo "<tr><td style='border:none;text-align:center;color:red;'>暂时没有记录!</td></tr>";
?>
</table>
</div>
</div>
</body>
</html>
