<%@ page language="C#" autoeventwireup="true" inherits="Admin_Image_List, ShopNum1Deploy" %>

<%@ Register src="UserControl/MessageShow.ascx" tagname="MessageShow" tagprefix="ShopNum1" %>

<!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>Untitled Page</title>   
       <link type="text/css" rel="Stylesheet" href="css/index.css" /> 
        <script type="text/javascript" language="javascript" src="../js/CommonJS.js"></script>
    <style type="text/css">
        .style1
        {
            height: 28px;
        }
        .style2
        {
            width: 565px;
        }
        .style3
        {
            height: 28px;
            width: 565px;
        }
    </style>
</head>
<body style="padding:0; background-image: url(images/Bg_right.gif); background-repeat:repeat;">
    <form id="form1" runat="server">
     <div class="navigator">【 图片管理 】</div>  
      <table style="width:100%"> 
        <tr>
            <td style="width:100%;padding-left:20%">
                       <asp:Label ID="LabelName" runat="server" Text="图片名称："></asp:Label>
                       <asp:TextBox ID="TextBoxSName" runat="server" CssClass="input1"></asp:TextBox>
                       <asp:Label ID="Label1" runat="server" Text="图片类型："></asp:Label>
                       <asp:DropDownList ID="DropDownListSImageType" runat="server" 
                           AutoPostBack="True"  CssClass="select1">
                       </asp:DropDownList>
                       &nbsp;<asp:Button ID="ButtonSearch" runat="server" onclick="ButtonSearch_Click" 
                           Text="查询" CausesValidation="False" CssClass="bt2" />
            </td>
        </tr>
        <tr><td></td></tr>
        <tr>
            <td style="width:100%" align="left">
            <div class="query" style="text-align:center">
      
            <asp:DataList ID="DataListShow" runat="server" RepeatDirection="Horizontal" 
                RepeatColumns="8" Width="100%" HorizontalAlign="Center">
                <ItemTemplate>
                    <table>
                        <tr>
                            <td>
                                    <asp:Image ID="loadImg" runat="server" Height="70px" 
                    ImageUrl='<%# "../ImgUpload/"+ DataBinder.Eval(Container,"DataItem(ImagePath)","{0}") %>' 
                    Width="90px" />
                    <%--<img src='container.dataitem("ImagePath")' width="90" height="70" border="0">--%>      
                            </td>
                        </tr>
                        <tr>
                            <td align="center">
                             <input id="checkboxItem"   value='<%# Eval("Guid") %>'  type="checkbox" />
                                <asp:Label ID="imgName" runat="server" 
                Text='<%# DataBinder.Eval(Container,"DataItem(Name)","{0}") %>'></asp:Label>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:DataList>         
            </div>
              </td>
        </tr>
        <tr>
         <td style="width:100%" align="left">
<!-- 分页部分-->
             <div class="btconfig" style="text-align:right">
                 <asp:Label ID="LabelPageMessage" runat="server"></asp:Label>
                 <asp:HyperLink ID="lnkFirst" runat="server" ForeColor="#000000">[&nbsp;&nbsp;首页</asp:HyperLink>
                 <asp:HyperLink ID="lnkPrev" runat="server" ForeColor="#000000">| 上一页</asp:HyperLink>
                 <asp:HyperLink ID="lnkNext" runat="server" ForeColor="#000000">| 下一页</asp:HyperLink>
                 <asp:HyperLink ID="lnkLast" runat="server" ForeColor="#000000">| 末页&nbsp;&nbsp;]</asp:HyperLink>
                  <span>转到 
                 <asp:Literal ID="lnkTo" runat="server" />
                 页</span>
             </div>
         </td>
        </tr>
        <tr>
         <td style="width:100%" align="left">
         <div class="vote">
             <asp:Button ID="ButtonAdd" runat="server" Text="添加" 
                 CausesValidation="False" CssClass="bt2" />
&nbsp;<asp:Button ID="ButtonEdit" runat="server" Text="编辑" CausesValidation="False" 
                 CssClass="bt2" Visible="False" />
&nbsp;<asp:Button ID="ButtonDelete" runat="server" Text="删除" onclick="ButtonDelete_Click" 
                 CausesValidation="False" onclientclick="return DeleteButton()" CssClass="bt2" />
         &nbsp;</div>
         </td>
        </tr>
        </table>
       <table style="width:100%">
            <tr>
                <td align="right" width="20%">
                    &nbsp;</td>
                <td align="left" class="style2" >
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right" class="style1" >
                    <asp:Label ID="Label2" runat="server" Text="图片类型："></asp:Label>
                </td>
                <td align="left" class="style3" >
                    <asp:DropDownList ID="DropDownListImageType" runat="server"  CssClass="select2" 
                        AutoPostBack="True" onselectedindexchanged="DropDownListImageType_SelectedIndexChanged" 
                        >
                    </asp:DropDownList>
                    <font color="red">
                            <asp:Label ID="Label6" runat="server" Text="*"></asp:Label></font>
                    </td>
            </tr>
            <tr>
                <td align="right" >
                    <asp:Label ID="Label3" runat="server" Text="图片名称："></asp:Label>
                </td>
                <td align="left" class="style2" >
                    <asp:TextBox ID="textBoxName" runat="server" CssClass="input2"></asp:TextBox>
                    <font color="red">
                            <asp:Label ID="Label7" runat="server" Text="*"></asp:Label></font>
                          <asp:RequiredFieldValidator ID="RequiredFieldValidatorName" 
                            runat="server" ControlToValidate="textBoxName" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                          </td>
            </tr>
            <tr>
                <td align="right" >
                    <asp:Label ID="Label4" runat="server" Text="上传图片："></asp:Label>
                </td>
                <td align="left" class="style2" >
                    <asp:FileUpload ID="FileUploadImage" runat="server"  CssClass="input2"/>
                    <font color="red">
                            <asp:Label ID="Label8" runat="server" Text="*"></asp:Label></font>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidatorImage" 
                            runat="server" ControlToValidate="FileUploadImage" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="right" >
                    <asp:Label ID="Label5" runat="server" Text="描述："></asp:Label>
                </td>
                <td align="left" class="style2" >
                    <asp:TextBox ID="textBoxDescription" runat="server" Height="60px" 
                        TextMode="MultiLine" Width="440px"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorTitle3" 
                        runat="server" ControlToValidate="textBoxDescription" Display="Dynamic" 
                        ErrorMessage="描述最多100个字符" ValidationExpression="^[\s\S]{0,100}$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td align="right" >
                    <asp:Label ID="LabelSpec" runat="server" Text="生成缩略图："></asp:Label>
                </td>
                <td align="left" class="style2" >
                    <asp:CheckBoxList ID="CheckBoxListImageSpec" runat="server" RepeatColumns="4" 
                        RepeatDirection="Horizontal">
                    </asp:CheckBoxList>
                </td>
            </tr>
            <tr  class="btconfig">
                <td align="right" >
                    &nbsp;</td>
                <td align="left" class="style2" >
                
                    <asp:Button ID="btnConfirm" runat="server"  Text="确定" OnClick="btnConfirm_Click" CssClass="bt2" />
                    &nbsp;<input ID="inputReset" runat="server"  type="reset" value="重置"  class="bt2"/><ShopNum1:MessageShow ID="MessageShow" runat="server" Visible="False" />
                </td>
            </tr>
            </table>
      <div>           
        <div >
          <div></div>
        </div>
    </div>
    <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
    </form>
</body>
</html>
