<?php
/**
 * @version        Somao_Search X1.0 9:23 2012-1-1 Somao $
 * @package        Somao_Search.Site
 * @copyright      Copyright (c) 2009 - 2012, Somao, Inc.
 * @license        http://www.somao123.com/
 * @link           http://www.somao.cc/
 */
require_once("global.php");
is_login();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
		<title>首页</title>
       <link href="/css/union.css" rel="stylesheet" type="text/css" />
	</head>
	<body>
<div id="body">
<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#39867B">
    <tr>
      <td class="title">竞价关键字列表 </td>
    </tr>
    <tr>
      <td valign="top" bgcolor="#EFEFEF">
      
      <table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#dddddd" class="table">
      <form name="form3" method="post" action="key_manage.php">  
	   <input type="hidden" name="action" value="updateprice">
          <tr>
            <td width="10%" align="center" height="30" bgcolor="#efefef"><h4>序号</h4></td>
            <td width="18%" align="center" bgcolor="#efefef"><h4>关键词</h4></td>
            <td width="20%" align="center" bgcolor="#efefef"><h4>关键词状态</h4></td>
            <td width="10%" align="center" bgcolor="#efefef"><h4>出价</h4></td>
            <td width="10%" align="center" bgcolor="#efefef"><h4>点击次数</h4></td>
            <td width="10%" align="center" bgcolor="#efefef"><h4>点击平均价</h4></td>
            <td width="15%" align="center" bgcolor="#efefef"><h4>消费金额</h4></td>
          </tr>
          <tr>

<?php
  $query=$db->query("select * from ve123_keyword_pay where user_id='".$user["user_id"]."'");
  $j=0;
  while($link=$db->fetch_array($query))
  {
     $j++;
  ?>
  <tr>
    <td align="center" height="28"><?php echo $j;?></td>
    <td><?php echo "<a href=\"?action=modify&link_id=".$link["link_id"]."\">".$link["keywords"]."</a>";?></td>
    <td align="center"><a target="_blank" href="../s?wd=<?php echo urlencode($link["keywords"]);?>">搜索</a></td>
    <td align="center"><?php echo $link["price"];?></td>
    <td align="center"><?php echo $link["stat_click"];?></td>
    <td align="center"><?php echo $link["consumption"];?></td>
    <td align="center"><?php echo $link["consumption"];?></td>
  </tr>

  <?php
  }
  ?>
    </tr>
  </form>
</table>
</td>
</tr>
</table>

<?php foothtml(); ?>
