<%@ page language="C#" autoeventwireup="true" inherits="ims.web.infoList, ims.web" enableviewstatemac="false" enableEventValidation="false" %>
<!DOCTYPE html>
<html id="infoList">
<head runat="server">
    <title></title><meta http-equiv="X-UA-Compatible" content="IE=edge" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="sm" runat="server" OnAsyncPostBackError="AsyncError" />
    <asp:UpdatePanel ID="listArea" runat="server" ChildrenAsTriggers="false" OnPreRender="ListPreRender" UpdateMode="conditional" RenderMode="Block">
    <ContentTemplate>
        <div runat="server" id="pageTitle"></div>
        <div runat="server" id="children" class="clear"></div>
        <div runat="server" id="EmptyPrompt" visible="false" class="highlight corner"></div>
        <asp:Repeater runat="server" ID="r" OnItemDataBound="ItemBound">
            <ItemTemplate>
                <div class="item">
                    <a runat="server" id="aTitle"></a><img src="images/new.gif" runat="server" id="iconNew" />
                    <div class="summary"><%# Eval("Summary") %></div>
                    <div class="footer">
                        <span class="comment" runat="server" id="ment">评论(<%# Eval("CommentCount") %>)</span><span class="view">浏览(<%# Eval("ClickTimes") %>)次</span><span class="tag" runat="server" id="tag"></span><span class="author"><a rel="<%# Eval("Author") %>"><%# ims.Users.getDisplayName((string)Eval("Author")) %></a>于 <%# ((DateTime)Eval("PublishTime")).ToString("M月d日 H:mm") %></span>
                        <asp:ImageButton runat="server" ID="ibTop" ImageUrl="images/top.gif" ImageAlign="AbsMiddle" ToolTip="置顶" OnClick="SetTop" CssClass="hide" /><asp:ImageButton runat="server" ID="ibDel" ImageUrl="images/info_del.gif" ImageAlign="AbsMiddle" OnClick="Del" OnClientClick="return PreDel();" CssClass="hide" ToolTip="删除" />
                    </div>
                </div>
            </ItemTemplate>
        </asp:Repeater>
        <div id="pager" runat="server"></div>
        <div class="center bigger mtop_x mbottom_l">
            <input type="button" runat="server" id="btnPublish" class="btn" value="发布" onclick="toPublish();" />
            <input type="button" runat="server" id="btnPrivate" class="btn" value="私人记录" onclick="location = 'infoEdit.aspx?privacy=1';" />
            <input type="button" runat="server" id="btnAdvSearch" class="btn" value="搜索" onclick="ShowPop('s_popup');" />
        </div>
        <asp:HiddenField runat="server" ID="curPageIndex" Value="0" /><asp:HiddenField runat="server" ID="filter" Value="" />
        <input type="button" class="hide" runat="server" id="btnFilter" onserverclick="BindList" />
    </ContentTemplate>
    </asp:UpdatePanel>
    <div id="navArea">
    <div id="findDiv" class="con"><input type="text" id="tbKey" runat="server" onkeydown="return enterTo('btnff');" /><input type="button" class="btn" id="btnff" value="搜索" onclick="doSearch();" /></div>
    <div runat="server" id="cats">
        <div class="titleBlock"><span class="sym">☉</span>栏目</div>
        <div class="con">
            <ul runat="server" id="ulCategory" class="ztree">
            </ul>
        </div>
    </div>
    <div class="titleBlock"><span class="sym">☉</span>相关链接</div>
    <div class="con a_line">
        <ul>
            <li runat="server" id="my"><a href="#" onclick="return doFilter('Own');">我发布的<%= ims.Sys.InfoType %></a></li>
            <li runat="server" id="privacy"><a href="#" onclick="return doFilter('Private');">我的私人记录</a></li>
            <li runat="server" id="commentBy"><a href="#" onclick="return doFilter('CommentBy');">我评论的<%= ims.Sys.InfoType %></a></li>
            <li runat="server" id="today"><a href="#" onclick="return doFilter('Today');">今天发布的<%= ims.Sys.InfoType %></a></li>
            <li runat="server" id="yesterday"><a href="#" onclick="return doFilter('Yesterday');">昨天发布的<%= ims.Sys.InfoType %></a></li>
        </ul>
    </div>
    <div class="titleBlock"><span class="sym">☉</span>浏览设置</div>
    <div class="con">
        <ul>
            <li>排序方式：<asp:DropDownList runat="server" ID="ddlSort" Width="72" OnSelectedIndexChanged="BindList" AutoPostBack="true"><asp:ListItem Value="PublishTime" Selected="True">发布时间</asp:ListItem><asp:ListItem Value="EditTime">修改时间</asp:ListItem><asp:ListItem Value="ClickTimes">浏览次数</asp:ListItem><asp:ListItem Value="LastCommentTime">评论时间</asp:ListItem><asp:ListItem Value="CommentCount">评论数量</asp:ListItem></asp:DropDownList></li>
            <li>每页数量：<asp:DropDownList runat="server" ID="ddlPagesize" Width="72" OnSelectedIndexChanged="BindList" AutoPostBack="true">
                <asp:ListItem Value="1">1</asp:ListItem>
                <asp:ListItem Value="2">2</asp:ListItem>
                <asp:ListItem Value="3">3</asp:ListItem>
                <asp:ListItem Value="5">5</asp:ListItem>
                <asp:ListItem Value="10">10</asp:ListItem>
                <asp:ListItem Value="15">15</asp:ListItem>
                <asp:ListItem Value="20" Selected="True">20</asp:ListItem>
                <asp:ListItem Value="30">30</asp:ListItem>
                <asp:ListItem Value="50">50</asp:ListItem>
                <asp:ListItem Value="100">100</asp:ListItem>
                <asp:ListItem Value="200">200</asp:ListItem>
                <asp:ListItem Value="300">300</asp:ListItem>
                <asp:ListItem Value="500">500</asp:ListItem>
            </asp:DropDownList></li>
        </ul>
    </div>
    <div class="titleBlock"><span class="sym">☉</span>标签</div>
    <div class="con a_line" id="divTags" runat="server">
    </div>
    </div>    
    <ims:Pop runat="server" ID="s" Title="搜索" Width="360" HideOnOkClientClick="false" OnOkClientClick="return doFilter('Search');" OkButtonText="搜索" ShowProgress="false">
        <ContentTemplate>
            　关键字： <asp:TextBox runat="server" ID="tbKeyword"></asp:TextBox><br />
            　　　　　 <asp:RadioButtonList runat="server" ID="rblField" RepeatLayout="Flow" RepeatDirection="Horizontal"><asp:ListItem Value="Title" Selected="True">标题</asp:ListItem><asp:ListItem Value="All">全文</asp:ListItem></asp:RadioButtonList>
            <div runat="server" id="divType">　　栏目： <asp:RadioButtonList runat="server" ID="rblType" RepeatLayout="Flow" RepeatDirection="Horizontal"><asp:ListItem Value="nolimit" Selected="True">不限</asp:ListItem><asp:ListItem Value=""></asp:ListItem></asp:RadioButtonList><asp:DropDownList runat="server" ID="ddlCats"></asp:DropDownList></div>
            <div runat="server" id="divAuthor">　　作者： <asp:TextBox runat="server" ID="tbAuthor" Width="163"></asp:TextBox></div>
            <div runat="server" id="divRange">　　范围： <asp:RadioButtonList runat="server" ID="rblRange" RepeatLayout="Flow" RepeatDirection="Horizontal"><asp:ListItem Value="Public" Selected="True">公开发布的</asp:ListItem><asp:ListItem Value="Private">我的私人记录</asp:ListItem></asp:RadioButtonList></div>
            发布时间： <asp:RadioButton runat="server" ID="rbNoLimit" GroupName="Time" Text="不限" Checked="true" /><asp:RadioButton runat="server" ID="rbLimit" GroupName="Time" Text="" /><asp:TextBox runat="server" ID="tbTime1" Width="95"></asp:TextBox>～<asp:TextBox runat="server" ID="tbTime2" Width="95"></asp:TextBox><br /><br />
        </ContentTemplate>
    </ims:Pop>    
    <script src="js/comm.js"></script><script src="js/ztree.js"></script><script src="js/infoList.js"></script>
    </form>
</body>
</html>
