<%@ page language="C#" autoeventwireup="true" inherits="Admin_Links_Picture_Links, Huibo.Net" enableviewstatemac="false" enableEventValidation="false" %>

<!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/StyleSheet.css" type="text/css" rel="stylesheet" />
    <link href="../style/workplace-merge.css" rel="stylesheet" />
    <link href="../style/index-new-merge.css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
        <div style="width: 99%; text-align: center;">
            <div class="mod-wp-win">
                <div class="win-head-wrap">
                    <div class="win-head" id="mod-info-center-head">
                        <p>
                            文字友情链接</p>
                    </div>
                </div>
                <div class="mod-info-center clr">
                    <div class="DLBoder">
                        <asp:DataList ID="ImgLink" runat="server" Width="100%" OnDeleteCommand="ImgLink_DeleteCommand"
                            OnUpdateCommand="ImgLink_UpdateCommand">
                            <HeaderTemplate>
                                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                                    <tr style="height: 25px;">
                                        <td class="DLBodertd" style="width: 15%;">
                                            网站名称
                                        </td>
                                        <td class="DLBodertd" style="width: 20%;">
                                            网站地址
                                        </td>
                                        <td class="DLBodertd" style="width: 30%;">
                                            图片地址
                                        </td>
                                        <td class="DLBodertd" style="width: 5%;">
                                            排序
                                        </td>
                                        <td class="DLBodertd" style="width: 15%;">
                                            操作
                                        </td>
                                    </tr>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr>
                                    <td class="DLBodertd">
                                        <asp:TextBox ID="linkname" Width="140px" Text='<%# DataBinder.Eval(Container, "DataItem.linkname")%>'
                                            runat="server"></asp:TextBox>
                                    </td>
                                    <td class="DLBodertd">
                                        <asp:TextBox ID="linkurl" Width="170px" Text='<%# DataBinder.Eval(Container, "DataItem.linkurl")%>'
                                            runat="server"></asp:TextBox>
                                    </td>
                                    <td class="DLBodertd">
                                        <asp:TextBox ID="linkimg" Width="150px" Text='<%# DataBinder.Eval(Container, "DataItem.linkimg")%>'
                                            runat="server"></asp:TextBox>
                                        <input id="Button1" type="button" onclick="window.open('../Upload/ADUpload.aspx?P=<%# (Container).FindControl("linkimg").ClientID %>','','status=no,scrollbars=no,top=20,left=200,width=420,height=170')"
                                            style="width: 70px; height: 22px;" value="上传图片" /><%--<asp:FileUpload ID="FilePic" Width="120px" runat="server" />--%>
                                    </td>
                                    <td class="DLBodertd">
                                        <asp:TextBox ID="linkorder" Width="40px" Text='<%# DataBinder.Eval(Container, "DataItem.linkorder")%>'
                                            runat="server"></asp:TextBox>
                                    </td>
                                    <td class="DLBodertd">
                                        <asp:Button ID="Update" runat="server" CommandName="update" Text="更新" Height="22px"
                                            Width="50px" /><asp:Button ID="Delete" CommandName="Delete" runat="server" Height="22px"
                                                Width="50px" Text="删除" />
                                    </td>
                                </tr>
                            </ItemTemplate>
                            <FooterTemplate>
                                </table>
                            </FooterTemplate>
                        </asp:DataList>
                    </div>
                    <div style="height: 30px;">
                    </div>
                    <div class="DLBoder">
                        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                            <tr class="DLBodertd" style="height: 25px;">
                                <td class="DLBodertd" style="width: 15%;">
                                    网站名称
                                </td>
                                <td class="DLBodertd" style="width: 20%;">
                                    网站地址
                                </td>
                                <td class="DLBodertd" style="width: 30%;">
                                    图片地址
                                </td>
                                <td class="DLBodertd" style="width: 5%;">
                                    排序
                                </td>
                                <td class="DLBodertd" style="width: 15%;">
                                    操作
                                </td>
                            </tr>
                            <tr>
                                <td class="DLBodertd">
                                    <asp:TextBox ID="linkname" Width="140px" Text="" runat="server"></asp:TextBox>
                                </td>
                                <td class="DLBodertd">
                                    <asp:TextBox ID="linkurl" Width="170px" Text="" runat="server"></asp:TextBox>
                                </td>
                                <td class="DLBodertd">
                                    <asp:TextBox ID="linkimg" Width="150px" Text="" runat="server"></asp:TextBox>
                                    <input id="Button1" type="button" onclick="window.open('../Upload/ADUpload.aspx?P=linkimg','','status=no,scrollbars=no,top=20,left=200,width=420,height=170')"
                                        style="width: 70px; height: 22px;" value="上传图片" /><%--<asp:FileUpload ID="FilePic" Width="120px" runat="server" />--%>
                                </td>
                                <td class="DLBodertd">
                                    <asp:TextBox ID="linkorder" Width="40px" Text="0" runat="server"></asp:TextBox>
                                </td>
                                <td class="DLBodertd">
                                    <asp:Button ID="Update" runat="server" CommandName="Save" Text="添加" Height="22px"
                                        Width="100px" OnClick="Update_Click" />
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </form>
</body>
</html>
