<%@ page language="C#" autoeventwireup="true" inherits="admin_addinfokeywords, shazhiqiu_freetaoke" %>
<!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>
    <title></title>
            <script language="javascript" type="text/javascript">
                function addkeyword() {
                    var f = document.forms[0];
                    if (f.keywordtitle.value == "") {
                        alert("请输入关键字!");
                        f.keywordtitle.focus();
                        return false;
                    }
                    else if (f.keywordurl.value == "") {
                        alert("请输入关键字链接网址!");
                        f.keywordurl.focus();
                        return false;
                    }
                    else {
                        return true;
                    }
                }

</script>
      <script src="fenye.js" type="text/javascript"></script> 
        <link href="images/skin.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
	font-size:12px;
}
-->
</style>  

</head>
<body>
    <form id="form1" runat="server">
 <table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="images/mail_leftbg.gif"><img src="images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">添加关键字</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="images/mail_rightbg.gif"><img src="images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9">
    <div class="divtext">
<table cellspacing="0" cellpadding="0" width="100%"  class="tablexian" border="0">
<tr><td   align="right" style="width: 100px">关键字：</td><td align="left">
    <input id="keywordtitle" maxlength="35" size="20" type="text"  runat="server" /></td></tr>
        <tr>
            <td align="right"  style="width: 100px">
                网址：</td>
            <td align="left">
                <input id="keywordurl" maxlength="120" size="45" type="text" runat="server" /></td>
        </tr>
<tr>
<td align="right"  style="width: 100px">
</td>
<td align="left">
    <asp:Button ID="Button1" runat="server" OnClientClick="return addkeyword()" 
        Text="添加关键字" onclick="Button1_Click" />
    </td>
</tr>
</table>
<asp:Repeater ID="Repeater1" runat="server"  OnItemCreated="Repeater1_ItemCreated" 
            onitemcommand="Repeater1_ItemCommand">
<HeaderTemplate>
<table cellspacing="0" cellpadding="0" width="100%"  class="tablexian" border="0">
<tr>
<td align="center" style="width:20%;">关键字</td>
<td align="center">关键字网址</td>
<td align="center">热度</td>
<td align="center">时间</td>
<td align="center">修改</td>
<td align="center">删除</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td align="center"><asp:TextBox ID="keywordtitle" runat="server" Text='<%# Eval("keywordtitle")%>'></asp:TextBox></td>
<td align="center">
    <asp:TextBox ID="keywordurl" runat="server" Text='<%# Eval("keywordurl")%>' Width="250"></asp:TextBox></td>
    <td align="center"><%# Eval("keywordhot")%></td>
        <td align="center"><%# Eval("keywordtime")%></td>
    <td align="center"><asp:Button ID="edit" runat="server" CommandArgument='<%# Eval("keywordid")%>' CssClass="button" CommandName="editcmd" Text="修改" /></td>
<td align="center"><asp:Button ID="del" runat="server" CommandArgument='<%# Eval("keywordid")%>' CssClass="button" CommandName="delcmd" Text="删除" /></td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>  
</FooterTemplate>
</asp:Repeater>
<table cellspacing="0" cellpadding="0" width="100%"  class="tablexian" style="margin-top:10px;" border="0">
<tr><td>
    <asp:Label ID="fenye" runat="server"></asp:Label>
    </td></tr>
</table>
    </div>
    
    
</td>
    <td background="images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="images/mail_leftbg.gif"><img src="images/buttom_left2.gif" width="17" height="17" /></td>
    <td background="images/buttom_bgs.gif"><img src="images/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="images/mail_rightbg.gif"><img src="images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
    </form>
</body>
</html>
    

