<!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=gb2312">
<title>关键字管理</title>
<link href="div.css" rel="stylesheet" type="text/css">
<link href="css_body.css" rel="stylesheet" type="text/css" />
<style>
	.nnpp{
	border-bottom:1px solid #98CAEF;
	border-top:1px solid #FFFFFF;
	border-left:1px solid #FFFFFF;
	border-right:1px solid #FFFFFF;
	filter:alpha(opacity=50);
 }
</style>
</head>
<body>
<div class="bodytitle">
	<div class="bodytitleleft"></div>
	<div class="bodytitletxt">批量管理</div>
</div>
<div class="main"> 
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#E2F5BC;">
    <tr> 
      <td height="26" colspan="6"><table width="96%" border="0" align="center">
          <tr> 
            <td width="25%" height="35" align="left"><strong>关键词维护</strong></td>
            <form name='form2' action="article_keywords_main.php">
            <td width="75%" align="left">
   	        搜索：
   	          <input type='text' name='keyword' size='10'> 
   	        <input type='submit' name='sb' value='确定' class="inputbut" />
   	        &nbsp;
            <input name="n1" type="button" id="n1" value="分析系统内的关键字" onClick="location='article_keywords_make.php';" class="inputbut" /> 
            &nbsp;
            <input name="n11" type="button" id="n11" value="管理搜索的关键字" onClick="location='search_keywords_main.php';" class="inputbut" />
            </td></form>
          </tr>
        </table></td>
    </tr>
    <form name='forma' action="article_keywords_add.php">
      <tr align="center" bgcolor="#F0FDDB"> 
        <td width="100%" height="24" colspan="6" bgcolor="#EDF9D5">
       	  <table border="0" cellspacing="0" cellpadding="0">
            <tr> 
              <td width="100" align="center">新增关键字：</td>
              <td width="140"><input name="keyword" type="text" id="keyword" style="width:130"></td>
              <td width="100">链接网址：</td>
              <td width="140"><input name="rpurl" type="text" id="rpurl" style="width:130"></td>
              <td width="40">频率：</td>
              <td width="50"><input name="rank" type="text" id="rank" style="width:30" value="30"></td>
              <td width="80"><input type="submit" name="Submit" value="保存" class="inputbut" /></td>
            </tr>
          </table>
          </td>
      </tr>
    </form>
    <tr align="center" bgcolor="#F8FBFB" height="24"> 
      <td width="8%">选择</td>
      <td width="25%">关键字</td>
      <td width="35%">链接网址</td>
      <td width="10%">频率</td>
      <td width="22%">管理</td>
    </tr>
	<form name='form1' action="article_keywords_saveall.php" method="post">
<?php 
$mylist = $dlist->GetDataList();
while($row = $mylist->GetArray('dm'))
{
?>
    <tr align="center" bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#EEFAAB';" onMouseOut="javascript:this.bgColor='#FFFFFF';"> 
      <td height="24">
      	<input name="aids[]" type="checkbox" value="<?php echo $row['aid']?>"  checked> 
      </td>
      <td>
      	<input type='hidden' value='<?php echo $row['keyword']?>' name='keyword_<?php echo $row['aid']?>'>
      	<?php echo $row['keyword']?>
      </td>
      <td>
      	<input type='hidden' value='<?php echo $row['rpurl']?>' name='rpurlold_<?php echo $row['aid']?>'>
      	<input type='text' style='width:90%' class='nnpp' value='<?php echo $row['rpurl']?>' name='rpurl_<?php echo $row['aid']?>'>
      </td>
      <td>
      	<input type='text' size='5' class='nnpp' value='<?php echo $row['rank']?>' name='rank_<?php echo $row['aid']?>'>
      </td>
      <td>
      	<input type='hidden' name='staold_<?php echo $row['aid']?>' value='<?php echo $row['sta']?>'>
      	<input type='checkbox' name='isnouse_<?php echo $row['aid']?>' class='np' value='1'<?php echo GetSta($row['sta'])?>>
      	禁用
      	&nbsp;
      	<input type='checkbox' name='isdel_<?php echo $row['aid']?>' class='np' value='1'>
      	删除
      </td>
    </tr>
<?php 
}
?>
     <tr bgcolor="#F0FBBD"> 
      <td height="35" colspan="6" bgcolor="#EDF9D5">
	    &nbsp; <input type="button" name="dl" value="保存更改" onClick="this.form.submit();" class="inputbut" />	  </td>
    </tr>
	</form>
    <tr align="center" bgcolor="#FAFDF0">
      <td height="24" colspan="6">
      	<?php echo $dlist->GetPageList(5);?>
      </td>
    </tr>
  </table>
</div>
</body>
</html>