<%@ Page Language="C#" EnableViewState="false" AutoEventWireup="true" CodeBehind="MuLu.aspx.cs" Inherits="HtmlWeb.MuLu" %>

<!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 id="Head1" runat="server">
    <title>采集项目管理</title>
    <link href="style/style.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <style type="text/css">
<!--
.STYLE3 {
	color: #FFFFFF;
	font-weight: bold;
}
-->
    </style>
</head>
<body style="background-color:White;">
    <form id="form1" runat="server">
    <div class="bg2">
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" id="td_0">
          <tr>
            <td style="margin:0px; padding:0px"><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
              <tr>
                <td height="30" bgcolor="#0050CD"><span class="STYLE3">网站名称</span></td>
                <td bgcolor="#0050CD" width="140"><span class="STYLE3">上次采集时间</span></td>
                <td bgcolor="#0050CD"><span class="STYLE3">管理操作</span></td>
              </tr>
                <asp:Repeater ID="Repeater1" runat="server">
                <ItemTemplate>
                <tr>
                <td bgcolor="#EDF3FA"><%#Eval("MuLu_Name")%></td>
                <td bgcolor="#EDF3FA"><%#Eval("MuLu_Time")%></td>
                <td bgcolor="#EDF3FA"><a href="MuLu.aspx?ID=<%#Eval("ID")%>">编辑</a> | <a href="edit.aspx?muluid=<%#Eval("ID")%>" title='添加采集项目到该网站下'>添加采集项目</a> | <a href="list.aspx?muluid=<%#Eval("ID")%>" title='管理该网站下采集项目'>管理采集项目</a> | <a style="color:Red;" title='删除不可恢复' href="javascript:del(<%#Eval("ID")%>);">删除</a></td>
              </tr>
                </ItemTemplate>
                </asp:Repeater>              
            </table></td>
          </tr>
        </table>
    </div>
    <div class="bg2">
<table cellpadding="0" cellspacing="1" bgcolor="#CCCCCC" width="100%">
  <tr>
    <td width="18%" align="right" nowrap="nowrap" bgcolor="#FFFFFF"><strong>网站名称：</strong></td>
    <td width="77%" bgcolor="#FFFFFF">
        <asp:TextBox ID="TextBox1" runat="server" Width="205px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
            ErrorMessage="(*不能为空)">(*不能为空)</asp:RequiredFieldValidator></td>
  </tr>
  <tr>
    <td align="right" bgcolor="#FFFFFF">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
    <td bgcolor="#FFFFFF"><div align="center">
        <br />
        <asp:Button ID="Button1" runat="server" Text="修  改" OnClick="Button1_Click" Visible="False" />&nbsp;&nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
        <asp:Button ID="Button2" runat="server" Text="添  加" OnClick="Button2_Click" />&nbsp;
    </div></td>
  </tr>
</table>
    </div>
    <script type="text/javascript">
    function del(id)
    {
        var msg=window.confirm("您确定要删除该网站及其采集项目?\n\n提示：删除后无法恢复！");
        if (msg)
        {
            window.location="mulu.aspx?delid="+id;
        }
    }
    </script>
    </form>
</body>
</html>
