918博天堂

Server : Microsoft-IIS/10.0
System : Windows NT EBS-6136 10.0 build 17763 (Windows Server 2016) i586
User : jxgj ( 0)
PHP Version : 7.0.33
Disable Function : passthru,exec,system,shell_exec,proc_open,popen,pcntl_exec,socket_bind,stream_socket_server
Directory :  D:/tmp_aspnet/root/dc15253c/377bd30d/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : D:/tmp_aspnet/root/dc15253c/377bd30d/App_Web_7dsc66iy.4.cs
?#pragma checksum "D:\wwwroot\jmxbaogao\wwwroot\Counter\NewMessageView.ashx" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "B949F927867B3169943E6178F03508CB"

#line 1 "D:\wwwroot\jmxbaogao\wwwroot\Counter\NewMessageView.ashx"


/****************************************
 * 版权所有:南昌金启软件有限公司
 * 网    址:www.21it.com
 ****************************************/
using System;
using System.Collections.Specialized;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Reflection;
using System.Web;
using Com.Huji.DataBll;
using Com.Huji.DataTools;
using Com.Huji.Web.Pager;

namespace Com.Huji.Web.Counter
{
    public class NewMessageView : BaseHandler
    {
        protected NewColumnsBll columnBll = new NewColumnsBll();
        protected NewArticleBll articleBll = new NewArticleBll();
        private NewLanguageBll languageBll = new NewLanguageBll();



        public override void ProcessRequest(HttpContext context)
        {

            context.Response.ContentType = "text/plain";
            if (!ProcessRequestError()) return;
            try
            {

                #region 显示列表
                //显示列表
                StringText builderList = new StringText();
                if (Converts.ToBoolean(context.Request.QueryString["is_list"]))
                {
                    NewMessageBll comBll = new NewMessageBll();
                    string strWhere = " and t.column_id=" + context.Request.QueryString["id"] + " and t.language_id=" + context.Request.QueryString["language_id"];
                    if (!String.IsNullOrEmpty(context.Request.QueryString["article_id"]))
                        strWhere += " and t.article_id=" + context.Request.QueryString["article_id"];
                    //先行查找所有能找到的数据,若是为0,则暗示找不到任何纪录
                    int articleNum = comBll.GetNewMessageCount(strWhere);
                    builderList.Append("<div class=\"data_list\">");

                    builderList.Append("<div class=\"data_list_title\">");
                    if (articleNum != 0)
                    {
                        builderList.Append("<span>");
                        builderList.Append(ShowLangInfo("MessageTotal", context) + ":<b>" + articleNum + "</b> " + ShowLangInfo("CommentUnit", context) + " ");
                        builderList.Append("<a target=\"_blank\" href=\"/FeedBack.aspx?id=" + context.Request.QueryString["id"] +
                            (!String.IsNullOrEmpty(context.Request.QueryString["article_id"]) ? "&article_id=" + context.Request.QueryString["article_id"] : "") +
                            "&hl=" + languageBll.GetNewLanguageModel(Converts.ToInt32(context.Request.QueryString["language_id"])).LanguagePath + "\">[" + ShowLangInfo("CommentAll", context) + "]</a>");
                        builderList.Append("</span>");
                    }
                    builderList.Append("</div>");

                    if (articleNum != 0)
                    {
                        //12 UsePage -------是否分页显示,True为分页显示,False为不分页显示,每页显示的文章数量在后盾栏目设置中指定 
                        int page = Converts.ToInt32(context.Request.QueryString["page_num"]) != 0 ? Converts.ToInt32(context.Request.QueryString["page_num"]) : articleNum;
                        DataTable dt = comBll.GetNewMessageList(page, strWhere, 1, " t.createdate desc", articleNum);

                        foreach (DataRow c in dt.Rows)
                        {
                            builderList.Append("<table id=\"Table1\"  class=\"data_list\" align=\"center\" border=\"0\" cellpadding=\"3\" cellspacing=\"1\">");

                            builderList.Append("<tr><td><span class=\"yellow12b\">" + c["message_1"] + "</span>&nbsp;,&nbsp;" + Converts.ToDateTime(c["createdate"]) + "&nbsp;&nbsp;" + ShowLangInfo("MessageMessage", context) + ":</td></tr>");
                            builderList.Append("<tr><td>&nbsp;&nbsp;" + Converts.StrToHtml(c["message_2"].ToString()) + "</td></tr>");
                            if (!String.IsNullOrEmpty(c["remark"].ToString()))
                            {
                                builderList.Append("<tr><td class=\"red12b\">" + ShowLangInfo("MessageServerReceive", context) + ":</td></tr>");
                                builderList.Append("<tr><td class=\"red12\">&nbsp;&nbsp;" + Converts.StrToHtml(c["remark"].ToString()) + "</td></tr>");
                            }
                            builderList.Append("</table>");
                        }
                    }
                    else
                    {
                        builderList.Append(ShowLangInfo("NoData", context));
                    }
                    builderList.Append("</div>");
                    context.Response.Write("document.write('" + builderList.ToString() + "');");
                }
                #endregion

            }
            catch (SqlException ex)
            {
                Logger.Error(ex.ToString());
                throw ex;
            }
        }
    }
}

#line default
#line hidden