@{
    int columnId = Html.CurrentColumnId();
    dynamic infoData = Html.InfoData();
    int infoId = infoData.Id;
    var prevData=Html.InfoDataPrevious(columnId,infoId,"columnId=@columnId",new{columnId=columnId});
    var nextData=Html.InfoDataNext(columnId,infoId,"columnId=@columnId",new{columnId=columnId});
    var imagsList = Html.AttachmentDataList(new { ParentTable = "article", ParentField = "images", ParentId = infoId });
}
<div class="margin-top-10">
    @Html.Partial("leftNavPartial")
    <div class="right-content fl com-bd">
        @Html.Partial("BreadcrumbPartial")
        <div class="info-content articleinfor">
            <h4 class="text-center">@infoData.Title</h4>
            <div class="text-center info">
                <span title="Release date" class="margin-right-10">发布日期: @infoData.Thedate.ToString("yyyy-MM-dd hh:mm:ss")</span>
                <span title=" Views">阅读：<span id="lb_clicks">0</span></span>
            </div>

            @if (imagsList.Count() > 0)
            {
                <div style="margin:20px 20px;padding:30px;border:1px solid #eeeeee">
                    @Html.Partial("photoSlide", imagsList)
                </div>
            }
            <div class="article-content">
                @Html.Raw(infoData.Content)
            </div>
        </div>
        <div class="clearfix text-left padding-top-20 fenpian">
            <ul>
                @if (prevData != null)
                {
                    string url = Html.InfoDataUrl((int)prevData.ColumnId, (int)prevData.Id);
                    <li class="text-gray">上一篇: <a href="@url" style="text-decoration:none;">@prevData.Title</a></li>
                }
                @if (nextData != null)
                {
                    string url = Html.InfoDataUrl((int)nextData.ColumnId, (int)nextData.Id);
                    <li class="text-gray">下一篇: <a href="@url" style="text-decoration:none;">@nextData.Title</a></li>
                }
            </ul>
        </div>
    </div>
    <div class="clearFix"></div>
</div>

<script type="text/javascript">
    var $lb_clicks = $("#lb_clicks");
    $.post("/E/InfoData/AddClicks", { ColumnId:@infoData.ColumnId,Id:@infoData.Id}, function (data) { $lb_clicks.text(data)})
</script>
