<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="announcement_list.aspx.cs" Inherits="VA.Modules.JDingMember.corporateaffairs.announcement_list" %>

<%@ Import Namespace="System.Data"%>

<!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>
<title>公告列表</title>    
    <!--#include virtual="/include/css/editlist.aspx"-->
    <link href="/app_themes/<% = webSiteConfig.ThemeName %>/css/edit.css" type="text/css" rel="Stylesheet" />
    <!--#include virtual="/include/js/editlist.aspx"-->         
    <script type="text/javascript">

        //查看内容；
        function sviewDetail(keyValue) {
            var ids = keyValue;

            //openTopestWindow("公告：(" + keyValue + ")", "/modules/member/corporateaffairs/announcement_view.aspx?RID=" + ids);
            openFrameWindow("公告浏览", 720, 500, "announcement_view.aspx?RID=" + ids);
            event.stopPropagation();  //阻止事件冒泡，避免行被选中；
        }

        //查看浏览人员列表；
        function sviewReaders(keyValue) {
            var ids = keyValue;
            openFrameWindow("浏览人员清单", 720, 400, "announcement_reader_list.aspx?RID=" + ids, false);
            event.stopPropagation();  //阻止事件冒泡，避免行被选中；
        }

        //行双击事件；
        function JTongSmartListTable_trDblclick(trObj) {

            var RID = $(trObj.cells[0]).find("input").eq(0).val();
            
            sviewDetail(RID);
            event.stopPropagation();  //阻止事件冒泡，避免行被选中；
        }

        $(function () {
            initListPage();
        });
    </script>

</head>
<body>
<!--说明：该页面是以 employee_editlist_nofresh_5.aspx 为原型封装的结果-->
<form id="Form1" method="post" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

<div id="pageWrapper" class="pageWrapper">   
    
    <div id="toolBar">                          
        <a href="javascript:refresh()" class="jtongui-toolbarbutton" icon="icon-reload">刷新</a>
    </div><!--toolBar.END--> 
     
    <div id="searchBar">
    
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>

        <asp:DropDownList ID="ddlDateRule" runat="server" EnableViewState="false">
        <asp:ListItem Value="" Selected="True">发布日期</asp:ListItem>
        <asp:ListItem Value="1">今天</asp:ListItem>
            <asp:ListItem Value="2">昨天</asp:ListItem>
            <asp:ListItem Value="3">前天</asp:ListItem>
            <asp:ListItem Value="4">近两天</asp:ListItem>
            <asp:ListItem Value="5">近三天</asp:ListItem>
            <asp:ListItem Value="6">近一周</asp:ListItem>
            <asp:ListItem Value="7">近一月</asp:ListItem>
            <asp:ListItem Value="8">上月</asp:ListItem>
            <asp:ListItem Value="9">本月</asp:ListItem>
            <asp:ListItem Value="10">自定义</asp:ListItem>
        </asp:DropDownList>    

        <VACTL:TextBox ID="txtBeginDate" Runat="server"
            EnableViewState="False"
            CssClass="input"
            Width="80px"            
            onfocus="laydate()"
            MaxLength="20" />  
        -      
        <VACTL:TextBox ID="txtEndDate" Runat="server"
            EnableViewState="False"
            CssClass="input"
            Width="80px"            
            onfocus="laydate()"
            MaxLength="20" />       

        <asp:TextBox ID="txtKeyWords" runat="server"
            CssClass="input"
            Width="200px" />
   
        <asp:Button ID="btnSearch" runat="server" 
             CssClass="simpleBtn"
             Text="查询" 
             Onclick="btnSearch_Click" />
        
        </ContentTemplate>
        </asp:UpdatePanel>

    </div><!--searchBar.END-->    

    <div id="dataBar">

    <!--MainList.Start-->    
    <div class="jtongui-smartlisttable" id="jtongui-smartlisttable">

    <table cellpadding="3" cellspacing="0" class="tableheader" id="tb1_header" >
    <thead>
    <tr>
        <%--<td style="width:30px;text-align:center;"><input type="checkbox" id="ckb_selectAll"/></td>--%>
        <td style="width:30px;text-align:center;">No.</td>
        <td style="width:400px;text-align:center;">公告标题</td>                
        <td style="width:70px;text-align:center;">公告内容</td>        	     	       	    
        <td style="width:70px;text-align:center;">发布人</td>
        <td style="width:100px;text-align:center;">发布时间</td>
        <td style="width:70px;text-align:center;">发布门店</td>
        <td style="width:70px;text-align:center;">浏览人数</td>
        <td style="width:70px;text-align:center;">浏览人清单</td>
        <td></td>
    </tr>    
    </thead>
    </table>

    <div id="dataBody">
    <asp:Repeater ID="myRepeater" Runat="server" EnableViewState="False"  >
    <HeaderTemplate>    
    <div class="bodyContainer">
    <% = base.ShowNoRecordInfo() %>
    <table cellpadding="3" cellspacing="0" class="tablebody" tbHeader="tb1_header">
    </HeaderTemplate>
    <ItemTemplate>
    <tr>
        <%--<td style="text-align:center;"><input type="checkbox" name="ckb_dataItem" value="<%# Eval("RID")%>" /></td>--%>
        <td align="center"><%# (base.currPage - 1)*base.PageSize + Container.ItemIndex + 1%>
            <input type="hidden" value="<%# Eval("RID")%>" />
        </td>
        <td align="left">
           <%-- <%# Eval("View_Flag").ToString() == "0" ? "<img src='/app_themes/icons/newflag.png' border='0' align='absmiddle' />" : ""%>--%>
            <a href="javascript:sviewDetail('<%# Eval("RID")%>');"><%# Eval("Title")%></a></td>                
        <td align="center">
            <a href="#" onclick="javascript:sviewDetail('<%# Eval("RID")%>');">[查看]</a>
        </td>              	       	     
        <td align="center"><%# Eval("Release_Operator_Name")%></td>	           
        <td align="center"><%# String.Format("{0:yyyy-MM-dd HH:mm}",Eval("Release_Date"))%></td>        
        <td align="center"><%# Eval("Release_Shop_Name")%></td>	        
        <td align="center"><%# Eval("Hits")%></td>	        
        <td align="center">
            <a href="#" onclick="javascript:sviewReaders('<%# Eval("RID")%>');">[查看]</a>
        </td>	        
        <td></td>
    </tr>
    </ItemTemplate>
    <FooterTemplate>
    </table>
    </div><!--bodyContainer.END-->        

    <div id="divPagerInfo" style="display:none">
        <%=base.pageInfo%>
    </div>

    <input type="hidden" id="hidden_pageCnt" value="<% = base.PageCnt%>" />
    <input type="hidden" id="hidden_rdCnt" value="<% = base.RdCnt%>" />
    <input type="hidden" name="chkNum" value="<%=chkNum%>" />

    </FooterTemplate>
    </asp:Repeater>    
    </div><!--dataBody.END-->

    </div><!--jtongui-smartlisttable.END-->        
    <!--MainList.End-->  

    </div><!--dataBar.END-->

    <div id="pagerBar">
       ……
    </div><!--pageNavBar.END-->
    
    <asp:HiddenField runat="server" ID="hfCurrPage" EnableViewState="true" />
    
</div>

</form>
</body>
</html> 