<?php
@session_start();
include('inc/conn.php');
include('checkstate.php');
include('inc/function.php');
include('fun/funcount.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" />
<meta name="robots" content="noindex,nofllow">
<title><?php echo $info['company']; ?> - 流量统计- ETW国际客服系统 </title>
<link rel="stylesheet" type="text/css" href="css/css.css" />


</head>

<body>
<div id="main">
    <div id="top">
        <?php include('header.php');  ?>
       <div id="logo">
       <div id="menu">
          <ul><li class="current"><a href="manage.php">系统首页</a></li>
         <li><a href="news.php">新闻</a></li>
          <li><a href="commontools.php">工具箱</a></li>
       </ul><iframe style=" float:right;" width='350' height='30' marginwidth='0' marginheight='0' hspace='0' vspace='0' frameborder='0' scrolling='No' src='http://m.weather.com.cn/m/p3/weather1.htm' name="I6"></iframe></div>
       </div>
  </div>
     <!-- left -->
     <?php include('left.php');?>
     
     <div id="right">
          <p class="title"><strong>企业信息 &gt;&gt; 流量统计</strong> </p>
      <div id="con">
      <table width="721" border="0" class="tables">
  <tr class="gren">
    <th width="240" scope="col">站体名称(域名)</th>
    <th width="117" scope="col">开始统计时间</th>
    <th width="130" scope="col">访问总记录数	</th>
    <th width="216" scope="col">查看访问明细</th>
  </tr>
<?php  $sql="select * from etw_web where usernameid=".$_SESSION['guestid'];
       $result=mysql_query($sql);
	 	$tempoption="";
	   while($row=mysql_fetch_array($result)){  
	   $tempoption=$tempoption."<option value='".$row['jsqid']."'>".$row['website']."</option>";
  ?>
  <tr>
    <td><?php echo $row['website'] ?></td>
    <td><iframe height="15" frameborder="0" width="60" scrolling="no" src="http://jsq.etwun.com:8080/visite_data.php?userid=<?php echo $row['jsqid'] ?>"></iframe></td>
   
    <td><iframe height="15" frameborder="0" width="60" scrolling="no" src="visite_all.php?userid=<?php echo $row['jsqid'] ?>"></iframe></td>
  
    <td><a href="http://jsq.etwun.com:8080/view.php?userid=<?php echo $row['jsqid'] ?>" target="_blank">站体分析</a></td>
  </tr>
 <?php  }  ?> 
 <tr>
 	<td>
    <select name="userid" id="userid">
    <?php echo $tempoption;?>
    </select>
    </td>
    <td><input type="text" name="starttime" id="starttime" value="<?php echo date("Y-m-d")?>" size="15" /></td>
    <td><input type="text" name="endtime" id="endtime" value="<?php echo date("Y-m-d")?>" size="15" /></td>
    <td><a href="#" id="startreport" onclick="report();return false;">生成报表</a></td>
 </tr>
</table>

      </div>
     </div>
     <div id="footer"> Copy Rright &copy; 2008-2009 ETW International <?php if( @$_SESSION["username"]<>''){?>
<input type="hidden" id="onlineu" value="<?php echo $_SESSION["username"] ?>" />
<script type="text/javascript" src="js/onlinelisten.js"></script>
<script type="text/javascript">
window.setInterval(onlinemessage,30000);
</script>
<?php } ?></div>  
</div>
<script type="text/javascript" src="js/opencommon.js"></script>
</body>
</html>