<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.System_Link_Manage, V5Shop.Shop.Config" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc2" %>
<%@ Register Src="control/HiddenField.ascx" TagName="HiddenField" TagPrefix="uc1" %>
<%@ Register TagPrefix="V5Shop" Namespace="V5Shop.Control" Assembly="V5Shop.Control" %>
<%@ Register Src="control/ManageHeader.ascx" TagName="ManageHeader" TagPrefix="uc3" %>
<!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 runat="server">
    <title>友情链接管理页面</title>
    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <link href="css/css_list.css" rel="stylesheet" type="text/css" />
    <link href="css/control.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" language="javascript" src="js/Common.js"></script>
    <style type="text/css">
#dhtmltooltip {
font-size: 9pt;BORDER-RIGHT: gray 1px solid; PADDING-RIGHT: 4px; BORDER-TOP: gray 1px solid; PADDING-LEFT: 4px; Z-INDEX: 100; FILTER: progid:DXImageTransform.Microsoft.Shadow(color=gray,direction=120); VISIBILITY: hidden; PADDING-BOTTOM: 4px; BORDER-LEFT: gray 1px solid; WIDTH: 150px; PADDING-TOP: 4px; BORDER-BOTTOM: gray 1px solid; POSITION: absolute; BACKGROUND-COLOR: #cccccc
}
</style>
</head>
<body>
    <form id="form1" runat="server">
        <div id="dhtmltooltip"><img src="" alt="" /></div>
        <script language="javascript" type="text/javascript" src="js/showimg.js"></script>
        <div>
            <uc3:ManageHeader ID="ManageHeader1" runat="server" />
            <div id="search">
                <div style="padding: 10px 20px; border: 1px #eeeeee solid; background: #f7f7f7">
                    <asp:Label ID="lblName" runat="server" Text="链接名称："></asp:Label>
                    <asp:TextBox ID="txtName" Width="100px" runat="server" class="input"></asp:TextBox>
                    <asp:Label ID="lblType" runat="server" Text="链接类型："></asp:Label>
                    <asp:DropDownList ID="ddlLinkTypeID" runat="server">
                    </asp:DropDownList>
                    <asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click" class="button" /></div>
            </div>
            <div id="content">
                <div style="padding: 3px 25px; color: #4B6888; border-bottom: 1px #CCCCCC solid">
                    <input type="checkbox" id="CheckAllBox" onclick="CheckAll()" class="checkbox" />
                    全选
                    <asp:LinkButton ID="btnAdd" runat="server" ForeColor="#4B6888" OnClick="btnAdd_Click" Width="60px"><img src="images/icon/key_add.gif" alt=""/> 添加</asp:LinkButton>
                    <asp:LinkButton ID="btnEdit" runat="server" ForeColor="#4B6888" OnClick="btnEdit_Click" OnClientClick="return CheckEdit()" Width="60px"><img src="images/icon/key_edit.gif" alt=""/> 编辑</asp:LinkButton>
                    <asp:LinkButton ID="btnDel" runat="server" ForeColor="#4B6888" OnClick="btnDel_Click" OnClientClick="return CheckDel()" Width="60px"><img src="images/icon/key_delete.gif" alt=""/> 删除</asp:LinkButton>
                    <asp:LinkButton ID="btnUp" runat="server" ForeColor="#4B6888" OnClick="btnUp_Click" OnClientClick="return CheckUp()" Width="60px"><img src="images/icon/key_top.gif" alt=""/> 向上</asp:LinkButton>
                    <asp:LinkButton ID="btnDown" runat="server" ForeColor="#4B6888" OnClick="btnDown_Click" OnClientClick="return CheckDown()" Width="60px"><img src="images/icon/key_down.gif" alt=""/> 向下</asp:LinkButton>
                </div>
                <div class="listborder">
                    <V5Shop:V5ShopGridView ID="GridViewShow" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CssClass="datalist" HeaderStyle-Height="18px" HeaderStyle-ForeColor="#000" EmptyDataText="没有查询到任何记录" TableName="Link" BorderWidth="0px" CacheName="Link" GridLines="None" PageSize="12">
                        <Columns>
                            <asp:TemplateField>
                                <itemstyle width="3%" />
                                <itemtemplate>
                                <input runat="server" value='<%# Eval("ID") %>' id="CheckBoxID" type="checkbox" 
                                    onmouseover="this.mouse='over'" onmouseout="this.mouse='out'" mouse="out" class="checkbox" />
                                </itemtemplate>
                                <itemstyle horizontalalign="Center" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="id" SortExpression="ID" HeaderText="ID">
                                <itemstyle width="6%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Name" SortExpression="Name" HeaderText="链接名称">
                                <itemstyle width="25%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Href" SortExpression="Href" HeaderText="链接地址">
                                <itemstyle width="25%" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="链接类型" SortExpression="Type">
                                <itemstyle width="10%" />
                                <itemtemplate>
									<asp:Label runat="server" Text='<%# FormartStatus(DataBinder.Eval(Container,"DataItem(Type)","{0}"),"1") %>' id="lblTypeTemplate"></asp:Label>
							</itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="图片预览" SortExpression="Src">
                                <itemstyle width="10%" />
                                <itemtemplate>
                                <img src="images/icon-viewpic.gif" alt="" onmouseout="hideddrivetip()" style="<%# SetSrcVisible(Eval("Type").ToString()) %>"
                                    onmouseover="javascript:ddrivetip('<img src=<%# ForamtSrc(Eval("ImgType").ToString(), Eval("Src").ToString()) %>>','#ffffff')" />
							</itemtemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="OrderID" SortExpression="OrderID" HeaderText="排序">
                                <itemstyle width="5%" />
                            </asp:BoundField>
                        </Columns>
                        <PagerSettings Mode="NumericFirstLast" />
                        <HeaderStyle CssClass="category" ForeColor="Black" Height="18px" />
                    </V5Shop:V5ShopGridView>
                </div>
                <div id="hiddenfield">
                    <asp:HiddenField ID="CheckedIDS" runat="server" Value="0" />
                    <asp:HiddenField ID="PageIndex" runat="server" Value="0" />
                    <asp:HiddenField ID="MaxPageIndex" runat="server" Value="0" />
                    <uc1:HiddenField ID="Alert" runat="server" />
                </div>
                <uc2:PageBottom ID="PageBottom1" runat="server" />
            </div>
        </div>
    </form>
</body>
</html>
