<?php
@session_start();
include('checkstate.php');
$webid=$_GET['id'];
 	  $sql="select * from website where webid=".$webid;
 	  $result=mysql_query($sql);
	  $comid=mysql_result($result,0,'comid');
	  $languageid=mysql_result($result,0,'languageid');
	  $weburl=mysql_result($result,0,'weburl');
	  $jsqid=mysql_result($result,0,'jsqid');
	  $attime=mysql_result($result,0,'attime');
	  $counts=mysql_result($result,0,'counts');
?>
<!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><?php echo getcompany($comid); ?> - ETW国际案例演示</title>
<link rel="stylesheet" href="media/css.css" type="text/css" media="screen" />
</head>

<body>
<div id="main">
     <div id="top"><span class="cc"><?php echo $company; ?></span></div>
     <div id="center">
        <div class="location"><strong>当前位置 : <a href="index.php">案例演示首页</a> >> <?php echo getcompany($comid).">> <font color='#FF0000'>".$weburl."</font> 关键词排名效果分析表"; ?></strong></div>
        <div id="middle">
          <div id="listtable">
          
            <table width="960" border="0" cellpadding="0" cellspacing="0"  class="tables" style="text-align:center">
 <tr><td colspan="5" align="center"><h2><?php echo getcompany($comid); ?></h2></td></tr>
 <tr><td>网 址:</td><td><a href="http://www.<?php echo $weburl; ?>" target="_blank">http://www.<?php echo $weburl; ?></a><?php echo "(".getlanguage($languageid).")"; ?></td><td align="right">&nbsp;开始时间:<?php echo $attime; ?></td><td colspan="2" >访问次数：<font color='#FF0000'><?php echo $counts; ?></font></td></tr>
 <tr><td colspan="5">&nbsp;该站体主要关键词在<strong>全球各主流搜索引擎</strong>中的排名表</td></tr>
  <tr>
    <td width="140" align="center">搜索引擎:</td>
    <td width="334" align="center">关键词(产品名)</td>
    <td width="235" align="center">译 文</td>
    <td width="100" align="center">排名</td>
    <td width="139" align="center">统计日期</td>
  </tr>
  <?php $groupsearch=sql_select("select searchid from keyrank_temp where state=1 and webid=".$webid." group by searchid");
    for($i=0; $i<count($groupsearch);$i++){  
            $sql="select * from keyrank_temp where state=1 and webid=".$webid." and searchid='".$groupsearch[$i][0]."'";
		   $result=mysql_query($sql);
		   $count=mysql_num_rows($result);
		   $m=1;
		   while($row=mysql_fetch_array($result)){ ?>
    <tr>
    <?php if($m==1) { echo "<td width='139' align='center' rowspan='".$count."'>".$groupsearch[$i][0]."</td>"; }?>
    <td width="140"><?php  echo $row[keyword];?></td>
    <td width="334"><?php  echo $row[transmean];?></td>
    <td width="235"><?php  echo $row[rank];?></td>
    <td width="100"><?php  echo $row[edittime];?></td>
  </tr><?php $m++; } } ?>

</table>
          </div>
        </div>
        
        
     </div>
     
     <div id="foot"><P>copy right &copy; 2008-2009  <font color="#990000">ETW International</font></P></div>
</div>
</body>
</html>
