<%@ Control Language="C#" Inherits="VA.Modules.Portal.TemplateBase.Controls.Library.Article_TopX_List" %>
<%@ Import Namespace="System.Data" %>
<% 
    if (base.ArticleData != null && base.ArticleData.Rows.Count > 0) 
    {
        Response.Write("<section id=\"announcement\">");
        Response.Write("<p>");
        foreach (DataRow row in base.ArticleData.Rows)
        {
            string articleID = row["Article_ID"].ToString();
            string title = row["Title"].ToString();
            string createDate = Convert.ToDateTime(row["Create_Date"]).ToString("yyyy-MM-dd", System.Globalization.CultureInfo.InvariantCulture);
            Response.Write("<a href=\"" + base.PortalRoot + "/" + base.DetailPage + "?articleID=" + articleID + "\" target=\"" + base.Target + "\">" + title + " / " + createDate + "</a>");
        }
        Response.Write("</p>");
        Response.Write("</section>");
    }
%>    
<%--<!--原型-->
<section id="announcement">
    <p>
        <a href="">公告标题按时范围发送到发斯蒂芬安慰法阿斯顿发阿斯顿发阿斯顿发违反我按时按时 / 2017.02-28</a>
    </p>
</section>--%>