<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Picture_Picture_Manage_Dialog, V5Shop.Shop.Picture" 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 topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" scroll="no">


       <div id='dhtmltooltip' style="z-index:10001"><img src="" /></div>
       <script language="javascript" src="js/showimg.js"></script>
       
    <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 style="float:right; padding:8px 30px 0 0;">
                <input type="button" value="关闭窗口" class="button" onclick="window.close()" />
            </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="查询" CausesValidation="false" 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>
        　  </div>
            
            <asp:DataList ID="GridViewShow" Width="100%" runat="server" DataKeyField="id" GridLines="Horizontal" RepeatDirection="Horizontal" RepeatColumns="6">
                <ItemTemplate>
                    <table>
                        <tr>
                            <td><center><!-- onMouseOver="javascript:ddrivetip('<div align=center><b>双击选择该图片</b></div><br><img id=tmpimg src=../<%#Eval("Src") %>>','#ffffff','','tmpimg','../<%#Eval("Src") %>')"     hideddrivetip(); -->
                                <div style="width:92px; height:92px;"><div style="width:90px; height:90px; margin:1px; background:#ffffff">
                                    <img id="img_<%#Eval("ID") %>" style="padding:1px 0 0 1px;cursor:pointer;"title='双击选择该图片，图片地址是<%# DataBinder.Eval(Container,"DataItem(src)","{0}") %>' border="0" src='../<%# GetTmpImg(DataBinder.Eval(Container,"DataItem(Src)","{0}")) %>' width="88" height="88" ondblclick="InitPicture(this)" onmousemove="this.parentNode.parentNode.style.backgroundColor='#006699'" onmouseout="this.parentNode.parentNode.style.backgroundColor='white';" />
                                </div></div><br />
                                <span title="<%#Eval("Name") %>" ><%#V5Shop.Common.utils.left(Eval("Name").ToString(),4) %></span></center></td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:DataList>
            
                        
            <div>
                <div style="padding:10px 10px 30px; text-align:right; color:#000000"><font color=black>共 <asp:Label ID="lbmaxpage" runat="server" Text="1"></asp:Label> 页
                    , 当前第  <asp:Label ID="lbpage" runat="server" Text="1"></asp:Label>  页 &nbsp;&nbsp;
                    [ <asp:LinkButton ID="lbtnIndex" runat="server" Text="首页" style="color:Black;" OnClick="lbtnIndex_Click"></asp:LinkButton>
                    | <asp:LinkButton ID="lbtnLast" Enabled="false" runat="server" Text="上一页" style="color:Black;" OnClick="lbtnLast_Click"></asp:LinkButton>
                    | <asp:LinkButton ID="lbtnNext" runat="server" Text="下一页" style="color:Black;" OnClick="lbtnNext_Click"></asp:LinkButton>
                    | <asp:LinkButton ID="lbtnEnd" runat="server" Text="末页" style="color:Black;" OnClick="lbtnEnd_Click"></asp:LinkButton> ] 
                    页数:
                    <asp:DropDownList ID="ddlPageSelect" runat="server" OnSelectedIndexChanged="ddlPageSelect_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
			    </div>
            </div>
            
            <asp:Panel ID="AddField" runat="server" Visible="false">
              <div  align="center" style="position:absolute; left:200px; top:140px; border:solid 3px #B8C9D6; z-index:10000">
                <table cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                  <tr>
                    <td height="30" colspan="2" style="height:36px; background:url(images/labelbg.gif)"><strong><font color="#000000">【 图片添加 】</font></strong></td>
                  </tr>
                  <tr>
                    <td width="20%" height="30" align="right" bgcolor="#ffffff" style="border-bottom:1px #EEEEEE dashed"><asp:Label ID="lblPictureCategory" runat="server" Text="图片类别："></asp:Label>
                    </td>
                    <td bgcolor="#ffffff" align="left" style="border-bottom:1px #EEEEEE dashed"><asp:DropDownList ID="listPictureCategory" runat="server"></asp:DropDownList>
                    </td>
                  </tr>
                  <tr>
                    <td width="20%" height="30" align="right" bgcolor="#fAfAfA" style="border-bottom:1px #EEEEEE dashed"><asp:Label ID="Label1" runat="server" Text="图片名称："></asp:Label>
                    </td>
                    <td bgcolor="#fAfAfA" align="left" style="border-bottom:1px #EEEEEE dashed"><asp:TextBox ID="txtNameAdd" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
                                ControlToValidate="txtNameAdd" ErrorMessage="不能为空"></asp:RequiredFieldValidator>
                    </td>
                  </tr>
                  <tr>
                    <td width="20%" height="30" align="right" bgcolor="#ffffff" style="border-bottom:1px #EEEEEE dashed"><asp:Label ID="lblSrc" runat="server" Text="上传图片："></asp:Label>
                    </td>
                    <td bgcolor="#ffffff" align="left" style="border-bottom:1px #EEEEEE dashed"><asp:FileUpload ID="fileSrc" runat="server" />
                    </td>
                  </tr>
                  <tr>
                    <td width="20%" height="30" align="right" bgcolor="#fAfAfA" style="border-bottom:1px #EEEEEE dashed"><asp:Label ID="lblDescritpion" runat="server" Text="简单描述："></asp:Label>
                    </td>
                    <td bgcolor="#fAfAfA" align="left" style="border-bottom:1px #EEEEEE dashed"><asp:TextBox ID="txtDescription" TextMode="MultiLine" Width="180px" Height="40px" runat="server"></asp:TextBox>
                    </td>
                  </tr>
                  <tr>
                    <td width="20%" height="30" align="right" bgcolor="#ffffff" style="border-bottom:1px #EEEEEE dashed"></td>
                    <td bgcolor="#ffffff" align="left" style="border-bottom:1px #EEEEEE dashed"><asp:CheckBox ID="cbSelectThis" runat="server" Text="选中此图片" Checked="true" />                
                    </td>
                  </tr>
                  <tr>
                    <td width="20%" height="30" align="right" bgcolor="#fAfAfA"></td>
                    <td bgcolor="#fAfAfA" align="left"><asp:Button ID="btnAddSubmit" runat="server" Text="确定" OnClick="btnAddSubmitDialog_Click" class="button"/>                
                        <asp:Button ID="btnEditSubmit" runat="server" Text="取消" CausesValidation="false" OnClick="btnEditSubmit_Click" class="button"/>                  
                        <input name="reset" type="reset" class="button" id="iptReset" value="重置" runat="server"/>
                    </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>
