<?php
require_once("../../global/checkuser1.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="addmodify.css" />
<script>
function check(){
var ip=document.getElementById("ip").value;
var pv=document.getElementById("pv").value;
if(ip==""){
alert("IP不能为空");
return false;
}
if(pv==""){
alert("PV不能为空");
return false;
}
}
</script>
</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="index.php">返回</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td></tr></table>
<div class="list">
<?php
require_once("../../global/connect.php");
//require_once("../../global/connect.php");
$rs=mysql_query("select * from website where type='友好'");
if($rs){
$rows=mysql_fetch_array($rs);}
$row=mysql_fetch_array(mysql_query("select * from flow where id=$_GET[id]"));
?>
<form action="function.php?mod=modify" method="post" onsubmit="return check()">
<div class="content">
<ul>

<li>网站名称：<input type="text" id="name" name="name" value="<?=$rows["name"]?>" class="text" readonly="readonly"/><input type="hidden" id="id" name="id"value="<?=$_GET['id']?>" /></li>
<li>网站地址：<input type="text" id="url" name="url" value="<?=$rows["url"]?>" class="text" readonly="readonly"/></li>
<li>谷歌收录：<input type="text" id="google" name="google" value="<?=$row['google']?>" class="text"  readonly="readonly"/></li>
<li>百度收录：<input type="text" id="baidu" name="baidu" value="<?=$row['baidu']?>" class="text" readonly="readonly"/></li>
<li>谷歌反链：<input type="text" id="goutlink" name="goutlink" value="<?=$row['goutlink']?>" class="text" readonly="readonly"/></li>
<li>百度反链：<input type="text" id="boutlink" name="boutlink" value="<?=$row['boutlink']?>" class="text"  readonly="readonly"/></li>
<li>昨日收录：<input type="text" id="baiduday" name="baiduday" value="<?=$row['baiduday']?>" class="text" readonly="readonly"/></li>
<li>&nbsp;&nbsp;&nbsp;&nbsp;P&nbsp;R&nbsp;值：<input type="text" id="pr" name="pr" value="<?=$row['pr']?>" class="text" readonly="readonly"/></li>
<li>&nbsp;A&nbsp;l&nbsp;e&nbsp;x&nbsp;a：<input type="text" id="alexa" name="alexa" value="<?=$row['alexa']?>" class="text"  readonly="readonly"/></li>
<li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I&nbsp;&nbsp;P：<input type="text" id="ip" name="ip" value="<?=$row['ip']?>" class="text" /></li>
<li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;P&nbsp;&nbsp;V：<input type="text" id="pv" name="pv" value="<?=$row['pv']?>" class="text" /></li>
<li>数据日期：<input type="text" id="adddate" name="adddate" value="<?=$row['adddate']?>" class="text" readonly="readonly"/></li>
<li style="height:40px;line-height:40px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="提交" class="btn"/>&nbsp;&nbsp;<input type="button" value="取消" class="btn" onclick="history.go(-1);"/></li>
</ul>
</div>
</form>
</div>
</div>
</body>
</html>
