<%@ page language="C#" autoeventwireup="true" inherits="manage_Flex_MyMaterial, App_Web_vpp5mt5c" enableviewstatemac="false" masterpagefile="~/Manage/I/Default.master" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<asp:Content runat="server" ContentPlaceHolderID="head">
    <title>素材中心</title>
</asp:Content>
<asp:Content runat="server" ContentPlaceHolderID="Content">
    <div style="margin: auto;">
        <div>
            <ul class="dUl">
                <asp:Repeater ID="Repeater1" runat="server">
                    <ItemTemplate>
                        <li class="rpli" style="width:100px;float:left; margin-right:5px;">
                            <div>
                                <img class="rpimg img-thumbnail" src='<%# userUrl +"/"+ myName+"/"+Eval("Name") %>' />
                            </div>
                            <div style="text-align: center;">
                                <input type="checkbox" name="chkImg" value='<%#Eval("Name") %>' />
                            </div>
                        </li>
                    </ItemTemplate>
                </asp:Repeater>
            </ul>
        </div>
        <div class="clearfix"></div>
        <div class="pageDiv text-center">
            <span style="text-align: center">
                共<asp:Label ID="Allnum" runat="server" Text=""></asp:Label>条数据
                <asp:Label ID="Toppage" runat="server" Text="" />
                <asp:Label ID="Nextpage" runat="server" Text="" />
                <asp:Label ID="Downpage" runat="server" Text="" />
                <asp:Label ID="Endpage" runat="server" Text="" />页次：
                <asp:Label ID="Nowpage" runat="server" Text="" />/
                <asp:Label ID="PageSize" runat="server" Text="" />页
                <asp:TextBox ID="txtPage" runat="server" AutoPostBack="true" class="l_input" Width="22px" Height="22px" OnTextChanged="txtPage_TextChanged"></asp:TextBox>
                条数据/页 转到第
                <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnTextChanged="DropDownList1_TextChanged"></asp:DropDownList>
                页<asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="txtPage" ErrorMessage="只能输入数字" Type="Integer" MaximumValue="100000" MinimumValue="0"></asp:RangeValidator>
            </span>
        </div>
        <div class="pageDiv" style="text-align: left;">
            <input type="checkbox" id="chkAll" name="chkAll" />全选
            <asp:Button ID="btnDel" CssClass="btn btn-primary" runat="server" Text="删除" OnClick="btnDel_Click" />
        </div>
    </div>
</asp:Content>
<asp:Content runat="server" ContentPlaceHolderID="ScriptContent">
    <script type="text/javascript" src="/JS/SelectCheckBox.js"></script>
    <script>
        $().ready(function () {
            $("#chkAll").click(function () {//EGV 全选
                selectAllByName(this, "chkImg");
            });
        })
        //$(function () {
        //    $("#chkAll").click(function () {
        //        if ($(this).attr("checked")) {
        //            $("input[name='chkImg']").attr("checked", "checked");
        //        } else {
        //            $("input[name='chkImg']").removeAttr("checked")
        //        }
        //    })
        //});
        function openUpload()
        {
            window.open("../../Flex/UserUpload.aspx", "上传图片", " height=100, width=300, top=300, left=300, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=n o, status=no");
        }
    </script>
</asp:Content>
