<%@ page language="C#" autoeventwireup="true" inherits="ims.web.infoList, ims.web" enableviewstatemac="false" enableEventValidation="false" %>
<!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" id="infoList">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="sm" runat="server">
        <Scripts><asp:ScriptReference Name="MicrosoftAjax.js" ScriptMode="Auto" Path="~/js/MsAjax.js"/><asp:ScriptReference Name="MicrosoftAjaxWebForms.js" ScriptMode="Auto" Path="~/js/MsAjax.js"/></Scripts>
    </asp:ScriptManager>
    <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="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>
                    <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>
        <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 class="con" id="operBtns">
        <a runat="server" href="infoEdit.aspx" id="aPublish">发布</a><a runat="server" href="infoEdit.aspx?privacy=1" id="aPrivate">私人记录</a><a href="javascript:void(0);" onclick="toSearch();" id="aSearch">搜索</a>
    </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="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">
        <ul>
            <li runat="server" id="my"><a href="#" onclick="return doFilter('Own');">我发布的<%= ims.Comm.Vars.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.Comm.Vars.InfoType %></a></li>
            <li runat="server" id="today"><a href="#" onclick="return doFilter('Today');">今天发布的<%= ims.Comm.Vars.InfoType %></a></li>
            <li runat="server" id="yesterday"><a href="#" onclick="return doFilter('Yesterday');">昨天发布的<%= ims.Comm.Vars.InfoType %></a></li>
        </ul>
    </div>
    <div class="titleBlock"><span class="sym">☉</span>标签</div>
    <div class="con" 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><br />
            <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" /><br />
            　　　　　<asp:RadioButton runat="server" ID="rbLimit" GroupName="Time" Text="" /><asp:TextBox runat="server" ID="tbTime1" Width="115"></asp:TextBox>～<asp:TextBox runat="server" ID="tbTime2" Width="114"></asp:TextBox><br /><br />
        </ContentTemplate>
    </ims:Pop>    
    <script src="js/comm.js"></script><script src="js/infoList.js"></script>
    </form>
</body>
</html>
