<%@ page language="C#" autoeventwireup="true" inherits="admin_addcaiji, cndian_tao_qun" %>
<!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>
<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;
}
    #siteurl
    {
        width: 262px;
    }
-->
</style>  <script type="text/javascript" src="date.js"></script>
<script language="javascript" type="text/javascript">
    function addcaiji() {
        var f = document.forms[0];
        if (f.siteurl.value == "") {
            alert("请输入采集网站网址!");
            f.siteurl.focus();
            return false;
        }
       
        else {
            return true;
        }
    }


</script>
</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="siteurl" runat="server" maxlength="100" type="text" /></td>
</tr>
<tr>
<td align="right" class="td" style="width: 100px">
</td>
<td align="left">
    <asp:Button ID="Button1" runat="server" OnClientClick="return addcaiji()" 
        Text="添加链接" onclick="Button1_Click" />
    </td>
</tr>
</table>

<asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand" OnItemCreated="Repeater1_ItemCreated">
<HeaderTemplate>
<table cellspacing="0" cellpadding="0" width="100%"  class="tablexian" border="0">
<tr>
<td align="center" style="width:15%;"></td>
<td align="center" style="width:30%;">网址</td>
<td align="center">每天采集数</td>
<td align="center">时间0-23小时</td>
<td align="center" style="width:8%;">启用采集</td>

<td align="center">删除</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td align="center"><asp:Button ID="open" runat="server" CommandArgument='<%# Eval("id")%>' CssClass="button" CommandName="opencmd" Text="启用" /> <asp:Button ID="close" runat="server" CommandArgument='<%# Eval("id")%>' CssClass="button" CommandName="closecmd" Text="关闭" /></td>
<td align="left"><%# Eval("url")%></td>
<td align="center"><asp:TextBox ID="caijisum" runat="server"  Width="50" style="text-align:center" Text='<%# Eval("caijisum")%>'></asp:TextBox></td>
<td align="center"><asp:TextBox ID="caijitime" runat="server" Width="50" style="text-align:center" Text='<%# Eval("caijitime")%>'></asp:TextBox></td>
<td align="center"><asp:Label ID="caijior" runat="server"></asp:Label></td>
<td align="center"><asp:Button ID="del" runat="server" CommandArgument='<%# Eval("id")%>' CssClass="button" CommandName="delcmd" Text="删除" /></td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>  
</FooterTemplate>
</asp:Repeater>
     </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>