<%
    //-----------------------------------------------------------
    // 文件名称: Template_Picture_Manage_Dialog.aspx
    // 页面名称: 添加广告图片
    //
    // 描    述:
    //
    // 修改标识: Add By 钟治宇 2008-11-18  广告添加选择图片添加时采用悬浮框方式 添加了一个控件,属性
    //-----------------------------------------------------------
%>

<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Template_Picture_Manage_Dialog, V5Shop.Shop.Template" 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" %>
<!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>
    <base Target="_self" /> 
    <link href="css/css.css" rel="stylesheet" type="text/css">
    <link href="css/css_list.css" rel="stylesheet" type="text/css">
    <script>
    //document.getElementById().style.backgroundColor
    </script>
    <link href="css/control.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" language="javascript" src="js/Common.js"></script>
</head>
<body>
    <form id="form1" runat="server">        <div style="height:36px;; background:url(images/labelbg.gif)">
        <div style="float:left; padding:10px 20px; color:#000000; font-weight:bolder">【 模板图片编辑 】</div>
      </div>

    <div>
        <div id="search">
            <div style="padding:20px; border-bottom:1px #CCCCCC solid; background:#FFFFFF">
                <asp:Label ID="lblName" runat="server" Text="图片名称：" ForeColor="#4B6888" Font-Bold="true" meta:resourcekey="lblTitleResource1"></asp:Label>
                <asp:TextBox ID="txtName" Width="200px" runat="server" meta:resourcekey="txtTitleResource2"></asp:TextBox>

                <asp:Label ID="lblCategory" runat="server" Text="图片类别：" ForeColor="#4B6888" Font-Bold="true" meta:resourcekey="lblAuthorResource1"></asp:Label>
                <asp:DropDownList ID="listCategory" runat="server"></asp:DropDownList>
                
                <asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click" meta:resourcekey="btnSearchResource1" class="button"/>
            </div>
        </div>
          
        <div id="content">
            <div style="padding:3px 25px; color:#4B6888; border-bottom:1px #CCCCCC solid; background:#F7F7F7" >
        　    <asp:LinkButton ID="btnAdd" runat="server" ForeColor="#4B6888" OnClick="btnAdd_Click" meta:resourcekey="btnAddResource2"><img src="images/key_add.gif" /> 添加</asp:LinkButton>
        　    <asp:LinkButton ID="btnDel" runat="server" ForeColor="#4B6888" OnClick="btnDel_Click" OnClientClick="return CheckDel()" meta:resourcekey="btnDelResource2"><img src="images/key_delete.gif" /> 删除</asp:LinkButton>
        　  </div>
            
            <asp:DataList ID="GridViewShow" Width="100%" runat="server" GridLines="Horizontal" RepeatDirection="Horizontal" RepeatColumns="7">
                <ItemTemplate>
                    <table>
                        <tr>
                            <td><center>
                                <div style="width:60px; height:60px;"><div style="width:58px; height:58px; margin:1px; background:#ffffff">
                                    <img style="padding:1px 0 0 1px;cursor:pointer;" title='Template/<%=path %>/Images/<%=imagespath %>/<%# DataBinder.Eval(Container,"DataItem(Name)","{0}") %>' border="0" src='../Template/<%=path %>/Images/<%=imagespath %>/<%# DataBinder.Eval(Container,"DataItem(Name)","{0}") %>' width="56" height="56" ondblclick="InitPicture(this)" onmousemove="this.parentNode.parentNode.style.backgroundColor='#006699'" onmouseout="this.parentNode.parentNode.style.backgroundColor='white'" />
                                </div></div></center></td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:DataList>
            
            <asp:Panel ID="AddField" runat="server" Visible="false">
           <%-- 2008-11-18 --%>
                <div  align="center" style="position:absolute; left:200px; top:140px; border:solid 3px #B8C9D6; z-index:10000">
                    <table cellpadding="0" cellspacing="0">
                        <tr>
                            <td width="20%" height="30" align="right" bgcolor="#ffffff">
                                <asp:Label ID="lblPictureCategory" runat="server" Text="图片类别："></asp:Label>
                            </td>
                            <td bgcolor="#ffffff" align=left>
                                <asp:DropDownList ID="listPictureCategory" runat="server"></asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td width="20%" height="30" align="right" bgcolor="#ffffff">
                                <asp:Label ID="lblSrc" runat="server" Text="上传图片："></asp:Label>
                            </td>
                            <td bgcolor="#ffffff" align=left>
                                <asp:FileUpload ID="fileSrc" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td width="20%" height="30" align="right" bgcolor="#ffffff">
                            </td>
                            <td bgcolor="#ffffff" align=left>
                                <asp:Button ID="btnAddSubmit" runat="server" Text="确定" OnClick="btnAddSubmitDialog_Click" meta:resourcekey="btnAddResource1" class="button"/>
                                <input id="iptReset" runat="server" type="reset" value="重置" class="button"/>
                                  <%-- 2008-11-18 --%>
                                <asp:Button ID="btnCancel" runat="server" CausesValidation="false" CssClass="button"
                                    OnClick="btnCancel_Click" Text="取消" /></td>
                        </tr> 
                    </table>
                </div>
            </asp:Panel>
        </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>
    </div>
    </form>
</body>
</html>
