<%@ page language="C#" autoeventwireup="true" inherits="admin_addlink, shazhiqiu_taoke_free" %>
<!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 src="fenye.js" type="text/javascript"></script> 
            <script language="javascript" type="text/javascript">
                function addlink() {
                    var f = document.forms[0];
                    if (f.classid.value == "0") {
                        alert("请选择网站!");
                        f.classid.focus();
                        return false;
                    }
             

                    else {
                        return true;
                    }
                }

</script>
        <link href="images/skin.css" rel="stylesheet" type="text/css" />


</head>
<body>
    <form id="form1" runat="server">
       <div class="divtext">
    <div class="righttitle"><img src="images/biaoti.png" /> 友情链接</div>
<table cellspacing="0" cellpadding="0" width="100%"  class="tablexian" border="0">
<tr><td   align="right" class="tablexianbg">网站：</td><td align="left" class="auto-style2">
             <asp:DropDownList ID="classid" runat="server" AutoPostBack="True" OnSelectedIndexChanged="classid_SelectedIndexChanged" Width="300px">
             </asp:DropDownList></td></tr>
<tr><td   align="right" style="width: 100px" class="tablexianbg">链接：</td><td align="left">
    <asp:TextBox ID="linkcode" runat="server" Rows="8" TextMode="MultiLine" Width="300px"></asp:TextBox>
&nbsp;格式“ 淘宝客程序|<a href="http://www.shazhiqiu.cn">http://www.shazhiqiu.cn</a> ” 一行一个 中间 | 隔开</td></tr>
<tr>
<td align="right"  style="width: 100px" class="tablexianbg">
</td>
<td align="left">
    <asp:Button ID="Button1" runat="server" OnClientClick="return addlink()" 
        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%;" class="tablexianbg">网站名</td>
<td align="center" class="tablexianbg">网站网址</td>
<td align="center" class="tablexianbg">所属网站</td>
    <td align="center" class="tablexianbg">时间</td>
    <td align="center" class="tablexianbg">修改</td>
<td align="center" class="tablexianbg">删除</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td align="center">
    <asp:TextBox ID="linktitle" runat="server" Text='<%# Eval("linktitle")%>'></asp:TextBox></td>
<td align="center"> <asp:TextBox ID="linkurl" runat="server" Text='<%# Eval("linkurl")%>'></asp:TextBox></td>
<td align="center"><%# Eval("siteurl")%></td>
    <td align="center"><%# Eval("linktime")%></td>
<td align="center"><asp:Button ID="edit" runat="server" CommandArgument='<%# Eval("linkid")%>' CssClass="button" CommandName="editcmd" Text="修改" /></td>

<td align="center"><asp:Button ID="del" runat="server" CommandArgument='<%# Eval("linkid")%>' 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 align="left">
    <asp:Label ID="fenye" runat="server"></asp:Label></td></tr>
</table>
    </div>

    </form>
</body>
</html>
