<%
    //-----------------------------------------------------------
    // 文件名称: Document_Document_Manage_Category.aspx
    // 页面名称: 文档管理-选择文档
    //
    // 描    述:
    //
    // 创建标识: Add By 钟治宇 2008-06-02
    //-----------------------------------------------------------
%>
<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Document_Document_Manage_Category, V5Shop.Shop.Article" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<%@ Register Src="control/ManageHeader.ascx" TagName="ManageHeader" TagPrefix="uc3" %>

<%@ 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 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>
    <script language="javascript" type="text/javascript">
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <div id="searcharea">
             <a style="color: #4B6888; cursor: pointer;" onclick="return InitSelectValue('0')">
                        <img src="images/key_detail.gif" style="border: 0px" alt="Read/Write Property" />选择</a>
            
            <asp:Label ID="lblName" runat="server" Text="文档名称：" ForeColor="#4B6888" Font-Bold="true" meta:resourcekey="lblTitleResource1"></asp:Label>
            <asp:TextBox ID="txtName" Width="100px" 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" CssClass="button" />
        </div>
          <div class="listborder">
          <V5Shop:V5ShopGridView ID="GridViewShow" runat="server" meta:resourcekey="GridViewShowResource1" 
                AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CssClass="datalist" 
                HeaderStyle-Height="18px" HeaderStyle-ForeColor="#000" EmptyDataText="没有查询到任何记录" PageSize="5" TableName="Attachment">
                    <Columns>
                        <asp:TemplateField>
                        <itemstyle horizontalalign="Center" width="5%"  />
                            <ItemTemplate>
                                <input runat="server" class="checkbox" Value='<%#Convert.ToInt32(Eval("ID"))+"|"+(String)Eval("Src") %>' ID="CheckBoxID" type="checkbox" onmouseover="this.mouse='over'" onmouseout="this.mouse='out'" mouse="out" />
                            
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="id" SortExpression="ID" HeaderText="ID" meta:resourcekey="BoundFieldResource1">
                            <itemstyle forecolor="#4B6888" width="10%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Src" SortExpression="Src" HeaderText="路径" meta:resourcekey="BoundFieldResource6">
                            <itemstyle forecolor="#4B6888" width="30%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Name" SortExpression="Name" HeaderText="文档名称" meta:resourcekey="BoundFieldResource2" >
                            <itemstyle forecolor="#000000" width="20%" />
                        </asp:BoundField>
                   
                        <asp:BoundField DataField="CategoryName" SortExpression="CategoryName" HeaderText="文档类别" meta:resourcekey="BoundFieldResource5" >
                            <itemstyle width="15%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Description" SortExpression="Description" HeaderText="描述" meta:resourcekey="BoundFieldResource4" >
                            <itemstyle width="20%" />
                        </asp:BoundField>
                    </Columns>
              <PagerSettings Mode="NumericFirstLast" />
              <HeaderStyle CssClass="category" ForeColor="#000000" Height="18px" />
                </V5Shop:V5ShopGridView>
              &nbsp;&nbsp;</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" />
                   <asp:HiddenField ID="AddVidel" runat="server" />
                   <br />
                <uc1:HiddenField ID="Alert" runat="server" />
            </div>
            <script language="javascript" type="text/javascript">
        FormatStatus("GridViewShow");
        </script>
    </div>
    </form>
</body>
</html>
